@king-one/form-design 0.0.26 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/es/src/components/form-material.vue.mjs +33 -29
- package/dist/es/src/components/panel/index.mjs +26 -24
- package/dist/es/src/components/panel/widget/leave-kit.vue.mjs +4 -0
- package/dist/es/src/components/panel/widget/leave-kit.vue2.mjs +66 -0
- package/dist/es/src/components/panel/widget/overtime-kit.vue.mjs +4 -0
- package/dist/es/src/components/panel/widget/overtime-kit.vue2.mjs +66 -0
- package/dist/es/src/components/props/widget/GridProps.vue2.mjs +84 -83
- package/dist/es/src/config/index.mjs +153 -124
- package/dist/es/src/core/FormSchema.mjs +45 -40
- package/dist/lib/src/components/form-material.vue.js +1 -1
- package/dist/lib/src/components/panel/index.js +1 -1
- package/dist/lib/src/components/panel/widget/leave-kit.vue.js +1 -0
- package/dist/lib/src/components/panel/widget/leave-kit.vue2.js +1 -0
- package/dist/lib/src/components/panel/widget/overtime-kit.vue.js +1 -0
- package/dist/lib/src/components/panel/widget/overtime-kit.vue2.js +1 -0
- package/dist/lib/src/components/props/widget/GridProps.vue2.js +1 -1
- package/dist/lib/src/config/index.js +15 -1
- package/dist/lib/src/core/FormSchema.js +1 -1
- package/dist/theme-chalk/icon.css +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/kit-panel.css +1 -1
- package/dist/types/src/components/panel/widget/leave-kit.vue.d.ts +3 -0
- package/dist/types/src/components/panel/widget/overtime-kit.vue.d.ts +3 -0
- package/dist/types/src/core/Design.d.ts +211 -79
- package/dist/types/src/core/FormSchema.d.ts +77 -13
- package/dist/types/src/types.d.ts +23 -7
- package/package.json +1 -1
- package/dist/es/src/components/panel/widget/kit.vue.mjs +0 -4
- package/dist/es/src/components/panel/widget/kit.vue2.mjs +0 -48
- package/dist/lib/src/components/panel/widget/kit.vue.js +0 -1
- package/dist/lib/src/components/panel/widget/kit.vue2.js +0 -1
- package/dist/types/src/components/panel/widget/kit.vue.d.ts +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";:root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-primary-light-3:#79bbff;--king-color-primary-light-5:#a0cfff;--king-color-primary-light-7:#c6e2ff;--king-color-primary-light-8:#d9ecff;--king-color-primary-light-9:#ecf5ff;--king-color-success:#67c23a;--king-color-success-light-3:#95d475;--king-color-success-light-5:#b3e19d;--king-color-success-light-7:#d1edc4;--king-color-success-light-8:#e1f3d8;--king-color-success-light-9:#f0f9eb;--king-color-warning:#e6a23c;--king-color-warning-light-3:#eebe77;--king-color-warning-light-5:#f3d19e;--king-color-warning-light-7:#f8e3c5;--king-color-warning-light-8:#faecd8;--king-color-warning-light-9:#fdf6ec;--king-color-danger:#f56c6c;--king-color-danger-light-3:#f89898;--king-color-danger-light-5:#fab6b6;--king-color-danger-light-7:#fcd3d3;--king-color-danger-light-8:#fde2e2;--king-color-danger-light-9:#fef0f0;--king-color-error:#f56c6c;--king-color-error-light-3:#f89898;--king-color-error-light-5:#fab6b6;--king-color-error-light-7:#fcd3d3;--king-color-error-light-8:#fde2e2;--king-color-error-light-9:#fef0f0;--king-color-info:#909399;--king-color-info-light-3:#b1b3b8;--king-color-info-light-5:#c8c9cc;--king-color-info-light-7:#dedfe0;--king-color-info-light-8:#e9e9eb;--king-color-info-light-9:#f4f4f5;--king-transition-duration:0.3s}.k-design-main{width:100%;height:100%;display:flex;background:#f8f8f8;overflow:hidden;overflow-x:auto;font-size:13px;text-align:initial}.k-design-main,.k-design-main *{box-sizing:border-box}.k-design-array-table .array-table-box{display:flex;background-color:#f5f6f6;border:1px dashed #cbcdd3;padding:10px;overflow:hidden;min-height:120px}.k-design-array-table .array-table-box .array-table-left{height:auto;display:flex;flex-direction:column;border:1px solid #cbcdd3}.k-design-array-table .array-table-box .array-table-drag{border:1px solid #cbcdd3;border-left:none;display:flex;justify-content:flex-start;flex:1;overflow:hidden}.k-design-array-table .array-table-box .array-table-drag .widget-drag{width:100%;display:flex;justify-self:start;overflow-x:auto;overflow-y:hidden}.k-design-array-table .array-table-box .array-table-drag .widget-drag .form-item{display:flex;flex-direction:column;height:100%;border-right:1px solid #cbcdd3;min-width:160px}.k-design-array-table .array-table-box .array-table-drag .widget-drag .table-item{height:100%;display:flex;flex-direction:column}.k-design-array-table .array-table-box .array-table-drag-header{min-height:36px;display:flex;align-items:center;justify-content:center;min-width:70px;border-bottom:1px solid #cbcdd3}.k-design-array-table .array-table-box .array-table-drag-content{flex:1;flex-direction:column;align-items:center;justify-content:center}.k-design-array-table .array-table-box .table-item-drag-class{border:1px solid #cbcdd3!important}.k-design-array-table .array-table-box .sortable-ghost{border-left:3px solid var(--king-color-primary);width:0;height:100%!important;overflow:hidden;min-width:0!important}.k-design-array-table .array-table-box .sortable-ghost *{display:none}.k-design-material{flex:0 0 320px;height:100%;border:1px solid var(--king-color-info-light-7)}.k-design-material .k-design-toolbar{height:50px;display:flex;justify-content:center;align-items:center}.k-design-material .k-design-toolbar .toolbar-button{width:120px;text-align:center}.k-design-material .k-design-widget{padding:0 10px}.k-design-material .k-design-widget .widget-group-name{color:var(--king-color-info);font-size:14px;margin:10px 0}.k-design-material .k-design-widget .widget-list-drag{display:flex;flex-flow:row wrap;margin-left:-5px;margin-right:-5px;row-gap:10px}.k-design-material .k-design-widget .widget-col{padding-left:5px;padding-right:5px;width:50%}.k-design-material .k-design-widget .widget-col .widget-item{display:flex;align-items:center;padding:8px 10px;background:#fff;border:1px solid var(--king-color-info-light-8);border-radius:5px;cursor:pointer;font-size:13px}.k-design-material .k-design-widget .widget-item:hover{color:var(--king-color-primary);border-color:var(--king-color-primary-light-3)}.k-design-material .k-design-widget .widget-item-icon{margin-right:5px}.k-design-material .k-design-temp .template-list-drag{padding:0 10px;padding-top:15px;display:flex;-moz-column-gap:5px;column-gap:5px;row-gap:10px}.k-design-material .k-design-temp .template-list-drag .template-item{padding:8px 10px;cursor:pointer;flex:1;display:flex;background:#fff;border:1px solid var(--king-color-info-light-8);border-radius:5px}.k-design-material .k-design-temp .template-list-drag .template-item .template-item-icon{margin-right:5px}.k-design-material .k-design-temp .template-list-drag .template-item .template-item-name{font-size:13px}.k-design-material .k-design-temp .template-list-drag .template-item:hover{color:var(--king-color-primary);border-color:var(--king-color-primary-light-3)}.k-design-setting{flex:0;height:100%;border:1px solid var(--king-color-info-light-7);position:relative;background:#fff}.k-design-setting .setting-aside{height:100%;width:320px}.k-design-setting .setting-aside .setting-empty{margin-top:50px}.k-design-setting .setting-collapse{position:absolute;left:-25px;top:8px;cursor:pointer;border-left:none}.form-design-collapse-enter-active,.form-design-collapse-leave-active{transition:var(--form-design-collapse-duration) max-width linear,var(--form-design-collapse-duration) padding-left linear,var(--form-design-collapse-duration) padding-right linear}:root{--form-design-collapse-duration:0.3s}.k-design-panel{flex:1;min-width:800px;border-top:1px solid var(--king-color-info-light-7);border-bottom:1px solid var(--king-color-info-light-7);display:flex;flex-direction:column}.k-design-panel .k-design-panel__toolbar{min-height:38px;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:5px 10px;border-bottom:1px solid var(--king-color-info-light-9)}.k-design-panel .k-design-panel__toolbar .k-design-panel__toolbar--icon{cursor:pointer;margin-right:5px}.k-design-panel .k-design-panel__toolbar .right{padding-right:25px;display:flex;align-items:center}.k-design-panel .k-design-panel__content{flex:1;overflow:hidden;position:relative}.k-design-panel .k-design-panel__content .design-from{height:100%}.k-design-panel .k-design-panel__content .content-panel{height:100%;overflow:auto}.k-design-panel .k-design-panel__content .content-panel .prompt{margin:0 auto;width:65%;max-width:400px;padding:35px 20px;border-radius:10px;border:1px dashed rgba(25,31,37,.12);margin-top:50px;text-align:center;font-size:14px;color:#7a7a7a}.k-design-panel .k-design-panel__content .content-editor{height:100%;overflow:hidden}.k-design-panel .k-design-panel__content .drag-from{min-height:100%;padding-bottom:20px}.k-design-panel .k-design-panel__content .sortable-ghost{border-top:3px solid var(--king-color-primary);height:0;overflow:hidden}@font-face{font-family:iconfont-design;src:url(fonts/iconfont.woff2?t=60493) format("woff2"),url(fonts/iconfont.woff?t=62192) format("woff"),url(fonts/iconfont.ttf?t=93414) format("truetype")}.k-design-icon{font-family:iconfont-design!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-from-design-exclamation-circle-filled:before{content:"\e670"}.icon-from-design-exclamation-circle:before{content:"\e660"}.icon-from-design-form-object:before{content:"\e666"}.icon-from-design-form-list:before{content:"\e667"}.icon-from-design-form-table:before{content:"\e66f"}.icon-from-design-copy:before{content:"\e65d"}.icon-from-design-form-radio:before{content:"\e698"}.icon-from-design-form-daterange:before{content:"\e699"}.icon-from-design-form-money:before{content:"\e69a"}.icon-from-design-form-kit-leave:before{content:"\e69b"}.icon-from-design-form-kit-reimbursement:before{content:"\e69c"}.icon-from-design-form-kit-out:before{content:"\e69d"}.icon-from-design-form-kit-replenish:before{content:"\e69e"}.icon-from-design-form-kit-overtime:before{content:"\e69f"}.icon-from-design-form-number:before{content:"\e6a0"}.icon-from-design-form-textarea:before{content:"\e6a1"}.icon-from-design-form-select:before{content:"\e6a2"}.icon-from-design-form-kit-transfer:before{content:"\e6a3"}.icon-from-design-form-right:before{content:"\e6a4"}.icon-from-design-form-checkbox:before{content:"\e687"}.icon-from-design-form-area:before{content:"\e688"}.icon-from-design-form-del:before{content:"\e689"}.icon-from-design-form-contact-person:before{content:"\e68a"}.icon-from-design-form-default:before{content:"\e68b"}.icon-from-design-form-date:before{content:"\e68c"}.icon-from-design-form-drag:before{content:"\e68d"}.icon-from-design-form-desctext:before{content:"\e68e"}.icon-from-design-form-fileupload:before{content:"\e68f"}.icon-from-design-form-input:before{content:"\e690"}.icon-from-design-form-grid:before{content:"\e691"}.icon-from-design-form-imgupload:before{content:"\e692"}.icon-from-design-form-hot-city:before{content:"\e693"}.icon-from-design-form-kit-leave-2:before{content:"\e694"}.icon-from-design-form-inputNumber:before{content:"\e695"}.icon-from-design-form-kit-business-trip:before{content:"\e696"}.icon-from-design-shouzhixiangyou:before{content:"\e615"}.icon-from-design-xiangzuohuangse:before{content:"\e60a"}.icon-from-design-code:before{content:"\e65a"}.icon-from-design-desktop:before{content:"\e65b"}.icon-from-design-delete1:before{content:"\e65c"}.icon-from-design-double-left:before{content:"\e65e"}.icon-from-design-double-right:before{content:"\e65f"}.icon-from-design-mobile:before{content:"\e668"}.icon-from-design-question-circle:before{content:"\e66c"}.icon-from-design-sound:before{content:"\e672"}.k-design-panel-item{cursor:move;border:1px dashed transparent;padding:10px;background-color:#fff;margin-bottom:10px;position:relative}.k-design-panel-item .k-design-panel-item__form{margin-bottom:0;cursor:move}.k-design-panel-item .k-design-panel-item__form *{cursor:move}.k-design-panel-item .k-design-panel-item__error{color:var(--king-color-error)}.k-design-panel-item .icons{position:absolute;right:0;bottom:0;background-color:#fff;border:1px solid var(--king-color-primary);border-bottom:0;border-right:0;padding:0 7px;cursor:pointer;border-top-left-radius:10px}.k-design-panel-item .icons .panel-icon{color:var(--king-color-primary);cursor:pointer}.k-design-panel-item .icons .panel-icon{margin-right:5px}.k-design-panel-item .icons .panel-exclamation-icon{color:var(--king-color-error)}.k-design-panel-item:hover{border:1px dashed var(--king-color-primary)}.k-design-panel-item--active{border:1px dashed var(--king-color-primary);border-left:none}.k-design-panel-item--active:before{content:"";position:absolute;top:0;left:0;height:100%;border-color:var(--king-color-primary);border-left:4px solid var(--king-color-primary)}.k-design-panel-item--active:hover{border-left:none}.k-design-panel-item--error{border-color:var(--king-color-error)}.k-design-panel-item--error .icons{border-color:var(--king-color-error)}.k-design-panel-drag{min-height:60px;background-color:#f5f6f6;padding:10px 5px}.k-design-json-preview{border-radius:8px;background:#fff;height:100%;overflow:auto}.k-design-json-preview .code-container{position:relative;margin:8px;overflow:auto}.k-design-json-preview .hljs-ln{width:100%;border-collapse:collapse}.k-design-json-preview .hljs-ln td{vertical-align:top}.k-design-json-preview .hljs-ln td.hljs-ln-numbers{-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:right;color:#237893;border-right:1px solid #e5e7eb;padding:0 10px;width:1%}.k-design-json-preview .hljs-ln td.hljs-ln-code{padding:0 0 0 8px;display:flex;gap:6px;align-items:baseline;white-space:pre}.k-design-json-preview .indent-guides{display:inline-flex;pointer-events:none}.k-design-json-preview .indent-guide{display:inline-block;width:calc(var(--indent-char,1ch) * var(--indent-size));border-left:1px solid #e5e7eb;opacity:.6}.k-design-json-preview .hljs-ln .line-content{display:inline-block}.k-design-json-preview .hljs-ln .hljs-ln-n::before{content:attr(data-line-number)}.k-design-json-preview .fold-toggle{display:inline-block;width:1em;color:#6b7280;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.k-design-json-preview .fold-toggle:hover{color:#374151}.k-design-json-preview pre.hljs{margin:0;padding:12px 0}.k-design-json-preview .fold-gutter{display:inline-block;width:8px;flex:0 0 8px}.k-design-json-preview .hljs-ln .line-content{position:relative;display:inline-block}.k-design-json-preview .indent-guides{position:absolute;left:0;top:0;bottom:0;pointer-events:none;display:block}.k-design-json-preview .indent-guide{position:absolute;left:var(--guide-left);top:0;bottom:0;border-left:1px solid #e5e7eb;opacity:.4}.k-design-json-preview .fold-ellipsis{color:#9ca3af;font-style:italic}.k-design-json-preview .hljs-ln .hljs-ln-line.selected td{background-color:var(--selected-line-bg,rgba(99,102,241,.14))}.k-design-json-preview .indent-guide.active-guide{left:calc(var(--guide-left) + var(--indent-char,1ch) * var(--indent-size));border-left-color:#c1c0c0!important;opacity:1!important}:root{--hljs-background:#ffffff;--hljs-fg:#ffffff;--hljs-key:#a31515;--hljs-string:#0451a5;--hljs-number:#059669;--hljs-literal:#b45309;--hljs-punctuation:#000000}.hljs{background:var(--hljs-background);color:var(--hljs-fg)}.hljs-attr{color:var(--hljs-key)}.hljs-string{color:var(--hljs-string)}.hljs-number{color:var(--hljs-number)}.hljs-literal{color:var(--hljs-literal)}.hljs-operator,.hljs-punctuation{color:var(--hljs-punctuation)}.hljs-symbol{color:var(--hljs-literal)}.hljs-quote{color:var(--hljs-string)}.hljs-title{color:var(--hljs-key)}.k-design-carousel{width:100%;height:100%;overflow:hidden;position:relative}.k-design-carousel .carousel-track{display:flex;width:100%;height:100%}.k-design-carousel .carousel-track>*{flex:0 0 100%;width:100%;height:100%}.k-design-kit-panel{background-color:#f5f6f6;padding:10px 5px}.k-design-kit-panel .kit-item{margin-bottom:10px;background-color:#fff;padding:10px}.k-design-kit-panel .kit-item:last-child{margin-bottom:0}.k-design-form-config{height:100%;overflow:auto}.k-design-form-config .setting-tabs{height:100%}.k-design-form-config .setting-tabs .ant-tabs-content{height:100%;overflow:auto}.k-design-form-config .ant-collapse{border-radius:0;border-left:none;border-right:none}.k-design-form-config .ant-collapse-header{padding:5px 10px!important}.k-design-form-config .ant-collapse-item{border-radius:0!important}.k-design-form-config .ant-collapse-item-active:last-child{border-bottom:0!important}.k-design-grid-widget .grid-row{width:100%}.k-design-grid-widget .grid-col{border:1px dashed #cbcdd3;padding:5px}.k-design-grid-props .col-item{display:flex;margin-bottom:10px}.k-design-grid-props .col-item .close-icon{margin-left:10px;font-size:18px;cursor:pointer;transition:all linear .1s;color:var(--king-color-danger)}.k-design-grid-props .col-item .close-icon:hover{transform:scale(1.2)}
|
|
1
|
+
@charset "UTF-8";:root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-primary-light-3:#79bbff;--king-color-primary-light-5:#a0cfff;--king-color-primary-light-7:#c6e2ff;--king-color-primary-light-8:#d9ecff;--king-color-primary-light-9:#ecf5ff;--king-color-success:#67c23a;--king-color-success-light-3:#95d475;--king-color-success-light-5:#b3e19d;--king-color-success-light-7:#d1edc4;--king-color-success-light-8:#e1f3d8;--king-color-success-light-9:#f0f9eb;--king-color-warning:#e6a23c;--king-color-warning-light-3:#eebe77;--king-color-warning-light-5:#f3d19e;--king-color-warning-light-7:#f8e3c5;--king-color-warning-light-8:#faecd8;--king-color-warning-light-9:#fdf6ec;--king-color-danger:#f56c6c;--king-color-danger-light-3:#f89898;--king-color-danger-light-5:#fab6b6;--king-color-danger-light-7:#fcd3d3;--king-color-danger-light-8:#fde2e2;--king-color-danger-light-9:#fef0f0;--king-color-error:#f56c6c;--king-color-error-light-3:#f89898;--king-color-error-light-5:#fab6b6;--king-color-error-light-7:#fcd3d3;--king-color-error-light-8:#fde2e2;--king-color-error-light-9:#fef0f0;--king-color-info:#909399;--king-color-info-light-3:#b1b3b8;--king-color-info-light-5:#c8c9cc;--king-color-info-light-7:#dedfe0;--king-color-info-light-8:#e9e9eb;--king-color-info-light-9:#f4f4f5;--king-transition-duration:0.3s}.k-design-main{width:100%;height:100%;display:flex;background:#f8f8f8;overflow:hidden;overflow-x:auto;font-size:13px;text-align:initial}.k-design-main,.k-design-main *{box-sizing:border-box}.k-design-array-table .array-table-box{display:flex;background-color:#f5f6f6;border:1px dashed #cbcdd3;padding:10px;overflow:hidden;min-height:120px}.k-design-array-table .array-table-box .array-table-left{height:auto;display:flex;flex-direction:column;border:1px solid #cbcdd3}.k-design-array-table .array-table-box .array-table-drag{border:1px solid #cbcdd3;border-left:none;display:flex;justify-content:flex-start;flex:1;overflow:hidden}.k-design-array-table .array-table-box .array-table-drag .widget-drag{width:100%;display:flex;justify-self:start;overflow-x:auto;overflow-y:hidden}.k-design-array-table .array-table-box .array-table-drag .widget-drag .form-item{display:flex;flex-direction:column;height:100%;border-right:1px solid #cbcdd3;min-width:160px}.k-design-array-table .array-table-box .array-table-drag .widget-drag .table-item{height:100%;display:flex;flex-direction:column}.k-design-array-table .array-table-box .array-table-drag-header{min-height:36px;display:flex;align-items:center;justify-content:center;min-width:70px;border-bottom:1px solid #cbcdd3}.k-design-array-table .array-table-box .array-table-drag-content{flex:1;flex-direction:column;align-items:center;justify-content:center}.k-design-array-table .array-table-box .table-item-drag-class{border:1px solid #cbcdd3!important}.k-design-array-table .array-table-box .sortable-ghost{border-left:3px solid var(--king-color-primary);width:0;height:100%!important;overflow:hidden;min-width:0!important}.k-design-array-table .array-table-box .sortable-ghost *{display:none}.k-design-material{flex:0 0 320px;height:100%;border:1px solid var(--king-color-info-light-7)}.k-design-material .k-design-toolbar{height:50px;display:flex;justify-content:center;align-items:center}.k-design-material .k-design-toolbar .toolbar-button{width:120px;text-align:center}.k-design-material .k-design-widget{padding:0 10px}.k-design-material .k-design-widget .widget-group-name{color:var(--king-color-info);font-size:14px;margin:10px 0}.k-design-material .k-design-widget .widget-list-drag{display:flex;flex-flow:row wrap;margin-left:-5px;margin-right:-5px;row-gap:10px}.k-design-material .k-design-widget .widget-col{padding-left:5px;padding-right:5px;width:50%}.k-design-material .k-design-widget .widget-col .widget-item{display:flex;align-items:center;padding:8px 10px;background:#fff;border:1px solid var(--king-color-info-light-8);border-radius:5px;cursor:pointer;font-size:13px}.k-design-material .k-design-widget .widget-item:hover{color:var(--king-color-primary);border-color:var(--king-color-primary-light-3)}.k-design-material .k-design-widget .widget-item-icon{margin-right:5px}.k-design-material .k-design-temp .template-list-drag{padding:0 10px;padding-top:15px;display:flex;-moz-column-gap:5px;column-gap:5px;row-gap:10px}.k-design-material .k-design-temp .template-list-drag .template-item{padding:8px 10px;cursor:pointer;flex:1;display:flex;background:#fff;border:1px solid var(--king-color-info-light-8);border-radius:5px}.k-design-material .k-design-temp .template-list-drag .template-item .template-item-icon{margin-right:5px}.k-design-material .k-design-temp .template-list-drag .template-item .template-item-name{font-size:13px}.k-design-material .k-design-temp .template-list-drag .template-item:hover{color:var(--king-color-primary);border-color:var(--king-color-primary-light-3)}.k-design-setting{flex:0;height:100%;border:1px solid var(--king-color-info-light-7);position:relative;background:#fff}.k-design-setting .setting-aside{height:100%;width:320px}.k-design-setting .setting-aside .setting-empty{margin-top:50px}.k-design-setting .setting-collapse{position:absolute;left:-25px;top:8px;cursor:pointer;border-left:none}.form-design-collapse-enter-active,.form-design-collapse-leave-active{transition:var(--form-design-collapse-duration) max-width linear,var(--form-design-collapse-duration) padding-left linear,var(--form-design-collapse-duration) padding-right linear}:root{--form-design-collapse-duration:0.3s}.k-design-panel{flex:1;min-width:800px;border-top:1px solid var(--king-color-info-light-7);border-bottom:1px solid var(--king-color-info-light-7);display:flex;flex-direction:column}.k-design-panel .k-design-panel__toolbar{min-height:38px;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:5px 10px;border-bottom:1px solid var(--king-color-info-light-9)}.k-design-panel .k-design-panel__toolbar .k-design-panel__toolbar--icon{cursor:pointer;margin-right:5px}.k-design-panel .k-design-panel__toolbar .right{padding-right:25px;display:flex;align-items:center}.k-design-panel .k-design-panel__content{flex:1;overflow:hidden;position:relative}.k-design-panel .k-design-panel__content .design-from{height:100%}.k-design-panel .k-design-panel__content .content-panel{height:100%;overflow:auto}.k-design-panel .k-design-panel__content .content-panel .prompt{margin:0 auto;width:65%;max-width:400px;padding:35px 20px;border-radius:10px;border:1px dashed rgba(25,31,37,.12);margin-top:50px;text-align:center;font-size:14px;color:#7a7a7a}.k-design-panel .k-design-panel__content .content-editor{height:100%;overflow:hidden}.k-design-panel .k-design-panel__content .drag-from{min-height:100%;padding-bottom:20px}.k-design-panel .k-design-panel__content .sortable-ghost{border-top:3px solid var(--king-color-primary);height:0;overflow:hidden}@font-face{font-family:iconfont-design;src:url(fonts/iconfont.woff2?t=72316) format("woff2"),url(fonts/iconfont.woff?t=30835) format("woff"),url(fonts/iconfont.ttf?t=70886) format("truetype")}.k-design-icon{font-family:iconfont-design!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-from-design-exclamation-circle-filled:before{content:"\e670"}.icon-from-design-exclamation-circle:before{content:"\e660"}.icon-from-design-form-object:before{content:"\e666"}.icon-from-design-form-list:before{content:"\e667"}.icon-from-design-form-table:before{content:"\e66f"}.icon-from-design-copy:before{content:"\e65d"}.icon-from-design-form-radio:before{content:"\e698"}.icon-from-design-form-daterange:before{content:"\e699"}.icon-from-design-form-money:before{content:"\e69a"}.icon-from-design-form-kit-leave:before{content:"\e69b"}.icon-from-design-form-kit-reimbursement:before{content:"\e69c"}.icon-from-design-form-kit-out:before{content:"\e69d"}.icon-from-design-form-kit-replenish:before{content:"\e69e"}.icon-from-design-form-kit-overtime:before{content:"\e69f"}.icon-from-design-form-number:before{content:"\e6a0"}.icon-from-design-form-textarea:before{content:"\e6a1"}.icon-from-design-form-select:before{content:"\e6a2"}.icon-from-design-form-kit-transfer:before{content:"\e6a3"}.icon-from-design-form-right:before{content:"\e6a4"}.icon-from-design-form-checkbox:before{content:"\e687"}.icon-from-design-form-area:before{content:"\e688"}.icon-from-design-form-del:before{content:"\e689"}.icon-from-design-form-contact-person:before{content:"\e68a"}.icon-from-design-form-default:before{content:"\e68b"}.icon-from-design-form-date:before{content:"\e68c"}.icon-from-design-form-drag:before{content:"\e68d"}.icon-from-design-form-desctext:before{content:"\e68e"}.icon-from-design-form-fileupload:before{content:"\e68f"}.icon-from-design-form-input:before{content:"\e690"}.icon-from-design-form-grid:before{content:"\e691"}.icon-from-design-form-imgupload:before{content:"\e692"}.icon-from-design-form-hot-city:before{content:"\e693"}.icon-from-design-form-kit-leave-2:before{content:"\e694"}.icon-from-design-form-inputNumber:before{content:"\e695"}.icon-from-design-form-kit-business-trip:before{content:"\e696"}.icon-from-design-shouzhixiangyou:before{content:"\e615"}.icon-from-design-xiangzuohuangse:before{content:"\e60a"}.icon-from-design-code:before{content:"\e65a"}.icon-from-design-desktop:before{content:"\e65b"}.icon-from-design-delete1:before{content:"\e65c"}.icon-from-design-double-left:before{content:"\e65e"}.icon-from-design-double-right:before{content:"\e65f"}.icon-from-design-mobile:before{content:"\e668"}.icon-from-design-question-circle:before{content:"\e66c"}.icon-from-design-sound:before{content:"\e672"}.k-design-panel-item{cursor:move;border:1px dashed transparent;padding:10px;background-color:#fff;margin-bottom:10px;position:relative}.k-design-panel-item .k-design-panel-item__form{margin-bottom:0;cursor:move}.k-design-panel-item .k-design-panel-item__form *{cursor:move}.k-design-panel-item .k-design-panel-item__error{color:var(--king-color-error)}.k-design-panel-item .icons{position:absolute;right:0;bottom:0;background-color:#fff;border:1px solid var(--king-color-primary);border-bottom:0;border-right:0;padding:0 7px;cursor:pointer;border-top-left-radius:10px}.k-design-panel-item .icons .panel-icon{color:var(--king-color-primary);cursor:pointer}.k-design-panel-item .icons .panel-icon{margin-right:5px}.k-design-panel-item .icons .panel-exclamation-icon{color:var(--king-color-error)}.k-design-panel-item:hover{border:1px dashed var(--king-color-primary)}.k-design-panel-item--active{border:1px dashed var(--king-color-primary);border-left:none}.k-design-panel-item--active:before{content:"";position:absolute;top:0;left:0;height:100%;border-color:var(--king-color-primary);border-left:4px solid var(--king-color-primary)}.k-design-panel-item--active:hover{border-left:none}.k-design-panel-item--error{border-color:var(--king-color-error)}.k-design-panel-item--error .icons{border-color:var(--king-color-error)}.k-design-panel-drag{min-height:60px;background-color:#f5f6f6;padding:10px 5px}.k-design-json-preview{border-radius:8px;background:#fff;height:100%;overflow:auto}.k-design-json-preview .code-container{position:relative;margin:8px;overflow:auto}.k-design-json-preview .hljs-ln{width:100%;border-collapse:collapse}.k-design-json-preview .hljs-ln td{vertical-align:top}.k-design-json-preview .hljs-ln td.hljs-ln-numbers{-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:right;color:#237893;border-right:1px solid #e5e7eb;padding:0 10px;width:1%}.k-design-json-preview .hljs-ln td.hljs-ln-code{padding:0 0 0 8px;display:flex;gap:6px;align-items:baseline;white-space:pre}.k-design-json-preview .indent-guides{display:inline-flex;pointer-events:none}.k-design-json-preview .indent-guide{display:inline-block;width:calc(var(--indent-char,1ch) * var(--indent-size));border-left:1px solid #e5e7eb;opacity:.6}.k-design-json-preview .hljs-ln .line-content{display:inline-block}.k-design-json-preview .hljs-ln .hljs-ln-n::before{content:attr(data-line-number)}.k-design-json-preview .fold-toggle{display:inline-block;width:1em;color:#6b7280;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.k-design-json-preview .fold-toggle:hover{color:#374151}.k-design-json-preview pre.hljs{margin:0;padding:12px 0}.k-design-json-preview .fold-gutter{display:inline-block;width:8px;flex:0 0 8px}.k-design-json-preview .hljs-ln .line-content{position:relative;display:inline-block}.k-design-json-preview .indent-guides{position:absolute;left:0;top:0;bottom:0;pointer-events:none;display:block}.k-design-json-preview .indent-guide{position:absolute;left:var(--guide-left);top:0;bottom:0;border-left:1px solid #e5e7eb;opacity:.4}.k-design-json-preview .fold-ellipsis{color:#9ca3af;font-style:italic}.k-design-json-preview .hljs-ln .hljs-ln-line.selected td{background-color:var(--selected-line-bg,rgba(99,102,241,.14))}.k-design-json-preview .indent-guide.active-guide{left:calc(var(--guide-left) + var(--indent-char,1ch) * var(--indent-size));border-left-color:#c1c0c0!important;opacity:1!important}:root{--hljs-background:#ffffff;--hljs-fg:#ffffff;--hljs-key:#a31515;--hljs-string:#0451a5;--hljs-number:#059669;--hljs-literal:#b45309;--hljs-punctuation:#000000}.hljs{background:var(--hljs-background);color:var(--hljs-fg)}.hljs-attr{color:var(--hljs-key)}.hljs-string{color:var(--hljs-string)}.hljs-number{color:var(--hljs-number)}.hljs-literal{color:var(--hljs-literal)}.hljs-operator,.hljs-punctuation{color:var(--hljs-punctuation)}.hljs-symbol{color:var(--hljs-literal)}.hljs-quote{color:var(--hljs-string)}.hljs-title{color:var(--hljs-key)}.k-design-carousel{width:100%;height:100%;overflow:hidden;position:relative}.k-design-carousel .carousel-track{display:flex;width:100%;height:100%}.k-design-carousel .carousel-track>*{flex:0 0 100%;width:100%;height:100%}.k-design-kit-panel{background-color:#f5f6f6;padding:10px 5px}.k-design-kit-panel .details{margin-bottom:10px;background-color:#fff;padding:10px}.k-design-kit-panel .detail-content{padding:10px 5px;background-color:#f5f6f6}.k-design-kit-panel .kit-item{margin-bottom:10px;background-color:#fff;padding:10px}.k-design-kit-panel .kit-item:last-child{margin-bottom:0}.k-design-form-config{height:100%;overflow:auto}.k-design-form-config .setting-tabs{height:100%}.k-design-form-config .setting-tabs .ant-tabs-content{height:100%;overflow:auto}.k-design-form-config .ant-collapse{border-radius:0;border-left:none;border-right:none}.k-design-form-config .ant-collapse-header{padding:5px 10px!important}.k-design-form-config .ant-collapse-item{border-radius:0!important}.k-design-form-config .ant-collapse-item-active:last-child{border-bottom:0!important}.k-design-grid-widget .grid-row{width:100%}.k-design-grid-widget .grid-col{border:1px dashed #cbcdd3;padding:5px}.k-design-grid-props .col-item{display:flex;margin-bottom:10px}.k-design-grid-props .col-item .close-icon{margin-left:10px;font-size:18px;cursor:pointer;transition:all linear .1s;color:var(--king-color-danger)}.k-design-grid-props .col-item .close-icon:hover{transform:scale(1.2)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.k-design-kit-panel{background-color:#f5f6f6;padding:10px 5px}.k-design-kit-panel .kit-item{margin-bottom:10px;background-color:#fff;padding:10px}.k-design-kit-panel .kit-item:last-child{margin-bottom:0}
|
|
1
|
+
.k-design-kit-panel{background-color:#f5f6f6;padding:10px 5px}.k-design-kit-panel .details{margin-bottom:10px;background-color:#fff;padding:10px}.k-design-kit-panel .detail-content{padding:10px 5px;background-color:#f5f6f6}.k-design-kit-panel .kit-item{margin-bottom:10px;background-color:#fff;padding:10px}.k-design-kit-panel .kit-item:last-child{margin-bottom:0}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentWidgetType, DesignParams, DesignSchema, FieldSchema, FormDesignPlugin, PropsWidgetType, TemplateSchema, valueType, DragPutType } from '@king-one/form-design/dist/types/src/types';
|
|
1
|
+
import { ComponentWidgetType, DesignParams, DesignSchema, FieldSchema, FormDesignPlugin, PropsWidgetType, TemplateSchema, valueType, BaseFieldSchema, DragPutType } from '@king-one/form-design/dist/types/src/types';
|
|
2
2
|
import { Ref, VNode } from 'vue';
|
|
3
3
|
import { Field } from './Field';
|
|
4
4
|
import { SyncBailHook, UnsetAdditionalOptions, SyncHook } from '@king-one/tapable';
|
|
@@ -17,40 +17,41 @@ export declare class FormDesign {
|
|
|
17
17
|
enum?: any[] | undefined;
|
|
18
18
|
format?: string | undefined;
|
|
19
19
|
items?: {
|
|
20
|
-
title: string;
|
|
21
|
-
key: string;
|
|
22
20
|
type: valueType;
|
|
23
|
-
'x-component'?: string | undefined;
|
|
24
|
-
enum?: any[] | undefined;
|
|
25
21
|
format?: string | undefined;
|
|
26
|
-
|
|
27
|
-
[x: string]: any;
|
|
28
|
-
type?: valueType | undefined;
|
|
29
|
-
properties?: Record<string, FieldSchema> | undefined;
|
|
30
|
-
} | undefined;
|
|
31
|
-
children?: any[] | undefined;
|
|
32
|
-
required?: boolean | undefined;
|
|
33
|
-
id?: string | undefined;
|
|
22
|
+
title?: string | undefined;
|
|
34
23
|
name?: string | undefined;
|
|
35
|
-
|
|
36
|
-
'x-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
24
|
+
'x-component'?: string | undefined;
|
|
25
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
26
|
+
'x-decorator'?: string | undefined;
|
|
27
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
28
|
+
items?: any | any[] | undefined;
|
|
29
|
+
'x-validator'?: any[] | undefined;
|
|
30
|
+
'x-reactions'?: {
|
|
31
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
32
|
+
fulfill?: {
|
|
33
|
+
state?: Record<string, any> | undefined;
|
|
42
34
|
} | undefined;
|
|
43
35
|
} | undefined;
|
|
36
|
+
} | {
|
|
37
|
+
type: valueType;
|
|
38
|
+
format?: string | undefined;
|
|
39
|
+
title?: string | undefined;
|
|
40
|
+
name?: string | undefined;
|
|
41
|
+
'x-component'?: string | undefined;
|
|
44
42
|
'x-component-props'?: Record<string, any> | undefined;
|
|
45
43
|
'x-decorator'?: string | undefined;
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
45
|
+
items?: any | any[] | undefined;
|
|
46
|
+
'x-validator'?: any[] | undefined;
|
|
47
|
+
'x-reactions'?: {
|
|
48
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
49
|
+
fulfill?: {
|
|
50
|
+
state?: Record<string, any> | undefined;
|
|
51
|
+
} | undefined;
|
|
48
52
|
} | undefined;
|
|
49
|
-
}[] |
|
|
50
|
-
|
|
51
|
-
type?: valueType | undefined;
|
|
52
|
-
properties?: Record<string, FieldSchema> | undefined;
|
|
53
|
-
} | undefined;
|
|
53
|
+
}[] | undefined;
|
|
54
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
54
55
|
children?: {
|
|
55
56
|
title: string;
|
|
56
57
|
key: string;
|
|
@@ -58,11 +59,42 @@ export declare class FormDesign {
|
|
|
58
59
|
'x-component'?: string | undefined;
|
|
59
60
|
enum?: any[] | undefined;
|
|
60
61
|
format?: string | undefined;
|
|
61
|
-
items?:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
items?: {
|
|
63
|
+
type: valueType;
|
|
64
|
+
format?: string | undefined;
|
|
65
|
+
title?: string | undefined;
|
|
66
|
+
name?: string | undefined;
|
|
67
|
+
'x-component'?: string | undefined;
|
|
68
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
69
|
+
'x-decorator'?: string | undefined;
|
|
70
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
71
|
+
items?: any | any[] | undefined;
|
|
72
|
+
'x-validator'?: any[] | undefined;
|
|
73
|
+
'x-reactions'?: {
|
|
74
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
75
|
+
fulfill?: {
|
|
76
|
+
state?: Record<string, any> | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
} | {
|
|
80
|
+
type: valueType;
|
|
81
|
+
format?: string | undefined;
|
|
82
|
+
title?: string | undefined;
|
|
83
|
+
name?: string | undefined;
|
|
84
|
+
'x-component'?: string | undefined;
|
|
85
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
86
|
+
'x-decorator'?: string | undefined;
|
|
87
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
88
|
+
items?: any | any[] | undefined;
|
|
89
|
+
'x-validator'?: any[] | undefined;
|
|
90
|
+
'x-reactions'?: {
|
|
91
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
92
|
+
fulfill?: {
|
|
93
|
+
state?: Record<string, any> | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
}[] | undefined;
|
|
97
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
66
98
|
children?: any[] | undefined;
|
|
67
99
|
required?: boolean | undefined;
|
|
68
100
|
id?: string | undefined;
|
|
@@ -70,11 +102,12 @@ export declare class FormDesign {
|
|
|
70
102
|
icon?: (string | VNode) | undefined;
|
|
71
103
|
'x-design-props'?: {
|
|
72
104
|
[x: string]: any;
|
|
73
|
-
unDragTo?: string[] | undefined;
|
|
74
105
|
validate?: {
|
|
75
106
|
status: "success" | "error" | "warning" | "";
|
|
76
107
|
message: string;
|
|
77
108
|
} | undefined;
|
|
109
|
+
'convert-key'?: ("items" | "properties") | undefined;
|
|
110
|
+
'convert-type'?: ("base" | "object" | "array") | undefined;
|
|
78
111
|
} | undefined;
|
|
79
112
|
'x-component-props'?: Record<string, any> | undefined;
|
|
80
113
|
'x-decorator'?: string | undefined;
|
|
@@ -88,11 +121,12 @@ export declare class FormDesign {
|
|
|
88
121
|
icon?: (string | VNode) | undefined;
|
|
89
122
|
'x-design-props'?: {
|
|
90
123
|
[x: string]: any;
|
|
91
|
-
unDragTo?: string[] | undefined;
|
|
92
124
|
validate?: {
|
|
93
125
|
status: "success" | "error" | "warning" | "";
|
|
94
126
|
message: string;
|
|
95
127
|
} | undefined;
|
|
128
|
+
'convert-key'?: ("items" | "properties") | undefined;
|
|
129
|
+
'convert-type'?: ("base" | "object" | "array") | undefined;
|
|
96
130
|
} | undefined;
|
|
97
131
|
'x-component-props'?: Record<string, any> | undefined;
|
|
98
132
|
'x-decorator'?: string | undefined;
|
|
@@ -107,40 +141,41 @@ export declare class FormDesign {
|
|
|
107
141
|
enum?: any[] | undefined;
|
|
108
142
|
format?: string | undefined;
|
|
109
143
|
items?: {
|
|
110
|
-
title: string;
|
|
111
|
-
key: string;
|
|
112
144
|
type: valueType;
|
|
113
|
-
'x-component'?: string | undefined;
|
|
114
|
-
enum?: any[] | undefined;
|
|
115
145
|
format?: string | undefined;
|
|
116
|
-
|
|
117
|
-
[x: string]: any;
|
|
118
|
-
type?: valueType | undefined;
|
|
119
|
-
properties?: Record<string, FieldSchema> | undefined;
|
|
120
|
-
} | undefined;
|
|
121
|
-
children?: any[] | undefined;
|
|
122
|
-
required?: boolean | undefined;
|
|
123
|
-
id?: string | undefined;
|
|
146
|
+
title?: string | undefined;
|
|
124
147
|
name?: string | undefined;
|
|
125
|
-
|
|
126
|
-
'x-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
148
|
+
'x-component'?: string | undefined;
|
|
149
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
150
|
+
'x-decorator'?: string | undefined;
|
|
151
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
152
|
+
items?: any | any[] | undefined;
|
|
153
|
+
'x-validator'?: any[] | undefined;
|
|
154
|
+
'x-reactions'?: {
|
|
155
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
156
|
+
fulfill?: {
|
|
157
|
+
state?: Record<string, any> | undefined;
|
|
132
158
|
} | undefined;
|
|
133
159
|
} | undefined;
|
|
160
|
+
} | {
|
|
161
|
+
type: valueType;
|
|
162
|
+
format?: string | undefined;
|
|
163
|
+
title?: string | undefined;
|
|
164
|
+
name?: string | undefined;
|
|
165
|
+
'x-component'?: string | undefined;
|
|
134
166
|
'x-component-props'?: Record<string, any> | undefined;
|
|
135
167
|
'x-decorator'?: string | undefined;
|
|
136
|
-
|
|
137
|
-
|
|
168
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
169
|
+
items?: any | any[] | undefined;
|
|
170
|
+
'x-validator'?: any[] | undefined;
|
|
171
|
+
'x-reactions'?: {
|
|
172
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
173
|
+
fulfill?: {
|
|
174
|
+
state?: Record<string, any> | undefined;
|
|
175
|
+
} | undefined;
|
|
138
176
|
} | undefined;
|
|
139
|
-
}[] |
|
|
140
|
-
|
|
141
|
-
type?: valueType | undefined;
|
|
142
|
-
properties?: Record<string, FieldSchema> | undefined;
|
|
143
|
-
} | undefined;
|
|
177
|
+
}[] | undefined;
|
|
178
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
144
179
|
children?: {
|
|
145
180
|
title: string;
|
|
146
181
|
key: string;
|
|
@@ -148,11 +183,42 @@ export declare class FormDesign {
|
|
|
148
183
|
'x-component'?: string | undefined;
|
|
149
184
|
enum?: any[] | undefined;
|
|
150
185
|
format?: string | undefined;
|
|
151
|
-
items?:
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
186
|
+
items?: {
|
|
187
|
+
type: valueType;
|
|
188
|
+
format?: string | undefined;
|
|
189
|
+
title?: string | undefined;
|
|
190
|
+
name?: string | undefined;
|
|
191
|
+
'x-component'?: string | undefined;
|
|
192
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
193
|
+
'x-decorator'?: string | undefined;
|
|
194
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
195
|
+
items?: any | any[] | undefined;
|
|
196
|
+
'x-validator'?: any[] | undefined;
|
|
197
|
+
'x-reactions'?: {
|
|
198
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
199
|
+
fulfill?: {
|
|
200
|
+
state?: Record<string, any> | undefined;
|
|
201
|
+
} | undefined;
|
|
202
|
+
} | undefined;
|
|
203
|
+
} | {
|
|
204
|
+
type: valueType;
|
|
205
|
+
format?: string | undefined;
|
|
206
|
+
title?: string | undefined;
|
|
207
|
+
name?: string | undefined;
|
|
208
|
+
'x-component'?: string | undefined;
|
|
209
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
210
|
+
'x-decorator'?: string | undefined;
|
|
211
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
212
|
+
items?: any | any[] | undefined;
|
|
213
|
+
'x-validator'?: any[] | undefined;
|
|
214
|
+
'x-reactions'?: {
|
|
215
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
216
|
+
fulfill?: {
|
|
217
|
+
state?: Record<string, any> | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
}[] | undefined;
|
|
221
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
156
222
|
children?: any[] | undefined;
|
|
157
223
|
required?: boolean | undefined;
|
|
158
224
|
id?: string | undefined;
|
|
@@ -160,11 +226,12 @@ export declare class FormDesign {
|
|
|
160
226
|
icon?: (string | VNode) | undefined;
|
|
161
227
|
'x-design-props'?: {
|
|
162
228
|
[x: string]: any;
|
|
163
|
-
unDragTo?: string[] | undefined;
|
|
164
229
|
validate?: {
|
|
165
230
|
status: "success" | "error" | "warning" | "";
|
|
166
231
|
message: string;
|
|
167
232
|
} | undefined;
|
|
233
|
+
'convert-key'?: ("items" | "properties") | undefined;
|
|
234
|
+
'convert-type'?: ("base" | "object" | "array") | undefined;
|
|
168
235
|
} | undefined;
|
|
169
236
|
'x-component-props'?: Record<string, any> | undefined;
|
|
170
237
|
'x-decorator'?: string | undefined;
|
|
@@ -178,11 +245,12 @@ export declare class FormDesign {
|
|
|
178
245
|
icon?: (string | VNode) | undefined;
|
|
179
246
|
'x-design-props'?: {
|
|
180
247
|
[x: string]: any;
|
|
181
|
-
unDragTo?: string[] | undefined;
|
|
182
248
|
validate?: {
|
|
183
249
|
status: "success" | "error" | "warning" | "";
|
|
184
250
|
message: string;
|
|
185
251
|
} | undefined;
|
|
252
|
+
'convert-key'?: ("items" | "properties") | undefined;
|
|
253
|
+
'convert-type'?: ("base" | "object" | "array") | undefined;
|
|
186
254
|
} | undefined;
|
|
187
255
|
'x-component-props'?: Record<string, any> | undefined;
|
|
188
256
|
'x-decorator'?: string | undefined;
|
|
@@ -225,11 +293,42 @@ export declare class FormDesign {
|
|
|
225
293
|
'x-component'?: string | undefined;
|
|
226
294
|
enum?: any[] | undefined;
|
|
227
295
|
format?: string | undefined;
|
|
228
|
-
items?:
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
296
|
+
items?: {
|
|
297
|
+
type: valueType;
|
|
298
|
+
format?: string | undefined;
|
|
299
|
+
title?: string | undefined;
|
|
300
|
+
name?: string | undefined;
|
|
301
|
+
'x-component'?: string | undefined;
|
|
302
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
303
|
+
'x-decorator'?: string | undefined;
|
|
304
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
305
|
+
items?: any | any[] | undefined;
|
|
306
|
+
'x-validator'?: any[] | undefined;
|
|
307
|
+
'x-reactions'?: {
|
|
308
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
309
|
+
fulfill?: {
|
|
310
|
+
state?: Record<string, any> | undefined;
|
|
311
|
+
} | undefined;
|
|
312
|
+
} | undefined;
|
|
313
|
+
} | {
|
|
314
|
+
type: valueType;
|
|
315
|
+
format?: string | undefined;
|
|
316
|
+
title?: string | undefined;
|
|
317
|
+
name?: string | undefined;
|
|
318
|
+
'x-component'?: string | undefined;
|
|
319
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
320
|
+
'x-decorator'?: string | undefined;
|
|
321
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
322
|
+
items?: any | any[] | undefined;
|
|
323
|
+
'x-validator'?: any[] | undefined;
|
|
324
|
+
'x-reactions'?: {
|
|
325
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
326
|
+
fulfill?: {
|
|
327
|
+
state?: Record<string, any> | undefined;
|
|
328
|
+
} | undefined;
|
|
329
|
+
} | undefined;
|
|
330
|
+
}[] | undefined;
|
|
331
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
233
332
|
children?: any[] | undefined;
|
|
234
333
|
required?: boolean | undefined;
|
|
235
334
|
id?: string | undefined;
|
|
@@ -237,11 +336,12 @@ export declare class FormDesign {
|
|
|
237
336
|
icon?: (string | VNode) | undefined;
|
|
238
337
|
'x-design-props'?: {
|
|
239
338
|
[x: string]: any;
|
|
240
|
-
unDragTo?: string[] | undefined;
|
|
241
339
|
validate?: {
|
|
242
340
|
status: "success" | "error" | "warning" | "";
|
|
243
341
|
message: string;
|
|
244
342
|
} | undefined;
|
|
343
|
+
'convert-key'?: ("items" | "properties") | undefined;
|
|
344
|
+
'convert-type'?: ("base" | "object" | "array") | undefined;
|
|
245
345
|
} | undefined;
|
|
246
346
|
'x-component-props'?: Record<string, any> | undefined;
|
|
247
347
|
'x-decorator'?: string | undefined;
|
|
@@ -255,11 +355,42 @@ export declare class FormDesign {
|
|
|
255
355
|
'x-component'?: string | undefined;
|
|
256
356
|
enum?: any[] | undefined;
|
|
257
357
|
format?: string | undefined;
|
|
258
|
-
items?:
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
358
|
+
items?: {
|
|
359
|
+
type: valueType;
|
|
360
|
+
format?: string | undefined;
|
|
361
|
+
title?: string | undefined;
|
|
362
|
+
name?: string | undefined;
|
|
363
|
+
'x-component'?: string | undefined;
|
|
364
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
365
|
+
'x-decorator'?: string | undefined;
|
|
366
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
367
|
+
items?: any | any[] | undefined;
|
|
368
|
+
'x-validator'?: any[] | undefined;
|
|
369
|
+
'x-reactions'?: {
|
|
370
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
371
|
+
fulfill?: {
|
|
372
|
+
state?: Record<string, any> | undefined;
|
|
373
|
+
} | undefined;
|
|
374
|
+
} | undefined;
|
|
375
|
+
} | {
|
|
376
|
+
type: valueType;
|
|
377
|
+
format?: string | undefined;
|
|
378
|
+
title?: string | undefined;
|
|
379
|
+
name?: string | undefined;
|
|
380
|
+
'x-component'?: string | undefined;
|
|
381
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
382
|
+
'x-decorator'?: string | undefined;
|
|
383
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
384
|
+
items?: any | any[] | undefined;
|
|
385
|
+
'x-validator'?: any[] | undefined;
|
|
386
|
+
'x-reactions'?: {
|
|
387
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
388
|
+
fulfill?: {
|
|
389
|
+
state?: Record<string, any> | undefined;
|
|
390
|
+
} | undefined;
|
|
391
|
+
} | undefined;
|
|
392
|
+
}[] | undefined;
|
|
393
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
263
394
|
children?: any[] | undefined;
|
|
264
395
|
required?: boolean | undefined;
|
|
265
396
|
id?: string | undefined;
|
|
@@ -267,11 +398,12 @@ export declare class FormDesign {
|
|
|
267
398
|
icon?: (string | VNode) | undefined;
|
|
268
399
|
'x-design-props'?: {
|
|
269
400
|
[x: string]: any;
|
|
270
|
-
unDragTo?: string[] | undefined;
|
|
271
401
|
validate?: {
|
|
272
402
|
status: "success" | "error" | "warning" | "";
|
|
273
403
|
message: string;
|
|
274
404
|
} | undefined;
|
|
405
|
+
'convert-key'?: ("items" | "properties") | undefined;
|
|
406
|
+
'convert-type'?: ("base" | "object" | "array") | undefined;
|
|
275
407
|
} | undefined;
|
|
276
408
|
'x-component-props'?: Record<string, any> | undefined;
|
|
277
409
|
'x-decorator'?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldSchema, valueType } from '@king-one/form-design/dist/types/src/types';
|
|
1
|
+
import { FieldSchema, valueType, BaseFieldSchema } from '@king-one/form-design/dist/types/src/types';
|
|
2
2
|
import { Field } from './Field';
|
|
3
3
|
import { Ref, VNode } from 'vue';
|
|
4
4
|
export declare class FormSchema {
|
|
@@ -10,11 +10,42 @@ export declare class FormSchema {
|
|
|
10
10
|
'x-component'?: string | undefined;
|
|
11
11
|
enum?: any[] | undefined;
|
|
12
12
|
format?: string | undefined;
|
|
13
|
-
items?:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
items?: {
|
|
14
|
+
type: valueType;
|
|
15
|
+
format?: string | undefined;
|
|
16
|
+
title?: string | undefined;
|
|
17
|
+
name?: string | undefined;
|
|
18
|
+
'x-component'?: string | undefined;
|
|
19
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
20
|
+
'x-decorator'?: string | undefined;
|
|
21
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
22
|
+
items?: any | any[] | undefined;
|
|
23
|
+
'x-validator'?: any[] | undefined;
|
|
24
|
+
'x-reactions'?: {
|
|
25
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
26
|
+
fulfill?: {
|
|
27
|
+
state?: Record<string, any> | undefined;
|
|
28
|
+
} | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
} | {
|
|
31
|
+
type: valueType;
|
|
32
|
+
format?: string | undefined;
|
|
33
|
+
title?: string | undefined;
|
|
34
|
+
name?: string | undefined;
|
|
35
|
+
'x-component'?: string | undefined;
|
|
36
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
37
|
+
'x-decorator'?: string | undefined;
|
|
38
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
39
|
+
items?: any | any[] | undefined;
|
|
40
|
+
'x-validator'?: any[] | undefined;
|
|
41
|
+
'x-reactions'?: {
|
|
42
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
43
|
+
fulfill?: {
|
|
44
|
+
state?: Record<string, any> | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
}[] | undefined;
|
|
48
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
18
49
|
children?: any[] | undefined;
|
|
19
50
|
required?: boolean | undefined;
|
|
20
51
|
id?: string | undefined;
|
|
@@ -22,11 +53,12 @@ export declare class FormSchema {
|
|
|
22
53
|
icon?: (string | VNode) | undefined;
|
|
23
54
|
'x-design-props'?: {
|
|
24
55
|
[x: string]: any;
|
|
25
|
-
unDragTo?: string[] | undefined;
|
|
26
56
|
validate?: {
|
|
27
57
|
status: "success" | "error" | "warning" | "";
|
|
28
58
|
message: string;
|
|
29
59
|
} | undefined;
|
|
60
|
+
'convert-key'?: ("items" | "properties") | undefined;
|
|
61
|
+
'convert-type'?: ("base" | "object" | "array") | undefined;
|
|
30
62
|
} | undefined;
|
|
31
63
|
'x-component-props'?: Record<string, any> | undefined;
|
|
32
64
|
'x-decorator'?: string | undefined;
|
|
@@ -40,11 +72,42 @@ export declare class FormSchema {
|
|
|
40
72
|
'x-component'?: string | undefined;
|
|
41
73
|
enum?: any[] | undefined;
|
|
42
74
|
format?: string | undefined;
|
|
43
|
-
items?:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
75
|
+
items?: {
|
|
76
|
+
type: valueType;
|
|
77
|
+
format?: string | undefined;
|
|
78
|
+
title?: string | undefined;
|
|
79
|
+
name?: string | undefined;
|
|
80
|
+
'x-component'?: string | undefined;
|
|
81
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
82
|
+
'x-decorator'?: string | undefined;
|
|
83
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
84
|
+
items?: any | any[] | undefined;
|
|
85
|
+
'x-validator'?: any[] | undefined;
|
|
86
|
+
'x-reactions'?: {
|
|
87
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
88
|
+
fulfill?: {
|
|
89
|
+
state?: Record<string, any> | undefined;
|
|
90
|
+
} | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
} | {
|
|
93
|
+
type: valueType;
|
|
94
|
+
format?: string | undefined;
|
|
95
|
+
title?: string | undefined;
|
|
96
|
+
name?: string | undefined;
|
|
97
|
+
'x-component'?: string | undefined;
|
|
98
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
99
|
+
'x-decorator'?: string | undefined;
|
|
100
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
101
|
+
items?: any | any[] | undefined;
|
|
102
|
+
'x-validator'?: any[] | undefined;
|
|
103
|
+
'x-reactions'?: {
|
|
104
|
+
dependencies?: Record<string, any>[] | undefined;
|
|
105
|
+
fulfill?: {
|
|
106
|
+
state?: Record<string, any> | undefined;
|
|
107
|
+
} | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
}[] | undefined;
|
|
110
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
48
111
|
children?: any[] | undefined;
|
|
49
112
|
required?: boolean | undefined;
|
|
50
113
|
id?: string | undefined;
|
|
@@ -52,11 +115,12 @@ export declare class FormSchema {
|
|
|
52
115
|
icon?: (string | VNode) | undefined;
|
|
53
116
|
'x-design-props'?: {
|
|
54
117
|
[x: string]: any;
|
|
55
|
-
unDragTo?: string[] | undefined;
|
|
56
118
|
validate?: {
|
|
57
119
|
status: "success" | "error" | "warning" | "";
|
|
58
120
|
message: string;
|
|
59
121
|
} | undefined;
|
|
122
|
+
'convert-key'?: ("items" | "properties") | undefined;
|
|
123
|
+
'convert-type'?: ("base" | "object" | "array") | undefined;
|
|
60
124
|
} | undefined;
|
|
61
125
|
'x-component-props'?: Record<string, any> | undefined;
|
|
62
126
|
'x-decorator'?: string | undefined;
|