@gct-paas/core-web 0.1.5-dev.6 → 0.1.5-dev.7
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 +3 -3
- 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_8e75ca4b_lang.css} +13 -13
- 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/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 +6 -0
- 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/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.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/index.d.ts +3 -3
- package/es/modules/gct-form/widgets/gct-form/index.mjs +9 -0
- 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/serial-number/serial-number-item.vue_vue_type_script_setup_true_lang.mjs
ADDED
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, vShow, withCtx, withDirectives } from "vue";
|
|
2
|
+
import { omit } from "lodash-es";
|
|
3
|
+
import { PatternEnum, ResetConditionEnum, TypeEnum, t } from "@gct-paas/core";
|
|
4
|
+
import { message } from "ant-design-vue";
|
|
5
|
+
//#region src/components/serial-number/serial-number-item.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1 = { class: "serial-item-container flex" };
|
|
7
|
+
var _hoisted_2 = { class: "tit" };
|
|
8
|
+
var _hoisted_3 = { class: "tit" };
|
|
9
|
+
var _hoisted_4 = { class: "tit" };
|
|
10
|
+
var _hoisted_5 = { class: "tit" };
|
|
11
|
+
var _hoisted_6 = { class: "flex flex-col mr-10px serial-num-no-error" };
|
|
12
|
+
var _hoisted_7 = { class: "tit" };
|
|
13
|
+
var _hoisted_8 = { class: "serial-num-no-error flex items-end" };
|
|
14
|
+
var _hoisted_9 = { class: "tit" };
|
|
15
|
+
var _hoisted_10 = { class: "tit" };
|
|
16
|
+
var _hoisted_11 = { class: "tit" };
|
|
17
|
+
var _hoisted_12 = { class: "tit" };
|
|
18
|
+
var _hoisted_13 = { class: "flex flex-col mr-10px serial-num-no-error" };
|
|
19
|
+
var _hoisted_14 = { class: "tit" };
|
|
20
|
+
var serial_number_item_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
21
|
+
__name: "serial-number-item",
|
|
22
|
+
props: {
|
|
23
|
+
fieldName: {},
|
|
24
|
+
isShow: { type: Boolean },
|
|
25
|
+
itemConfig: {},
|
|
26
|
+
modelKey: {},
|
|
27
|
+
isFeild: { type: Boolean },
|
|
28
|
+
required: { type: Boolean },
|
|
29
|
+
serialValiIds: {},
|
|
30
|
+
haveIncrease: { type: Boolean }
|
|
31
|
+
},
|
|
32
|
+
emits: ["del", "update:itemConfig"],
|
|
33
|
+
setup(__props, { emit: __emit }) {
|
|
34
|
+
const letters = ref([{
|
|
35
|
+
value: 0,
|
|
36
|
+
label: "sys.model.lowercase"
|
|
37
|
+
}, {
|
|
38
|
+
value: 1,
|
|
39
|
+
label: "sys.model.uppercase"
|
|
40
|
+
}]);
|
|
41
|
+
const explain = ref([
|
|
42
|
+
"最小长度:序列号的最小长度。",
|
|
43
|
+
"起始序号:序列号会从起始序号开始编码。",
|
|
44
|
+
"填充符:序列号值的长度不够时自动补位。",
|
|
45
|
+
"步长:下一个序列号在上一个序列号上递增或递减。",
|
|
46
|
+
"终止序号:序列号会在终止序号处结束。"
|
|
47
|
+
]);
|
|
48
|
+
const emit = __emit;
|
|
49
|
+
const props = __props;
|
|
50
|
+
const fieldCascaderRef = ref();
|
|
51
|
+
const filterTypeEnum = computed(() => {
|
|
52
|
+
if (props.haveIncrease && configValue.value.type !== TypeEnum.INCREASE) return omit(TypeEnum, "INCREASE");
|
|
53
|
+
return TypeEnum;
|
|
54
|
+
});
|
|
55
|
+
const minLength = computed({
|
|
56
|
+
get() {
|
|
57
|
+
return props.itemConfig.config.minLength;
|
|
58
|
+
},
|
|
59
|
+
set(value) {
|
|
60
|
+
configValue.value.config.minLength = value || 0;
|
|
61
|
+
emit("update:itemConfig", configValue.value);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
const from = computed({
|
|
65
|
+
get() {
|
|
66
|
+
return props.itemConfig.config.from;
|
|
67
|
+
},
|
|
68
|
+
set(value) {
|
|
69
|
+
configValue.value.config.from = value || 0;
|
|
70
|
+
emit("update:itemConfig", configValue.value);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
const to = computed({
|
|
74
|
+
get() {
|
|
75
|
+
return props.itemConfig.config.to;
|
|
76
|
+
},
|
|
77
|
+
set(value) {
|
|
78
|
+
configValue.value.config.to = value === null ? void 0 : value;
|
|
79
|
+
emit("update:itemConfig", configValue.value);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
const padding = computed({
|
|
83
|
+
get() {
|
|
84
|
+
return props.itemConfig.config.padding;
|
|
85
|
+
},
|
|
86
|
+
set(value) {
|
|
87
|
+
configValue.value.config.padding = value;
|
|
88
|
+
emit("update:itemConfig", configValue.value);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
const step = computed({
|
|
92
|
+
get() {
|
|
93
|
+
return props.itemConfig.config.step;
|
|
94
|
+
},
|
|
95
|
+
set(value) {
|
|
96
|
+
if (value === 0) {
|
|
97
|
+
message.error("步长不可为0!");
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
configValue.value.config.step = value || 1;
|
|
101
|
+
emit("update:itemConfig", configValue.value);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
const fixedValue = computed({
|
|
105
|
+
get() {
|
|
106
|
+
return props.itemConfig.config.value;
|
|
107
|
+
},
|
|
108
|
+
set(value) {
|
|
109
|
+
configValue.value.config.value = value;
|
|
110
|
+
emit("update:itemConfig", configValue.value);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
const pattern = computed({
|
|
114
|
+
get() {
|
|
115
|
+
return props.itemConfig.config.pattern;
|
|
116
|
+
},
|
|
117
|
+
set(value) {
|
|
118
|
+
configValue.value.config.pattern = value;
|
|
119
|
+
emit("update:itemConfig", configValue.value);
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
const configValue = computed({
|
|
123
|
+
get() {
|
|
124
|
+
return props.itemConfig;
|
|
125
|
+
},
|
|
126
|
+
set(value) {
|
|
127
|
+
emit("update:itemConfig", value);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
const handleUpdate = async (value) => {
|
|
131
|
+
configValue.value.config.modelKey = value;
|
|
132
|
+
configValue.value.config.descName = fieldCascaderRef.value?.feildCascaderName;
|
|
133
|
+
emit("update:itemConfig", configValue.value);
|
|
134
|
+
};
|
|
135
|
+
const dateSelectStyle = computed(() => {
|
|
136
|
+
const patternType = configValue.value.config.patternType;
|
|
137
|
+
const reset = configValue.value.config.reset;
|
|
138
|
+
let width = 310;
|
|
139
|
+
if (patternType === "CUSTOM" && reset) width = 98;
|
|
140
|
+
else if (patternType !== "CUSTOM" && !reset) width = 310;
|
|
141
|
+
else width = 150;
|
|
142
|
+
return {
|
|
143
|
+
width: `${width}px`,
|
|
144
|
+
marginRight: "8px",
|
|
145
|
+
background: "#fff"
|
|
146
|
+
};
|
|
147
|
+
});
|
|
148
|
+
const handleDelete = () => {
|
|
149
|
+
emit("del");
|
|
150
|
+
};
|
|
151
|
+
const handleTypeChange = (value) => {
|
|
152
|
+
if (value === TypeEnum.LETTER) configValue.value.config.upper = 1;
|
|
153
|
+
if (value === TypeEnum.INCREASE) configValue.value.config = {
|
|
154
|
+
minLength: 4,
|
|
155
|
+
from: 1,
|
|
156
|
+
padding: "0",
|
|
157
|
+
step: 1
|
|
158
|
+
};
|
|
159
|
+
configValue.value.type = value;
|
|
160
|
+
emit("update:itemConfig", configValue.value);
|
|
161
|
+
};
|
|
162
|
+
const changePatternType = (value, option) => {
|
|
163
|
+
if (value === "CUSTOM") configValue.value.config.pattern = "";
|
|
164
|
+
else configValue.value.config.pattern = option.key;
|
|
165
|
+
emit("update:itemConfig", configValue.value);
|
|
166
|
+
};
|
|
167
|
+
const handleValChange = () => {
|
|
168
|
+
emit("update:itemConfig", configValue.value);
|
|
169
|
+
};
|
|
170
|
+
return (_ctx, _cache) => {
|
|
171
|
+
const _component_a_input_number = resolveComponent("a-input-number");
|
|
172
|
+
const _component_a_form_item_rest = resolveComponent("a-form-item-rest");
|
|
173
|
+
const _component_a_input = resolveComponent("a-input");
|
|
174
|
+
const _component_question_circle_outlined = resolveComponent("question-circle-outlined");
|
|
175
|
+
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
176
|
+
const _component_a_select_option = resolveComponent("a-select-option");
|
|
177
|
+
const _component_a_select = resolveComponent("a-select");
|
|
178
|
+
const _component_data_field_cascader = resolveComponent("data-field-cascader");
|
|
179
|
+
const _component_a_checkbox = resolveComponent("a-checkbox");
|
|
180
|
+
const _component_a_button = resolveComponent("a-button");
|
|
181
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(["series-item-wrapper", { "series-disable": !__props.isShow }]) }, [
|
|
182
|
+
_cache[20] || (_cache[20] = createElementVNode("i", { class: "iconfont icon-drag mover" }, null, -1)),
|
|
183
|
+
createElementVNode("div", _hoisted_1, [
|
|
184
|
+
!__props.isFeild && __props.fieldName === unref(TypeEnum).INCREASE ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
185
|
+
createElementVNode("div", { class: normalizeClass(["flex flex-col mr-8px", { "serial-num-no-error": minLength.value != void 0 && minLength.value != null }]) }, [createElementVNode("div", _hoisted_2, toDisplayString(unref(t)("sys.model.minimumLengthLimit")), 1), createVNode(_component_a_form_item_rest, null, {
|
|
186
|
+
default: withCtx(() => [createVNode(_component_a_input_number, {
|
|
187
|
+
value: minLength.value,
|
|
188
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => minLength.value = $event),
|
|
189
|
+
precision: 0
|
|
190
|
+
}, null, 8, ["value"])]),
|
|
191
|
+
_: 1
|
|
192
|
+
})], 2),
|
|
193
|
+
createElementVNode("div", { class: normalizeClass(["flex flex-col mr-8px", { "serial-num-no-error": from.value != void 0 && from.value != null }]) }, [createElementVNode("div", _hoisted_3, toDisplayString(unref(t)("sys.model.startingSequenceNumber")), 1), createVNode(_component_a_form_item_rest, null, {
|
|
194
|
+
default: withCtx(() => [createVNode(_component_a_input_number, {
|
|
195
|
+
value: from.value,
|
|
196
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => from.value = $event),
|
|
197
|
+
precision: 0
|
|
198
|
+
}, null, 8, ["value"])]),
|
|
199
|
+
_: 1
|
|
200
|
+
})], 2),
|
|
201
|
+
createElementVNode("div", { class: normalizeClass(["flex flex-col mr-8px", { "serial-num-no-error": padding.value }]) }, [createElementVNode("div", _hoisted_4, toDisplayString(unref(t)("sys.model.placeholder")), 1), createVNode(_component_a_form_item_rest, null, {
|
|
202
|
+
default: withCtx(() => [createVNode(_component_a_input, {
|
|
203
|
+
value: padding.value,
|
|
204
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => padding.value = $event)
|
|
205
|
+
}, null, 8, ["value"])]),
|
|
206
|
+
_: 1
|
|
207
|
+
})], 2),
|
|
208
|
+
createElementVNode("div", { class: normalizeClass(["flex flex-col mr-8px", { "serial-num-no-error": step.value }]) }, [createElementVNode("div", _hoisted_5, toDisplayString(unref(t)("sys.model.step")), 1), createVNode(_component_a_form_item_rest, null, {
|
|
209
|
+
default: withCtx(() => [createVNode(_component_a_input_number, {
|
|
210
|
+
value: step.value,
|
|
211
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => step.value = $event),
|
|
212
|
+
precision: 0
|
|
213
|
+
}, null, 8, ["value"])]),
|
|
214
|
+
_: 1
|
|
215
|
+
})], 2),
|
|
216
|
+
createElementVNode("div", _hoisted_6, [createElementVNode("div", _hoisted_7, toDisplayString(unref(t)("sys.model.endSerialNumber")), 1), createVNode(_component_a_form_item_rest, null, {
|
|
217
|
+
default: withCtx(() => [createVNode(_component_a_input_number, {
|
|
218
|
+
value: to.value,
|
|
219
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => to.value = $event),
|
|
220
|
+
precision: 0
|
|
221
|
+
}, null, 8, ["value"])]),
|
|
222
|
+
_: 1
|
|
223
|
+
})]),
|
|
224
|
+
createVNode(_component_a_tooltip, { "overlay-class-name": "serial-increase-tooltip" }, {
|
|
225
|
+
title: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(explain.value, (str, index) => {
|
|
226
|
+
return openBlock(), createElementBlock("div", {
|
|
227
|
+
key: index,
|
|
228
|
+
class: "tip-item"
|
|
229
|
+
}, toDisplayString(str), 1);
|
|
230
|
+
}), 128))]),
|
|
231
|
+
default: withCtx(() => [createVNode(_component_question_circle_outlined, { style: {
|
|
232
|
+
"margin-top": "20px",
|
|
233
|
+
"color": "#c3c3c3",
|
|
234
|
+
"line-height": "30px"
|
|
235
|
+
} })]),
|
|
236
|
+
_: 1
|
|
237
|
+
})
|
|
238
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
239
|
+
createElementVNode("div", _hoisted_8, [createVNode(_component_a_form_item_rest, null, {
|
|
240
|
+
default: withCtx(() => [createVNode(_component_a_select, {
|
|
241
|
+
value: configValue.value.type,
|
|
242
|
+
"onUpdate:value": _cache[5] || (_cache[5] = ($event) => configValue.value.type = $event),
|
|
243
|
+
style: {
|
|
244
|
+
"width": "100px",
|
|
245
|
+
"margin-right": "8px"
|
|
246
|
+
},
|
|
247
|
+
onChange: handleTypeChange
|
|
248
|
+
}, {
|
|
249
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(Object.keys(filterTypeEnum.value), (item) => {
|
|
250
|
+
return openBlock(), createBlock(_component_a_select_option, {
|
|
251
|
+
key: item,
|
|
252
|
+
value: unref(TypeEnum)[item]
|
|
253
|
+
}, {
|
|
254
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)(`sys.model.${item}`)), 1)]),
|
|
255
|
+
_: 2
|
|
256
|
+
}, 1032, ["value"]);
|
|
257
|
+
}), 128))]),
|
|
258
|
+
_: 1
|
|
259
|
+
}, 8, ["value"])]),
|
|
260
|
+
_: 1
|
|
261
|
+
})]),
|
|
262
|
+
configValue.value.type === unref(TypeEnum).INCREASE ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
263
|
+
createElementVNode("div", { class: normalizeClass(["flex flex-col mr-8px", { "serial-num-no-error": minLength.value != void 0 && minLength.value != null }]) }, [createElementVNode("div", _hoisted_9, toDisplayString(unref(t)("sys.model.minimumLengthLimit")), 1), createVNode(_component_a_form_item_rest, null, {
|
|
264
|
+
default: withCtx(() => [createVNode(_component_a_input_number, {
|
|
265
|
+
value: minLength.value,
|
|
266
|
+
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => minLength.value = $event),
|
|
267
|
+
precision: 0
|
|
268
|
+
}, null, 8, ["value"])]),
|
|
269
|
+
_: 1
|
|
270
|
+
})], 2),
|
|
271
|
+
createElementVNode("div", { class: normalizeClass(["flex flex-col mr-8px", { "serial-num-no-error": from.value != void 0 && from.value != null }]) }, [createElementVNode("div", _hoisted_10, toDisplayString(unref(t)("sys.model.startingSequenceNumber")), 1), createVNode(_component_a_form_item_rest, null, {
|
|
272
|
+
default: withCtx(() => [createVNode(_component_a_input_number, {
|
|
273
|
+
value: from.value,
|
|
274
|
+
"onUpdate:value": _cache[7] || (_cache[7] = ($event) => from.value = $event),
|
|
275
|
+
precision: 0
|
|
276
|
+
}, null, 8, ["value"])]),
|
|
277
|
+
_: 1
|
|
278
|
+
})], 2),
|
|
279
|
+
createElementVNode("div", { class: normalizeClass(["flex flex-col mr-8px", { "serial-num-no-error": padding.value }]) }, [createElementVNode("div", _hoisted_11, toDisplayString(unref(t)("sys.model.placeholder")), 1), createVNode(_component_a_form_item_rest, null, {
|
|
280
|
+
default: withCtx(() => [createVNode(_component_a_input, {
|
|
281
|
+
value: padding.value,
|
|
282
|
+
"onUpdate:value": _cache[8] || (_cache[8] = ($event) => padding.value = $event)
|
|
283
|
+
}, null, 8, ["value"])]),
|
|
284
|
+
_: 1
|
|
285
|
+
})], 2),
|
|
286
|
+
createElementVNode("div", { class: normalizeClass(["flex flex-col mr-8px", { "serial-num-no-error": step.value }]) }, [createElementVNode("div", _hoisted_12, toDisplayString(unref(t)("sys.model.step")), 1), createVNode(_component_a_form_item_rest, null, {
|
|
287
|
+
default: withCtx(() => [createVNode(_component_a_input_number, {
|
|
288
|
+
value: step.value,
|
|
289
|
+
"onUpdate:value": _cache[9] || (_cache[9] = ($event) => step.value = $event),
|
|
290
|
+
precision: 0
|
|
291
|
+
}, null, 8, ["value"])]),
|
|
292
|
+
_: 1
|
|
293
|
+
})], 2),
|
|
294
|
+
createElementVNode("div", _hoisted_13, [createElementVNode("div", _hoisted_14, toDisplayString(unref(t)("sys.model.endSerialNumber")), 1), createVNode(_component_a_form_item_rest, null, {
|
|
295
|
+
default: withCtx(() => [createVNode(_component_a_input_number, {
|
|
296
|
+
value: to.value,
|
|
297
|
+
"onUpdate:value": _cache[10] || (_cache[10] = ($event) => to.value = $event),
|
|
298
|
+
precision: 0
|
|
299
|
+
}, null, 8, ["value"])]),
|
|
300
|
+
_: 1
|
|
301
|
+
})]),
|
|
302
|
+
createVNode(_component_a_tooltip, { "overlay-class-name": "serial-increase-tooltip" }, {
|
|
303
|
+
title: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(explain.value, (str, index) => {
|
|
304
|
+
return openBlock(), createElementBlock("div", {
|
|
305
|
+
key: index,
|
|
306
|
+
class: "tip-item"
|
|
307
|
+
}, toDisplayString(str), 1);
|
|
308
|
+
}), 128))]),
|
|
309
|
+
default: withCtx(() => [createVNode(_component_question_circle_outlined, { style: {
|
|
310
|
+
"margin-top": "20px",
|
|
311
|
+
"color": "#c3c3c3",
|
|
312
|
+
"line-height": "30px"
|
|
313
|
+
} })]),
|
|
314
|
+
_: 1
|
|
315
|
+
})
|
|
316
|
+
], 64)) : createCommentVNode("", true),
|
|
317
|
+
configValue.value.type === unref(TypeEnum).FIXED ? (openBlock(), createElementBlock("div", {
|
|
318
|
+
key: 1,
|
|
319
|
+
class: normalizeClass({ "serial-num-no-error": fixedValue.value || !__props.serialValiIds?.includes(__props.itemConfig.id) })
|
|
320
|
+
}, [createVNode(_component_a_form_item_rest, null, {
|
|
321
|
+
default: withCtx(() => [createVNode(_component_a_input, {
|
|
322
|
+
value: fixedValue.value,
|
|
323
|
+
"onUpdate:value": _cache[11] || (_cache[11] = ($event) => fixedValue.value = $event),
|
|
324
|
+
style: { "width": "310px" },
|
|
325
|
+
placeholder: unref(t)("sys.pageDesigner.inputplaceholder")
|
|
326
|
+
}, null, 8, ["value", "placeholder"])]),
|
|
327
|
+
_: 1
|
|
328
|
+
})], 2)) : createCommentVNode("", true),
|
|
329
|
+
configValue.value.type === unref(TypeEnum).PLACEHOLDER ? (openBlock(), createBlock(_component_data_field_cascader, {
|
|
330
|
+
key: 2,
|
|
331
|
+
ref_key: "fieldCascaderRef",
|
|
332
|
+
ref: fieldCascaderRef,
|
|
333
|
+
value: configValue.value.config.modelKey,
|
|
334
|
+
"onUpdate:value": [_cache[12] || (_cache[12] = ($event) => configValue.value.config.modelKey = $event), handleUpdate],
|
|
335
|
+
class: normalizeClass({ "serial-num-no-error": configValue.value.config.modelKey || !__props.serialValiIds?.includes(__props.itemConfig.id) }),
|
|
336
|
+
style: {
|
|
337
|
+
"width": "310px",
|
|
338
|
+
"margin-right": "8px"
|
|
339
|
+
},
|
|
340
|
+
"model-key": __props.modelKey,
|
|
341
|
+
"is-feild": __props.isFeild
|
|
342
|
+
}, null, 8, [
|
|
343
|
+
"value",
|
|
344
|
+
"class",
|
|
345
|
+
"model-key",
|
|
346
|
+
"is-feild"
|
|
347
|
+
])) : createCommentVNode("", true),
|
|
348
|
+
configValue.value.type === unref(TypeEnum).DATE ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [createElementVNode("div", { class: normalizeClass({ "serial-num-no-error": configValue.value.config.patternType || !__props.serialValiIds?.includes(__props.itemConfig.id) }) }, [createVNode(_component_a_form_item_rest, null, {
|
|
349
|
+
default: withCtx(() => [createVNode(_component_a_select, {
|
|
350
|
+
value: configValue.value.config.patternType,
|
|
351
|
+
"onUpdate:value": _cache[13] || (_cache[13] = ($event) => configValue.value.config.patternType = $event),
|
|
352
|
+
style: normalizeStyle(dateSelectStyle.value),
|
|
353
|
+
onChange: changePatternType
|
|
354
|
+
}, {
|
|
355
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(PatternEnum), (_item, key) => {
|
|
356
|
+
return openBlock(), createBlock(_component_a_select_option, {
|
|
357
|
+
key,
|
|
358
|
+
value: key
|
|
359
|
+
}, {
|
|
360
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)(unref(PatternEnum)[key])), 1)]),
|
|
361
|
+
_: 2
|
|
362
|
+
}, 1032, ["value"]);
|
|
363
|
+
}), 128))]),
|
|
364
|
+
_: 1
|
|
365
|
+
}, 8, ["value", "style"])]),
|
|
366
|
+
_: 1
|
|
367
|
+
})], 2), createElementVNode("div", { class: normalizeClass({ "serial-num-no-error": pattern.value || !__props.serialValiIds?.includes(__props.itemConfig.id) }) }, [createVNode(_component_a_form_item_rest, null, {
|
|
368
|
+
default: withCtx(() => [withDirectives(createVNode(_component_a_input, {
|
|
369
|
+
value: pattern.value,
|
|
370
|
+
"onUpdate:value": _cache[14] || (_cache[14] = ($event) => pattern.value = $event),
|
|
371
|
+
style: normalizeStyle(dateSelectStyle.value),
|
|
372
|
+
placeholder: "请输入"
|
|
373
|
+
}, null, 8, ["value", "style"]), [[vShow, configValue.value.config.patternType === "CUSTOM"]])]),
|
|
374
|
+
_: 1
|
|
375
|
+
})], 2)], 64)) : createCommentVNode("", true),
|
|
376
|
+
configValue.value.type === unref(TypeEnum).LETTER ? (openBlock(), createElementBlock("div", {
|
|
377
|
+
key: 4,
|
|
378
|
+
class: normalizeClass({ "serial-num-no-error": configValue.value.config.upper || !__props.serialValiIds?.includes(__props.itemConfig.id) })
|
|
379
|
+
}, [createVNode(_component_a_form_item_rest, null, {
|
|
380
|
+
default: withCtx(() => [createVNode(_component_a_select, {
|
|
381
|
+
value: configValue.value.config.upper,
|
|
382
|
+
"onUpdate:value": _cache[15] || (_cache[15] = ($event) => configValue.value.config.upper = $event),
|
|
383
|
+
style: { "width": "310px" },
|
|
384
|
+
onChange: handleValChange
|
|
385
|
+
}, {
|
|
386
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(letters.value, (item, _i) => {
|
|
387
|
+
return openBlock(), createBlock(_component_a_select_option, {
|
|
388
|
+
key: `${item.value}_${_i}`,
|
|
389
|
+
value: item.value
|
|
390
|
+
}, {
|
|
391
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)(item.label)), 1)]),
|
|
392
|
+
_: 2
|
|
393
|
+
}, 1032, ["value"]);
|
|
394
|
+
}), 128))]),
|
|
395
|
+
_: 1
|
|
396
|
+
}, 8, ["value"])]),
|
|
397
|
+
_: 1
|
|
398
|
+
})], 2)) : createCommentVNode("", true)
|
|
399
|
+
], 64)),
|
|
400
|
+
configValue.value.type === unref(TypeEnum).DATE && configValue.value.config.reset ? (openBlock(), createElementBlock("div", {
|
|
401
|
+
key: 2,
|
|
402
|
+
class: normalizeClass({ "serial-num-no-error": configValue.value.config.condition || !__props.serialValiIds?.includes(__props.itemConfig.id) })
|
|
403
|
+
}, [createVNode(_component_a_form_item_rest, null, {
|
|
404
|
+
default: withCtx(() => [createVNode(_component_a_select, {
|
|
405
|
+
value: configValue.value.config.condition,
|
|
406
|
+
"onUpdate:value": _cache[16] || (_cache[16] = ($event) => configValue.value.config.condition = $event),
|
|
407
|
+
style: normalizeStyle(dateSelectStyle.value),
|
|
408
|
+
onChange: handleValChange
|
|
409
|
+
}, {
|
|
410
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(Object.keys(unref(ResetConditionEnum)), (item) => {
|
|
411
|
+
return openBlock(), createBlock(_component_a_select_option, {
|
|
412
|
+
key: item,
|
|
413
|
+
value: unref(ResetConditionEnum)[item]
|
|
414
|
+
}, {
|
|
415
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)(`sys.${item}`)), 1)]),
|
|
416
|
+
_: 2
|
|
417
|
+
}, 1032, ["value"]);
|
|
418
|
+
}), 128))]),
|
|
419
|
+
_: 1
|
|
420
|
+
}, 8, ["value", "style"])]),
|
|
421
|
+
_: 1
|
|
422
|
+
})], 2)) : createCommentVNode("", true),
|
|
423
|
+
[unref(TypeEnum).PLACEHOLDER, unref(TypeEnum).DATE].includes(configValue.value.type) ? (openBlock(), createBlock(_component_a_form_item_rest, { key: 3 }, {
|
|
424
|
+
default: withCtx(() => [createVNode(_component_a_checkbox, {
|
|
425
|
+
checked: configValue.value.config.reset,
|
|
426
|
+
"onUpdate:checked": _cache[17] || (_cache[17] = ($event) => configValue.value.config.reset = $event),
|
|
427
|
+
style: {
|
|
428
|
+
"width": "70px",
|
|
429
|
+
"line-height": "30px"
|
|
430
|
+
},
|
|
431
|
+
onChange: handleValChange
|
|
432
|
+
}, {
|
|
433
|
+
default: withCtx(() => [..._cache[18] || (_cache[18] = [createTextVNode("重置", -1)])]),
|
|
434
|
+
_: 1
|
|
435
|
+
}, 8, ["checked"])]),
|
|
436
|
+
_: 1
|
|
437
|
+
})) : createCommentVNode("", true)
|
|
438
|
+
]),
|
|
439
|
+
__props.isShow && (__props.isFeild || configValue.value.type !== unref(TypeEnum).INCREASE) ? (openBlock(), createElementBlock("div", {
|
|
440
|
+
key: 0,
|
|
441
|
+
class: normalizeClass(["action", { "pt18px pl5px": configValue.value.type === unref(TypeEnum).INCREASE }]),
|
|
442
|
+
onClick: handleDelete
|
|
443
|
+
}, [createVNode(_component_a_button, null, {
|
|
444
|
+
icon: withCtx(() => [..._cache[19] || (_cache[19] = [createElementVNode("span", { class: "gct-iconfont icon-icon_shanchu" }, null, -1)])]),
|
|
445
|
+
_: 1
|
|
446
|
+
})], 2)) : createCommentVNode("", true)
|
|
447
|
+
], 2);
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
});
|
|
451
|
+
//#endregion
|
|
452
|
+
export { serial_number_item_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.series-item-wrapper[data-v-7baf8e25] {
|
|
2
|
+
display: flex;
|
|
3
|
+
position: relative;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
margin-bottom: 8px;
|
|
7
|
+
padding: 6px 8px 6px 6px;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
background: #f2f4f7;
|
|
10
|
+
user-select: none;
|
|
11
|
+
}
|
|
12
|
+
.series-item-wrapper.series-disable[data-v-7baf8e25] {
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
}
|
|
15
|
+
.series-item-wrapper .mover[data-v-7baf8e25] {
|
|
16
|
+
position: absolute;
|
|
17
|
+
bottom: 10px;
|
|
18
|
+
left: 6px;
|
|
19
|
+
color: #96a0b5;
|
|
20
|
+
font-size: 16px;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
.series-item-wrapper .field-name[data-v-7baf8e25] {
|
|
24
|
+
padding-left: 20px;
|
|
25
|
+
color: #333;
|
|
26
|
+
}
|
|
27
|
+
.series-item-wrapper .serial-item-container[data-v-7baf8e25] {
|
|
28
|
+
width: 100%;
|
|
29
|
+
padding-left: 24px;
|
|
30
|
+
}
|
|
31
|
+
.series-item-wrapper .serial-item-container .tit[data-v-7baf8e25] {
|
|
32
|
+
padding-left: 6px;
|
|
33
|
+
color: #c3c3c3;
|
|
34
|
+
font-size: 12px;
|
|
35
|
+
line-height: 18px;
|
|
36
|
+
}
|
|
37
|
+
.series-item-wrapper .serial-item-container .tip[data-v-7baf8e25] {
|
|
38
|
+
color: #c3c3c3;
|
|
39
|
+
}
|
|
40
|
+
.series-item-wrapper .action[data-v-7baf8e25] {
|
|
41
|
+
margin-right: 2px;
|
|
42
|
+
}
|
|
43
|
+
.series-item-wrapper .action[data-v-7baf8e25] .ant-btn {
|
|
44
|
+
border: none;
|
|
45
|
+
background-color: transparent;
|
|
46
|
+
color: #8b8b8b;
|
|
47
|
+
}
|
|
48
|
+
.series-item-wrapper .action[data-v-7baf8e25] .ant-btn:hover {
|
|
49
|
+
background-color: #e8eaee;
|
|
50
|
+
color: #000;
|
|
51
|
+
}
|
|
52
|
+
.series-item-wrapper[data-v-7baf8e25]:hover {
|
|
53
|
+
border-color: var(--ant-primary-color);
|
|
54
|
+
}
|
|
55
|
+
.series-item-wrapper:hover .field-name[data-v-7baf8e25],
|
|
56
|
+
.series-item-wrapper:hover .mover[data-v-7baf8e25] {
|
|
57
|
+
color: var(--ant-primary-color);
|
|
58
|
+
}
|
|
59
|
+
[data-v-7baf8e25] .ant-input-number {
|
|
60
|
+
background: #fff !important;
|
|
61
|
+
}
|
|
62
|
+
[data-v-7baf8e25] .ant-input-affix-wrapper {
|
|
63
|
+
background: #fff !important;
|
|
64
|
+
}
|
|
65
|
+
[data-v-7baf8e25] .ant-select .ant-select-selector {
|
|
66
|
+
background: #fff !important;
|
|
67
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.serial-increase-tooltip {
|
|
2
|
+
max-width: 320px;
|
|
3
|
+
}
|
|
4
|
+
.serial-increase-tooltip .ant-tooltip-arrow .ant-tooltip-arrow-content {
|
|
5
|
+
background: #fff;
|
|
6
|
+
}
|
|
7
|
+
.serial-increase-tooltip .ant-tooltip-inner {
|
|
8
|
+
padding: 12px;
|
|
9
|
+
background: #fff;
|
|
10
|
+
color: inherit;
|
|
11
|
+
}
|
|
12
|
+
.serial-increase-tooltip .tip-item {
|
|
13
|
+
position: relative;
|
|
14
|
+
margin-bottom: 8px;
|
|
15
|
+
padding-left: 12px;
|
|
16
|
+
color: #797a7d;
|
|
17
|
+
font-size: 12px;
|
|
18
|
+
line-height: 18px;
|
|
19
|
+
}
|
|
20
|
+
.serial-increase-tooltip .tip-item::before {
|
|
21
|
+
content: '';
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 50%;
|
|
24
|
+
left: 0;
|
|
25
|
+
width: 4px;
|
|
26
|
+
height: 4px;
|
|
27
|
+
transform: translate(0, -50%);
|
|
28
|
+
border-radius: 2px;
|
|
29
|
+
background: var(--ant-primary-color);
|
|
30
|
+
}
|
|
31
|
+
.serial-increase-tooltip .tip-item:last-child {
|
|
32
|
+
margin-bottom: 0;
|
|
33
|
+
}
|
|
34
|
+
.ant-form-item-has-error .serial-num-no-error .ant-input-number,
|
|
35
|
+
.ant-form-item-has-error .serial-num-no-error .ant-input-affix-wrapper,
|
|
36
|
+
.ant-form-item-has-error .serial-num-no-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector {
|
|
37
|
+
border-color: #e8ebf0 !important;
|
|
38
|
+
}
|
|
39
|
+
.ant-form-item-has-error .serial-num-no-error .ant-input-number-focused,
|
|
40
|
+
.ant-form-item-has-error .serial-num-no-error .ant-input-number:focus,
|
|
41
|
+
.ant-form-item-has-error .serial-num-no-error .ant-input-affix-wrapper-focused,
|
|
42
|
+
.ant-form-item-has-error .serial-num-no-error .ant-input-affix-wrapper:focus,
|
|
43
|
+
.ant-form-item-has-error .serial-num-no-error .ant-select:not(.ant-select-disabled):not(
|
|
44
|
+
.ant-select-customize-input
|
|
45
|
+
).ant-select-focused .ant-select-selector,
|
|
46
|
+
.ant-form-item-has-error .serial-num-no-error .ant-select:not(.ant-select-disabled):not(
|
|
47
|
+
.ant-select-customize-input
|
|
48
|
+
).ant-select-open .ant-select-selector {
|
|
49
|
+
border-color: var(--ant-primary-color) !important;
|
|
50
|
+
box-shadow: none;
|
|
51
|
+
}
|
package/es/create-app-vue.mjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import gct_form_default from "./modules/gct-form/index.mjs";
|
|
2
2
|
import gct_table_default from "./modules/gct-table/index.mjs";
|
|
3
|
+
import color_editor_default from "./modules/color-picker/src/color-editor.vue.mjs";
|
|
3
4
|
import ColorPicker_default from "./modules/color-picker/src/ColorPicker.vue.mjs";
|
|
4
5
|
import "./modules/color-picker/index.mjs";
|
|
5
6
|
import { BasicModal } from "./modules/global-modal/index.mjs";
|
|
6
7
|
import components_default from "./components/index.mjs";
|
|
8
|
+
import { GctOverlayScrollbars } from "./components/overlay-scrollbars/gct-overlay-scrollbars.mjs";
|
|
7
9
|
import { setupDirectives } from "./directives/index.mjs";
|
|
8
|
-
import { coreComponentsCreateAppVue } from "@gct-paas/core-components";
|
|
9
10
|
import Antdv from "ant-design-vue";
|
|
11
|
+
import { coreComponentsCreateAppVue } from "@gct-paas/core-components";
|
|
10
12
|
import * as Icons from "@ant-design/icons-vue";
|
|
11
|
-
import { OverlayScrollbarsComponent } from "overlayscrollbars-vue";
|
|
12
13
|
import "overlayscrollbars/overlayscrollbars.css";
|
|
13
14
|
//#region src/create-app-vue.ts
|
|
14
15
|
/**
|
|
@@ -26,7 +27,8 @@ async function coreWebCreateAppVue(app) {
|
|
|
26
27
|
app.component(key, component);
|
|
27
28
|
});
|
|
28
29
|
app.component(ColorPicker_default.name, ColorPicker_default);
|
|
29
|
-
app.component(
|
|
30
|
+
app.component(color_editor_default.name, color_editor_default);
|
|
31
|
+
app.component("OverlayScrollbarsComponent", GctOverlayScrollbars);
|
|
30
32
|
await coreComponentsCreateAppVue(app);
|
|
31
33
|
app.use(gct_form_default);
|
|
32
34
|
app.use(gct_table_default);
|
package/es/index.mjs
CHANGED
|
@@ -11,6 +11,8 @@ import { FormEditItemState } from "./modules/gct-form/state/form-edit-item/form-
|
|
|
11
11
|
import { FormGroupState } from "./modules/gct-form/state/form-group/form-group.state.mjs";
|
|
12
12
|
import { FormItemState } from "./modules/gct-form/state/form-item/form-item.state.mjs";
|
|
13
13
|
import { FormLineState } from "./modules/gct-form/state/form-line/form-line.state.mjs";
|
|
14
|
+
import { widthEditorInstall } from "./modules/gct-form/utils/width-install/width-install.mjs";
|
|
15
|
+
import { getValue, setValue } from "./modules/gct-form/utils/index.mjs";
|
|
14
16
|
import { GctFormController } from "./modules/gct-form/controller/gct-form/gct-form.controller.mjs";
|
|
15
17
|
import { EditFormController, useEditFormController } from "./modules/gct-form/controller/edit-form/edit-form.controller.mjs";
|
|
16
18
|
import { EditorController } from "./modules/gct-form/controller/editor-item/editor-item.controller.mjs";
|
|
@@ -29,6 +31,15 @@ import { useGctFormValue, useGctFormValueByText } from "./modules/gct-form/hooks
|
|
|
29
31
|
import { gctFormItemEditorProps } from "./modules/gct-form/props/gct-form-item/gct-form-item.props.mjs";
|
|
30
32
|
import { EditorRegister } from "./modules/gct-form/register/editor-register/editor-register.mjs";
|
|
31
33
|
import { FormItemRegister } from "./modules/gct-form/register/form-item-register/form-item-register.mjs";
|
|
34
|
+
import { GctFormCollapsePaneModel } from "./modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.model.mjs";
|
|
35
|
+
import { GctFormCollapseModel } from "./modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.model.mjs";
|
|
36
|
+
import { GctFormGroupModel } from "./modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.model.mjs";
|
|
37
|
+
import { GctFormLineModel } from "./modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.model.mjs";
|
|
38
|
+
import { GctFormTabModel } from "./modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.model.mjs";
|
|
39
|
+
import { GctFormTabPaneModel } from "./modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.model.mjs";
|
|
40
|
+
import { GctFormTitleGroupModel } from "./modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.model.mjs";
|
|
41
|
+
import { GctFormHiddenItemModel } from "./modules/gct-form/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.model.mjs";
|
|
42
|
+
import { GctFormItemModel } from "./modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.model.mjs";
|
|
32
43
|
import { WUJIE_FORMULA_EVENTS } from "./modules/formula-editor/constants/index.mjs";
|
|
33
44
|
import { openFormulaEditor } from "./modules/formula-editor/formula-editor.mjs";
|
|
34
45
|
import "./modules/formula-editor/index.mjs";
|
|
@@ -58,6 +69,7 @@ import "./utils/index.mjs";
|
|
|
58
69
|
import { useEditorConsole, useEditorConsoleInner } from "./modules/code-editor/useEditorConsole.mjs";
|
|
59
70
|
import { Lang, Prop, Theme } from "./modules/code-editor/useMonacoEditor.mjs";
|
|
60
71
|
import { MonacoEditor } from "./modules/code-editor/index.mjs";
|
|
72
|
+
import color_editor_default from "./modules/color-picker/src/color-editor.vue.mjs";
|
|
61
73
|
import ColorPicker_default from "./modules/color-picker/src/ColorPicker.vue.mjs";
|
|
62
74
|
import "./modules/color-picker/index.mjs";
|
|
63
75
|
import { GCT_DND_INSERT_POS } from "./modules/gct-dnd/constants/index.mjs";
|
|
@@ -85,9 +97,11 @@ import copy_module_key_default from "./components/copy-module-key/copy-module-ke
|
|
|
85
97
|
import { ImageUpload } from "./components/image-upload/index.mjs";
|
|
86
98
|
import { FieldUpload } from "./components/field-upload/index.mjs";
|
|
87
99
|
import paas_bpmn_log_default from "./components/paas-bpmn-log/paas-bpmn-log.vue.mjs";
|
|
100
|
+
import full_screen_default from "./components/FullScreen/full-screen.vue.mjs";
|
|
88
101
|
import { CodeEditor } from "./components/code-editor/code-editor.mjs";
|
|
89
102
|
import { ViewContainer } from "./components/layout/view-container/view-container.mjs";
|
|
90
103
|
import { Vue3GridDndItem } from "./components/vue3-grid-dnd-item/vue3-grid-dnd-item.mjs";
|
|
104
|
+
import FieldCascader_default from "./components/field-cascader/src/FieldCascader.vue.mjs";
|
|
91
105
|
import { PickType } from "./components/UserPick/src/constants/index.mjs";
|
|
92
106
|
import { useModalPicker } from "./components/UserPick/index.mjs";
|
|
93
107
|
import paas_bpmn_runtime_default from "./components/BpmnRuntime/paas/paas-bpmn-runtime.vue.mjs";
|
|
@@ -98,6 +112,8 @@ import i18n_select_input_default from "./components/I18nSelect/src/i18n-select-i
|
|
|
98
112
|
import i18n_select_input_form_default from "./components/I18nSelect/src/i18n-select-input-form.vue.mjs";
|
|
99
113
|
import i18n_select_textarea_default from "./components/I18nSelect/src/i18n-select-textarea.vue.mjs";
|
|
100
114
|
import i18n_select_textarea_form_default from "./components/I18nSelect/src/i18n-select-textarea-form.vue.mjs";
|
|
115
|
+
import serial_number_container_default from "./components/serial-number/serial-number-container.vue.mjs";
|
|
116
|
+
import { gctFieldSortPopover, gctFieldTreeSelect } from "./components/field-tree-select/index.mjs";
|
|
101
117
|
import number_range_default from "./components/number-range/number-range.vue.mjs";
|
|
102
118
|
import "./components/index.mjs";
|
|
103
119
|
import { coreWebCreateAppVue } from "./create-app-vue.mjs";
|
|
@@ -112,4 +128,4 @@ function onInit() {
|
|
|
112
128
|
}
|
|
113
129
|
onInit();
|
|
114
130
|
//#endregion
|
|
115
|
-
export { base_button_default as BaseButton, basic_button_default as BasicButton, BasicModal, CodeEditor, ColorPicker_default as ColorPicker, CopperFreeModal_default as CopperFreeModal, CopperModal_default as CopperModal, copy_module_key_default as CopyModuleKey, CropperAvatar_default as CropperAvatar, CropperFree_default as CropperFree, Cropper_default as CropperImage, double_input_default as DoubleInput, EditFormController, EditorController, EditorRegister, EditorRegisterConst, EditorType, FORM_CONTROLLER_INJECT_TAG, FieldUpload, FormCollapseController, FormCollapsePaneController, FormCollapsePaneState, FormCollapseState, FormEditItemController, FormEditItemState, FormGroupController, FormGroupState, FormHiddenItemController, FormItemBasicController, FormItemBasicState, FormItemController, FormItemRegister, FormItemState, FormLineController, FormLineState, FormState, FormTabController, FormTabPaneController, FormTabPaneState, FormTabState, GCT_DND_INSERT_POS, GctDndContainer, GctDndDropLine, GctDndItem, GctFormController, GctTableController, i18n_modal_default as I18Modal, i18n_select_btn_default as I18nSelectBtn, i18n_select_input_default as I18nSelectInput, i18n_select_input_form_default as I18nSelectInputForm, i18n_select_textarea_default as I18nSelectTextarea, i18n_select_textarea_form_default as I18nSelectTextareaForm, picture_preview_default as ImagePreview, ImageUpload, Lang, MessageUtil, MonacoEditor, number_range_default as NumberRange, OverlayController, paas_bpmn_log_default as PaasBpmnLog, paas_bpmn_runtime_default as PaasBpmnRuntime, Prop, TableActionItemController, TableEditItemController, TableEditItemState, TableEditorRegister, TableITemState, TableItemController, TableRowController, TableRowState, TableState, Theme, UseDragByLine, PickType as UserPickType, ViewContainer, Vue3GridDndItem, WUJIE_FORMULA_EVENTS, coreWebCreateAppVue, coreWebSetupApp, createImgPreview, gctFormItemEditorProps, monacoLoader, openFormulaEditor, overlay, useAntTableScrollHeight, useEditFormController, useEditorConsole, useEditorConsoleInner, useForm, useFormItemController, useGctFormValue, useGctFormValueByText, useI18nSelect, useLocale, useModal, useModalContext, useModalDragMove, useModalInner, useModalPicker, useTableController, useTheme, validateFieldDefaultForLength, validateFieldDefaultForValue, validateLengthRange, withInstall };
|
|
131
|
+
export { base_button_default as BaseButton, basic_button_default as BasicButton, BasicModal, CodeEditor, color_editor_default as ColorEditor, ColorPicker_default as ColorPicker, CopperFreeModal_default as CopperFreeModal, CopperModal_default as CopperModal, copy_module_key_default as CopyModuleKey, CropperAvatar_default as CropperAvatar, CropperFree_default as CropperFree, Cropper_default as CropperImage, double_input_default as DoubleInput, EditFormController, EditorController, EditorRegister, EditorRegisterConst, EditorType, FORM_CONTROLLER_INJECT_TAG, FieldCascader_default as FieldCascader, FieldUpload, FormCollapseController, FormCollapsePaneController, FormCollapsePaneState, FormCollapseState, FormEditItemController, FormEditItemState, FormGroupController, FormGroupState, FormHiddenItemController, FormItemBasicController, FormItemBasicState, FormItemController, FormItemRegister, FormItemState, FormLineController, FormLineState, FormState, FormTabController, FormTabPaneController, FormTabPaneState, FormTabState, full_screen_default as FullScreen, GCT_DND_INSERT_POS, GctDndContainer, GctDndDropLine, GctDndItem, GctFormCollapseModel, GctFormCollapsePaneModel, GctFormController, GctFormGroupModel, GctFormHiddenItemModel, GctFormItemModel, GctFormLineModel, GctFormTabModel, GctFormTabPaneModel, GctFormTitleGroupModel, GctTableController, i18n_modal_default as I18Modal, i18n_select_btn_default as I18nSelectBtn, i18n_select_input_default as I18nSelectInput, i18n_select_input_form_default as I18nSelectInputForm, i18n_select_textarea_default as I18nSelectTextarea, i18n_select_textarea_form_default as I18nSelectTextareaForm, picture_preview_default as ImagePreview, ImageUpload, Lang, MessageUtil, MonacoEditor, number_range_default as NumberRange, OverlayController, paas_bpmn_log_default as PaasBpmnLog, paas_bpmn_runtime_default as PaasBpmnRuntime, Prop, serial_number_container_default as SerialNumberContainer, TableActionItemController, TableEditItemController, TableEditItemState, TableEditorRegister, TableITemState, TableItemController, TableRowController, TableRowState, TableState, Theme, UseDragByLine, PickType as UserPickType, ViewContainer, Vue3GridDndItem, WUJIE_FORMULA_EVENTS, coreWebCreateAppVue, coreWebSetupApp, createImgPreview, gctFieldSortPopover, gctFieldTreeSelect, gctFormItemEditorProps, getValue, monacoLoader, openFormulaEditor, overlay, setValue, useAntTableScrollHeight, useEditFormController, useEditorConsole, useEditorConsoleInner, useForm, useFormItemController, useGctFormValue, useGctFormValueByText, useI18nSelect, useLocale, useModal, useModalContext, useModalDragMove, useModalInner, useModalPicker, useTableController, useTheme, validateFieldDefaultForLength, validateFieldDefaultForValue, validateLengthRange, widthEditorInstall, withInstall };
|