@gct-paas/core-web 0.1.5-dev.6 → 0.1.5-dev.8
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/dist/_plugin-vue_export-helper-BBfAJeJ1.js +1 -0
- package/dist/{icon-next-picker-CShmDJI0.js → icon-next-picker-y8hJhkCi.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/dist/{monaco-editor-t8SRxaFC.js → monaco-editor-5qU4ukgX.js} +1 -1
- package/es/components/FullScreen/full-screen.vue.d.ts +30 -0
- package/es/components/FullScreen/full-screen.vue.mjs +5 -0
- package/es/components/FullScreen/full-screen.vue_vue_type_script_setup_true_lang.mjs +44 -0
- package/es/components/I18nSelect/src/i18n-select-btn.vue.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs +5 -5
- package/es/components/I18nSelect/src/{i18n-select-btn.vue_vue_type_style_index_0_scoped_d0fab479_lang.css → i18n-select-btn.vue_vue_type_style_index_0_scoped_b86f4068_lang.css} +16 -15
- package/es/components/I18nSelect/src/i18n-select-container.vue.d.ts +5 -1
- package/es/components/I18nSelect/src/i18n-select-container.vue.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_script_setup_true_name_i18n-select-container_lang.mjs +1 -0
- package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_style_index_0_scoped_53df3982_lang.css +6 -0
- package/es/components/I18nSelect/src/i18n-select-input.vue.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_style_index_0_scoped_406c02b4_lang.css +3 -0
- package/es/components/app-full-screen-container/app-full-screen-container.css +77 -0
- package/es/components/app-full-screen-container/app-full-screen-container.d.ts +26 -0
- package/es/components/app-full-screen-container/app-full-screen-container.mjs +83 -0
- package/es/components/app-popover/app-popover-component.css +100 -0
- package/es/components/app-popover/app-popover-component.d.ts +13 -0
- package/es/components/app-popover/app-popover-component.mjs +160 -0
- package/es/components/copy-module-key/copy-module-key.vue.mjs +2 -2
- package/es/components/copy-module-key/copy-module-key.vue_vue_type_script_setup_true_name_copy-module-key_lang.mjs +1 -0
- package/es/components/copy-module-key/{copy-module-key.vue_vue_type_style_index_0_scoped_531b3cd2_lang.css → copy-module-key.vue_vue_type_style_index_0_scoped_66e22862_lang.css} +4 -4
- package/es/components/field-cascader/index.d.ts +2 -0
- package/es/components/field-cascader/index.mjs +1 -0
- package/es/components/field-cascader/src/FieldCascader.vue.d.ts +87 -0
- package/es/components/field-cascader/src/FieldCascader.vue.mjs +6 -0
- package/es/components/field-cascader/src/FieldCascader.vue_vue_type_script_setup_true_lang.mjs +115 -0
- package/es/components/field-cascader/src/FieldCascader.vue_vue_type_style_index_0_lang.css +69 -0
- package/es/components/field-cascader/src/SearchInput.vue.d.ts +11 -0
- package/es/components/field-cascader/src/SearchInput.vue.mjs +7 -0
- package/es/components/field-cascader/src/SearchInput.vue_vue_type_script_setup_true_lang.mjs +38 -0
- package/es/components/field-cascader/src/SearchInput.vue_vue_type_style_index_0_scoped_512c4b38_lang.css +9 -0
- package/es/components/field-cascader/src/hooks.d.ts +129 -0
- package/es/components/field-cascader/src/hooks.mjs +163 -0
- package/es/components/field-tree-select/field-sort-popover.vue.d.ts +129 -0
- package/es/components/field-tree-select/field-sort-popover.vue.mjs +7 -0
- package/es/components/field-tree-select/field-sort-popover.vue_vue_type_script_setup_true_lang.mjs +206 -0
- package/es/components/field-tree-select/field-sort-popover.vue_vue_type_style_index_0_scoped_c1811778_lang.css +136 -0
- package/es/components/field-tree-select/field-tree-select.vue.d.ts +119 -0
- package/es/components/field-tree-select/field-tree-select.vue.mjs +7 -0
- package/es/components/field-tree-select/field-tree-select.vue_vue_type_script_setup_true_lang.mjs +338 -0
- package/es/components/field-tree-select/field-tree-select.vue_vue_type_style_index_0_scoped_898030d3_lang.css +147 -0
- package/es/components/field-tree-select/index.d.ts +307 -0
- package/es/components/field-tree-select/index.mjs +7 -0
- package/es/components/icon-next-picker/icon-next-picker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs +1 -1
- package/es/components/index.d.ts +5 -1
- package/es/components/index.mjs +8 -1
- package/es/components/overlay-scrollbars/gct-overlay-scrollbars.css +72 -0
- package/es/components/overlay-scrollbars/gct-overlay-scrollbars.d.ts +75 -0
- package/es/components/overlay-scrollbars/gct-overlay-scrollbars.mjs +87 -0
- package/es/components/serial-number/index.d.ts +2 -0
- package/es/components/serial-number/index.mjs +1 -0
- package/es/components/serial-number/serial-number-container.vue.d.ts +23 -0
- package/es/components/serial-number/serial-number-container.vue.mjs +7 -0
- package/es/components/serial-number/serial-number-container.vue_vue_type_script_setup_true_name_serial-number-container_lang.mjs +219 -0
- package/es/components/serial-number/serial-number-container.vue_vue_type_style_index_0_scoped_35a73b4c_lang.css +30 -0
- package/es/components/serial-number/serial-number-item.vue.d.ts +22 -0
- package/es/components/serial-number/serial-number-item.vue.mjs +8 -0
- package/es/components/serial-number/serial-number-item.vue_vue_type_script_setup_true_lang.mjs +452 -0
- package/es/components/serial-number/serial-number-item.vue_vue_type_style_index_0_scoped_7baf8e25_lang.css +67 -0
- package/es/components/serial-number/serial-number-item.vue_vue_type_style_index_1_lang.css +51 -0
- package/es/create-app-vue.mjs +5 -3
- package/es/index.mjs +17 -1
- package/es/modules/color-picker/index.d.ts +2 -2
- package/es/modules/color-picker/index.mjs +1 -0
- package/es/modules/color-picker/src/ColorPicker.vue.mjs +1 -1
- package/es/modules/color-picker/src/color-editor.vue.d.ts +9 -0
- package/es/modules/color-picker/src/color-editor.vue.mjs +7 -0
- package/es/modules/color-picker/src/color-editor.vue_vue_type_script_setup_true_name_color-editor_lang.mjs +31 -0
- package/es/modules/color-picker/src/color-editor.vue_vue_type_style_index_0_scoped_7b102f87_lang.css +5 -0
- package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.d.ts +0 -1
- package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.mjs +1 -20
- package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.d.ts +8 -0
- package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.mjs +14 -0
- package/es/modules/gct-form/controller/gct-form/gct-form.controller.mjs +4 -10
- package/es/modules/gct-form/editor/gct-form-action/index.mjs +1 -1
- package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.css +2 -2
- package/es/modules/gct-form/editor/gct-form-color/gct-form-color.d.ts +1 -4
- package/es/modules/gct-form/editor/gct-form-color/gct-form-color.mjs +9 -10
- package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.css +25 -22
- package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.mjs +1 -1
- package/es/modules/gct-form/editor/gct-form-text/gct-form-text.d.ts +1 -5
- package/es/modules/gct-form/editor/gct-form-text/gct-form-text.mjs +18 -23
- package/es/modules/gct-form/index.d.ts +2 -0
- package/es/modules/gct-form/index.mjs +12 -1
- package/es/modules/gct-form/interface/i-controller/form-item-basic/form-item-basic.controller.d.ts +6 -0
- package/es/modules/gct-form/interface/i-editor/i-select-editor.d.ts +1 -1
- package/es/modules/gct-form/interface/i-form/i-form-edit-item.d.ts +0 -8
- package/es/modules/gct-form/interface/i-form/i-form-item-basic.d.ts +8 -0
- package/es/modules/gct-form/utils/index.d.ts +18 -0
- package/es/modules/gct-form/utils/index.mjs +37 -0
- package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.mjs +2 -1
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.model.mjs +25 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.model.mjs +25 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.d.ts +1 -6
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.mjs +31 -38
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.model.mjs +25 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.model.mjs +21 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.css +13 -6
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.model.mjs +23 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.model.mjs +20 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.model.mjs +16 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.model.mjs +24 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.model.mjs +25 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form.css +1 -3
- package/es/modules/gct-form/widgets/gct-form/gct-form.mjs +1 -1
- package/es/modules/gct-form/widgets/gct-form/index.d.ts +3 -3
- package/es/modules/gct-form/widgets/gct-form/index.mjs +9 -0
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
- package/es/modules/global-modal/src/BasicModal.vue.d.ts +4 -0
- package/es/modules/global-modal/src/BasicModal.vue_vue_type_script_setup_true_name_BasicModal_lang.mjs +1 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +1 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +11 -6
- package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +3 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_style_index_0_lang.css +67 -0
- package/es/modules/personnel-selection/components/index.d.ts +3 -0
- package/es/modules/personnel-selection/components/personnel-select-tree/personnel-select-tree.d.ts +22 -0
- package/es/modules/personnel-selection/components/variable/check-variable/check-variable.d.ts +19 -0
- package/es/modules/personnel-selection/components/variable/index.d.ts +3 -0
- package/es/modules/personnel-selection/components/variable/list-variable/list-variable.d.ts +19 -0
- package/es/modules/personnel-selection/components/variable/tree-select-variable/tree-select-variable.d.ts +19 -0
- package/es/modules/personnel-selection/components/variable-select-pane/variable-select-pane.d.ts +21 -0
- package/es/modules/personnel-selection/constants/index.d.ts +16 -0
- package/es/modules/personnel-selection/controller/index.d.ts +2 -0
- package/es/modules/personnel-selection/controller/tab-item/tab-item.controller.d.ts +18 -0
- package/es/modules/personnel-selection/controller/variable-item/variable-item.controller.d.ts +17 -0
- package/es/modules/personnel-selection/editors/index.d.ts +1 -0
- package/es/modules/personnel-selection/editors/personnel-selection-editor/personnel-selection-editor.d.ts +2 -0
- package/es/modules/personnel-selection/enums/index.d.ts +31 -0
- package/es/modules/personnel-selection/index.d.ts +3 -0
- package/es/modules/personnel-selection/interface/controller/index.d.ts +3 -0
- package/es/modules/personnel-selection/interface/controller/tab-item/i-tab-item.controller.d.ts +86 -0
- package/es/modules/personnel-selection/interface/controller/tab-item/i-variable-tab-item.controller.d.ts +11 -0
- package/es/modules/personnel-selection/interface/controller/variable/i-variable-item.controller.d.ts +53 -0
- package/es/modules/personnel-selection/interface/data/i-data-node.d.ts +42 -0
- package/es/modules/personnel-selection/interface/index.d.ts +6 -0
- package/es/modules/personnel-selection/interface/options/index.d.ts +3 -0
- package/es/modules/personnel-selection/interface/options/personnel-selection-options/personnel-selection-options.d.ts +45 -0
- package/es/modules/personnel-selection/interface/options/select-area-options/select-area-options.d.ts +18 -0
- package/es/modules/personnel-selection/interface/options/select-region-options/select-region-options.d.ts +18 -0
- package/es/modules/personnel-selection/interface/providers/i-tab-item.provider.d.ts +51 -0
- package/es/modules/personnel-selection/interface/providers/i-variable-item.provider.d.ts +51 -0
- package/es/modules/personnel-selection/interface/state/i-tab-item.state.d.ts +27 -0
- package/es/modules/personnel-selection/interface/state/i-variable-item.state.d.ts +18 -0
- package/es/modules/personnel-selection/interface/state/index.d.ts +2 -0
- package/es/modules/personnel-selection/interface/store/i-variable-inst-store.d.ts +37 -0
- package/es/modules/personnel-selection/interface/store/i-variable-plugin-manage-store.d.ts +44 -0
- package/es/modules/personnel-selection/interface/store/i-variable-store.d.ts +29 -0
- package/es/modules/personnel-selection/interface/store/i-view-plugin-manage-store.d.ts +44 -0
- package/es/modules/personnel-selection/interface/store/i-view-store.d.ts +29 -0
- package/es/modules/personnel-selection/interface/store/i-view-tabs-store.d.ts +54 -0
- package/es/modules/personnel-selection/interface/store/index.d.ts +11 -0
- package/es/modules/personnel-selection/plugins/index.d.ts +23 -0
- package/es/modules/personnel-selection/plugins/tab-item/personnel-select-tab-item/personnel-select-tab-item.controller.d.ts +12 -0
- package/es/modules/personnel-selection/plugins/tab-item/variable-tab-item/variable-tab-item.controller.d.ts +14 -0
- package/es/modules/personnel-selection/plugins/variable-item/check-variable-item/check-variable-item.controller.d.ts +12 -0
- package/es/modules/personnel-selection/plugins/variable-item/list-variable-item/list-variable-item.controller.d.ts +12 -0
- package/es/modules/personnel-selection/plugins/variable-item/tree-select-variable-item/tree-select-variable-item.controller.d.ts +12 -0
- package/es/modules/personnel-selection/props/index.d.ts +75 -0
- package/es/modules/personnel-selection/state/index.d.ts +2 -0
- package/es/modules/personnel-selection/state/tab-item.state.d.ts +15 -0
- package/es/modules/personnel-selection/state/variable-item.state.d.ts +4 -0
- package/es/modules/personnel-selection/store/index.d.ts +1 -0
- package/es/modules/personnel-selection/store/variable/variable-inst.d.ts +10 -0
- package/es/modules/personnel-selection/store/variable/variable-plugin-manage.d.ts +10 -0
- package/es/modules/personnel-selection/store/variable/variable-store.d.ts +5 -0
- package/es/modules/personnel-selection/store/view/view-plugin-manage.d.ts +10 -0
- package/es/modules/personnel-selection/store/view/view-store.d.ts +11 -0
- package/es/modules/personnel-selection/store/view/view-tabs.d.ts +10 -0
- package/es/modules/personnel-selection/use/index.d.ts +40 -0
- package/es/modules/personnel-selection/utils/index.d.ts +1 -0
- package/es/modules/personnel-selection/views/index.d.ts +12 -0
- package/es/modules/personnel-selection/views/personnel-selection-view/personnel-selection-view.d.ts +181 -0
- package/es/modules/personnel-selection/widgets/index.d.ts +2 -0
- package/es/modules/personnel-selection/widgets/personnel-select-area/personnel-select-area.d.ts +1 -0
- package/es/modules/personnel-selection/widgets/personnel-select-region/personnel-select-region.d.ts +2 -0
- package/es/modules/picture-cropper/src/CopperFreeModal.vue.d.ts +2 -2
- package/es/modules/picture-cropper/src/CopperFreeModal.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/{CopperFreeModal.vue_vue_type_style_index_0_scoped_488ed4c7_lang.css → CopperFreeModal.vue_vue_type_style_index_0_scoped_9069f48a_lang.css} +10 -10
- package/es/modules/picture-cropper/src/CopperModal.vue.d.ts +2 -2
- package/es/modules/picture-cropper/src/CopperModal.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/{CopperModal.vue_vue_type_style_index_0_scoped_ee086999_lang.css → CopperModal.vue_vue_type_style_index_0_scoped_f1134678_lang.css} +14 -14
- package/es/modules/picture-cropper/src/CropperAvatar.vue.d.ts +2 -2
- package/es/modules/picture-cropper/src/CropperAvatar.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/{CropperAvatar.vue_vue_type_style_index_0_scoped_b1cbaaf1_lang.css → CropperAvatar.vue_vue_type_style_index_0_scoped_ef939ff0_lang.css} +7 -7
- package/es/modules/picture-cropper/src/CropperFree.vue.d.ts +2 -2
- package/es/modules/picture-cropper/src/CropperFree.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/{CropperFree.vue_vue_type_style_index_0_scoped_bab12130_lang.css → CropperFree.vue_vue_type_style_index_0_scoped_7a51c6b9_lang.css} +16 -16
- package/es/utils/overlay-controller/overlay-controller.d.ts +16 -1
- package/es/utils/overlay-controller/overlay-controller.mjs +18 -0
- package/es/utils/with-install.d.ts +1 -0
- package/es/utils/with-install.mjs +1 -1
- package/package.json +13 -9
- package/dist/_plugin-vue_export-helper-DySwtVV7.js +0 -1
- package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_style_index_0_scoped_5f75bfb2_lang.css +0 -6
- package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_style_index_0_scoped_b4baf3ec_lang.css +0 -3
- /package/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.css} +0 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.popover-title[data-v-c1811778] {
|
|
66
|
+
padding: 8px;
|
|
67
|
+
border-bottom: 1px solid #e0e3eb;
|
|
68
|
+
color: #212528;
|
|
69
|
+
font-weight: 500;
|
|
70
|
+
}
|
|
71
|
+
[data-v-c1811778] .gct-no-drop {
|
|
72
|
+
color: red;
|
|
73
|
+
}
|
|
74
|
+
[data-v-c1811778] .gct-no-drop .ant-tree-drop-indicator {
|
|
75
|
+
background-color: #8e8e8e !important;
|
|
76
|
+
}
|
|
77
|
+
[data-v-c1811778] .tree-field {
|
|
78
|
+
padding-top: 8px;
|
|
79
|
+
}
|
|
80
|
+
[data-v-c1811778] .tree-field .ant-tree-title .iconfont {
|
|
81
|
+
font-size: 12px;
|
|
82
|
+
}
|
|
83
|
+
[data-v-c1811778] .tree-field .ant-tree-icon__customize {
|
|
84
|
+
width: 20px;
|
|
85
|
+
text-align: left;
|
|
86
|
+
}
|
|
87
|
+
[data-v-c1811778] .tree-field .ant-tree-list-holder > div {
|
|
88
|
+
margin: 0 6px;
|
|
89
|
+
}
|
|
90
|
+
[data-v-c1811778] .tree-field .ant-tree-treenode {
|
|
91
|
+
display: flex;
|
|
92
|
+
position: relative;
|
|
93
|
+
box-sizing: border-box;
|
|
94
|
+
align-items: center;
|
|
95
|
+
width: 100%;
|
|
96
|
+
padding: 6px 2px;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
transition: background 0.3s;
|
|
99
|
+
border-radius: 4px;
|
|
100
|
+
color: #5e5e5e;
|
|
101
|
+
}
|
|
102
|
+
[data-v-c1811778] .tree-field .ant-tree-treenode:hover {
|
|
103
|
+
background: var(--ant-primary-1);
|
|
104
|
+
}
|
|
105
|
+
[data-v-c1811778] .tree-field .ant-tree-treenode .ant-tree-switcher-noop {
|
|
106
|
+
width: 0;
|
|
107
|
+
}
|
|
108
|
+
[data-v-c1811778] .tree-field .ant-tree-treenode .ant-tree-indent-unit {
|
|
109
|
+
width: 12px;
|
|
110
|
+
}
|
|
111
|
+
[data-v-c1811778] .tree-field .ant-tree-node-content-wrapper {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex: 1;
|
|
114
|
+
flex-shrink: 1;
|
|
115
|
+
flex-wrap: wrap;
|
|
116
|
+
min-width: 0;
|
|
117
|
+
}
|
|
118
|
+
[data-v-c1811778] .tree-field .ant-tree-node-content-wrapper .ant-tree-title {
|
|
119
|
+
flex: 1;
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
}
|
|
122
|
+
[data-v-c1811778] .tree-field .ant-tree-switcher {
|
|
123
|
+
display: flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
width: 16px;
|
|
127
|
+
height: 24px;
|
|
128
|
+
line-height: 24px;
|
|
129
|
+
}
|
|
130
|
+
[data-v-c1811778] .tree-field .ant-tree-switcher .ant-tree-switcher-icon {
|
|
131
|
+
color: #797a7d;
|
|
132
|
+
font-size: 16px;
|
|
133
|
+
}
|
|
134
|
+
[data-v-c1811778] .tree-field .ant-tree-drop-indicator::after {
|
|
135
|
+
display: none !important;
|
|
136
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
/**字段map */
|
|
3
|
+
fieldMap: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
/**多级表头数据 */
|
|
8
|
+
groupOptions: {
|
|
9
|
+
type: {
|
|
10
|
+
(arrayLength: number): IObject[];
|
|
11
|
+
(...items: IObject[]): IObject[];
|
|
12
|
+
new (arrayLength: number): IObject[];
|
|
13
|
+
new (...items: IObject[]): IObject[];
|
|
14
|
+
isArray(arg: any): arg is any[];
|
|
15
|
+
readonly prototype: any[];
|
|
16
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
17
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
18
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
19
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
20
|
+
of<T>(...items: T[]): T[];
|
|
21
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
22
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
23
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
24
|
+
};
|
|
25
|
+
default: () => never[];
|
|
26
|
+
};
|
|
27
|
+
fieldNames: {
|
|
28
|
+
type: ObjectConstructor;
|
|
29
|
+
default: () => {
|
|
30
|
+
children: string;
|
|
31
|
+
title: string;
|
|
32
|
+
key: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
/**最大层级数,默认3层 */
|
|
36
|
+
maxLevel: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
getLabelByFun: {
|
|
41
|
+
type: FunctionConstructor;
|
|
42
|
+
default: () => void;
|
|
43
|
+
};
|
|
44
|
+
getFieldTypeByFun: {
|
|
45
|
+
type: FunctionConstructor;
|
|
46
|
+
default: () => void;
|
|
47
|
+
};
|
|
48
|
+
setLabelByFun: {
|
|
49
|
+
type: FunctionConstructor;
|
|
50
|
+
default: () => void;
|
|
51
|
+
};
|
|
52
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
53
|
+
change: (...args: any[]) => void;
|
|
54
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
55
|
+
/**字段map */
|
|
56
|
+
fieldMap: {
|
|
57
|
+
type: ObjectConstructor;
|
|
58
|
+
default: () => {};
|
|
59
|
+
};
|
|
60
|
+
/**多级表头数据 */
|
|
61
|
+
groupOptions: {
|
|
62
|
+
type: {
|
|
63
|
+
(arrayLength: number): IObject[];
|
|
64
|
+
(...items: IObject[]): IObject[];
|
|
65
|
+
new (arrayLength: number): IObject[];
|
|
66
|
+
new (...items: IObject[]): IObject[];
|
|
67
|
+
isArray(arg: any): arg is any[];
|
|
68
|
+
readonly prototype: any[];
|
|
69
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
70
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
71
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
72
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
73
|
+
of<T>(...items: T[]): T[];
|
|
74
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
75
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
76
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
77
|
+
};
|
|
78
|
+
default: () => never[];
|
|
79
|
+
};
|
|
80
|
+
fieldNames: {
|
|
81
|
+
type: ObjectConstructor;
|
|
82
|
+
default: () => {
|
|
83
|
+
children: string;
|
|
84
|
+
title: string;
|
|
85
|
+
key: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
/**最大层级数,默认3层 */
|
|
89
|
+
maxLevel: {
|
|
90
|
+
type: NumberConstructor;
|
|
91
|
+
default: number;
|
|
92
|
+
};
|
|
93
|
+
getLabelByFun: {
|
|
94
|
+
type: FunctionConstructor;
|
|
95
|
+
default: () => void;
|
|
96
|
+
};
|
|
97
|
+
getFieldTypeByFun: {
|
|
98
|
+
type: FunctionConstructor;
|
|
99
|
+
default: () => void;
|
|
100
|
+
};
|
|
101
|
+
setLabelByFun: {
|
|
102
|
+
type: FunctionConstructor;
|
|
103
|
+
default: () => void;
|
|
104
|
+
};
|
|
105
|
+
}>> & Readonly<{
|
|
106
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
}>, {
|
|
108
|
+
fieldMap: Record<string, any>;
|
|
109
|
+
groupOptions: IObject[];
|
|
110
|
+
fieldNames: Record<string, any>;
|
|
111
|
+
maxLevel: number;
|
|
112
|
+
getLabelByFun: Function;
|
|
113
|
+
getFieldTypeByFun: Function;
|
|
114
|
+
setLabelByFun: Function;
|
|
115
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
116
|
+
treeRef: unknown;
|
|
117
|
+
editorInput: unknown;
|
|
118
|
+
}, any>;
|
|
119
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import field_tree_select_vue_vue_type_script_setup_true_lang_default from "./field-tree-select.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
+
import './field-tree-select.vue_vue_type_style_index_0_scoped_898030d3_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/field-tree-select/field-tree-select.vue
|
|
5
|
+
var field_tree_select_default = /* @__PURE__ */ _plugin_vue_export_helper_default(field_tree_select_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-898030d3"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { field_tree_select_default as default };
|
package/es/components/field-tree-select/field-tree-select.vue_vue_type_script_setup_true_lang.mjs
ADDED
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, openBlock, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
2
|
+
import { cloneDeep } from "lodash-es";
|
|
3
|
+
import { FieldIconMap } from "@gct-paas/core";
|
|
4
|
+
import { SvgIcon } from "@gct-paas/core-components";
|
|
5
|
+
//#region src/components/field-tree-select/field-tree-select.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1 = { class: "w230px m--14px" };
|
|
7
|
+
var _hoisted_2 = { class: "ks-row" };
|
|
8
|
+
var _hoisted_3 = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "ks-col ell"
|
|
11
|
+
};
|
|
12
|
+
var _hoisted_4 = {
|
|
13
|
+
key: 2,
|
|
14
|
+
class: "action"
|
|
15
|
+
};
|
|
16
|
+
var _hoisted_5 = ["onClick"];
|
|
17
|
+
var _hoisted_6 = ["onClick"];
|
|
18
|
+
var _hoisted_7 = { class: "popover-bottom" };
|
|
19
|
+
var field_tree_select_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
20
|
+
__name: "field-tree-select",
|
|
21
|
+
props: {
|
|
22
|
+
fieldMap: {
|
|
23
|
+
type: Object,
|
|
24
|
+
default: () => ({})
|
|
25
|
+
},
|
|
26
|
+
groupOptions: {
|
|
27
|
+
type: Array,
|
|
28
|
+
default: () => []
|
|
29
|
+
},
|
|
30
|
+
fieldNames: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default: () => ({
|
|
33
|
+
children: "children",
|
|
34
|
+
title: "title",
|
|
35
|
+
key: "key"
|
|
36
|
+
})
|
|
37
|
+
},
|
|
38
|
+
maxLevel: {
|
|
39
|
+
type: Number,
|
|
40
|
+
default: 3
|
|
41
|
+
},
|
|
42
|
+
getLabelByFun: {
|
|
43
|
+
type: Function,
|
|
44
|
+
default: () => {
|
|
45
|
+
console.log("getLabelByFun");
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
getFieldTypeByFun: {
|
|
49
|
+
type: Function,
|
|
50
|
+
default: () => {
|
|
51
|
+
console.log("getFieldTypeByFun");
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
setLabelByFun: {
|
|
55
|
+
type: Function,
|
|
56
|
+
default: () => {
|
|
57
|
+
console.log("setLabelByFun");
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
emits: ["change"],
|
|
62
|
+
setup(__props, { emit: __emit }) {
|
|
63
|
+
const props = __props;
|
|
64
|
+
const emit = __emit;
|
|
65
|
+
const { fieldNames, getLabelByFun, setLabelByFun, getFieldTypeByFun } = props;
|
|
66
|
+
/**记录能否拖拽成功开关 标记线的颜色 */
|
|
67
|
+
const selectedDrop = ref(true);
|
|
68
|
+
/**展开节点 */
|
|
69
|
+
const expandedKeys = ref([]);
|
|
70
|
+
/**正在编辑德输入框组件 */
|
|
71
|
+
const editorInput = ref();
|
|
72
|
+
/**正在编辑的节点 */
|
|
73
|
+
const editorNode = ref({});
|
|
74
|
+
const treeRef = ref();
|
|
75
|
+
function getFieldTitle(data) {
|
|
76
|
+
if (data.isGroup) return data[fieldNames.title];
|
|
77
|
+
else return getLabelByFun(props.fieldMap[data[fieldNames.key]]);
|
|
78
|
+
}
|
|
79
|
+
function setFieldTitle(title, data) {
|
|
80
|
+
if (data.isGroup) editorNode.value[fieldNames.title] = title;
|
|
81
|
+
else setLabelByFun(data[fieldNames.key], title);
|
|
82
|
+
emit("change");
|
|
83
|
+
}
|
|
84
|
+
function getFieldTypeByKey(key) {
|
|
85
|
+
return getFieldTypeByFun(props.fieldMap[key]);
|
|
86
|
+
}
|
|
87
|
+
function deleteFieldByid(key) {
|
|
88
|
+
loop(props.groupOptions, key, (value, index, children) => {
|
|
89
|
+
if (value.isGroup && value.children.length) children.push(...value.children);
|
|
90
|
+
children.splice(index, 1);
|
|
91
|
+
});
|
|
92
|
+
emit("change");
|
|
93
|
+
}
|
|
94
|
+
async function editorRow(data) {
|
|
95
|
+
editorNode.value = data;
|
|
96
|
+
await nextTick();
|
|
97
|
+
editorInput.value && editorInput.value.select();
|
|
98
|
+
}
|
|
99
|
+
function finishEditor() {
|
|
100
|
+
editorNode.value = {};
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* 获取指定节点的层级
|
|
104
|
+
*/
|
|
105
|
+
function getNodeLevel(key) {
|
|
106
|
+
let level = 1;
|
|
107
|
+
function findLevel(data, currentLevel) {
|
|
108
|
+
for (const item of data) {
|
|
109
|
+
if (item[fieldNames.key] === key) {
|
|
110
|
+
level = currentLevel;
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
if (item.children && item.children.length > 0) {
|
|
114
|
+
if (findLevel(item.children, currentLevel + 1)) return true;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
findLevel(props.groupOptions, 1);
|
|
120
|
+
return level;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* 计算被拖拽节点及其所有子节点的最大深度
|
|
124
|
+
*/
|
|
125
|
+
function getDragNodeMaxDepth(dragNode) {
|
|
126
|
+
function getMaxDepth(node) {
|
|
127
|
+
if (!node.isGroup) return 0;
|
|
128
|
+
let maxChildDepth = 0;
|
|
129
|
+
for (const child of node.children) maxChildDepth = Math.max(maxChildDepth, getMaxDepth(child));
|
|
130
|
+
return maxChildDepth + 1;
|
|
131
|
+
}
|
|
132
|
+
return getMaxDepth(dragNode);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* 检查是否可以在指定层级添加子分组
|
|
136
|
+
*/
|
|
137
|
+
function canAddChildGroup(parentKey) {
|
|
138
|
+
return getNodeLevel(parentKey) < props.maxLevel;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* 拖拽前验证是否允许放置
|
|
142
|
+
*/
|
|
143
|
+
function allowDrop(info) {
|
|
144
|
+
const { dropNode, dragNode } = info;
|
|
145
|
+
const { dropToGap } = info;
|
|
146
|
+
let targetLevel = 1;
|
|
147
|
+
if (dropNode.isGroup && !dropToGap) targetLevel = getNodeLevel(dropNode.key) + 1;
|
|
148
|
+
else targetLevel = getNodeLevel(dropNode.key);
|
|
149
|
+
const dragNodeMaxDepth = getDragNodeMaxDepth(dragNode);
|
|
150
|
+
selectedDrop.value = targetLevel + dragNodeMaxDepth - 1 <= props.maxLevel;
|
|
151
|
+
return true;
|
|
152
|
+
}
|
|
153
|
+
const onDrop = async (info) => {
|
|
154
|
+
if (!selectedDrop.value) return;
|
|
155
|
+
const { dropToGap, dragNode, node } = info;
|
|
156
|
+
const dropPosition = info.dropPosition;
|
|
157
|
+
const _dNode = await new Promise((resolve) => {
|
|
158
|
+
loop(props.groupOptions, dragNode.key, (_value, index, children) => {
|
|
159
|
+
resolve(cloneDeep(children.splice(index, 1)[0]));
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
loop(props.groupOptions, node.key, (value, index, children) => {
|
|
163
|
+
if (node.isGroup && !dropToGap) value.children.unshift(_dNode);
|
|
164
|
+
else children.splice(dropPosition === -1 ? index : index + 1, 0, _dNode);
|
|
165
|
+
});
|
|
166
|
+
emit("change");
|
|
167
|
+
};
|
|
168
|
+
const loop = (data, key, callback) => {
|
|
169
|
+
const length = data.length;
|
|
170
|
+
for (let i = 0; i < length; i++) {
|
|
171
|
+
const item = data[i];
|
|
172
|
+
if (item[fieldNames.key] === key) {
|
|
173
|
+
callback(item, i, data);
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
if (item.children) loop(item.children, key, callback);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
async function addGroup(level, key) {
|
|
180
|
+
if (key) loop(props.groupOptions, key, async (data, _index, _children) => {
|
|
181
|
+
const group = creatGroup(level);
|
|
182
|
+
data.children.push(group);
|
|
183
|
+
await nextTick();
|
|
184
|
+
!expandedKeys.value.includes(key) && expandedKeys.value.push(key);
|
|
185
|
+
editorRow(group);
|
|
186
|
+
treeRef.value.scrollTo({ key: group.key });
|
|
187
|
+
});
|
|
188
|
+
else {
|
|
189
|
+
const group = creatGroup(level);
|
|
190
|
+
props.groupOptions.push(group);
|
|
191
|
+
editorRow(group);
|
|
192
|
+
await nextTick();
|
|
193
|
+
treeRef.value.scrollTo({ key: group.key });
|
|
194
|
+
}
|
|
195
|
+
emit("change");
|
|
196
|
+
}
|
|
197
|
+
/**创建分组 */
|
|
198
|
+
function creatGroup(level) {
|
|
199
|
+
const indexOptions = [];
|
|
200
|
+
dfsNonRecursive(props.groupOptions, (node) => {
|
|
201
|
+
if (node.isGroup) indexOptions.push(node.index);
|
|
202
|
+
});
|
|
203
|
+
const index = indexOptions.length ? Math.max(...indexOptions) + 1 : 1;
|
|
204
|
+
return {
|
|
205
|
+
title: `分组${index}`,
|
|
206
|
+
groupLevel: level,
|
|
207
|
+
key: (/* @__PURE__ */ new Date()).getTime(),
|
|
208
|
+
isGroup: true,
|
|
209
|
+
children: [],
|
|
210
|
+
index
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
function dfsNonRecursive(root, callback) {
|
|
214
|
+
if (!root) return;
|
|
215
|
+
const childrenKey = "children";
|
|
216
|
+
const stack = [...root];
|
|
217
|
+
while (stack.length > 0) {
|
|
218
|
+
const node = stack.shift();
|
|
219
|
+
if (Array.isArray(node[childrenKey])) for (let i = node[childrenKey].length - 1; i >= 0; i--) stack.unshift(node[childrenKey][i]);
|
|
220
|
+
callback(node);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return (_ctx, _cache) => {
|
|
224
|
+
const _component_a_select = resolveComponent("a-select");
|
|
225
|
+
const _component_a_input = resolveComponent("a-input");
|
|
226
|
+
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
227
|
+
const _component_a_popconfirm = resolveComponent("a-popconfirm");
|
|
228
|
+
const _component_a_tree = resolveComponent("a-tree");
|
|
229
|
+
const _component_plus_outlined = resolveComponent("plus-outlined");
|
|
230
|
+
const _component_a_button = resolveComponent("a-button");
|
|
231
|
+
const _component_a_popover = resolveComponent("a-popover");
|
|
232
|
+
return openBlock(), createBlock(_component_a_popover, {
|
|
233
|
+
trigger: "click",
|
|
234
|
+
placement: "bottom",
|
|
235
|
+
"get-popup-container": (element) => element.parentNode,
|
|
236
|
+
"overlay-style": {
|
|
237
|
+
paddingTop: 0,
|
|
238
|
+
paddingBottom: 0
|
|
239
|
+
}
|
|
240
|
+
}, {
|
|
241
|
+
content: withCtx(() => [createElementVNode("div", _hoisted_1, [__props.groupOptions.length ? (openBlock(), createBlock(_component_a_tree, {
|
|
242
|
+
key: 0,
|
|
243
|
+
ref_key: "treeRef",
|
|
244
|
+
ref: treeRef,
|
|
245
|
+
"expanded-keys": expandedKeys.value,
|
|
246
|
+
"onUpdate:expandedKeys": _cache[0] || (_cache[0] = ($event) => expandedKeys.value = $event),
|
|
247
|
+
"field-names": unref(fieldNames),
|
|
248
|
+
height: 300,
|
|
249
|
+
draggable: "",
|
|
250
|
+
"tree-data": __props.groupOptions,
|
|
251
|
+
"show-icon": "",
|
|
252
|
+
class: normalizeClass(["tree-field", { "gct-no-drop": !selectedDrop.value }]),
|
|
253
|
+
selectable: false,
|
|
254
|
+
"allow-drop": allowDrop,
|
|
255
|
+
virtual: false,
|
|
256
|
+
onDrop
|
|
257
|
+
}, {
|
|
258
|
+
icon: withCtx(({ isGroup, key }) => [isGroup ? (openBlock(), createBlock(unref(SvgIcon), {
|
|
259
|
+
key: 0,
|
|
260
|
+
class: "folder",
|
|
261
|
+
size: "20",
|
|
262
|
+
name: "folder"
|
|
263
|
+
})) : getFieldTypeByKey(key) ? (openBlock(), createElementBlock("span", {
|
|
264
|
+
key: 1,
|
|
265
|
+
class: normalizeClass(["iconfont primary-gct", unref(FieldIconMap)[getFieldTypeByKey(key)]])
|
|
266
|
+
}, null, 2)) : createCommentVNode("", true)]),
|
|
267
|
+
title: withCtx(({ key, isGroup, groupLevel, data }) => [createElementVNode("div", _hoisted_2, [editorNode.value[unref(fieldNames).key] === key ? (openBlock(), createBlock(_component_a_input, {
|
|
268
|
+
key: 0,
|
|
269
|
+
ref_key: "editorInput",
|
|
270
|
+
ref: editorInput,
|
|
271
|
+
value: getFieldTitle(data),
|
|
272
|
+
class: "ks-col h24px",
|
|
273
|
+
"allow-clear": false,
|
|
274
|
+
"onUpdate:value": (v) => setFieldTitle(v, data),
|
|
275
|
+
onBlur: finishEditor
|
|
276
|
+
}, null, 8, ["value", "onUpdate:value"])) : (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(getFieldTitle(data)), 1)), editorNode.value[unref(fieldNames).key] !== key ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
277
|
+
isGroup ? (openBlock(), createBlock(_component_a_popconfirm, {
|
|
278
|
+
key: 0,
|
|
279
|
+
placement: "topLeft",
|
|
280
|
+
title: _ctx.$t("sys.pageDesigner.confirmTodo"),
|
|
281
|
+
onConfirm: () => deleteFieldByid(key)
|
|
282
|
+
}, {
|
|
283
|
+
default: withCtx(() => [createVNode(_component_a_tooltip, { title: "删除" }, {
|
|
284
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [createElementVNode("span", { class: "icon-shanchu iconfont mr6px cursor-pointer primary-gct-hover" }, null, -1)])]),
|
|
285
|
+
_: 1
|
|
286
|
+
})]),
|
|
287
|
+
_: 1
|
|
288
|
+
}, 8, ["title", "onConfirm"])) : createCommentVNode("", true),
|
|
289
|
+
isGroup && canAddChildGroup(key) ? (openBlock(), createBlock(_component_a_tooltip, {
|
|
290
|
+
key: 1,
|
|
291
|
+
title: "添加子分组"
|
|
292
|
+
}, {
|
|
293
|
+
default: withCtx(() => [createElementVNode("span", {
|
|
294
|
+
class: "icon-chuangjian iconfont mr6px cursor-pointer primary-gct-hover",
|
|
295
|
+
onClick: ($event) => addGroup(groupLevel + 1, key)
|
|
296
|
+
}, null, 8, _hoisted_5)]),
|
|
297
|
+
_: 2
|
|
298
|
+
}, 1024)) : createCommentVNode("", true),
|
|
299
|
+
isGroup ? (openBlock(), createBlock(_component_a_tooltip, {
|
|
300
|
+
key: 2,
|
|
301
|
+
title: "重命名"
|
|
302
|
+
}, {
|
|
303
|
+
default: withCtx(() => [createElementVNode("span", {
|
|
304
|
+
class: "icon-a-Single-linetext iconfont mr6px cursor-pointer primary-gct-hover",
|
|
305
|
+
onClick: ($event) => editorRow(data)
|
|
306
|
+
}, null, 8, _hoisted_6)]),
|
|
307
|
+
_: 2
|
|
308
|
+
}, 1024)) : createCommentVNode("", true),
|
|
309
|
+
createVNode(_component_a_tooltip, { title: "拖动排序" }, {
|
|
310
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [createElementVNode("span", { class: "icon-drag iconfont" }, null, -1)])]),
|
|
311
|
+
_: 1
|
|
312
|
+
})
|
|
313
|
+
])) : createCommentVNode("", true)])]),
|
|
314
|
+
_: 1
|
|
315
|
+
}, 8, [
|
|
316
|
+
"expanded-keys",
|
|
317
|
+
"field-names",
|
|
318
|
+
"tree-data",
|
|
319
|
+
"class"
|
|
320
|
+
])) : createCommentVNode("", true), createElementVNode("div", _hoisted_7, [createVNode(_component_a_button, {
|
|
321
|
+
type: "link",
|
|
322
|
+
onClick: _cache[1] || (_cache[1] = ($event) => addGroup(1))
|
|
323
|
+
}, {
|
|
324
|
+
icon: withCtx(() => [createVNode(_component_plus_outlined)]),
|
|
325
|
+
default: withCtx(() => [_cache[4] || (_cache[4] = createTextVNode(" 添加表头分组 ", -1))]),
|
|
326
|
+
_: 1
|
|
327
|
+
})])])]),
|
|
328
|
+
default: withCtx(() => [createVNode(_component_a_select, {
|
|
329
|
+
value: "配置多级表头",
|
|
330
|
+
"dropdown-class-name": "hidden"
|
|
331
|
+
})]),
|
|
332
|
+
_: 1
|
|
333
|
+
}, 8, ["get-popup-container"]);
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
//#endregion
|
|
338
|
+
export { field_tree_select_vue_vue_type_script_setup_true_lang_default as default };
|