cnhis-design-vue 3.1.37-beta.1 → 3.1.37
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/es/components/big-table/index.d.ts +66 -166
- package/es/components/big-table/src/BigTable.vue.d.ts +79 -194
- package/es/components/button-print/index.d.ts +24 -27
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +101 -100
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
- package/es/components/button-print/src/utils/print.js +1 -6
- package/es/components/fabric-chart/index.d.ts +34 -11
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +35 -12
- package/es/components/fabric-chart/src/FabricChart.vue.js +9 -9
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -18
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +129 -42
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.d.ts +25 -0
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +151 -0
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useCenter.js +6 -7
- package/es/components/fabric-chart/src/hooks/useOther.js +3 -2
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +3 -1
- package/es/components/fabric-chart/src/utils/utils.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/utils.js +7 -4
- package/es/components/form-config/index.d.ts +2 -2
- package/es/components/form-config/src/FormConfig.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +1 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +2 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +2 -2
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +19 -18
- package/es/components/form-render/src/types/index.d.ts +2 -2
- package/es/components/iho-table/src/constants/index.d.ts +2 -2
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +0 -3
- package/es/components/scale-view/src/hooks/use-component.d.ts +30 -81
- package/es/components/select-label/index.d.ts +30 -81
- package/es/components/select-label/src/SelectLabel.vue.d.ts +30 -81
- package/es/components/select-person/index.d.ts +113 -41
- package/es/components/select-person/src/SelectPerson.vue.d.ts +76 -45
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -1
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +2 -3
- package/es/shared/utils/tapable/Hook.d.ts +1 -1
- package/es/shared/utils/tapable/Hook.js +1 -1
- package/es/shared/utils/tapable/HookCodeFactory.js +3 -6
- package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -2
- package/package.json +2 -2
- package/es/components/drag-layout/index.d.ts +0 -606
- package/es/components/drag-layout/index.js +0 -11
- package/es/components/drag-layout/src/DragFormLeftItem.vue.d.ts +0 -21
- package/es/components/drag-layout/src/DragFormLeftItem.vue.js +0 -122
- package/es/components/drag-layout/src/DragFormRightItem.vue.d.ts +0 -125
- package/es/components/drag-layout/src/DragFormRightItem.vue.js +0 -267
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +0 -606
- package/es/components/drag-layout/src/DragLayout.vue.js +0 -662
- package/es/components/drag-layout/style/index.css +0 -1
- package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +0 -181
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, createCommentVNode, createVNode, unref, Fragment, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
-
import { NInput, NDatePicker, NSelect, NRadio, NCheckbox } from 'naive-ui';
|
|
3
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
4
|
-
|
|
5
|
-
const _hoisted_1 = { class: "DragFormLeftItem" };
|
|
6
|
-
const _hoisted_2 = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "style-box"
|
|
9
|
-
};
|
|
10
|
-
const _hoisted_3 = { class: "style-box" };
|
|
11
|
-
const _hoisted_4 = { class: "style-box" };
|
|
12
|
-
const _hoisted_5 = { class: "style-box" };
|
|
13
|
-
const _hoisted_6 = { class: "style-box" };
|
|
14
|
-
const _hoisted_7 = { class: "style-box" };
|
|
15
|
-
const _hoisted_8 = {
|
|
16
|
-
key: 6,
|
|
17
|
-
class: "style-box"
|
|
18
|
-
};
|
|
19
|
-
const _hoisted_9 = {
|
|
20
|
-
key: 7,
|
|
21
|
-
class: "style-box"
|
|
22
|
-
};
|
|
23
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
24
|
-
__name: "DragFormLeftItem",
|
|
25
|
-
props: {
|
|
26
|
-
element: null
|
|
27
|
-
},
|
|
28
|
-
setup(__props) {
|
|
29
|
-
return (_ctx, _cache) => {
|
|
30
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
31
|
-
createElementVNode("div", {
|
|
32
|
-
class: normalizeClass(["left-content", [__props.element.extraField ? "blue-border" : "", "item-" + __props.element.html_type]])
|
|
33
|
-
}, [
|
|
34
|
-
createCommentVNode(" \u6587\u672C\u57DF "),
|
|
35
|
-
__props.element.html_type === "TEXTAREA" ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
36
|
-
createVNode(unref(NInput), {
|
|
37
|
-
class: "style-box-input",
|
|
38
|
-
disabled: "",
|
|
39
|
-
placeholder: __props.element.placeholder || __props.element.name,
|
|
40
|
-
type: "textarea",
|
|
41
|
-
rows: 2
|
|
42
|
-
}, null, 8, ["placeholder"])
|
|
43
|
-
])) : __props.element.html_type === "DATE" || __props.element.html_type === "DATE-INPUT" || __props.element.html_type === "DATETIME-INPUT" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
44
|
-
createCommentVNode(" \u65E5\u671F "),
|
|
45
|
-
createElementVNode("div", _hoisted_3, [
|
|
46
|
-
createVNode(unref(NDatePicker), {
|
|
47
|
-
disabled: "",
|
|
48
|
-
placeholder: __props.element.placeholder || __props.element.name
|
|
49
|
-
}, null, 8, ["placeholder"])
|
|
50
|
-
])
|
|
51
|
-
], 2112)) : __props.element.html_type === "SELECT" || __props.element.html_type === "SEARCH" || __props.element.html_type === "SEARCH_MORE" || __props.element.html_type === "PHONE_TYPE" || __props.element.html_type === "IDCARD_TYPE" || __props.element.html_type === "LABEL" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
52
|
-
createCommentVNode(" \u4E0B\u62C9 \u6807\u7B7E "),
|
|
53
|
-
createElementVNode("div", _hoisted_4, [
|
|
54
|
-
createVNode(unref(NSelect), {
|
|
55
|
-
disabled: "",
|
|
56
|
-
options: []
|
|
57
|
-
})
|
|
58
|
-
])
|
|
59
|
-
], 2112)) : __props.element.html_type === "RADIO" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
60
|
-
createCommentVNode(" \u5355\u9009 "),
|
|
61
|
-
createElementVNode("div", _hoisted_5, [
|
|
62
|
-
createVNode(unref(NRadio), {
|
|
63
|
-
disabled: "",
|
|
64
|
-
defaultChecked: ""
|
|
65
|
-
}, {
|
|
66
|
-
default: withCtx(() => [
|
|
67
|
-
createTextVNode("\u7537")
|
|
68
|
-
]),
|
|
69
|
-
_: 1
|
|
70
|
-
}),
|
|
71
|
-
createVNode(unref(NRadio), {
|
|
72
|
-
disabled: "",
|
|
73
|
-
defaultChecked: false
|
|
74
|
-
}, {
|
|
75
|
-
default: withCtx(() => [
|
|
76
|
-
createTextVNode("\u5973")
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
})
|
|
80
|
-
])
|
|
81
|
-
], 2112)) : __props.element.html_type === "CHECKBOX" || __props.element.html_type === "CHECKBOX_BLOCK" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
82
|
-
createCommentVNode(" \u591A\u9009 "),
|
|
83
|
-
createElementVNode("div", _hoisted_6, [
|
|
84
|
-
createVNode(unref(NCheckbox), {
|
|
85
|
-
defaultChecked: "",
|
|
86
|
-
disabled: ""
|
|
87
|
-
}),
|
|
88
|
-
createVNode(unref(NCheckbox), {
|
|
89
|
-
defaultChecked: "",
|
|
90
|
-
disabled: ""
|
|
91
|
-
})
|
|
92
|
-
])
|
|
93
|
-
], 2112)) : __props.element.html_type === "SEARCH_CASCADE" || __props.element.html_type === "LEVEL_SEARCH_CASCADE" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
94
|
-
createCommentVNode(" \u7EA7\u8054 "),
|
|
95
|
-
createElementVNode("div", _hoisted_7, [
|
|
96
|
-
createVNode(unref(NSelect), {
|
|
97
|
-
defaultValue: "\u7701/\u5E02/\u533A",
|
|
98
|
-
disabled: ""
|
|
99
|
-
})
|
|
100
|
-
])
|
|
101
|
-
], 2112)) : __props.element.html_type === "PHONE_TYPE" ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
102
|
-
createVNode(unref(NInput), {
|
|
103
|
-
class: "style-box-input",
|
|
104
|
-
disabled: "",
|
|
105
|
-
placeholder: "+86"
|
|
106
|
-
})
|
|
107
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
108
|
-
createVNode(unref(NInput), {
|
|
109
|
-
class: "style-box-input",
|
|
110
|
-
disabled: "",
|
|
111
|
-
placeholder: __props.element.placeholder || __props.element.name
|
|
112
|
-
}, null, 8, ["placeholder"])
|
|
113
|
-
])),
|
|
114
|
-
createTextVNode(" " + toDisplayString(__props.element.name), 1)
|
|
115
|
-
], 2)
|
|
116
|
-
]);
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
var DragFormLeftItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "DragFormLeftItem.vue"]]);
|
|
121
|
-
|
|
122
|
-
export { DragFormLeftItem as default };
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
fields: {
|
|
3
|
-
type: null;
|
|
4
|
-
required: false;
|
|
5
|
-
};
|
|
6
|
-
element: {
|
|
7
|
-
type: null;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
index: {
|
|
11
|
-
type: NumberConstructor;
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
}, {
|
|
15
|
-
props: {
|
|
16
|
-
fields?: any;
|
|
17
|
-
element: any;
|
|
18
|
-
index: number;
|
|
19
|
-
};
|
|
20
|
-
showFields: any;
|
|
21
|
-
isFocus: import("vue").Ref<boolean>;
|
|
22
|
-
widthOptions: any;
|
|
23
|
-
emit: (event: "handleEdit" | "handleDelete", ...args: any[]) => void;
|
|
24
|
-
lineTypeList: import("vue").ComputedRef<string[]>;
|
|
25
|
-
handlechangIs_edit: (data: any) => void;
|
|
26
|
-
handlechangNull: (data: any) => void;
|
|
27
|
-
handleEdit: (data: any, i: any, type: any) => void;
|
|
28
|
-
handleDelete: (data: any, i?: number) => void;
|
|
29
|
-
isLineType: (t: any) => boolean;
|
|
30
|
-
Draggable: import("vue").DefineComponent<{
|
|
31
|
-
list: {
|
|
32
|
-
type: ArrayConstructor;
|
|
33
|
-
required: boolean;
|
|
34
|
-
default: any;
|
|
35
|
-
};
|
|
36
|
-
modelValue: {
|
|
37
|
-
type: ArrayConstructor;
|
|
38
|
-
required: boolean;
|
|
39
|
-
default: any;
|
|
40
|
-
};
|
|
41
|
-
itemKey: {
|
|
42
|
-
type: (StringConstructor | FunctionConstructor)[];
|
|
43
|
-
required: boolean;
|
|
44
|
-
};
|
|
45
|
-
clone: {
|
|
46
|
-
type: FunctionConstructor;
|
|
47
|
-
default: (original: any) => any;
|
|
48
|
-
};
|
|
49
|
-
tag: {
|
|
50
|
-
type: StringConstructor;
|
|
51
|
-
default: string;
|
|
52
|
-
};
|
|
53
|
-
move: {
|
|
54
|
-
type: FunctionConstructor;
|
|
55
|
-
default: any;
|
|
56
|
-
};
|
|
57
|
-
componentData: {
|
|
58
|
-
type: ObjectConstructor;
|
|
59
|
-
required: boolean;
|
|
60
|
-
default: any;
|
|
61
|
-
};
|
|
62
|
-
}, unknown, {
|
|
63
|
-
error: boolean;
|
|
64
|
-
}, {
|
|
65
|
-
realList(): any;
|
|
66
|
-
getKey(): any;
|
|
67
|
-
}, {
|
|
68
|
-
getUnderlyingVm(domElement: any): any;
|
|
69
|
-
getUnderlyingPotencialDraggableComponent(htmElement: any): any;
|
|
70
|
-
emitChanges(evt: any): void;
|
|
71
|
-
alterList(onList: any): void;
|
|
72
|
-
spliceList(): void;
|
|
73
|
-
updatePosition(oldIndex: any, newIndex: any): void;
|
|
74
|
-
getRelatedContextFromMoveEvent({ to, related }: {
|
|
75
|
-
to: any;
|
|
76
|
-
related: any;
|
|
77
|
-
}): any;
|
|
78
|
-
getVmIndexFromDomIndex(domIndex: any): any;
|
|
79
|
-
onDragStart(evt: any): void;
|
|
80
|
-
onDragAdd(evt: any): void;
|
|
81
|
-
onDragRemove(evt: any): void;
|
|
82
|
-
onDragUpdate(evt: any): void;
|
|
83
|
-
computeFutureIndex(relatedContext: any, evt: any): any;
|
|
84
|
-
onDragMove(evt: any, originalEvent: any): any;
|
|
85
|
-
onDragEnd(): void;
|
|
86
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any[], any, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
87
|
-
move: Function;
|
|
88
|
-
tag: string;
|
|
89
|
-
clone: Function;
|
|
90
|
-
list: unknown[];
|
|
91
|
-
modelValue: unknown[];
|
|
92
|
-
componentData: Record<string, any>;
|
|
93
|
-
} & {
|
|
94
|
-
itemKey?: string | Function | undefined;
|
|
95
|
-
}>, {
|
|
96
|
-
move: Function;
|
|
97
|
-
tag: string;
|
|
98
|
-
clone: Function;
|
|
99
|
-
list: unknown[];
|
|
100
|
-
modelValue: unknown[];
|
|
101
|
-
componentData: Record<string, any>;
|
|
102
|
-
}>;
|
|
103
|
-
NPopover: any;
|
|
104
|
-
NButton: any;
|
|
105
|
-
NSelect: any;
|
|
106
|
-
NIcon: any;
|
|
107
|
-
EllipsisVerticalSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
108
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleEdit" | "handleDelete")[], "handleEdit" | "handleDelete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
109
|
-
fields: {
|
|
110
|
-
type: null;
|
|
111
|
-
required: false;
|
|
112
|
-
};
|
|
113
|
-
element: {
|
|
114
|
-
type: null;
|
|
115
|
-
required: true;
|
|
116
|
-
};
|
|
117
|
-
index: {
|
|
118
|
-
type: NumberConstructor;
|
|
119
|
-
required: true;
|
|
120
|
-
};
|
|
121
|
-
}>> & {
|
|
122
|
-
onHandleEdit?: ((...args: any[]) => any) | undefined;
|
|
123
|
-
onHandleDelete?: ((...args: any[]) => any) | undefined;
|
|
124
|
-
}, {}>;
|
|
125
|
-
export default _default;
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createCommentVNode, createTextVNode, toDisplayString, Fragment, createBlock, unref, withCtx, withDirectives, createVNode, vShow, normalizeStyle } from 'vue';
|
|
2
|
-
import draggableComponent from '../../../shared/components/VueDraggable/src/vuedraggable.js';
|
|
3
|
-
import { NButton, NSelect, NPopover, NIcon } from 'naive-ui';
|
|
4
|
-
import { EllipsisVerticalSharp } from '@vicons/ionicons5';
|
|
5
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
6
|
-
|
|
7
|
-
const _hoisted_1 = { class: "DragFormRightItem" };
|
|
8
|
-
const _hoisted_2 = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "red"
|
|
11
|
-
};
|
|
12
|
-
const _hoisted_3 = { class: "form-btn" };
|
|
13
|
-
const _hoisted_4 = {
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "red"
|
|
16
|
-
};
|
|
17
|
-
const _hoisted_5 = { class: "form-btn" };
|
|
18
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
|
-
__name: "DragFormRightItem",
|
|
20
|
-
props: {
|
|
21
|
-
fields: null,
|
|
22
|
-
element: null,
|
|
23
|
-
index: null
|
|
24
|
-
},
|
|
25
|
-
emits: ["handleEdit", "handleDelete"],
|
|
26
|
-
setup(__props, { emit }) {
|
|
27
|
-
const props = __props;
|
|
28
|
-
let showFields = ref([]);
|
|
29
|
-
ref(false);
|
|
30
|
-
const widthOptions = [
|
|
31
|
-
{
|
|
32
|
-
label: "\u6574\u884C",
|
|
33
|
-
value: "12"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
label: "\u534A\u884C",
|
|
37
|
-
value: "6"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
label: "5/6",
|
|
41
|
-
value: "10"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
label: "2/3",
|
|
45
|
-
value: "8"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
label: "1/3",
|
|
49
|
-
value: "4"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
label: "3/4",
|
|
53
|
-
value: "9"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
label: "1/4",
|
|
57
|
-
value: "3"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
label: "1/6",
|
|
61
|
-
value: "2"
|
|
62
|
-
}
|
|
63
|
-
];
|
|
64
|
-
const lineTypeList = computed(() => ["LINEBAR", "LINE_BREAKS"]);
|
|
65
|
-
const handlechangIs_edit = (data) => {
|
|
66
|
-
data.mid_is_edit = data.mid_is_edit == 1 ? 0 : 1;
|
|
67
|
-
};
|
|
68
|
-
const handlechangNull = (data) => {
|
|
69
|
-
data.is_null = data.is_null == 1 ? 0 : 1;
|
|
70
|
-
};
|
|
71
|
-
const handleEdit = (data, i, type) => {
|
|
72
|
-
emit("handleEdit", data, i, type);
|
|
73
|
-
};
|
|
74
|
-
const handleDelete = (data, i) => {
|
|
75
|
-
emit("handleDelete", data, i);
|
|
76
|
-
};
|
|
77
|
-
const isLineType = (t) => {
|
|
78
|
-
return lineTypeList.value.includes(t);
|
|
79
|
-
};
|
|
80
|
-
watch(
|
|
81
|
-
() => props.fields,
|
|
82
|
-
(val) => {
|
|
83
|
-
if (!val)
|
|
84
|
-
return;
|
|
85
|
-
showFields.value = val;
|
|
86
|
-
},
|
|
87
|
-
{ immediate: true, deep: true }
|
|
88
|
-
);
|
|
89
|
-
return (_ctx, _cache) => {
|
|
90
|
-
const _component_DragFormRightItem = resolveComponent("DragFormRightItem", true);
|
|
91
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
92
|
-
__props.element.html_type === "COMBINATION" ? (openBlock(), createElementBlock("div", {
|
|
93
|
-
key: 0,
|
|
94
|
-
class: normalizeClass(["combination-item", {
|
|
95
|
-
"is-edit-class": __props.element.is_edit == 0 ? true : __props.element.mid_is_edit == 0
|
|
96
|
-
}])
|
|
97
|
-
}, [
|
|
98
|
-
createElementVNode("div", null, [
|
|
99
|
-
__props.element.is_null == 0 ? (openBlock(), createElementBlock("span", _hoisted_2, "*")) : createCommentVNode("v-if", true),
|
|
100
|
-
createTextVNode(" " + toDisplayString(__props.element.name) + " ", 1),
|
|
101
|
-
createElementVNode("div", _hoisted_3, [
|
|
102
|
-
__props.element.html_type != "TEXT" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
103
|
-
__props.element.is_edit == 1 && !isLineType(__props.element.html_type) ? (openBlock(), createBlock(unref(NButton), {
|
|
104
|
-
key: 0,
|
|
105
|
-
dashed: "",
|
|
106
|
-
size: "small",
|
|
107
|
-
onClick: _cache[0] || (_cache[0] = ($event) => handlechangIs_edit(__props.element))
|
|
108
|
-
}, {
|
|
109
|
-
default: withCtx(() => [
|
|
110
|
-
createTextVNode(toDisplayString(`${__props.element.mid_is_edit == 1 ? "\u4E0D\u53EF\u7F16\u8F91" : "\u542F\u7528\u7F16\u8F91"}`), 1)
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
})) : createCommentVNode("v-if", true),
|
|
114
|
-
__props.element.is_drag == 1 && !isLineType(__props.element.html_type) ? (openBlock(), createBlock(unref(NButton), {
|
|
115
|
-
key: 1,
|
|
116
|
-
dashed: "",
|
|
117
|
-
size: "small",
|
|
118
|
-
onClick: _cache[1] || (_cache[1] = ($event) => handlechangNull(__props.element))
|
|
119
|
-
}, {
|
|
120
|
-
default: withCtx(() => [
|
|
121
|
-
createTextVNode(" \u5FC5\u586B ")
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
})) : createCommentVNode("v-if", true),
|
|
125
|
-
withDirectives(createVNode(unref(NButton), {
|
|
126
|
-
dashed: "",
|
|
127
|
-
size: "small",
|
|
128
|
-
onClick: _cache[2] || (_cache[2] = ($event) => handleEdit(__props.element, __props.index, "edit"))
|
|
129
|
-
}, {
|
|
130
|
-
default: withCtx(() => [
|
|
131
|
-
createTextVNode(" \u4FEE\u6539 ")
|
|
132
|
-
]),
|
|
133
|
-
_: 1
|
|
134
|
-
}, 512), [
|
|
135
|
-
[vShow, __props.element.html_type != "LINE_BREAKS"]
|
|
136
|
-
])
|
|
137
|
-
], 64)) : createCommentVNode("v-if", true),
|
|
138
|
-
(__props.element.is_drag == 1 || isLineType(__props.element.html_type)) && __props.element.is_system_fields != 0 ? (openBlock(), createBlock(unref(NButton), {
|
|
139
|
-
key: 1,
|
|
140
|
-
dashed: "",
|
|
141
|
-
size: "small",
|
|
142
|
-
onClick: _cache[3] || (_cache[3] = ($event) => handleDelete(__props.element, __props.index))
|
|
143
|
-
}, {
|
|
144
|
-
default: withCtx(() => [
|
|
145
|
-
createTextVNode(" \u79FB\u9664 ")
|
|
146
|
-
]),
|
|
147
|
-
_: 1
|
|
148
|
-
})) : createCommentVNode("v-if", true)
|
|
149
|
-
])
|
|
150
|
-
]),
|
|
151
|
-
createVNode(unref(draggableComponent), {
|
|
152
|
-
modelValue: __props.element.children,
|
|
153
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.element.children = $event),
|
|
154
|
-
itemKey: "val_key",
|
|
155
|
-
group: __props.element.val_key,
|
|
156
|
-
animation: 300
|
|
157
|
-
}, {
|
|
158
|
-
item: withCtx((eleChild) => [
|
|
159
|
-
createElementVNode("div", {
|
|
160
|
-
style: normalizeStyle({
|
|
161
|
-
width: `${(__props.element.elem_width || 12) * 2 / 24 * 100}%`,
|
|
162
|
-
display: __props.element.elem_width && __props.element.elem_width < 12 ? "inline-block" : "block"
|
|
163
|
-
})
|
|
164
|
-
}, [
|
|
165
|
-
createVNode(_component_DragFormRightItem, {
|
|
166
|
-
element: eleChild.element,
|
|
167
|
-
index: eleChild.index,
|
|
168
|
-
onHandleEdit: handleEdit,
|
|
169
|
-
onHandleDelete: handleDelete
|
|
170
|
-
}, null, 8, ["element", "index"])
|
|
171
|
-
], 4)
|
|
172
|
-
]),
|
|
173
|
-
_: 1
|
|
174
|
-
}, 8, ["modelValue", "group"])
|
|
175
|
-
], 2)) : (openBlock(), createElementBlock("div", {
|
|
176
|
-
key: 1,
|
|
177
|
-
class: normalizeClass({
|
|
178
|
-
"right-content": true,
|
|
179
|
-
"blue-border": __props.element.extraField,
|
|
180
|
-
"is-edit-class": __props.element.is_edit == 0 ? true : __props.element.mid_is_edit == 0
|
|
181
|
-
})
|
|
182
|
-
}, [
|
|
183
|
-
createElementVNode("div", {
|
|
184
|
-
class: normalizeClass({ "item-opacity": __props.element.is_show == 0 })
|
|
185
|
-
}, [
|
|
186
|
-
__props.element.is_null == 0 ? (openBlock(), createElementBlock("span", _hoisted_4, "*")) : createCommentVNode("v-if", true),
|
|
187
|
-
createTextVNode(" " + toDisplayString(__props.element.name), 1)
|
|
188
|
-
], 2),
|
|
189
|
-
createElementVNode("div", _hoisted_5, [
|
|
190
|
-
__props.element.html_type != "TEXT" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
191
|
-
__props.element.is_edit == 1 && !isLineType(__props.element.html_type) ? (openBlock(), createBlock(unref(NButton), {
|
|
192
|
-
key: 0,
|
|
193
|
-
dashed: "",
|
|
194
|
-
size: "small",
|
|
195
|
-
onClick: _cache[5] || (_cache[5] = ($event) => handlechangIs_edit(__props.element))
|
|
196
|
-
}, {
|
|
197
|
-
default: withCtx(() => [
|
|
198
|
-
createTextVNode(toDisplayString(`${__props.element.mid_is_edit == 1 ? "\u4E0D\u53EF\u7F16\u8F91" : "\u542F\u7528\u7F16\u8F91"}`), 1)
|
|
199
|
-
]),
|
|
200
|
-
_: 1
|
|
201
|
-
})) : createCommentVNode("v-if", true),
|
|
202
|
-
__props.element.is_drag == 1 && !isLineType(__props.element.html_type) ? (openBlock(), createBlock(unref(NButton), {
|
|
203
|
-
key: 1,
|
|
204
|
-
dashed: "",
|
|
205
|
-
size: "small",
|
|
206
|
-
onClick: _cache[6] || (_cache[6] = ($event) => handlechangNull(__props.element))
|
|
207
|
-
}, {
|
|
208
|
-
default: withCtx(() => [
|
|
209
|
-
createTextVNode(" \u5FC5\u586B ")
|
|
210
|
-
]),
|
|
211
|
-
_: 1
|
|
212
|
-
})) : createCommentVNode("v-if", true),
|
|
213
|
-
createVNode(unref(NSelect), {
|
|
214
|
-
style: { "width": "50px" },
|
|
215
|
-
size: "small",
|
|
216
|
-
options: widthOptions,
|
|
217
|
-
value: __props.element.elem_width,
|
|
218
|
-
"onUpdate:value": _cache[7] || (_cache[7] = ($event) => __props.element.elem_width = $event),
|
|
219
|
-
to: false
|
|
220
|
-
}, null, 8, ["value"])
|
|
221
|
-
], 64)) : createCommentVNode("v-if", true),
|
|
222
|
-
createVNode(unref(NPopover), {
|
|
223
|
-
trigger: "click",
|
|
224
|
-
delay: 300,
|
|
225
|
-
placement: "left-end"
|
|
226
|
-
}, {
|
|
227
|
-
trigger: withCtx(() => [
|
|
228
|
-
createVNode(unref(NIcon), { component: unref(EllipsisVerticalSharp) }, null, 8, ["component"])
|
|
229
|
-
]),
|
|
230
|
-
default: withCtx(() => [
|
|
231
|
-
createElementVNode("div", null, [
|
|
232
|
-
withDirectives(createVNode(unref(NButton), {
|
|
233
|
-
dashed: "",
|
|
234
|
-
size: "small",
|
|
235
|
-
onClick: _cache[8] || (_cache[8] = ($event) => handleEdit(__props.element, __props.index, "edit"))
|
|
236
|
-
}, {
|
|
237
|
-
default: withCtx(() => [
|
|
238
|
-
createTextVNode(" \u4FEE\u6539 ")
|
|
239
|
-
]),
|
|
240
|
-
_: 1
|
|
241
|
-
}, 512), [
|
|
242
|
-
[vShow, !["LINE_BREAKS"].includes(__props.element.html_type)]
|
|
243
|
-
]),
|
|
244
|
-
(__props.element.is_drag == 1 || isLineType(__props.element.html_type)) && __props.element.is_system_fields != 0 ? (openBlock(), createBlock(unref(NButton), {
|
|
245
|
-
key: 0,
|
|
246
|
-
dashed: "",
|
|
247
|
-
size: "small",
|
|
248
|
-
onClick: _cache[9] || (_cache[9] = ($event) => handleDelete(__props.element, __props.index))
|
|
249
|
-
}, {
|
|
250
|
-
default: withCtx(() => [
|
|
251
|
-
createTextVNode(" \u79FB\u9664 ")
|
|
252
|
-
]),
|
|
253
|
-
_: 1
|
|
254
|
-
})) : createCommentVNode("v-if", true)
|
|
255
|
-
])
|
|
256
|
-
]),
|
|
257
|
-
_: 1
|
|
258
|
-
})
|
|
259
|
-
])
|
|
260
|
-
], 2))
|
|
261
|
-
]);
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
var DragFormRightItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "DragFormRightItem.vue"]]);
|
|
266
|
-
|
|
267
|
-
export { DragFormRightItem as default };
|