diff --git a/packages/schema-filter/index.vue b/packages/schema-filter/index.vue index c4c4f51..3a70d44 100644 --- a/packages/schema-filter/index.vue +++ b/packages/schema-filter/index.vue @@ -21,6 +21,7 @@ export default { props: { value: Object, schema: { + required: true, type: Object, default() { return {}; diff --git a/packages/schema-form/index.vue b/packages/schema-form/index.vue index 5bd4672..d943334 100644 --- a/packages/schema-form/index.vue +++ b/packages/schema-form/index.vue @@ -66,8 +66,11 @@ export default { }, }, schema: { - type: Object, required: true, + type: Object, + default() { + return {}; + }, }, size: String, }, diff --git a/packages/schema-page/index.scss b/packages/schema-page/index.scss index f9c518e..8d5d2b7 100644 --- a/packages/schema-page/index.scss +++ b/packages/schema-page/index.scss @@ -1,71 +1,66 @@ -.z-schema-page { - &__header { - margin-bottom: 10px; +.z-schema-page__header { + margin-bottom: 10px; +} +.z-schema-page__filter { + border: 1px solid #ebeef5; + padding-top: 10px; + padding-right: 10px; + border-radius: 4px; + margin-bottom: 10px; +} +.z-schema-page__action { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: flex-start; + line-height: 1; + .el-button + .el-button { + margin-left: 0; } - &__filter { - border: 1px solid #ebeef5; - padding-top: 10px; - padding-right: 10px; - border-radius: 4px; + .el-button { + margin-right: 10px; margin-bottom: 10px; } - &__action { - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: flex-start; - line-height: 1; - .el-button + .el-button { - margin-left: 0; - } - .el-button { - margin-right: 10px; - margin-bottom: 10px; - } +} +.z-schema-page__table-operation { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: center; + .el-button + .el-button { + margin-left: 0; } - &__table { - &-operation { - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: center; - .el-button + .el-button { - margin-left: 0; - } - .el-button { - margin-right: 8px; - padding-top: 6px; - padding-bottom: 6px; - } - } + .el-button { + margin-right: 8px; + padding-top: 6px; + padding-bottom: 6px; } - &__footer { - margin-top: 10px; - text-align: right; - display: flex; - justify-content: space-between; - align-items: center; - .selection-info { - word-break: break-all; - white-space: nowrap; - font-size: 12px; - color: #606266; - .num { - color: #333; - font-weight: bold; - padding: 0 5px; - font-size: 16px; - } - .el-button { - margin-left: 5px; - } +} +.z-schema-page__footer { + margin-top: 10px; + text-align: right; + display: flex; + justify-content: space-between; + align-items: center; + .selection-info { + word-break: break-all; + white-space: nowrap; + font-size: 12px; + color: #606266; + .num { + color: #333; + font-weight: bold; + padding: 0 5px; + font-size: 16px; } - .el-pagination { - flex: auto; + .el-button { + margin-left: 5px; } } + .el-pagination { + flex: auto; + } } - .z-loading-toast { $toast-color: #fff; $toast-bg-color: #000; diff --git a/packages/schema-page/index.vue b/packages/schema-page/index.vue index ec82f3f..6ff4a3c 100644 --- a/packages/schema-page/index.vue +++ b/packages/schema-page/index.vue @@ -168,8 +168,11 @@ export default { props: { ...propsMap, schema: { - type: Object, required: true, + type: Object, + default() { + return {}; + }, }, }, data() { diff --git a/packages/schema-table/index.vue b/packages/schema-table/index.vue index e086a66..eae9c70 100644 --- a/packages/schema-table/index.vue +++ b/packages/schema-table/index.vue @@ -9,8 +9,11 @@ export default { }, }, schema: { - type: Object, required: true, + type: Object, + default() { + return {}; + }, }, size: String, }, -- libgit2 0.21.0