@vunk/form 0.0.0-alpha.9 → 0.0.1-alpha.1
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/component.d.ts +3 -0
- package/components/date-picker/index.js +1 -2
- package/components/date-picker/src/ctx.d.ts +5 -1
- package/{shared/element-plus/instances/date-picker.js → components/date-picker/src/ctx.js} +8 -16
- package/components/date-picker/src/index.vue.d.ts +44 -36
- package/components/date-picker/src/types.d.ts +1 -1
- package/components/date-picker/src/types.js +11 -0
- package/components/form/index.d.ts +0 -1
- package/components/form/index.js +13 -73
- package/components/form/src/ctx.d.ts +4 -4
- package/components/form/src/ctx.js +45 -0
- package/components/form/src/index.vue.d.ts +21 -21
- package/components/form-item/index.js +10 -3
- package/components/form-item/src/ctx.d.ts +5 -1
- package/components/form-item/src/ctx.js +41 -0
- package/components/form-item/src/index.vue.d.ts +8 -0
- package/components/form-item/src/types.d.ts +1 -1
- package/{shared/types/form-item/input.js → components/form-item/src/types.js} +0 -0
- package/components/form-item-renderer/index.d.ts +1 -2
- package/components/form-item-renderer/index.js +16 -21
- package/components/form-item-renderer/src/ctx.js +16 -0
- package/components/form-item-renderer/src/symbols.js +3 -0
- package/components/form-item-renderer/src/types.d.ts +1 -1
- package/{shared/types/form-item/index.js → components/form-item-renderer/src/types.js} +0 -0
- package/components/form-item-renderer-template/index.d.ts +1 -0
- package/components/form-item-renderer-template/index.js +5 -1
- package/components/form-item-renderer-template/src/ctx.js +9 -0
- package/components/form-item-renderer-template/src/types.d.ts +1 -0
- package/{shared/types/form-item/date-picker.js → components/form-item-renderer-template/src/types.js} +0 -0
- package/components/form-item-renderer-template-default/index.d.ts +4 -0
- package/components/form-item-renderer-template-default/index.js +114 -0
- package/{packages/components/ground → components/form-item-renderer-template-default}/src/ctx.d.ts +3 -3
- package/components/form-item-renderer-template-default/src/ctx.js +11 -0
- package/components/form-item-renderer-template-default/src/index.vue.d.ts +24 -0
- package/components/form-item-renderer-template-default/src/types.d.ts +1 -0
- package/{shared/types/drag/index.js → components/form-item-renderer-template-default/src/types.js} +0 -0
- package/components/form-item-renderer-template-layout/index.css +7 -0
- package/components/form-item-renderer-template-layout/index.d.ts +4 -0
- package/components/form-item-renderer-template-layout/index.js +91 -0
- package/components/form-item-renderer-template-layout/src/ctx.d.ts +8 -0
- package/components/form-item-renderer-template-layout/src/ctx.js +9 -0
- package/components/form-item-renderer-template-layout/src/index.vue.d.ts +7 -0
- package/components/form-item-renderer-template-layout/src/types.d.ts +1 -0
- package/{shared/types/form-item/confirm-input.js → components/form-item-renderer-template-layout/src/types.js} +0 -0
- package/components/input/index.js +1 -1
- package/components/input/src/ctx.d.ts +6 -2
- package/components/input/src/ctx.js +34 -0
- package/components/input/src/index.vue.d.ts +34 -26
- package/components/input/src/types.d.ts +1 -1
- package/{shared/types/form-item/select.js → components/input/src/types.js} +0 -0
- package/components/select/index.js +50 -20
- package/components/select/src/ctx.d.ts +10 -6
- package/components/select/src/ctx.js +35 -0
- package/components/select/src/index.vue.d.ts +46 -36
- package/components/select/src/types.d.ts +1 -1
- package/{shared/types/form-item/switch.js → components/select/src/types.js} +0 -0
- package/components/switch/index.js +1 -1
- package/components/switch/src/ctx.js +22 -0
- package/components/switch/src/index.vue.d.ts +4 -4
- package/components/switch/src/types.d.ts +1 -3
- package/{shared/types/shared/index.js → components/switch/src/types.js} +0 -0
- package/composables/index.d.ts +1 -0
- package/composables/index.js +82 -0
- package/composables/useSourceManager.d.ts +13 -0
- package/defaults.d.ts +5 -0
- package/index.css +6 -131
- package/index.d.ts +9 -36
- package/index.esm.js +29 -15
- package/package.json +4 -3
- package/shared/element-plus/ctx.d.ts +11 -0
- package/shared/element-plus/index.d.ts +2 -0
- package/shared/element-plus/{ctx/index.js → index.js} +61 -88
- package/{types/components/date-picker/src/ctx.d.ts → shared/element-plus/instances.d.ts} +93 -40
- package/shared/helper/index.d.ts +3 -3
- package/shared/helper/index.js +7 -31
- package/shared/index.d.ts +1 -0
- package/shared/index.js +1 -0
- package/shared/types/index.d.ts +3 -3
- package/shared/types/layout-source/index.d.ts +30 -0
- package/shared/types/layout-source/index.js +1 -0
- package/shared/types/renderer-source/compoent.d.ts +5 -0
- package/{packages/shared/types/form-item → shared/types/renderer-source}/date-picker.d.ts +1 -2
- package/shared/types/renderer-source/index.d.ts +11 -0
- package/shared/types/renderer-source/index.js +1 -0
- package/{types/packages/shared/types/form-item → shared/types/renderer-source}/input.d.ts +1 -2
- package/{types/packages/shared/types/form-item → shared/types/renderer-source}/select.d.ts +1 -2
- package/{types/packages/shared/types/form-item → shared/types/renderer-source}/switch.d.ts +1 -2
- package/shared/types/source-manager/index.d.ts +6 -0
- package/shared/types/source-manager/index.js +1 -0
- package/components/config/index.d.ts +0 -4
- package/components/config/index.js +0 -81
- package/components/config/src/ctx.d.ts +0 -19
- package/components/config/src/index.vue.d.ts +0 -31
- package/components/config-renderer/index.d.ts +0 -6
- package/components/config-renderer/index.js +0 -75
- package/components/config-renderer/src/ctx.d.ts +0 -9
- package/components/config-renderer/src/index.vue.d.ts +0 -18
- package/components/config-renderer/src/symbols.d.ts +0 -2
- package/components/config-renderer/src/types.d.ts +0 -4
- package/components/config-renderer-template/index.d.ts +0 -3
- package/components/config-renderer-template/index.js +0 -37
- package/components/config-renderer-template/src/ctx.d.ts +0 -7
- package/components/config-renderer-template/src/index.vue.d.ts +0 -16
- package/components/confirm-input/index.css +0 -9
- package/components/confirm-input/index.d.ts +0 -3
- package/components/confirm-input/index.js +0 -182
- package/components/confirm-input/src/ctx.d.ts +0 -116
- package/components/confirm-input/src/index.vue.d.ts +0 -313
- package/components/drag-wrapper/index.d.ts +0 -4
- package/components/drag-wrapper/index.js +0 -53
- package/components/drag-wrapper/src/ctx.d.ts +0 -11
- package/components/drag-wrapper/src/index.vue.d.ts +0 -25
- package/components/drag-wrapper/src/types.d.ts +0 -3
- package/components/drop-wrapper/index.d.ts +0 -4
- package/components/drop-wrapper/index.js +0 -67
- package/components/drop-wrapper/src/index.vue.d.ts +0 -14
- package/components/drop-wrapper/src/static.d.ts +0 -5
- package/components/form/src/utils.d.ts +0 -2
- package/components/form-item-renderer/src/utils.d.ts +0 -3
- package/components/ground/index.css +0 -122
- package/components/ground/index.d.ts +0 -4
- package/components/ground/index.js +0 -1279
- package/components/ground/src/ctx.d.ts +0 -11
- package/components/ground/src/ground-config/index.d.ts +0 -3
- package/components/ground/src/ground-config/src/index copy.vue.d.ts +0 -63
- package/components/ground/src/ground-config/src/index.vue.d.ts +0 -657
- package/components/ground/src/ground-main/index.d.ts +0 -3
- package/components/ground/src/ground-main/src/ctx.d.ts +0 -2
- package/components/ground/src/ground-main/src/editing-wrapper.vue.d.ts +0 -58
- package/components/ground/src/ground-main/src/index.vue.d.ts +0 -56
- package/components/ground/src/ground-main/src/types.d.ts +0 -9
- package/components/ground/src/ground-widget/index.d.ts +0 -3
- package/components/ground/src/ground-widget/src/ctx.d.ts +0 -2
- package/components/ground/src/ground-widget/src/form-item-widget/index.d.ts +0 -2
- package/components/ground/src/ground-widget/src/form-item-widget/src/index.vue.d.ts +0 -966
- package/components/ground/src/ground-widget/src/index.vue.d.ts +0 -29
- package/components/ground/src/ground-widget/src/static.d.ts +0 -4
- package/components/ground/src/index.vue.d.ts +0 -75
- package/components/ground/src/types.d.ts +0 -3
- package/components/input-config/index.d.ts +0 -4
- package/components/input-config/index.js +0 -211
- package/components/input-config/src/ctx.d.ts +0 -638
- package/components/input-config/src/index.vue.d.ts +0 -1881
- package/components/input-config/src/types.d.ts +0 -3
- package/components/rules-config/index.d.ts +0 -3
- package/components/rules-config/index.js +0 -75
- package/components/rules-config/src/ctx.d.ts +0 -314
- package/components/rules-config/src/index.vue.d.ts +0 -1211
- package/components/select-config/index.d.ts +0 -4
- package/components/select-config/index.js +0 -43
- package/components/select-config/src/ctx.d.ts +0 -11
- package/components/select-config/src/index.vue.d.ts +0 -18
- package/components/select-config/src/types.d.ts +0 -3
- package/full-entry/main.d.ts +0 -17
- package/packages/components/config/index.d.ts +0 -4
- package/packages/components/config/src/ctx.d.ts +0 -19
- package/packages/components/config/src/index.vue.d.ts +0 -31
- package/packages/components/config-renderer/index.d.ts +0 -6
- package/packages/components/config-renderer/src/ctx.d.ts +0 -9
- package/packages/components/config-renderer/src/index.vue.d.ts +0 -18
- package/packages/components/config-renderer/src/symbols.d.ts +0 -2
- package/packages/components/config-renderer/src/types.d.ts +0 -4
- package/packages/components/config-renderer-template/index.d.ts +0 -3
- package/packages/components/config-renderer-template/src/ctx.d.ts +0 -7
- package/packages/components/config-renderer-template/src/index.vue.d.ts +0 -16
- package/packages/components/confirm-input/index.d.ts +0 -3
- package/packages/components/confirm-input/src/ctx.d.ts +0 -116
- package/packages/components/confirm-input/src/index.vue.d.ts +0 -313
- package/packages/components/date-picker/index.d.ts +0 -4
- package/packages/components/date-picker/src/ctx.d.ts +0 -131
- package/packages/components/date-picker/src/index.vue.d.ts +0 -330
- package/packages/components/date-picker/src/types.d.ts +0 -14
- package/packages/components/drag-wrapper/index.d.ts +0 -4
- package/packages/components/drag-wrapper/src/ctx.d.ts +0 -11
- package/packages/components/drag-wrapper/src/index.vue.d.ts +0 -25
- package/packages/components/drag-wrapper/src/types.d.ts +0 -3
- package/packages/components/drop-wrapper/index.d.ts +0 -4
- package/packages/components/drop-wrapper/src/index.vue.d.ts +0 -14
- package/packages/components/drop-wrapper/src/static.d.ts +0 -5
- package/packages/components/form/index.d.ts +0 -5
- package/packages/components/form/src/ctx.d.ts +0 -318
- package/packages/components/form/src/index.vue.d.ts +0 -933
- package/packages/components/form/src/utils.d.ts +0 -2
- package/packages/components/form-item/index.d.ts +0 -5
- package/packages/components/form-item/src/ctx.d.ts +0 -44
- package/packages/components/form-item/src/index.vue.d.ts +0 -91
- package/packages/components/form-item/src/types.d.ts +0 -6
- package/packages/components/form-item-renderer/index.d.ts +0 -6
- package/packages/components/form-item-renderer/src/ctx.d.ts +0 -16
- package/packages/components/form-item-renderer/src/index.vue.d.ts +0 -38
- package/packages/components/form-item-renderer/src/symbols.d.ts +0 -2
- package/packages/components/form-item-renderer/src/types.d.ts +0 -5
- package/packages/components/form-item-renderer/src/utils.d.ts +0 -3
- package/packages/components/form-item-renderer-template/index.d.ts +0 -3
- package/packages/components/form-item-renderer-template/src/ctx.d.ts +0 -7
- package/packages/components/form-item-renderer-template/src/index.vue.d.ts +0 -16
- package/packages/components/ground/index.d.ts +0 -4
- package/packages/components/ground/src/ground-config/index.d.ts +0 -3
- package/packages/components/ground/src/ground-config/src/index copy.vue.d.ts +0 -63
- package/packages/components/ground/src/ground-config/src/index.vue.d.ts +0 -657
- package/packages/components/ground/src/ground-main/index.d.ts +0 -3
- package/packages/components/ground/src/ground-main/src/ctx.d.ts +0 -2
- package/packages/components/ground/src/ground-main/src/editing-wrapper.vue.d.ts +0 -58
- package/packages/components/ground/src/ground-main/src/index.vue.d.ts +0 -56
- package/packages/components/ground/src/ground-main/src/types.d.ts +0 -9
- package/packages/components/ground/src/ground-widget/index.d.ts +0 -3
- package/packages/components/ground/src/ground-widget/src/ctx.d.ts +0 -2
- package/packages/components/ground/src/ground-widget/src/form-item-widget/index.d.ts +0 -2
- package/packages/components/ground/src/ground-widget/src/form-item-widget/src/index.vue.d.ts +0 -966
- package/packages/components/ground/src/ground-widget/src/index.vue.d.ts +0 -29
- package/packages/components/ground/src/ground-widget/src/static.d.ts +0 -4
- package/packages/components/ground/src/index.vue.d.ts +0 -75
- package/packages/components/ground/src/types.d.ts +0 -3
- package/packages/components/input/index.d.ts +0 -5
- package/packages/components/input/src/ctx.d.ts +0 -104
- package/packages/components/input/src/index.vue.d.ts +0 -241
- package/packages/components/input/src/types.d.ts +0 -7
- package/packages/components/input-config/index.d.ts +0 -4
- package/packages/components/input-config/src/ctx.d.ts +0 -638
- package/packages/components/input-config/src/index.vue.d.ts +0 -1881
- package/packages/components/input-config/src/types.d.ts +0 -3
- package/packages/components/rules-config/index.d.ts +0 -3
- package/packages/components/rules-config/src/ctx.d.ts +0 -314
- package/packages/components/rules-config/src/index.vue.d.ts +0 -1211
- package/packages/components/select/index.d.ts +0 -4
- package/packages/components/select/src/ctx.d.ts +0 -193
- package/packages/components/select/src/index.vue.d.ts +0 -543
- package/packages/components/select/src/types.d.ts +0 -5
- package/packages/components/select-config/index.d.ts +0 -4
- package/packages/components/select-config/src/ctx.d.ts +0 -11
- package/packages/components/select-config/src/index.vue.d.ts +0 -18
- package/packages/components/select-config/src/types.d.ts +0 -3
- package/packages/components/switch/index.d.ts +0 -4
- package/packages/components/switch/src/ctx.d.ts +0 -68
- package/packages/components/switch/src/index.vue.d.ts +0 -164
- package/packages/components/switch/src/types.d.ts +0 -3
- package/packages/shared/element-plus/ctx/index.d.ts +0 -11
- package/packages/shared/element-plus/instances/date-picker.d.ts +0 -94
- package/packages/shared/element-plus/instances/select.d.ts +0 -91
- package/packages/shared/helper/index.d.ts +0 -3
- package/packages/shared/types/drag/index.d.ts +0 -7
- package/packages/shared/types/form-item/confirm-input.d.ts +0 -8
- package/packages/shared/types/form-item/index.d.ts +0 -5
- package/packages/shared/types/form-item/input.d.ts +0 -8
- package/packages/shared/types/form-item/select.d.ts +0 -8
- package/packages/shared/types/form-item/switch.d.ts +0 -8
- package/packages/shared/types/index.d.ts +0 -3
- package/packages/shared/types/shared/index.d.ts +0 -11
- package/shared/element-plus/ctx/index.d.ts +0 -11
- package/shared/element-plus/instances/date-picker.d.ts +0 -94
- package/shared/element-plus/instances/select.d.ts +0 -91
- package/shared/element-plus/instances/select.js +0 -159
- package/shared/types/drag/index.d.ts +0 -7
- package/shared/types/form-item/confirm-input.d.ts +0 -8
- package/shared/types/form-item/date-picker.d.ts +0 -8
- package/shared/types/form-item/index.d.ts +0 -5
- package/shared/types/form-item/input.d.ts +0 -8
- package/shared/types/form-item/select.d.ts +0 -8
- package/shared/types/form-item/switch.d.ts +0 -8
- package/shared/types/shared/index.d.ts +0 -11
- package/types/components/config/index.d.ts +0 -4
- package/types/components/config/src/ctx.d.ts +0 -19
- package/types/components/config/src/index.vue.d.ts +0 -31
- package/types/components/config-renderer/index.d.ts +0 -6
- package/types/components/config-renderer/src/ctx.d.ts +0 -9
- package/types/components/config-renderer/src/index.vue.d.ts +0 -18
- package/types/components/config-renderer/src/symbols.d.ts +0 -2
- package/types/components/config-renderer/src/types.d.ts +0 -4
- package/types/components/config-renderer-template/index.d.ts +0 -3
- package/types/components/config-renderer-template/src/ctx.d.ts +0 -7
- package/types/components/config-renderer-template/src/index.vue.d.ts +0 -16
- package/types/components/confirm-input/index.d.ts +0 -3
- package/types/components/confirm-input/src/ctx.d.ts +0 -116
- package/types/components/confirm-input/src/index.vue.d.ts +0 -313
- package/types/components/date-picker/index.d.ts +0 -4
- package/types/components/date-picker/src/index.vue.d.ts +0 -330
- package/types/components/date-picker/src/types.d.ts +0 -14
- package/types/components/drag-wrapper/index.d.ts +0 -4
- package/types/components/drag-wrapper/src/ctx.d.ts +0 -11
- package/types/components/drag-wrapper/src/index.vue.d.ts +0 -25
- package/types/components/drag-wrapper/src/types.d.ts +0 -3
- package/types/components/drop-wrapper/index.d.ts +0 -4
- package/types/components/drop-wrapper/src/index.vue.d.ts +0 -14
- package/types/components/drop-wrapper/src/static.d.ts +0 -5
- package/types/components/form/index.d.ts +0 -5
- package/types/components/form/src/ctx.d.ts +0 -318
- package/types/components/form/src/index.vue.d.ts +0 -933
- package/types/components/form/src/utils.d.ts +0 -2
- package/types/components/form-item/index.d.ts +0 -5
- package/types/components/form-item/src/ctx.d.ts +0 -44
- package/types/components/form-item/src/index.vue.d.ts +0 -91
- package/types/components/form-item/src/types.d.ts +0 -6
- package/types/components/form-item-renderer/index.d.ts +0 -6
- package/types/components/form-item-renderer/src/ctx.d.ts +0 -16
- package/types/components/form-item-renderer/src/index.vue.d.ts +0 -38
- package/types/components/form-item-renderer/src/symbols.d.ts +0 -2
- package/types/components/form-item-renderer/src/types.d.ts +0 -5
- package/types/components/form-item-renderer/src/utils.d.ts +0 -3
- package/types/components/form-item-renderer-template/index.d.ts +0 -3
- package/types/components/form-item-renderer-template/src/ctx.d.ts +0 -7
- package/types/components/form-item-renderer-template/src/index.vue.d.ts +0 -16
- package/types/components/ground/index.d.ts +0 -4
- package/types/components/ground/src/ctx.d.ts +0 -11
- package/types/components/ground/src/ground-config/index.d.ts +0 -3
- package/types/components/ground/src/ground-config/src/index copy.vue.d.ts +0 -63
- package/types/components/ground/src/ground-config/src/index.vue.d.ts +0 -657
- package/types/components/ground/src/ground-main/index.d.ts +0 -3
- package/types/components/ground/src/ground-main/src/ctx.d.ts +0 -2
- package/types/components/ground/src/ground-main/src/editing-wrapper.vue.d.ts +0 -58
- package/types/components/ground/src/ground-main/src/index.vue.d.ts +0 -56
- package/types/components/ground/src/ground-main/src/types.d.ts +0 -9
- package/types/components/ground/src/ground-widget/index.d.ts +0 -3
- package/types/components/ground/src/ground-widget/src/ctx.d.ts +0 -2
- package/types/components/ground/src/ground-widget/src/form-item-widget/index.d.ts +0 -2
- package/types/components/ground/src/ground-widget/src/form-item-widget/src/index.vue.d.ts +0 -966
- package/types/components/ground/src/ground-widget/src/index.vue.d.ts +0 -29
- package/types/components/ground/src/ground-widget/src/static.d.ts +0 -4
- package/types/components/ground/src/index.vue.d.ts +0 -75
- package/types/components/ground/src/types.d.ts +0 -3
- package/types/components/input/index.d.ts +0 -5
- package/types/components/input/src/ctx.d.ts +0 -104
- package/types/components/input/src/index.vue.d.ts +0 -241
- package/types/components/input/src/types.d.ts +0 -7
- package/types/components/input-config/index.d.ts +0 -4
- package/types/components/input-config/src/ctx.d.ts +0 -638
- package/types/components/input-config/src/index.vue.d.ts +0 -1881
- package/types/components/input-config/src/types.d.ts +0 -3
- package/types/components/rules-config/index.d.ts +0 -3
- package/types/components/rules-config/src/ctx.d.ts +0 -314
- package/types/components/rules-config/src/index.vue.d.ts +0 -1211
- package/types/components/select/index.d.ts +0 -4
- package/types/components/select/src/ctx.d.ts +0 -193
- package/types/components/select/src/index.vue.d.ts +0 -543
- package/types/components/select/src/types.d.ts +0 -5
- package/types/components/select-config/index.d.ts +0 -4
- package/types/components/select-config/src/ctx.d.ts +0 -11
- package/types/components/select-config/src/index.vue.d.ts +0 -18
- package/types/components/select-config/src/types.d.ts +0 -3
- package/types/components/switch/index.d.ts +0 -4
- package/types/components/switch/src/ctx.d.ts +0 -68
- package/types/components/switch/src/index.vue.d.ts +0 -164
- package/types/components/switch/src/types.d.ts +0 -3
- package/types/full-entry/main.d.ts +0 -17
- package/types/packages/components/config/index.d.ts +0 -4
- package/types/packages/components/config/src/ctx.d.ts +0 -19
- package/types/packages/components/config/src/index.vue.d.ts +0 -31
- package/types/packages/components/config-renderer/index.d.ts +0 -6
- package/types/packages/components/config-renderer/src/ctx.d.ts +0 -9
- package/types/packages/components/config-renderer/src/index.vue.d.ts +0 -18
- package/types/packages/components/config-renderer/src/symbols.d.ts +0 -2
- package/types/packages/components/config-renderer/src/types.d.ts +0 -4
- package/types/packages/components/config-renderer-template/index.d.ts +0 -3
- package/types/packages/components/config-renderer-template/src/ctx.d.ts +0 -7
- package/types/packages/components/config-renderer-template/src/index.vue.d.ts +0 -16
- package/types/packages/components/confirm-input/index.d.ts +0 -3
- package/types/packages/components/confirm-input/src/ctx.d.ts +0 -116
- package/types/packages/components/confirm-input/src/index.vue.d.ts +0 -313
- package/types/packages/components/date-picker/index.d.ts +0 -4
- package/types/packages/components/date-picker/src/ctx.d.ts +0 -131
- package/types/packages/components/date-picker/src/index.vue.d.ts +0 -330
- package/types/packages/components/date-picker/src/types.d.ts +0 -14
- package/types/packages/components/drag-wrapper/index.d.ts +0 -4
- package/types/packages/components/drag-wrapper/src/ctx.d.ts +0 -11
- package/types/packages/components/drag-wrapper/src/index.vue.d.ts +0 -25
- package/types/packages/components/drag-wrapper/src/types.d.ts +0 -3
- package/types/packages/components/drop-wrapper/index.d.ts +0 -4
- package/types/packages/components/drop-wrapper/src/index.vue.d.ts +0 -14
- package/types/packages/components/drop-wrapper/src/static.d.ts +0 -5
- package/types/packages/components/form/index.d.ts +0 -5
- package/types/packages/components/form/src/ctx.d.ts +0 -318
- package/types/packages/components/form/src/index.vue.d.ts +0 -933
- package/types/packages/components/form/src/utils.d.ts +0 -2
- package/types/packages/components/form-item/index.d.ts +0 -5
- package/types/packages/components/form-item/src/ctx.d.ts +0 -44
- package/types/packages/components/form-item/src/index.vue.d.ts +0 -91
- package/types/packages/components/form-item/src/types.d.ts +0 -6
- package/types/packages/components/form-item-renderer/index.d.ts +0 -6
- package/types/packages/components/form-item-renderer/src/ctx.d.ts +0 -16
- package/types/packages/components/form-item-renderer/src/index.vue.d.ts +0 -38
- package/types/packages/components/form-item-renderer/src/symbols.d.ts +0 -2
- package/types/packages/components/form-item-renderer/src/types.d.ts +0 -5
- package/types/packages/components/form-item-renderer/src/utils.d.ts +0 -3
- package/types/packages/components/form-item-renderer-template/index.d.ts +0 -3
- package/types/packages/components/form-item-renderer-template/src/ctx.d.ts +0 -7
- package/types/packages/components/form-item-renderer-template/src/index.vue.d.ts +0 -16
- package/types/packages/components/ground/index.d.ts +0 -4
- package/types/packages/components/ground/src/ctx.d.ts +0 -11
- package/types/packages/components/ground/src/ground-config/index.d.ts +0 -3
- package/types/packages/components/ground/src/ground-config/src/index copy.vue.d.ts +0 -63
- package/types/packages/components/ground/src/ground-config/src/index.vue.d.ts +0 -657
- package/types/packages/components/ground/src/ground-main/index.d.ts +0 -3
- package/types/packages/components/ground/src/ground-main/src/ctx.d.ts +0 -2
- package/types/packages/components/ground/src/ground-main/src/editing-wrapper.vue.d.ts +0 -58
- package/types/packages/components/ground/src/ground-main/src/index.vue.d.ts +0 -56
- package/types/packages/components/ground/src/ground-main/src/types.d.ts +0 -9
- package/types/packages/components/ground/src/ground-widget/index.d.ts +0 -3
- package/types/packages/components/ground/src/ground-widget/src/ctx.d.ts +0 -2
- package/types/packages/components/ground/src/ground-widget/src/form-item-widget/index.d.ts +0 -2
- package/types/packages/components/ground/src/ground-widget/src/form-item-widget/src/index.vue.d.ts +0 -966
- package/types/packages/components/ground/src/ground-widget/src/index.vue.d.ts +0 -29
- package/types/packages/components/ground/src/ground-widget/src/static.d.ts +0 -4
- package/types/packages/components/ground/src/index.vue.d.ts +0 -75
- package/types/packages/components/ground/src/types.d.ts +0 -3
- package/types/packages/components/input/index.d.ts +0 -5
- package/types/packages/components/input/src/ctx.d.ts +0 -104
- package/types/packages/components/input/src/index.vue.d.ts +0 -241
- package/types/packages/components/input/src/types.d.ts +0 -7
- package/types/packages/components/input-config/index.d.ts +0 -4
- package/types/packages/components/input-config/src/ctx.d.ts +0 -638
- package/types/packages/components/input-config/src/index.vue.d.ts +0 -1881
- package/types/packages/components/input-config/src/types.d.ts +0 -3
- package/types/packages/components/rules-config/index.d.ts +0 -3
- package/types/packages/components/rules-config/src/ctx.d.ts +0 -314
- package/types/packages/components/rules-config/src/index.vue.d.ts +0 -1211
- package/types/packages/components/select/index.d.ts +0 -4
- package/types/packages/components/select/src/ctx.d.ts +0 -193
- package/types/packages/components/select/src/index.vue.d.ts +0 -543
- package/types/packages/components/select/src/types.d.ts +0 -5
- package/types/packages/components/select-config/index.d.ts +0 -4
- package/types/packages/components/select-config/src/ctx.d.ts +0 -11
- package/types/packages/components/select-config/src/index.vue.d.ts +0 -18
- package/types/packages/components/select-config/src/types.d.ts +0 -3
- package/types/packages/components/switch/index.d.ts +0 -4
- package/types/packages/components/switch/src/ctx.d.ts +0 -68
- package/types/packages/components/switch/src/index.vue.d.ts +0 -164
- package/types/packages/components/switch/src/types.d.ts +0 -3
- package/types/packages/shared/element-plus/ctx/index.d.ts +0 -11
- package/types/packages/shared/element-plus/instances/date-picker.d.ts +0 -94
- package/types/packages/shared/element-plus/instances/select.d.ts +0 -91
- package/types/packages/shared/helper/index.d.ts +0 -3
- package/types/packages/shared/types/drag/index.d.ts +0 -7
- package/types/packages/shared/types/form-item/confirm-input.d.ts +0 -8
- package/types/packages/shared/types/form-item/date-picker.d.ts +0 -8
- package/types/packages/shared/types/form-item/index.d.ts +0 -5
- package/types/packages/shared/types/index.d.ts +0 -3
- package/types/packages/shared/types/shared/index.d.ts +0 -11
- package/types/shared/element-plus/ctx/index.d.ts +0 -11
- package/types/shared/element-plus/instances/date-picker.d.ts +0 -94
- package/types/shared/element-plus/instances/select.d.ts +0 -91
- package/types/shared/helper/index.d.ts +0 -3
- package/types/shared/types/drag/index.d.ts +0 -7
- package/types/shared/types/form-item/confirm-input.d.ts +0 -8
- package/types/shared/types/form-item/date-picker.d.ts +0 -8
- package/types/shared/types/form-item/index.d.ts +0 -5
- package/types/shared/types/form-item/input.d.ts +0 -8
- package/types/shared/types/form-item/select.d.ts +0 -8
- package/types/shared/types/form-item/switch.d.ts +0 -8
- package/types/shared/types/index.d.ts +0 -3
- package/types/shared/types/shared/index.d.ts +0 -11
|
@@ -1,1279 +0,0 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, toDisplayString, ref, createVNode, withDirectives, renderSlot, vShow, createTextVNode, computed, createCommentVNode, resolveDynamicComponent, normalizeClass, mergeProps, unref, getCurrentScope, onScopeDispose, watch } from 'vue';
|
|
2
|
-
import { VkTabGroup, VkTabItem, VkCard, VkBoxHandler } from 'vunk';
|
|
3
|
-
import { VkFloatBlock } from 'vunk/gsap/components/float-block';
|
|
4
|
-
import { ElCollapseItem, ElScrollbar, ElCollapse, ElIcon, ElButton, ElMessage, ElMessageBox } from 'element-plus';
|
|
5
|
-
import { VkfDragWrapper } from '@vunk/form/components/drag-wrapper';
|
|
6
|
-
import 'vunk/gsap/components/float-block/index.css';
|
|
7
|
-
import { VkfForm, _VkfFormUtils } from '@vunk/form/components/form';
|
|
8
|
-
import { VkfDropWrapper, DragoverClasses } from '@vunk/form/components/drop-wrapper';
|
|
9
|
-
import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
|
|
10
|
-
import { setData, unsetData } from 'vunk/shared/helper';
|
|
11
|
-
import { VkfConfigRenderer } from '@vunk/form/components/config-renderer';
|
|
12
|
-
import { VkfConfigRendererTemplate } from '@vunk/form/components/config-renderer-template';
|
|
13
|
-
import { VkfInputConfig } from '@vunk/form/components/input-config';
|
|
14
|
-
|
|
15
|
-
var script$5 = defineComponent({
|
|
16
|
-
components: {
|
|
17
|
-
ElCollapseItem,
|
|
18
|
-
VkfDragWrapper
|
|
19
|
-
},
|
|
20
|
-
setup() {
|
|
21
|
-
const data = [
|
|
22
|
-
{
|
|
23
|
-
label: "input",
|
|
24
|
-
value: "VkfInput",
|
|
25
|
-
defaultOptions: {
|
|
26
|
-
templateType: "VkfInput",
|
|
27
|
-
prop: "",
|
|
28
|
-
label: "inputLabel"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
label: "select",
|
|
33
|
-
value: "VkfSelect",
|
|
34
|
-
defaultOptions: {
|
|
35
|
-
templateType: "VkfSelect",
|
|
36
|
-
prop: "",
|
|
37
|
-
label: "label"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
label: "switch",
|
|
42
|
-
value: "VkfSwitch",
|
|
43
|
-
defaultOptions: {
|
|
44
|
-
templateType: "VkfSwitch",
|
|
45
|
-
prop: "",
|
|
46
|
-
label: "label"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
];
|
|
50
|
-
return {
|
|
51
|
-
data
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
const _hoisted_1$6 = { class: "vkf-ground-widget-ul" };
|
|
57
|
-
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
58
|
-
const _component_VkfDragWrapper = resolveComponent("VkfDragWrapper");
|
|
59
|
-
const _component_ElCollapseItem = resolveComponent("ElCollapseItem");
|
|
60
|
-
return openBlock(), createBlock(_component_ElCollapseItem, { title: "FormItems" }, {
|
|
61
|
-
default: withCtx(() => [
|
|
62
|
-
createElementVNode("ul", _hoisted_1$6, [
|
|
63
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data, (item) => {
|
|
64
|
-
return openBlock(), createBlock(_component_VkfDragWrapper, {
|
|
65
|
-
key: item.value,
|
|
66
|
-
title: JSON.stringify({ source: item.defaultOptions }),
|
|
67
|
-
data: JSON.stringify({ source: item.defaultOptions })
|
|
68
|
-
}, {
|
|
69
|
-
default: withCtx(() => [
|
|
70
|
-
createElementVNode("li", null, toDisplayString(item.label), 1)
|
|
71
|
-
]),
|
|
72
|
-
_: 2
|
|
73
|
-
}, 1032, ["title", "data"]);
|
|
74
|
-
}), 128))
|
|
75
|
-
])
|
|
76
|
-
]),
|
|
77
|
-
_: 1
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
script$5.render = render$5;
|
|
82
|
-
script$5.__file = "ground/src/ground-widget/src/form-item-widget/src/index.vue";
|
|
83
|
-
|
|
84
|
-
var ComponentsType = /* @__PURE__ */ ((ComponentsType2) => {
|
|
85
|
-
ComponentsType2["container"] = "container";
|
|
86
|
-
ComponentsType2["formItems"] = "formItems";
|
|
87
|
-
return ComponentsType2;
|
|
88
|
-
})(ComponentsType || {});
|
|
89
|
-
|
|
90
|
-
var WidgetTab = /* @__PURE__ */ ((WidgetTab2) => {
|
|
91
|
-
WidgetTab2["components"] = "components";
|
|
92
|
-
WidgetTab2["templates"] = "templates";
|
|
93
|
-
return WidgetTab2;
|
|
94
|
-
})(WidgetTab || {});
|
|
95
|
-
var script$4 = defineComponent({
|
|
96
|
-
components: {
|
|
97
|
-
VkTabGroup,
|
|
98
|
-
VkTabItem,
|
|
99
|
-
VkFloatBlock,
|
|
100
|
-
VkCard,
|
|
101
|
-
ElScrollbar,
|
|
102
|
-
ElCollapse,
|
|
103
|
-
FormItemWidget: script$5
|
|
104
|
-
},
|
|
105
|
-
props: {
|
|
106
|
-
componentLibCollapseExpanded: {
|
|
107
|
-
type: Array,
|
|
108
|
-
default: () => [
|
|
109
|
-
ComponentsType.container,
|
|
110
|
-
ComponentsType.formItems
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
emits: {
|
|
115
|
-
"update:componentLibCollapseExpanded": null
|
|
116
|
-
},
|
|
117
|
-
setup() {
|
|
118
|
-
const widgetTab = ref("components" /* components */);
|
|
119
|
-
return {
|
|
120
|
-
WidgetTab,
|
|
121
|
-
ComponentsType,
|
|
122
|
-
widgetTab
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
const _hoisted_1$5 = /* @__PURE__ */ createTextVNode(" \u7EC4\u4EF6\u5E93 ");
|
|
128
|
-
const _hoisted_2$4 = /* @__PURE__ */ createTextVNode(" \u6A21\u677F\u5E93 ");
|
|
129
|
-
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
130
|
-
const _component_VkTabItem = resolveComponent("VkTabItem");
|
|
131
|
-
const _component_VkFloatBlock = resolveComponent("VkFloatBlock");
|
|
132
|
-
const _component_VkTabGroup = resolveComponent("VkTabGroup");
|
|
133
|
-
const _component_FormItemWidget = resolveComponent("FormItemWidget");
|
|
134
|
-
const _component_ElCollapse = resolveComponent("ElCollapse");
|
|
135
|
-
const _component_ElScrollbar = resolveComponent("ElScrollbar");
|
|
136
|
-
const _component_VkCard = resolveComponent("VkCard");
|
|
137
|
-
return openBlock(), createBlock(_component_VkCard, { tag: "div" }, {
|
|
138
|
-
title: withCtx(() => [
|
|
139
|
-
createVNode(_component_VkTabGroup, {
|
|
140
|
-
class: "vkf-widget-tab",
|
|
141
|
-
modelValue: _ctx.widgetTab,
|
|
142
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.widgetTab = $event)
|
|
143
|
-
}, {
|
|
144
|
-
default: withCtx(() => [
|
|
145
|
-
createVNode(_component_VkTabItem, {
|
|
146
|
-
name: _ctx.WidgetTab.components,
|
|
147
|
-
clearable: false
|
|
148
|
-
}, {
|
|
149
|
-
default: withCtx(() => [
|
|
150
|
-
_hoisted_1$5
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
|
-
}, 8, ["name"]),
|
|
154
|
-
createVNode(_component_VkTabItem, {
|
|
155
|
-
name: _ctx.WidgetTab.templates,
|
|
156
|
-
clearable: false
|
|
157
|
-
}, {
|
|
158
|
-
default: withCtx(() => [
|
|
159
|
-
_hoisted_2$4
|
|
160
|
-
]),
|
|
161
|
-
_: 1
|
|
162
|
-
}, 8, ["name"]),
|
|
163
|
-
createVNode(_component_VkFloatBlock, { scale: 0.8 })
|
|
164
|
-
]),
|
|
165
|
-
_: 1
|
|
166
|
-
}, 8, ["modelValue"])
|
|
167
|
-
]),
|
|
168
|
-
default: withCtx(() => [
|
|
169
|
-
createVNode(_component_ElScrollbar, null, {
|
|
170
|
-
default: withCtx(() => [
|
|
171
|
-
withDirectives(createVNode(_component_ElCollapse, {
|
|
172
|
-
modelValue: _ctx.componentLibCollapseExpanded,
|
|
173
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:componentLibCollapseExpanded", $event))
|
|
174
|
-
}, {
|
|
175
|
-
default: withCtx(() => [
|
|
176
|
-
createVNode(_component_FormItemWidget, {
|
|
177
|
-
name: _ctx.ComponentsType.formItems
|
|
178
|
-
}, null, 8, ["name"]),
|
|
179
|
-
renderSlot(_ctx.$slots, "componentLibCollapse")
|
|
180
|
-
]),
|
|
181
|
-
_: 3
|
|
182
|
-
}, 8, ["modelValue"]), [
|
|
183
|
-
[vShow, _ctx.widgetTab === _ctx.WidgetTab.components]
|
|
184
|
-
])
|
|
185
|
-
]),
|
|
186
|
-
_: 3
|
|
187
|
-
})
|
|
188
|
-
]),
|
|
189
|
-
_: 3
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
script$4.render = render$4;
|
|
194
|
-
script$4.__file = "ground/src/ground-widget/src/index.vue";
|
|
195
|
-
|
|
196
|
-
var _export_sfc = (sfc, props) => {
|
|
197
|
-
const target = sfc.__vccOpts || sfc;
|
|
198
|
-
for (const [key, val] of props) {
|
|
199
|
-
target[key] = val;
|
|
200
|
-
}
|
|
201
|
-
return target;
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
const _sfc_main$1 = defineComponent({
|
|
205
|
-
name: "Delete"
|
|
206
|
-
});
|
|
207
|
-
const _hoisted_1$4 = {
|
|
208
|
-
viewBox: "0 0 1024 1024",
|
|
209
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
210
|
-
};
|
|
211
|
-
const _hoisted_2$3 = /* @__PURE__ */ createElementVNode("path", {
|
|
212
|
-
fill: "currentColor",
|
|
213
|
-
d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"
|
|
214
|
-
}, null, -1);
|
|
215
|
-
const _hoisted_3$2 = [
|
|
216
|
-
_hoisted_2$3
|
|
217
|
-
];
|
|
218
|
-
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
219
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$4, _hoisted_3$2);
|
|
220
|
-
}
|
|
221
|
-
var _delete = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
222
|
-
|
|
223
|
-
const _sfc_main = defineComponent({
|
|
224
|
-
name: "Sort"
|
|
225
|
-
});
|
|
226
|
-
const _hoisted_1$3 = {
|
|
227
|
-
viewBox: "0 0 1024 1024",
|
|
228
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
229
|
-
};
|
|
230
|
-
const _hoisted_2$2 = /* @__PURE__ */ createElementVNode("path", {
|
|
231
|
-
fill: "currentColor",
|
|
232
|
-
d: "M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632V96zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"
|
|
233
|
-
}, null, -1);
|
|
234
|
-
const _hoisted_3$1 = [
|
|
235
|
-
_hoisted_2$2
|
|
236
|
-
];
|
|
237
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
238
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$3, _hoisted_3$1);
|
|
239
|
-
}
|
|
240
|
-
var sort = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
241
|
-
|
|
242
|
-
var script$3 = defineComponent({
|
|
243
|
-
props: {
|
|
244
|
-
active: {
|
|
245
|
-
type: Boolean,
|
|
246
|
-
default: false
|
|
247
|
-
},
|
|
248
|
-
source: {
|
|
249
|
-
type: Object,
|
|
250
|
-
default: () => ({})
|
|
251
|
-
},
|
|
252
|
-
attributes: {
|
|
253
|
-
type: Object,
|
|
254
|
-
default: () => ({ k: [] })
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
emits: {
|
|
258
|
-
drop: (e, c, data) => e || c || data,
|
|
259
|
-
del: (e) => e
|
|
260
|
-
},
|
|
261
|
-
components: {
|
|
262
|
-
VkBoxHandler,
|
|
263
|
-
ElIcon,
|
|
264
|
-
Sort: sort,
|
|
265
|
-
Delete: _delete,
|
|
266
|
-
VkfDragWrapper,
|
|
267
|
-
VkfDropWrapper
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
|
|
271
|
-
const _hoisted_1$2 = /* @__PURE__ */ createTextVNode(" \u62D6\u52A8\u5355\u5143 ");
|
|
272
|
-
const _hoisted_2$1 = { class: "vkf-gmew-tools vkf-gmew-rb-x" };
|
|
273
|
-
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
274
|
-
const _component_Sort = resolveComponent("Sort");
|
|
275
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
276
|
-
const _component_VkfDragWrapper = resolveComponent("VkfDragWrapper");
|
|
277
|
-
const _component_VkBoxHandler = resolveComponent("VkBoxHandler");
|
|
278
|
-
const _component_Delete = resolveComponent("Delete");
|
|
279
|
-
const _component_VkfDropWrapper = resolveComponent("VkfDropWrapper");
|
|
280
|
-
return openBlock(), createBlock(_component_VkfDropWrapper, {
|
|
281
|
-
onDrop: _cache[1] || (_cache[1] = (...arg) => _ctx.$emit("drop", ...arg, {
|
|
282
|
-
attributes: _ctx.attributes,
|
|
283
|
-
source: _ctx.source
|
|
284
|
-
})),
|
|
285
|
-
class: "vkf-ground-main-editing-wrapper"
|
|
286
|
-
}, {
|
|
287
|
-
default: withCtx(() => [
|
|
288
|
-
withDirectives(createVNode(_component_VkBoxHandler, null, {
|
|
289
|
-
default: withCtx(() => [
|
|
290
|
-
createVNode(_component_VkfDragWrapper, {
|
|
291
|
-
title: JSON.stringify({ source: _ctx.source, attributes: _ctx.attributes }),
|
|
292
|
-
data: JSON.stringify({ source: _ctx.source, attributes: _ctx.attributes }),
|
|
293
|
-
class: "vkf-gmew-drag-wrapper vkf-gmew-tools"
|
|
294
|
-
}, {
|
|
295
|
-
default: withCtx(() => [
|
|
296
|
-
createVNode(_component_el_icon, null, {
|
|
297
|
-
default: withCtx(() => [
|
|
298
|
-
createVNode(_component_Sort)
|
|
299
|
-
]),
|
|
300
|
-
_: 1
|
|
301
|
-
}),
|
|
302
|
-
_hoisted_1$2
|
|
303
|
-
]),
|
|
304
|
-
_: 1
|
|
305
|
-
}, 8, ["title", "data"])
|
|
306
|
-
]),
|
|
307
|
-
_: 1
|
|
308
|
-
}, 512), [
|
|
309
|
-
[vShow, _ctx.active]
|
|
310
|
-
]),
|
|
311
|
-
withDirectives(createElementVNode("div", _hoisted_2$1, [
|
|
312
|
-
createVNode(_component_el_icon, {
|
|
313
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("del", { k: _ctx.attributes.k }))
|
|
314
|
-
}, {
|
|
315
|
-
default: withCtx(() => [
|
|
316
|
-
createVNode(_component_Delete)
|
|
317
|
-
]),
|
|
318
|
-
_: 1
|
|
319
|
-
})
|
|
320
|
-
], 512), [
|
|
321
|
-
[vShow, _ctx.active]
|
|
322
|
-
]),
|
|
323
|
-
renderSlot(_ctx.$slots, "default")
|
|
324
|
-
]),
|
|
325
|
-
_: 3
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
script$3.render = render$3;
|
|
330
|
-
script$3.__file = "ground/src/ground-main/src/editing-wrapper.vue";
|
|
331
|
-
|
|
332
|
-
/** Detect free variable `global` from Node.js. */
|
|
333
|
-
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
334
|
-
|
|
335
|
-
var freeGlobal$1 = freeGlobal;
|
|
336
|
-
|
|
337
|
-
/** Detect free variable `self`. */
|
|
338
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
339
|
-
|
|
340
|
-
/** Used as a reference to the global object. */
|
|
341
|
-
var root = freeGlobal$1 || freeSelf || Function('return this')();
|
|
342
|
-
|
|
343
|
-
var root$1 = root;
|
|
344
|
-
|
|
345
|
-
/** Built-in value references. */
|
|
346
|
-
var Symbol = root$1.Symbol;
|
|
347
|
-
|
|
348
|
-
var Symbol$1 = Symbol;
|
|
349
|
-
|
|
350
|
-
/** Used for built-in method references. */
|
|
351
|
-
var objectProto$1 = Object.prototype;
|
|
352
|
-
|
|
353
|
-
/** Used to check objects for own properties. */
|
|
354
|
-
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Used to resolve the
|
|
358
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
359
|
-
* of values.
|
|
360
|
-
*/
|
|
361
|
-
var nativeObjectToString$1 = objectProto$1.toString;
|
|
362
|
-
|
|
363
|
-
/** Built-in value references. */
|
|
364
|
-
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
368
|
-
*
|
|
369
|
-
* @private
|
|
370
|
-
* @param {*} value The value to query.
|
|
371
|
-
* @returns {string} Returns the raw `toStringTag`.
|
|
372
|
-
*/
|
|
373
|
-
function getRawTag(value) {
|
|
374
|
-
var isOwn = hasOwnProperty.call(value, symToStringTag$1),
|
|
375
|
-
tag = value[symToStringTag$1];
|
|
376
|
-
|
|
377
|
-
try {
|
|
378
|
-
value[symToStringTag$1] = undefined;
|
|
379
|
-
var unmasked = true;
|
|
380
|
-
} catch (e) {}
|
|
381
|
-
|
|
382
|
-
var result = nativeObjectToString$1.call(value);
|
|
383
|
-
if (unmasked) {
|
|
384
|
-
if (isOwn) {
|
|
385
|
-
value[symToStringTag$1] = tag;
|
|
386
|
-
} else {
|
|
387
|
-
delete value[symToStringTag$1];
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
return result;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
/** Used for built-in method references. */
|
|
394
|
-
var objectProto = Object.prototype;
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* Used to resolve the
|
|
398
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
399
|
-
* of values.
|
|
400
|
-
*/
|
|
401
|
-
var nativeObjectToString = objectProto.toString;
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* Converts `value` to a string using `Object.prototype.toString`.
|
|
405
|
-
*
|
|
406
|
-
* @private
|
|
407
|
-
* @param {*} value The value to convert.
|
|
408
|
-
* @returns {string} Returns the converted string.
|
|
409
|
-
*/
|
|
410
|
-
function objectToString(value) {
|
|
411
|
-
return nativeObjectToString.call(value);
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
/** `Object#toString` result references. */
|
|
415
|
-
var nullTag = '[object Null]',
|
|
416
|
-
undefinedTag = '[object Undefined]';
|
|
417
|
-
|
|
418
|
-
/** Built-in value references. */
|
|
419
|
-
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
423
|
-
*
|
|
424
|
-
* @private
|
|
425
|
-
* @param {*} value The value to query.
|
|
426
|
-
* @returns {string} Returns the `toStringTag`.
|
|
427
|
-
*/
|
|
428
|
-
function baseGetTag(value) {
|
|
429
|
-
if (value == null) {
|
|
430
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
431
|
-
}
|
|
432
|
-
return (symToStringTag && symToStringTag in Object(value))
|
|
433
|
-
? getRawTag(value)
|
|
434
|
-
: objectToString(value);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
439
|
-
* and has a `typeof` result of "object".
|
|
440
|
-
*
|
|
441
|
-
* @static
|
|
442
|
-
* @memberOf _
|
|
443
|
-
* @since 4.0.0
|
|
444
|
-
* @category Lang
|
|
445
|
-
* @param {*} value The value to check.
|
|
446
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
447
|
-
* @example
|
|
448
|
-
*
|
|
449
|
-
* _.isObjectLike({});
|
|
450
|
-
* // => true
|
|
451
|
-
*
|
|
452
|
-
* _.isObjectLike([1, 2, 3]);
|
|
453
|
-
* // => true
|
|
454
|
-
*
|
|
455
|
-
* _.isObjectLike(_.noop);
|
|
456
|
-
* // => false
|
|
457
|
-
*
|
|
458
|
-
* _.isObjectLike(null);
|
|
459
|
-
* // => false
|
|
460
|
-
*/
|
|
461
|
-
function isObjectLike(value) {
|
|
462
|
-
return value != null && typeof value == 'object';
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
/** `Object#toString` result references. */
|
|
466
|
-
var symbolTag = '[object Symbol]';
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
470
|
-
*
|
|
471
|
-
* @static
|
|
472
|
-
* @memberOf _
|
|
473
|
-
* @since 4.0.0
|
|
474
|
-
* @category Lang
|
|
475
|
-
* @param {*} value The value to check.
|
|
476
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
477
|
-
* @example
|
|
478
|
-
*
|
|
479
|
-
* _.isSymbol(Symbol.iterator);
|
|
480
|
-
* // => true
|
|
481
|
-
*
|
|
482
|
-
* _.isSymbol('abc');
|
|
483
|
-
* // => false
|
|
484
|
-
*/
|
|
485
|
-
function isSymbol(value) {
|
|
486
|
-
return typeof value == 'symbol' ||
|
|
487
|
-
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* A specialized version of `_.map` for arrays without support for iteratee
|
|
492
|
-
* shorthands.
|
|
493
|
-
*
|
|
494
|
-
* @private
|
|
495
|
-
* @param {Array} [array] The array to iterate over.
|
|
496
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
497
|
-
* @returns {Array} Returns the new mapped array.
|
|
498
|
-
*/
|
|
499
|
-
function arrayMap(array, iteratee) {
|
|
500
|
-
var index = -1,
|
|
501
|
-
length = array == null ? 0 : array.length,
|
|
502
|
-
result = Array(length);
|
|
503
|
-
|
|
504
|
-
while (++index < length) {
|
|
505
|
-
result[index] = iteratee(array[index], index, array);
|
|
506
|
-
}
|
|
507
|
-
return result;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* Checks if `value` is classified as an `Array` object.
|
|
512
|
-
*
|
|
513
|
-
* @static
|
|
514
|
-
* @memberOf _
|
|
515
|
-
* @since 0.1.0
|
|
516
|
-
* @category Lang
|
|
517
|
-
* @param {*} value The value to check.
|
|
518
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
519
|
-
* @example
|
|
520
|
-
*
|
|
521
|
-
* _.isArray([1, 2, 3]);
|
|
522
|
-
* // => true
|
|
523
|
-
*
|
|
524
|
-
* _.isArray(document.body.children);
|
|
525
|
-
* // => false
|
|
526
|
-
*
|
|
527
|
-
* _.isArray('abc');
|
|
528
|
-
* // => false
|
|
529
|
-
*
|
|
530
|
-
* _.isArray(_.noop);
|
|
531
|
-
* // => false
|
|
532
|
-
*/
|
|
533
|
-
var isArray = Array.isArray;
|
|
534
|
-
|
|
535
|
-
var isArray$1 = isArray;
|
|
536
|
-
|
|
537
|
-
/** Used as references for various `Number` constants. */
|
|
538
|
-
var INFINITY = 1 / 0;
|
|
539
|
-
|
|
540
|
-
/** Used to convert symbols to primitives and strings. */
|
|
541
|
-
var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
542
|
-
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
546
|
-
* values to empty strings.
|
|
547
|
-
*
|
|
548
|
-
* @private
|
|
549
|
-
* @param {*} value The value to process.
|
|
550
|
-
* @returns {string} Returns the string.
|
|
551
|
-
*/
|
|
552
|
-
function baseToString(value) {
|
|
553
|
-
// Exit early for strings to avoid a performance hit in some environments.
|
|
554
|
-
if (typeof value == 'string') {
|
|
555
|
-
return value;
|
|
556
|
-
}
|
|
557
|
-
if (isArray$1(value)) {
|
|
558
|
-
// Recursively convert values (susceptible to call stack limits).
|
|
559
|
-
return arrayMap(value, baseToString) + '';
|
|
560
|
-
}
|
|
561
|
-
if (isSymbol(value)) {
|
|
562
|
-
return symbolToString ? symbolToString.call(value) : '';
|
|
563
|
-
}
|
|
564
|
-
var result = (value + '');
|
|
565
|
-
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
/**
|
|
569
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
570
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
571
|
-
*
|
|
572
|
-
* @static
|
|
573
|
-
* @memberOf _
|
|
574
|
-
* @since 4.0.0
|
|
575
|
-
* @category Lang
|
|
576
|
-
* @param {*} value The value to convert.
|
|
577
|
-
* @returns {string} Returns the converted string.
|
|
578
|
-
* @example
|
|
579
|
-
*
|
|
580
|
-
* _.toString(null);
|
|
581
|
-
* // => ''
|
|
582
|
-
*
|
|
583
|
-
* _.toString(-0);
|
|
584
|
-
* // => '-0'
|
|
585
|
-
*
|
|
586
|
-
* _.toString([1, 2, 3]);
|
|
587
|
-
* // => '1,2,3'
|
|
588
|
-
*/
|
|
589
|
-
function toString(value) {
|
|
590
|
-
return value == null ? '' : baseToString(value);
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
/** Used to generate unique IDs. */
|
|
594
|
-
var idCounter = 0;
|
|
595
|
-
|
|
596
|
-
/**
|
|
597
|
-
* Generates a unique ID. If `prefix` is given, the ID is appended to it.
|
|
598
|
-
*
|
|
599
|
-
* @static
|
|
600
|
-
* @since 0.1.0
|
|
601
|
-
* @memberOf _
|
|
602
|
-
* @category Util
|
|
603
|
-
* @param {string} [prefix=''] The value to prefix the ID with.
|
|
604
|
-
* @returns {string} Returns the unique ID.
|
|
605
|
-
* @example
|
|
606
|
-
*
|
|
607
|
-
* _.uniqueId('contact_');
|
|
608
|
-
* // => 'contact_104'
|
|
609
|
-
*
|
|
610
|
-
* _.uniqueId();
|
|
611
|
-
* // => '105'
|
|
612
|
-
*/
|
|
613
|
-
function uniqueId(prefix) {
|
|
614
|
-
var id = ++idCounter;
|
|
615
|
-
return toString(prefix) + id;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
const createDefaultSlots = (e) => _VkfFormUtils._VkfFormItemRendererUtils.createDefaultSlots(e);
|
|
619
|
-
const addDefaultProp = (source) => {
|
|
620
|
-
if ("prop" in source) {
|
|
621
|
-
source.prop || (source.prop = uniqueId("from_widget_"));
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
|
-
var script$2 = defineComponent({
|
|
625
|
-
components: {
|
|
626
|
-
VkfDropWrapper,
|
|
627
|
-
VkfForm,
|
|
628
|
-
VkfFormItemRendererTemplate,
|
|
629
|
-
VkTabGroup,
|
|
630
|
-
VkTabItem,
|
|
631
|
-
EditingWrapper: script$3
|
|
632
|
-
},
|
|
633
|
-
props: {
|
|
634
|
-
formItems: {
|
|
635
|
-
type: Array,
|
|
636
|
-
default: () => []
|
|
637
|
-
},
|
|
638
|
-
data: Object,
|
|
639
|
-
currentK: {
|
|
640
|
-
type: String,
|
|
641
|
-
default: ""
|
|
642
|
-
}
|
|
643
|
-
},
|
|
644
|
-
emits: {
|
|
645
|
-
"update:currentK": (e) => e,
|
|
646
|
-
"setData": (e) => e,
|
|
647
|
-
"setData:formItems": null,
|
|
648
|
-
"unsetData:formItems": null
|
|
649
|
-
},
|
|
650
|
-
setup(props, { emit }) {
|
|
651
|
-
const groundEndClassName = ref(DragoverClasses.normal);
|
|
652
|
-
const formItemsWithWrapper = computed(() => {
|
|
653
|
-
const data = [];
|
|
654
|
-
props.formItems.forEach((item, index) => {
|
|
655
|
-
const name = item.prop || "";
|
|
656
|
-
data.push({
|
|
657
|
-
templateType: "VkfEditingSelect",
|
|
658
|
-
name,
|
|
659
|
-
index,
|
|
660
|
-
templateSlots: createDefaultSlots(item)
|
|
661
|
-
});
|
|
662
|
-
});
|
|
663
|
-
return data;
|
|
664
|
-
});
|
|
665
|
-
const endLineNode = ref();
|
|
666
|
-
const isUnderEnd = (e) => !!endLineNode.value && e.pageY >= endLineNode.value.getBoundingClientRect().top;
|
|
667
|
-
function dragover(e) {
|
|
668
|
-
if (!isUnderEnd(e))
|
|
669
|
-
return;
|
|
670
|
-
groundEndClassName.value = DragoverClasses["is-dragover-prev"];
|
|
671
|
-
}
|
|
672
|
-
function dragleave() {
|
|
673
|
-
groundEndClassName.value = DragoverClasses.normal;
|
|
674
|
-
}
|
|
675
|
-
function drop(e) {
|
|
676
|
-
e.preventDefault();
|
|
677
|
-
if (!isUnderEnd(e))
|
|
678
|
-
return;
|
|
679
|
-
if (!e.dataTransfer)
|
|
680
|
-
return;
|
|
681
|
-
groundEndClassName.value = DragoverClasses.normal;
|
|
682
|
-
const data = JSON.parse(e.dataTransfer.getData("text"));
|
|
683
|
-
const source = data == null ? void 0 : data.source;
|
|
684
|
-
if (!source)
|
|
685
|
-
return;
|
|
686
|
-
addDefaultProp(source);
|
|
687
|
-
if (source.templateType === "VkfEditingSelect") {
|
|
688
|
-
const currentLength = props.formItems.length;
|
|
689
|
-
const formItemSource = source.templateSlots.default[0];
|
|
690
|
-
if (formItemSource) {
|
|
691
|
-
emit("setData:formItems", {
|
|
692
|
-
k: currentLength,
|
|
693
|
-
v: formItemSource
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
emit("unsetData:formItems", {
|
|
697
|
-
k: source.index
|
|
698
|
-
});
|
|
699
|
-
emit("update:currentK", currentLength - 1 + "");
|
|
700
|
-
} else {
|
|
701
|
-
const currentK = props.formItems.length;
|
|
702
|
-
emit("setData:formItems", {
|
|
703
|
-
k: currentK,
|
|
704
|
-
v: source
|
|
705
|
-
});
|
|
706
|
-
emit("update:currentK", currentK + "");
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
function editDrop(e, overClass, toData) {
|
|
710
|
-
var _a, _b;
|
|
711
|
-
e.stopPropagation();
|
|
712
|
-
e.preventDefault();
|
|
713
|
-
if (!e.dataTransfer)
|
|
714
|
-
return;
|
|
715
|
-
const fromData = JSON.parse(e.dataTransfer.getData("text"));
|
|
716
|
-
const fromSource = fromData == null ? void 0 : fromData.source;
|
|
717
|
-
if (!fromSource)
|
|
718
|
-
return;
|
|
719
|
-
const fromK = (_b = (_a = fromData.attributes) == null ? void 0 : _a.k) != null ? _b : [];
|
|
720
|
-
let toK = toData.attributes.k;
|
|
721
|
-
let tkl = toK.at(-1);
|
|
722
|
-
if (typeof tkl === "number" && overClass === DragoverClasses["is-dragover-next"]) {
|
|
723
|
-
tkl++;
|
|
724
|
-
}
|
|
725
|
-
let itemSource = fromSource;
|
|
726
|
-
if (fromSource.templateType === "VkfEditingSelect") {
|
|
727
|
-
itemSource = fromSource.templateSlots.default[0];
|
|
728
|
-
}
|
|
729
|
-
if (!fromK.length) {
|
|
730
|
-
addDefaultProp(itemSource);
|
|
731
|
-
const k = toK.map((v, index) => index === toK.length - 1 ? tkl : v);
|
|
732
|
-
emit("setData:formItems", {
|
|
733
|
-
k,
|
|
734
|
-
v: itemSource,
|
|
735
|
-
insert: true
|
|
736
|
-
});
|
|
737
|
-
emit("update:currentK", k.join());
|
|
738
|
-
return;
|
|
739
|
-
}
|
|
740
|
-
if (fromK.length === toK.length) {
|
|
741
|
-
const fkl = fromK.at(-1);
|
|
742
|
-
if (typeof fkl === "number" && typeof tkl === "number") {
|
|
743
|
-
if (overClass === DragoverClasses["is-dragover-prev"]) {
|
|
744
|
-
if (fkl + 1 === tkl)
|
|
745
|
-
return;
|
|
746
|
-
}
|
|
747
|
-
if (overClass === DragoverClasses["is-dragover-prev"]) {
|
|
748
|
-
if (tkl === fkl)
|
|
749
|
-
return;
|
|
750
|
-
}
|
|
751
|
-
emit("unsetData:formItems", {
|
|
752
|
-
k: fkl
|
|
753
|
-
});
|
|
754
|
-
if (fkl < tkl) {
|
|
755
|
-
tkl--;
|
|
756
|
-
}
|
|
757
|
-
emit("setData:formItems", {
|
|
758
|
-
k: tkl,
|
|
759
|
-
v: itemSource,
|
|
760
|
-
insert: true
|
|
761
|
-
});
|
|
762
|
-
emit("update:currentK", tkl + "");
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
return {
|
|
767
|
-
groundEndClassName,
|
|
768
|
-
endLineNode,
|
|
769
|
-
dragover,
|
|
770
|
-
dragleave,
|
|
771
|
-
drop,
|
|
772
|
-
setData,
|
|
773
|
-
editDrop,
|
|
774
|
-
formItemsWithWrapper
|
|
775
|
-
};
|
|
776
|
-
}
|
|
777
|
-
});
|
|
778
|
-
|
|
779
|
-
const _hoisted_1$1 = /* @__PURE__ */ createElementVNode("div", { class: "vkf-ground-start" }, null, -1);
|
|
780
|
-
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
781
|
-
const _component_EditingWrapper = resolveComponent("EditingWrapper");
|
|
782
|
-
const _component_VkTabItem = resolveComponent("VkTabItem");
|
|
783
|
-
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
784
|
-
const _component_VkfForm = resolveComponent("VkfForm");
|
|
785
|
-
const _component_VkTabGroup = resolveComponent("VkTabGroup");
|
|
786
|
-
const _component_VkfDropWrapper = resolveComponent("VkfDropWrapper");
|
|
787
|
-
return openBlock(), createBlock(_component_VkfDropWrapper, {
|
|
788
|
-
class: "vkf-ground-main",
|
|
789
|
-
onDrop: _ctx.drop,
|
|
790
|
-
onDragover: _ctx.dragover,
|
|
791
|
-
onDragleave: _ctx.dragleave
|
|
792
|
-
}, {
|
|
793
|
-
default: withCtx(() => [
|
|
794
|
-
_hoisted_1$1,
|
|
795
|
-
createCommentVNode(" {{ formItems. }} "),
|
|
796
|
-
createCommentVNode(" \u5C06formItems\u6E32\u67D3 \u4E3A\u7F16\u8F91\u65F6\u7EC4\u4EF6 "),
|
|
797
|
-
createVNode(_component_VkTabGroup, {
|
|
798
|
-
modelValue: _ctx.currentK,
|
|
799
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:currentK", $event))
|
|
800
|
-
}, {
|
|
801
|
-
default: withCtx(() => [
|
|
802
|
-
createVNode(_component_VkfForm, {
|
|
803
|
-
formItems: _ctx.formItemsWithWrapper,
|
|
804
|
-
data: _ctx.data,
|
|
805
|
-
onSetData: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("setData", $event))
|
|
806
|
-
}, {
|
|
807
|
-
rendererTemplate: withCtx(() => [
|
|
808
|
-
createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfEditingSelect" }, {
|
|
809
|
-
default: withCtx(({ Renderer, raw, k }) => [
|
|
810
|
-
createCommentVNode(" name is prop "),
|
|
811
|
-
createVNode(_component_VkTabItem, {
|
|
812
|
-
name: k.join(),
|
|
813
|
-
title: k.join(),
|
|
814
|
-
clearable: false,
|
|
815
|
-
class: "vkf-gm-form-item-x"
|
|
816
|
-
}, {
|
|
817
|
-
default: withCtx(({ isActive }) => [
|
|
818
|
-
createCommentVNode(" \u62D6\u52A8\u65F6 \u6839\u636E source \u548C attributes\u786E\u5B9A\u4F4D\u7F6E "),
|
|
819
|
-
createCommentVNode(" [?] \u4E3A\u4EC0\u4E48\u5220\u9664\u4E86\u4E00\u4E2A\u6570\u636E\u540E\uFF0C\u5F53\u524D\u7684prop\u53D1\u751F\u4E86\u6539\u53D8\u3002 \u53EF\u80FD\u662F\u56E0\u4E3A\u6709\u4E2A isActive \u662F true \u88AB\u4F20\u8FDB\u53BB\u4E86 \uFF1F "),
|
|
820
|
-
createVNode(_component_EditingWrapper, {
|
|
821
|
-
onDrop: _ctx.editDrop,
|
|
822
|
-
attributes: { k },
|
|
823
|
-
active: isActive,
|
|
824
|
-
source: raw,
|
|
825
|
-
onDel: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("unsetData:formItems", $event))
|
|
826
|
-
}, {
|
|
827
|
-
default: withCtx(() => [
|
|
828
|
-
(openBlock(), createBlock(resolveDynamicComponent(Renderer), {
|
|
829
|
-
source: raw.templateSlots.default
|
|
830
|
-
}, null, 8, ["source"]))
|
|
831
|
-
]),
|
|
832
|
-
_: 2
|
|
833
|
-
}, 1032, ["onDrop", "attributes", "active", "source"])
|
|
834
|
-
]),
|
|
835
|
-
_: 2
|
|
836
|
-
}, 1032, ["name", "title"])
|
|
837
|
-
]),
|
|
838
|
-
_: 1
|
|
839
|
-
}),
|
|
840
|
-
renderSlot(_ctx.$slots, "rendererTemplate")
|
|
841
|
-
]),
|
|
842
|
-
_: 3
|
|
843
|
-
}, 8, ["formItems", "data"])
|
|
844
|
-
]),
|
|
845
|
-
_: 3
|
|
846
|
-
}, 8, ["modelValue"]),
|
|
847
|
-
createElementVNode("div", {
|
|
848
|
-
class: normalizeClass(["vkf-ground-end", _ctx.groundEndClassName]),
|
|
849
|
-
ref: "endLineNode"
|
|
850
|
-
}, null, 2)
|
|
851
|
-
]),
|
|
852
|
-
_: 3
|
|
853
|
-
}, 8, ["onDrop", "onDragover", "onDragleave"]);
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
script$2.render = render$2;
|
|
857
|
-
script$2.__file = "ground/src/ground-main/src/index.vue";
|
|
858
|
-
|
|
859
|
-
var script$1 = defineComponent({
|
|
860
|
-
components: {
|
|
861
|
-
VkfConfigRenderer,
|
|
862
|
-
VkfConfigRendererTemplate,
|
|
863
|
-
VkfInputConfig
|
|
864
|
-
},
|
|
865
|
-
props: {
|
|
866
|
-
data: {
|
|
867
|
-
type: Object,
|
|
868
|
-
default: () => ({})
|
|
869
|
-
},
|
|
870
|
-
propFieldSource: {
|
|
871
|
-
type: Object,
|
|
872
|
-
default: () => ({})
|
|
873
|
-
}
|
|
874
|
-
},
|
|
875
|
-
emits: {
|
|
876
|
-
setData: (e) => e
|
|
877
|
-
},
|
|
878
|
-
setup() {
|
|
879
|
-
return {};
|
|
880
|
-
}
|
|
881
|
-
});
|
|
882
|
-
|
|
883
|
-
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
884
|
-
const _component_VkfInputConfig = resolveComponent("VkfInputConfig");
|
|
885
|
-
const _component_VkfConfigRendererTemplate = resolveComponent("VkfConfigRendererTemplate");
|
|
886
|
-
const _component_VkfConfigRenderer = resolveComponent("VkfConfigRenderer");
|
|
887
|
-
return openBlock(), createBlock(_component_VkfConfigRenderer, { source: _ctx.data }, {
|
|
888
|
-
default: withCtx(() => [
|
|
889
|
-
createCommentVNode(' data-example: { "templateType": "VkfInput", \r\n "prop": "from_widget_2", "label": "inputLabel" } '),
|
|
890
|
-
createVNode(_component_VkfConfigRendererTemplate, { type: "VkfInput" }, {
|
|
891
|
-
default: withCtx(({ data: props }) => [
|
|
892
|
-
createVNode(_component_VkfInputConfig, mergeProps(props, {
|
|
893
|
-
data: _ctx.data,
|
|
894
|
-
onSetData: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("setData", $event)),
|
|
895
|
-
propFieldSource: _ctx.propFieldSource
|
|
896
|
-
}), null, 16, ["data", "propFieldSource"])
|
|
897
|
-
]),
|
|
898
|
-
_: 1
|
|
899
|
-
}),
|
|
900
|
-
renderSlot(_ctx.$slots, "configRendererTemplate")
|
|
901
|
-
]),
|
|
902
|
-
_: 3
|
|
903
|
-
}, 8, ["source"]);
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
script$1.render = render$1;
|
|
907
|
-
script$1.__file = "ground/src/ground-config/src/index.vue";
|
|
908
|
-
|
|
909
|
-
function tryOnScopeDispose(fn) {
|
|
910
|
-
if (getCurrentScope()) {
|
|
911
|
-
onScopeDispose(fn);
|
|
912
|
-
return true;
|
|
913
|
-
}
|
|
914
|
-
return false;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
var _a;
|
|
918
|
-
const isClient = typeof window !== "undefined";
|
|
919
|
-
const isString = (val) => typeof val === "string";
|
|
920
|
-
const noop = () => {
|
|
921
|
-
};
|
|
922
|
-
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
923
|
-
|
|
924
|
-
function useTimeoutFn(cb, interval, options = {}) {
|
|
925
|
-
const {
|
|
926
|
-
immediate = true
|
|
927
|
-
} = options;
|
|
928
|
-
const isPending = ref(false);
|
|
929
|
-
let timer = null;
|
|
930
|
-
function clear() {
|
|
931
|
-
if (timer) {
|
|
932
|
-
clearTimeout(timer);
|
|
933
|
-
timer = null;
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
function stop() {
|
|
937
|
-
isPending.value = false;
|
|
938
|
-
clear();
|
|
939
|
-
}
|
|
940
|
-
function start(...args) {
|
|
941
|
-
clear();
|
|
942
|
-
isPending.value = true;
|
|
943
|
-
timer = setTimeout(() => {
|
|
944
|
-
isPending.value = false;
|
|
945
|
-
timer = null;
|
|
946
|
-
cb(...args);
|
|
947
|
-
}, unref(interval));
|
|
948
|
-
}
|
|
949
|
-
if (immediate) {
|
|
950
|
-
isPending.value = true;
|
|
951
|
-
if (isClient)
|
|
952
|
-
start();
|
|
953
|
-
}
|
|
954
|
-
tryOnScopeDispose(stop);
|
|
955
|
-
return {
|
|
956
|
-
isPending,
|
|
957
|
-
start,
|
|
958
|
-
stop
|
|
959
|
-
};
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
function unrefElement(elRef) {
|
|
963
|
-
var _a;
|
|
964
|
-
const plain = unref(elRef);
|
|
965
|
-
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
const defaultWindow = isClient ? window : void 0;
|
|
969
|
-
isClient ? window.document : void 0;
|
|
970
|
-
const defaultNavigator = isClient ? window.navigator : void 0;
|
|
971
|
-
isClient ? window.location : void 0;
|
|
972
|
-
|
|
973
|
-
function useEventListener(...args) {
|
|
974
|
-
let target;
|
|
975
|
-
let event;
|
|
976
|
-
let listener;
|
|
977
|
-
let options;
|
|
978
|
-
if (isString(args[0])) {
|
|
979
|
-
[event, listener, options] = args;
|
|
980
|
-
target = defaultWindow;
|
|
981
|
-
} else {
|
|
982
|
-
[target, event, listener, options] = args;
|
|
983
|
-
}
|
|
984
|
-
if (!target)
|
|
985
|
-
return noop;
|
|
986
|
-
let cleanup = noop;
|
|
987
|
-
const stopWatch = watch(() => unrefElement(target), (el) => {
|
|
988
|
-
cleanup();
|
|
989
|
-
if (!el)
|
|
990
|
-
return;
|
|
991
|
-
el.addEventListener(event, listener, options);
|
|
992
|
-
cleanup = () => {
|
|
993
|
-
el.removeEventListener(event, listener, options);
|
|
994
|
-
cleanup = noop;
|
|
995
|
-
};
|
|
996
|
-
}, { immediate: true, flush: "post" });
|
|
997
|
-
const stop = () => {
|
|
998
|
-
stopWatch();
|
|
999
|
-
cleanup();
|
|
1000
|
-
};
|
|
1001
|
-
tryOnScopeDispose(stop);
|
|
1002
|
-
return stop;
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
function useClipboard(options = {}) {
|
|
1006
|
-
const {
|
|
1007
|
-
navigator = defaultNavigator,
|
|
1008
|
-
read = false,
|
|
1009
|
-
source,
|
|
1010
|
-
copiedDuring = 1500
|
|
1011
|
-
} = options;
|
|
1012
|
-
const events = ["copy", "cut"];
|
|
1013
|
-
const isSupported = Boolean(navigator && "clipboard" in navigator);
|
|
1014
|
-
const text = ref("");
|
|
1015
|
-
const copied = ref(false);
|
|
1016
|
-
const timeout = useTimeoutFn(() => copied.value = false, copiedDuring);
|
|
1017
|
-
function updateText() {
|
|
1018
|
-
navigator.clipboard.readText().then((value) => {
|
|
1019
|
-
text.value = value;
|
|
1020
|
-
});
|
|
1021
|
-
}
|
|
1022
|
-
if (isSupported && read) {
|
|
1023
|
-
for (const event of events)
|
|
1024
|
-
useEventListener(event, updateText);
|
|
1025
|
-
}
|
|
1026
|
-
async function copy(value = unref(source)) {
|
|
1027
|
-
if (isSupported && value != null) {
|
|
1028
|
-
await navigator.clipboard.writeText(value);
|
|
1029
|
-
text.value = value;
|
|
1030
|
-
copied.value = true;
|
|
1031
|
-
timeout.start();
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
return {
|
|
1035
|
-
isSupported,
|
|
1036
|
-
text,
|
|
1037
|
-
copied,
|
|
1038
|
-
copy
|
|
1039
|
-
};
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
1043
|
-
const globalKey = "__vueuse_ssr_handlers__";
|
|
1044
|
-
_global[globalKey] = _global[globalKey] || {};
|
|
1045
|
-
_global[globalKey];
|
|
1046
|
-
|
|
1047
|
-
var SwipeDirection;
|
|
1048
|
-
(function(SwipeDirection2) {
|
|
1049
|
-
SwipeDirection2["UP"] = "UP";
|
|
1050
|
-
SwipeDirection2["RIGHT"] = "RIGHT";
|
|
1051
|
-
SwipeDirection2["DOWN"] = "DOWN";
|
|
1052
|
-
SwipeDirection2["LEFT"] = "LEFT";
|
|
1053
|
-
SwipeDirection2["NONE"] = "NONE";
|
|
1054
|
-
})(SwipeDirection || (SwipeDirection = {}));
|
|
1055
|
-
|
|
1056
|
-
var script = defineComponent({
|
|
1057
|
-
name: "VkfGround",
|
|
1058
|
-
components: {
|
|
1059
|
-
VkfGroundWidget: script$4,
|
|
1060
|
-
VkfGroundMain: script$2,
|
|
1061
|
-
VkfGroundConfig: script$1,
|
|
1062
|
-
VkCard,
|
|
1063
|
-
ElButton
|
|
1064
|
-
},
|
|
1065
|
-
props: {
|
|
1066
|
-
componentLibCollapseExpanded: {
|
|
1067
|
-
type: Array,
|
|
1068
|
-
default: void 0
|
|
1069
|
-
},
|
|
1070
|
-
source: {
|
|
1071
|
-
type: Array,
|
|
1072
|
-
default: () => []
|
|
1073
|
-
},
|
|
1074
|
-
data: {
|
|
1075
|
-
type: Object,
|
|
1076
|
-
default: () => ({})
|
|
1077
|
-
},
|
|
1078
|
-
modelValue: {
|
|
1079
|
-
type: Array,
|
|
1080
|
-
default: () => []
|
|
1081
|
-
}
|
|
1082
|
-
},
|
|
1083
|
-
emits: {
|
|
1084
|
-
"update:source": null,
|
|
1085
|
-
"setData:source": (e) => e,
|
|
1086
|
-
"unsetData:source": null,
|
|
1087
|
-
"setData": (e) => e,
|
|
1088
|
-
"update:componentLibCollapseExpanded": null,
|
|
1089
|
-
"update:modelValue": (e) => Array.isArray(e)
|
|
1090
|
-
},
|
|
1091
|
-
setup(props, { emit }) {
|
|
1092
|
-
const propToFormItem = computed(() => {
|
|
1093
|
-
return props.source.reduce((a, c) => {
|
|
1094
|
-
if (c.prop) {
|
|
1095
|
-
a[c.prop] = c;
|
|
1096
|
-
}
|
|
1097
|
-
return a;
|
|
1098
|
-
}, {});
|
|
1099
|
-
});
|
|
1100
|
-
const kToSourceItem = computed(() => {
|
|
1101
|
-
const data = {};
|
|
1102
|
-
function intoData(list, k = []) {
|
|
1103
|
-
list.forEach((item, index) => {
|
|
1104
|
-
const currentK = [...k, index];
|
|
1105
|
-
data[currentK.join()] = item;
|
|
1106
|
-
if (item.templateSlots) {
|
|
1107
|
-
if (Array.isArray(item.templateSlots.default)) {
|
|
1108
|
-
intoData(item.templateSlots.default, currentK);
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
});
|
|
1112
|
-
}
|
|
1113
|
-
intoData(props.source);
|
|
1114
|
-
return data;
|
|
1115
|
-
});
|
|
1116
|
-
const _modelValue = ref("");
|
|
1117
|
-
const editK = computed({
|
|
1118
|
-
get() {
|
|
1119
|
-
var _a, _b;
|
|
1120
|
-
return (_b = (_a = props.modelValue) == null ? void 0 : _a.join()) != null ? _b : _modelValue.value;
|
|
1121
|
-
},
|
|
1122
|
-
set(v) {
|
|
1123
|
-
_modelValue.value = v;
|
|
1124
|
-
emit("update:modelValue", v ? v.split(",") : []);
|
|
1125
|
-
}
|
|
1126
|
-
});
|
|
1127
|
-
const editKArr = computed(() => editK.value ? editK.value.split(",") : []);
|
|
1128
|
-
const propValidateUpdate = (ev) => {
|
|
1129
|
-
if (ev in propToFormItem.value) {
|
|
1130
|
-
ElMessage({
|
|
1131
|
-
type: "warning",
|
|
1132
|
-
message: "\u5B58\u5728\u76F8\u540C\u7684prop, \u8BF7\u91CD\u65B0\u4FEE\u6539"
|
|
1133
|
-
});
|
|
1134
|
-
} else if (!ev) {
|
|
1135
|
-
ElMessage({
|
|
1136
|
-
type: "warning",
|
|
1137
|
-
message: "prop\u4E0D\u80FD\u4E3A\u7A7A"
|
|
1138
|
-
});
|
|
1139
|
-
} else {
|
|
1140
|
-
return true;
|
|
1141
|
-
}
|
|
1142
|
-
};
|
|
1143
|
-
const formItemStr = computed(() => JSON.stringify(props.source));
|
|
1144
|
-
const formItemClip = useClipboard({
|
|
1145
|
-
source: formItemStr
|
|
1146
|
-
});
|
|
1147
|
-
const inputJson = () => {
|
|
1148
|
-
ElMessageBox.prompt("\u8F93\u5165Json", "\u63D0\u793A", {
|
|
1149
|
-
confirmButtonText: "\u786E\u8BA4",
|
|
1150
|
-
cancelButtonText: "\u53D6\u6D88"
|
|
1151
|
-
}).then(({ value }) => {
|
|
1152
|
-
let obj = [];
|
|
1153
|
-
try {
|
|
1154
|
-
obj = JSON.parse(value);
|
|
1155
|
-
} catch (err) {
|
|
1156
|
-
ElMessage({
|
|
1157
|
-
type: "error",
|
|
1158
|
-
message: "Json\u89E3\u6790\u9519\u8BEF"
|
|
1159
|
-
});
|
|
1160
|
-
throw err;
|
|
1161
|
-
}
|
|
1162
|
-
return obj;
|
|
1163
|
-
}).then((obj) => {
|
|
1164
|
-
emit("update:source", obj);
|
|
1165
|
-
});
|
|
1166
|
-
};
|
|
1167
|
-
return {
|
|
1168
|
-
propToFormItem,
|
|
1169
|
-
setData,
|
|
1170
|
-
unsetData,
|
|
1171
|
-
propValidateUpdate,
|
|
1172
|
-
kToSourceItem,
|
|
1173
|
-
editK,
|
|
1174
|
-
editKArr,
|
|
1175
|
-
formItemClip,
|
|
1176
|
-
inputJson
|
|
1177
|
-
};
|
|
1178
|
-
}
|
|
1179
|
-
});
|
|
1180
|
-
|
|
1181
|
-
const _hoisted_1 = { class: "vkf-ground" };
|
|
1182
|
-
const _hoisted_2 = { class: "vkf-ground-main-x" };
|
|
1183
|
-
const _hoisted_3 = { key: 0 };
|
|
1184
|
-
const _hoisted_4 = { key: 1 };
|
|
1185
|
-
const _hoisted_5 = /* @__PURE__ */ createTextVNode(" \u5BFC\u5165Json ");
|
|
1186
|
-
const _hoisted_6 = { class: "vkf-ground-config-x" };
|
|
1187
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1188
|
-
const _component_VkfGroundWidget = resolveComponent("VkfGroundWidget");
|
|
1189
|
-
const _component_ElButton = resolveComponent("ElButton");
|
|
1190
|
-
const _component_VkfGroundMain = resolveComponent("VkfGroundMain");
|
|
1191
|
-
const _component_VkCard = resolveComponent("VkCard");
|
|
1192
|
-
const _component_VkfGroundConfig = resolveComponent("VkfGroundConfig");
|
|
1193
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
1194
|
-
createVNode(_component_VkfGroundWidget, {
|
|
1195
|
-
class: "vkf-ground-widget-x",
|
|
1196
|
-
componentLibCollapseExpanded: _ctx.componentLibCollapseExpanded,
|
|
1197
|
-
"onUpdate:componentLibCollapseExpanded": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:componentLibCollapseExpanded", $event))
|
|
1198
|
-
}, {
|
|
1199
|
-
componentLibCollapse: withCtx(() => [
|
|
1200
|
-
renderSlot(_ctx.$slots, "widgetComponentLibCollapse")
|
|
1201
|
-
]),
|
|
1202
|
-
_: 3
|
|
1203
|
-
}, 8, ["componentLibCollapseExpanded"]),
|
|
1204
|
-
createElementVNode("div", _hoisted_2, [
|
|
1205
|
-
createVNode(_component_VkCard, {
|
|
1206
|
-
tag: "div",
|
|
1207
|
-
class: "vkf-ground-main-card"
|
|
1208
|
-
}, {
|
|
1209
|
-
title: withCtx(() => [
|
|
1210
|
-
createVNode(_component_ElButton, {
|
|
1211
|
-
onClick: _cache[1] || (_cache[1] = () => _ctx.formItemClip.copy())
|
|
1212
|
-
}, {
|
|
1213
|
-
default: withCtx(() => [
|
|
1214
|
-
!_ctx.formItemClip.copied.value ? (openBlock(), createElementBlock("span", _hoisted_3, "\u590D\u5236Json")) : (openBlock(), createElementBlock("span", _hoisted_4, "\u5DF2\u590D\u5236!"))
|
|
1215
|
-
]),
|
|
1216
|
-
_: 1
|
|
1217
|
-
}),
|
|
1218
|
-
createVNode(_component_ElButton, { onClick: _ctx.inputJson }, {
|
|
1219
|
-
default: withCtx(() => [
|
|
1220
|
-
_hoisted_5
|
|
1221
|
-
]),
|
|
1222
|
-
_: 1
|
|
1223
|
-
}, 8, ["onClick"])
|
|
1224
|
-
]),
|
|
1225
|
-
default: withCtx(() => [
|
|
1226
|
-
createVNode(_component_VkfGroundMain, {
|
|
1227
|
-
data: _ctx.data,
|
|
1228
|
-
onSetData: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("setData", $event)),
|
|
1229
|
-
currentK: _ctx.editK,
|
|
1230
|
-
"onUpdate:currentK": _cache[3] || (_cache[3] = ($event) => _ctx.editK = $event),
|
|
1231
|
-
formItems: _ctx.source,
|
|
1232
|
-
"onSetData:formItems": _cache[4] || (_cache[4] = ($event) => _ctx.$emit("setData:source", $event)),
|
|
1233
|
-
"onUnsetData:formItems": _cache[5] || (_cache[5] = ($event) => _ctx.$emit("unsetData:source", $event))
|
|
1234
|
-
}, {
|
|
1235
|
-
rendererTemplate: withCtx(() => [
|
|
1236
|
-
renderSlot(_ctx.$slots, "rendererTemplate")
|
|
1237
|
-
]),
|
|
1238
|
-
_: 3
|
|
1239
|
-
}, 8, ["data", "currentK", "formItems"])
|
|
1240
|
-
]),
|
|
1241
|
-
_: 3
|
|
1242
|
-
})
|
|
1243
|
-
]),
|
|
1244
|
-
createElementVNode("div", _hoisted_6, [
|
|
1245
|
-
createCommentVNode(" \u901A\u8FC7config \u4FEE\u6539\u6570\u636E\u6E90 \u5355\u9879\u7684\u5185\u5BB9 "),
|
|
1246
|
-
createCommentVNode(" {{ editK }} {{ kToSourceItem[editK] }} "),
|
|
1247
|
-
createCommentVNode(" {{ kToSourceItem[editK] }} "),
|
|
1248
|
-
createCommentVNode(' :k="editKArr" '),
|
|
1249
|
-
createVNode(_component_VkfGroundConfig, {
|
|
1250
|
-
data: _ctx.kToSourceItem[_ctx.editK],
|
|
1251
|
-
onSetData: _cache[6] || (_cache[6] = ($event) => _ctx.$emit("setData:source", {
|
|
1252
|
-
k: [..._ctx.editKArr, $event.k],
|
|
1253
|
-
v: $event.v
|
|
1254
|
-
})),
|
|
1255
|
-
propFieldSource: {
|
|
1256
|
-
validateUpdate: _ctx.propValidateUpdate
|
|
1257
|
-
}
|
|
1258
|
-
}, {
|
|
1259
|
-
configRendererTemplate: withCtx(() => [
|
|
1260
|
-
renderSlot(_ctx.$slots, "configRendererTemplate", { propValidateUpdate: _ctx.propValidateUpdate })
|
|
1261
|
-
]),
|
|
1262
|
-
_: 3
|
|
1263
|
-
}, 8, ["data", "propFieldSource"])
|
|
1264
|
-
])
|
|
1265
|
-
]);
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
script.render = render;
|
|
1269
|
-
script.__file = "ground/src/index.vue";
|
|
1270
|
-
|
|
1271
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
1272
|
-
__proto__: null
|
|
1273
|
-
});
|
|
1274
|
-
|
|
1275
|
-
script.install = (app) => {
|
|
1276
|
-
app.component(script.name, script);
|
|
1277
|
-
};
|
|
1278
|
-
|
|
1279
|
-
export { script as VkfGround, types as __VkfGround, script as default };
|