super-page-designer 2.0.51 → 2.0.54
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/es/components/design/utils/assemblys-config.js +67 -1
- package/dist/es/components/design/utils/data-table-util.js +3 -3
- package/dist/es/components/design/utils/form-design-util.d.ts +7 -0
- package/dist/es/components/design/utils/form-design-util.js +9 -0
- package/dist/es/components/design/utils/page-design-util.js +1 -4
- package/dist/es/components/design/utils/page-table-util.d.ts +7 -0
- package/dist/es/components/design/utils/page-table-util.js +50 -7
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-advanced.vue.js +242 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-advanced.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +571 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-event.vue.js +33 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-event.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-style.vue.js +50 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-style.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr.vue.js +5 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr.vue2.js +80 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +91 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +1 -692
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +702 -1
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +23 -4
- package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +23 -16
- package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +14 -13
- package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +10 -5
- package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +10 -5
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +22 -16
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +10 -5
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +1 -2
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +4 -3
- package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js +188 -0
- package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +21 -59
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +3 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +0 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +16 -5
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +70 -97
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +12 -5
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +27 -30
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr.vue2.js +11 -1
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +92 -63
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +20 -30
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +1 -152
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +152 -1
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +1 -217
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue3.js +217 -1
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +102 -8
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue.js +176 -0
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/common/verification.vue.js +17 -28
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +14 -3
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +6 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +26 -11
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +17 -3
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr.vue2.js +3 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +0 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +29 -14
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +41 -3
- package/dist/es/components/design/views/assemblys/form/link/link-attr.vue2.js +2 -1
- package/dist/es/components/design/views/assemblys/form/link/link-design.vue2.js +20 -14
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +27 -30
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr.vue2.js +11 -1
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +26 -29
- package/dist/es/components/design/views/assemblys/form/select/select-attr.vue2.js +12 -1
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +28 -2
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +27 -29
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr.vue2.js +11 -1
- package/dist/es/components/design/views/assemblys/object-design.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +57 -18
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +49 -24
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +20 -7
- package/dist/es/components/design/views/assemblys/page/page-attr.vue.js +5 -4
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +38 -6
- package/dist/es/components/design/views/design/page-design.vue.js +4 -3
- package/dist/es/components/design/views/design/view/attr-container.vue.js +4 -2
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +0 -25
- package/dist/es/stores/table-store.d.ts +10 -0
- package/dist/es/stores/table-store.js +20 -0
- package/dist/es/style.css +661 -42
- package/package.json +4 -4
|
@@ -1,217 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Search, Plus, ChatLineRound, Unlock, MuteNotification, Operation, WarningFilled } from "@element-plus/icons-vue";
|
|
3
|
-
const _withScopeId = (n) => (pushScopeId("data-v-4aa5ce08"), n = n(), popScopeId(), n);
|
|
4
|
-
const _hoisted_1 = { class: "icon-set-center-body" };
|
|
5
|
-
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "新建", -1));
|
|
6
|
-
const _hoisted_3 = ["onClick"];
|
|
7
|
-
const _hoisted_4 = { class: "dialog-footer" };
|
|
8
|
-
const _hoisted_5 = { class: "dialog-footer" };
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
__name: "icon-set-dialog",
|
|
11
|
-
props: {
|
|
12
|
-
modelValue: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: ""
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
emits: ["update:modelValue"],
|
|
18
|
-
setup(__props, { emit: __emit }) {
|
|
19
|
-
const props = __props;
|
|
20
|
-
const emit = __emit;
|
|
21
|
-
const iconValue = ref(props.modelValue);
|
|
22
|
-
const dialogVisible = ref(false);
|
|
23
|
-
const selectIconName = ref("");
|
|
24
|
-
const addIconDialogVisible = ref(false);
|
|
25
|
-
const form = reactive({});
|
|
26
|
-
const iconList = [
|
|
27
|
-
{ name: "ChatLineRound", icon: ChatLineRound },
|
|
28
|
-
{ name: "Unlock", icon: Unlock },
|
|
29
|
-
{ name: "MuteNotification", icon: MuteNotification },
|
|
30
|
-
{ name: "Operation", icon: Operation },
|
|
31
|
-
{ name: "WarningFilled", icon: WarningFilled }
|
|
32
|
-
];
|
|
33
|
-
watch(() => props.modelValue, (newVal) => {
|
|
34
|
-
iconValue.value = newVal;
|
|
35
|
-
});
|
|
36
|
-
function selectIcon(name) {
|
|
37
|
-
selectIconName.value = name;
|
|
38
|
-
}
|
|
39
|
-
function openDialog() {
|
|
40
|
-
dialogVisible.value = true;
|
|
41
|
-
}
|
|
42
|
-
function addIcon() {
|
|
43
|
-
console.log("%c描述-105701", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", selectIconName.value);
|
|
44
|
-
emit("update:modelValue", selectIconName.value);
|
|
45
|
-
dialogVisible.value = false;
|
|
46
|
-
}
|
|
47
|
-
return (_ctx, _cache) => {
|
|
48
|
-
const _component_el_button = resolveComponent("el-button");
|
|
49
|
-
const _component_el_input = resolveComponent("el-input");
|
|
50
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
51
|
-
const _component_el_dialog = resolveComponent("el-dialog");
|
|
52
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
53
|
-
const _component_el_option = resolveComponent("el-option");
|
|
54
|
-
const _component_el_select = resolveComponent("el-select");
|
|
55
|
-
const _component_el_form = resolveComponent("el-form");
|
|
56
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
57
|
-
createVNode(_component_el_input, {
|
|
58
|
-
modelValue: iconValue.value,
|
|
59
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => iconValue.value = $event),
|
|
60
|
-
onClick: openDialog
|
|
61
|
-
}, {
|
|
62
|
-
append: withCtx(() => [
|
|
63
|
-
createVNode(_component_el_button, {
|
|
64
|
-
icon: unref(Search),
|
|
65
|
-
onClick: openDialog
|
|
66
|
-
}, null, 8, ["icon"])
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}, 8, ["modelValue"]),
|
|
70
|
-
createVNode(_component_el_dialog, {
|
|
71
|
-
modelValue: dialogVisible.value,
|
|
72
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dialogVisible.value = $event),
|
|
73
|
-
title: "选择icon",
|
|
74
|
-
width: "40%"
|
|
75
|
-
}, {
|
|
76
|
-
footer: withCtx(() => [
|
|
77
|
-
createElementVNode("div", _hoisted_4, [
|
|
78
|
-
createVNode(_component_el_button, {
|
|
79
|
-
onClick: _cache[2] || (_cache[2] = ($event) => dialogVisible.value = false)
|
|
80
|
-
}, {
|
|
81
|
-
default: withCtx(() => [
|
|
82
|
-
createTextVNode("取消")
|
|
83
|
-
]),
|
|
84
|
-
_: 1
|
|
85
|
-
}),
|
|
86
|
-
createVNode(_component_el_button, {
|
|
87
|
-
type: "primary",
|
|
88
|
-
onClick: addIcon
|
|
89
|
-
}, {
|
|
90
|
-
default: withCtx(() => [
|
|
91
|
-
createTextVNode(" 确定 ")
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
})
|
|
95
|
-
])
|
|
96
|
-
]),
|
|
97
|
-
default: withCtx(() => [
|
|
98
|
-
createElementVNode("div", _hoisted_1, [
|
|
99
|
-
createElementVNode("div", {
|
|
100
|
-
class: "icon-set-center-creation",
|
|
101
|
-
onClick: _cache[1] || (_cache[1] = ($event) => addIconDialogVisible.value = true)
|
|
102
|
-
}, [
|
|
103
|
-
createVNode(_component_el_icon, null, {
|
|
104
|
-
default: withCtx(() => [
|
|
105
|
-
createVNode(unref(Plus))
|
|
106
|
-
]),
|
|
107
|
-
_: 1
|
|
108
|
-
}),
|
|
109
|
-
_hoisted_2
|
|
110
|
-
]),
|
|
111
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(iconList, (item, index) => {
|
|
112
|
-
return createElementVNode("div", {
|
|
113
|
-
key: index,
|
|
114
|
-
class: normalizeClass(selectIconName.value === item.name ? "icon-set-center-item icon-set-center-item-border" : "icon-set-center-item"),
|
|
115
|
-
onClick: ($event) => selectIcon(item.name)
|
|
116
|
-
}, [
|
|
117
|
-
(openBlock(), createBlock(resolveDynamicComponent(item.icon), { style: { "width": "40px", "height": "40px" } })),
|
|
118
|
-
createElementVNode("span", null, toDisplayString(item.name), 1)
|
|
119
|
-
], 10, _hoisted_3);
|
|
120
|
-
}), 64))
|
|
121
|
-
])
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
}, 8, ["modelValue"]),
|
|
125
|
-
createVNode(_component_el_dialog, {
|
|
126
|
-
modelValue: addIconDialogVisible.value,
|
|
127
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => addIconDialogVisible.value = $event),
|
|
128
|
-
title: "创建icon",
|
|
129
|
-
width: "30%"
|
|
130
|
-
}, {
|
|
131
|
-
footer: withCtx(() => [
|
|
132
|
-
createElementVNode("div", _hoisted_5, [
|
|
133
|
-
createVNode(_component_el_button, {
|
|
134
|
-
onClick: _cache[7] || (_cache[7] = ($event) => addIconDialogVisible.value = false)
|
|
135
|
-
}, {
|
|
136
|
-
default: withCtx(() => [
|
|
137
|
-
createTextVNode("取消")
|
|
138
|
-
]),
|
|
139
|
-
_: 1
|
|
140
|
-
}),
|
|
141
|
-
createVNode(_component_el_button, {
|
|
142
|
-
type: "primary",
|
|
143
|
-
onClick: _cache[8] || (_cache[8] = ($event) => addIconDialogVisible.value = false)
|
|
144
|
-
}, {
|
|
145
|
-
default: withCtx(() => [
|
|
146
|
-
createTextVNode(" 确定 ")
|
|
147
|
-
]),
|
|
148
|
-
_: 1
|
|
149
|
-
})
|
|
150
|
-
])
|
|
151
|
-
]),
|
|
152
|
-
default: withCtx(() => [
|
|
153
|
-
createVNode(_component_el_form, {
|
|
154
|
-
model: form,
|
|
155
|
-
"label-width": "80px"
|
|
156
|
-
}, {
|
|
157
|
-
default: withCtx(() => [
|
|
158
|
-
createVNode(_component_el_form_item, {
|
|
159
|
-
label: "类名",
|
|
160
|
-
prop: "name",
|
|
161
|
-
rules: [{ required: true, message: "请输入类名", trigger: "blur" }]
|
|
162
|
-
}, {
|
|
163
|
-
default: withCtx(() => [
|
|
164
|
-
createVNode(_component_el_input, {
|
|
165
|
-
size: "default",
|
|
166
|
-
modelValue: form.name,
|
|
167
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.name = $event)
|
|
168
|
-
}, null, 8, ["modelValue"])
|
|
169
|
-
]),
|
|
170
|
-
_: 1
|
|
171
|
-
}),
|
|
172
|
-
createVNode(_component_el_form_item, { label: "标准按钮" }, {
|
|
173
|
-
default: withCtx(() => [
|
|
174
|
-
createVNode(_component_el_select, {
|
|
175
|
-
size: "default",
|
|
176
|
-
modelValue: form.region,
|
|
177
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.region = $event),
|
|
178
|
-
placeholder: "please select your zone"
|
|
179
|
-
}, {
|
|
180
|
-
default: withCtx(() => [
|
|
181
|
-
createVNode(_component_el_option, {
|
|
182
|
-
label: "Zone one",
|
|
183
|
-
value: "shanghai"
|
|
184
|
-
}),
|
|
185
|
-
createVNode(_component_el_option, {
|
|
186
|
-
label: "Zone two",
|
|
187
|
-
value: "beijing"
|
|
188
|
-
})
|
|
189
|
-
]),
|
|
190
|
-
_: 1
|
|
191
|
-
}, 8, ["modelValue"])
|
|
192
|
-
]),
|
|
193
|
-
_: 1
|
|
194
|
-
}),
|
|
195
|
-
createVNode(_component_el_form_item, { label: "备注" }, {
|
|
196
|
-
default: withCtx(() => [
|
|
197
|
-
createVNode(_component_el_input, {
|
|
198
|
-
size: "default",
|
|
199
|
-
modelValue: form.name,
|
|
200
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.name = $event)
|
|
201
|
-
}, null, 8, ["modelValue"])
|
|
202
|
-
]),
|
|
203
|
-
_: 1
|
|
204
|
-
})
|
|
205
|
-
]),
|
|
206
|
-
_: 1
|
|
207
|
-
}, 8, ["model"])
|
|
208
|
-
]),
|
|
209
|
-
_: 1
|
|
210
|
-
}, 8, ["modelValue"])
|
|
211
|
-
], 64);
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
export {
|
|
216
|
-
_sfc_main as default
|
|
217
|
-
};
|
|
1
|
+
|
|
@@ -1 +1,217 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineComponent, ref, reactive, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, createTextVNode, renderList, normalizeClass, createBlock, resolveDynamicComponent, toDisplayString, pushScopeId, popScopeId } from "vue";
|
|
2
|
+
import { Search, Plus, ChatLineRound, Unlock, MuteNotification, Operation, WarningFilled } from "@element-plus/icons-vue";
|
|
3
|
+
const _withScopeId = (n) => (pushScopeId("data-v-4aa5ce08"), n = n(), popScopeId(), n);
|
|
4
|
+
const _hoisted_1 = { class: "icon-set-center-body" };
|
|
5
|
+
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "新建", -1));
|
|
6
|
+
const _hoisted_3 = ["onClick"];
|
|
7
|
+
const _hoisted_4 = { class: "dialog-footer" };
|
|
8
|
+
const _hoisted_5 = { class: "dialog-footer" };
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "icon-set-dialog",
|
|
11
|
+
props: {
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:modelValue"],
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const emit = __emit;
|
|
21
|
+
const iconValue = ref(props.modelValue);
|
|
22
|
+
const dialogVisible = ref(false);
|
|
23
|
+
const selectIconName = ref("");
|
|
24
|
+
const addIconDialogVisible = ref(false);
|
|
25
|
+
const form = reactive({});
|
|
26
|
+
const iconList = [
|
|
27
|
+
{ name: "ChatLineRound", icon: ChatLineRound },
|
|
28
|
+
{ name: "Unlock", icon: Unlock },
|
|
29
|
+
{ name: "MuteNotification", icon: MuteNotification },
|
|
30
|
+
{ name: "Operation", icon: Operation },
|
|
31
|
+
{ name: "WarningFilled", icon: WarningFilled }
|
|
32
|
+
];
|
|
33
|
+
watch(() => props.modelValue, (newVal) => {
|
|
34
|
+
iconValue.value = newVal;
|
|
35
|
+
});
|
|
36
|
+
function selectIcon(name) {
|
|
37
|
+
selectIconName.value = name;
|
|
38
|
+
}
|
|
39
|
+
function openDialog() {
|
|
40
|
+
dialogVisible.value = true;
|
|
41
|
+
}
|
|
42
|
+
function addIcon() {
|
|
43
|
+
console.log("%c描述-105701", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", selectIconName.value);
|
|
44
|
+
emit("update:modelValue", selectIconName.value);
|
|
45
|
+
dialogVisible.value = false;
|
|
46
|
+
}
|
|
47
|
+
return (_ctx, _cache) => {
|
|
48
|
+
const _component_el_button = resolveComponent("el-button");
|
|
49
|
+
const _component_el_input = resolveComponent("el-input");
|
|
50
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
51
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
52
|
+
const _component_el_form_item = resolveComponent("el-form-item");
|
|
53
|
+
const _component_el_option = resolveComponent("el-option");
|
|
54
|
+
const _component_el_select = resolveComponent("el-select");
|
|
55
|
+
const _component_el_form = resolveComponent("el-form");
|
|
56
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
57
|
+
createVNode(_component_el_input, {
|
|
58
|
+
modelValue: iconValue.value,
|
|
59
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => iconValue.value = $event),
|
|
60
|
+
onClick: openDialog
|
|
61
|
+
}, {
|
|
62
|
+
append: withCtx(() => [
|
|
63
|
+
createVNode(_component_el_button, {
|
|
64
|
+
icon: unref(Search),
|
|
65
|
+
onClick: openDialog
|
|
66
|
+
}, null, 8, ["icon"])
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}, 8, ["modelValue"]),
|
|
70
|
+
createVNode(_component_el_dialog, {
|
|
71
|
+
modelValue: dialogVisible.value,
|
|
72
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dialogVisible.value = $event),
|
|
73
|
+
title: "选择icon",
|
|
74
|
+
width: "40%"
|
|
75
|
+
}, {
|
|
76
|
+
footer: withCtx(() => [
|
|
77
|
+
createElementVNode("div", _hoisted_4, [
|
|
78
|
+
createVNode(_component_el_button, {
|
|
79
|
+
onClick: _cache[2] || (_cache[2] = ($event) => dialogVisible.value = false)
|
|
80
|
+
}, {
|
|
81
|
+
default: withCtx(() => [
|
|
82
|
+
createTextVNode("取消")
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
}),
|
|
86
|
+
createVNode(_component_el_button, {
|
|
87
|
+
type: "primary",
|
|
88
|
+
onClick: addIcon
|
|
89
|
+
}, {
|
|
90
|
+
default: withCtx(() => [
|
|
91
|
+
createTextVNode(" 确定 ")
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
})
|
|
95
|
+
])
|
|
96
|
+
]),
|
|
97
|
+
default: withCtx(() => [
|
|
98
|
+
createElementVNode("div", _hoisted_1, [
|
|
99
|
+
createElementVNode("div", {
|
|
100
|
+
class: "icon-set-center-creation",
|
|
101
|
+
onClick: _cache[1] || (_cache[1] = ($event) => addIconDialogVisible.value = true)
|
|
102
|
+
}, [
|
|
103
|
+
createVNode(_component_el_icon, null, {
|
|
104
|
+
default: withCtx(() => [
|
|
105
|
+
createVNode(unref(Plus))
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
}),
|
|
109
|
+
_hoisted_2
|
|
110
|
+
]),
|
|
111
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(iconList, (item, index) => {
|
|
112
|
+
return createElementVNode("div", {
|
|
113
|
+
key: index,
|
|
114
|
+
class: normalizeClass(selectIconName.value === item.name ? "icon-set-center-item icon-set-center-item-border" : "icon-set-center-item"),
|
|
115
|
+
onClick: ($event) => selectIcon(item.name)
|
|
116
|
+
}, [
|
|
117
|
+
(openBlock(), createBlock(resolveDynamicComponent(item.icon), { style: { "width": "40px", "height": "40px" } })),
|
|
118
|
+
createElementVNode("span", null, toDisplayString(item.name), 1)
|
|
119
|
+
], 10, _hoisted_3);
|
|
120
|
+
}), 64))
|
|
121
|
+
])
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
}, 8, ["modelValue"]),
|
|
125
|
+
createVNode(_component_el_dialog, {
|
|
126
|
+
modelValue: addIconDialogVisible.value,
|
|
127
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => addIconDialogVisible.value = $event),
|
|
128
|
+
title: "创建icon",
|
|
129
|
+
width: "30%"
|
|
130
|
+
}, {
|
|
131
|
+
footer: withCtx(() => [
|
|
132
|
+
createElementVNode("div", _hoisted_5, [
|
|
133
|
+
createVNode(_component_el_button, {
|
|
134
|
+
onClick: _cache[7] || (_cache[7] = ($event) => addIconDialogVisible.value = false)
|
|
135
|
+
}, {
|
|
136
|
+
default: withCtx(() => [
|
|
137
|
+
createTextVNode("取消")
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}),
|
|
141
|
+
createVNode(_component_el_button, {
|
|
142
|
+
type: "primary",
|
|
143
|
+
onClick: _cache[8] || (_cache[8] = ($event) => addIconDialogVisible.value = false)
|
|
144
|
+
}, {
|
|
145
|
+
default: withCtx(() => [
|
|
146
|
+
createTextVNode(" 确定 ")
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
})
|
|
150
|
+
])
|
|
151
|
+
]),
|
|
152
|
+
default: withCtx(() => [
|
|
153
|
+
createVNode(_component_el_form, {
|
|
154
|
+
model: form,
|
|
155
|
+
"label-width": "80px"
|
|
156
|
+
}, {
|
|
157
|
+
default: withCtx(() => [
|
|
158
|
+
createVNode(_component_el_form_item, {
|
|
159
|
+
label: "类名",
|
|
160
|
+
prop: "name",
|
|
161
|
+
rules: [{ required: true, message: "请输入类名", trigger: "blur" }]
|
|
162
|
+
}, {
|
|
163
|
+
default: withCtx(() => [
|
|
164
|
+
createVNode(_component_el_input, {
|
|
165
|
+
size: "default",
|
|
166
|
+
modelValue: form.name,
|
|
167
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.name = $event)
|
|
168
|
+
}, null, 8, ["modelValue"])
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
}),
|
|
172
|
+
createVNode(_component_el_form_item, { label: "标准按钮" }, {
|
|
173
|
+
default: withCtx(() => [
|
|
174
|
+
createVNode(_component_el_select, {
|
|
175
|
+
size: "default",
|
|
176
|
+
modelValue: form.region,
|
|
177
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.region = $event),
|
|
178
|
+
placeholder: "please select your zone"
|
|
179
|
+
}, {
|
|
180
|
+
default: withCtx(() => [
|
|
181
|
+
createVNode(_component_el_option, {
|
|
182
|
+
label: "Zone one",
|
|
183
|
+
value: "shanghai"
|
|
184
|
+
}),
|
|
185
|
+
createVNode(_component_el_option, {
|
|
186
|
+
label: "Zone two",
|
|
187
|
+
value: "beijing"
|
|
188
|
+
})
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["modelValue"])
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
}),
|
|
195
|
+
createVNode(_component_el_form_item, { label: "备注" }, {
|
|
196
|
+
default: withCtx(() => [
|
|
197
|
+
createVNode(_component_el_input, {
|
|
198
|
+
size: "default",
|
|
199
|
+
modelValue: form.name,
|
|
200
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.name = $event)
|
|
201
|
+
}, null, 8, ["modelValue"])
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
})
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
}, 8, ["model"])
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
}, 8, ["modelValue"])
|
|
211
|
+
], 64);
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
export {
|
|
216
|
+
_sfc_main as default
|
|
217
|
+
};
|
|
@@ -46,6 +46,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
{ label: "新页签", value: "newTab" },
|
|
47
47
|
{ label: "局部刷新", value: "refresh" }
|
|
48
48
|
];
|
|
49
|
+
const dialogTypeList = [
|
|
50
|
+
{ label: "弹框", value: "dialog" },
|
|
51
|
+
{ label: "抽屉", value: "drawer" }
|
|
52
|
+
];
|
|
53
|
+
const positionList = [
|
|
54
|
+
{ label: "右到左", value: "rtl" },
|
|
55
|
+
{ label: "左到右", value: "ltr" },
|
|
56
|
+
{ label: "上到下", value: "ttb" },
|
|
57
|
+
{ label: "下到上", value: "btt" }
|
|
58
|
+
];
|
|
49
59
|
const conditionRef = ref(null);
|
|
50
60
|
watch(
|
|
51
61
|
() => ({
|
|
@@ -232,6 +242,89 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
232
242
|
]),
|
|
233
243
|
_: 1
|
|
234
244
|
}),
|
|
245
|
+
withDirectives(createVNode(_component_el_form_item, {
|
|
246
|
+
label: "弹框方式",
|
|
247
|
+
class: "amb-design-attr-item"
|
|
248
|
+
}, {
|
|
249
|
+
default: withCtx(() => [
|
|
250
|
+
createVNode(_component_el_select, {
|
|
251
|
+
modelValue: linkPage.value.dialogType,
|
|
252
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => linkPage.value.dialogType = $event),
|
|
253
|
+
clearable: "",
|
|
254
|
+
placeholder: "请选择"
|
|
255
|
+
}, {
|
|
256
|
+
default: withCtx(() => [
|
|
257
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(dialogTypeList, (item, index) => {
|
|
258
|
+
return createVNode(_component_el_option, {
|
|
259
|
+
key: index,
|
|
260
|
+
label: item.label,
|
|
261
|
+
value: item.value
|
|
262
|
+
}, null, 8, ["label", "value"]);
|
|
263
|
+
}), 64))
|
|
264
|
+
]),
|
|
265
|
+
_: 1
|
|
266
|
+
}, 8, ["modelValue"])
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
}, 512), [
|
|
270
|
+
[vShow, linkPage.value.jumpPageOpenMode == "popup" || linkPage.value.jumpPageMobileOpenMode == "popup"]
|
|
271
|
+
]),
|
|
272
|
+
withDirectives(createVNode(_component_el_form_item, {
|
|
273
|
+
label: "可拖拽",
|
|
274
|
+
class: "amb-design-attr-item"
|
|
275
|
+
}, {
|
|
276
|
+
default: withCtx(() => [
|
|
277
|
+
createVNode(_component_el_switch, {
|
|
278
|
+
modelValue: linkPage.value.draggable,
|
|
279
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => linkPage.value.draggable = $event)
|
|
280
|
+
}, null, 8, ["modelValue"])
|
|
281
|
+
]),
|
|
282
|
+
_: 1
|
|
283
|
+
}, 512), [
|
|
284
|
+
[vShow, (linkPage.value.jumpPageOpenMode == "popup" || linkPage.value.jumpPageMobileOpenMode == "popup") && (!linkPage.value.dialogType || linkPage.value.dialogType === "dialog")]
|
|
285
|
+
]),
|
|
286
|
+
withDirectives(createVNode(_component_el_form_item, {
|
|
287
|
+
label: "显示位置",
|
|
288
|
+
class: "amb-design-attr-item"
|
|
289
|
+
}, {
|
|
290
|
+
default: withCtx(() => [
|
|
291
|
+
createVNode(_component_el_select, {
|
|
292
|
+
modelValue: linkPage.value.showPosition,
|
|
293
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => linkPage.value.showPosition = $event),
|
|
294
|
+
clearable: "",
|
|
295
|
+
placeholder: "请选择"
|
|
296
|
+
}, {
|
|
297
|
+
default: withCtx(() => [
|
|
298
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(positionList, (item, index) => {
|
|
299
|
+
return createVNode(_component_el_option, {
|
|
300
|
+
key: index,
|
|
301
|
+
label: item.label,
|
|
302
|
+
value: item.value
|
|
303
|
+
}, null, 8, ["label", "value"]);
|
|
304
|
+
}), 64))
|
|
305
|
+
]),
|
|
306
|
+
_: 1
|
|
307
|
+
}, 8, ["modelValue"])
|
|
308
|
+
]),
|
|
309
|
+
_: 1
|
|
310
|
+
}, 512), [
|
|
311
|
+
[vShow, (linkPage.value.jumpPageOpenMode == "popup" || linkPage.value.jumpPageMobileOpenMode == "popup") && linkPage.value.dialogType && linkPage.value.dialogType === "drawer"]
|
|
312
|
+
]),
|
|
313
|
+
withDirectives(createVNode(_component_el_form_item, {
|
|
314
|
+
label: "拖出可视区",
|
|
315
|
+
title: "拖动范围可以超出可视区",
|
|
316
|
+
class: "amb-design-attr-item"
|
|
317
|
+
}, {
|
|
318
|
+
default: withCtx(() => [
|
|
319
|
+
createVNode(_component_el_switch, {
|
|
320
|
+
modelValue: linkPage.value.overflow,
|
|
321
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => linkPage.value.overflow = $event)
|
|
322
|
+
}, null, 8, ["modelValue"])
|
|
323
|
+
]),
|
|
324
|
+
_: 1
|
|
325
|
+
}, 512), [
|
|
326
|
+
[vShow, (linkPage.value.jumpPageOpenMode == "popup" || linkPage.value.jumpPageMobileOpenMode == "popup") && (!linkPage.value.dialogType || linkPage.value.dialogType === "dialog")]
|
|
327
|
+
]),
|
|
235
328
|
withDirectives(createVNode(_component_el_form_item, {
|
|
236
329
|
label: "弹窗标题",
|
|
237
330
|
class: "amb-design-attr-item"
|
|
@@ -239,7 +332,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
239
332
|
default: withCtx(() => [
|
|
240
333
|
createVNode(_component_el_input, {
|
|
241
334
|
modelValue: linkPage.value.jumpPageTitle,
|
|
242
|
-
"onUpdate:modelValue": _cache[
|
|
335
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => linkPage.value.jumpPageTitle = $event),
|
|
243
336
|
placeholder: "请输入"
|
|
244
337
|
}, null, 8, ["modelValue"])
|
|
245
338
|
]),
|
|
@@ -254,7 +347,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
254
347
|
default: withCtx(() => [
|
|
255
348
|
createVNode(_component_el_input, {
|
|
256
349
|
modelValue: linkPage.value.jumpPageTitleI18nKey,
|
|
257
|
-
"onUpdate:modelValue": _cache[
|
|
350
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => linkPage.value.jumpPageTitleI18nKey = $event),
|
|
258
351
|
placeholder: "请输入"
|
|
259
352
|
}, null, 8, ["modelValue"])
|
|
260
353
|
]),
|
|
@@ -269,7 +362,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
269
362
|
default: withCtx(() => [
|
|
270
363
|
createVNode(_component_el_input, {
|
|
271
364
|
modelValue: linkPage.value.jumpPageWidth,
|
|
272
|
-
"onUpdate:modelValue": _cache[
|
|
365
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => linkPage.value.jumpPageWidth = $event),
|
|
273
366
|
placeholder: "请输入"
|
|
274
367
|
}, null, 8, ["modelValue"])
|
|
275
368
|
]),
|
|
@@ -284,7 +377,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
284
377
|
default: withCtx(() => [
|
|
285
378
|
createVNode(_component_el_input, {
|
|
286
379
|
modelValue: linkPage.value.jumpPageHeight,
|
|
287
|
-
"onUpdate:modelValue": _cache[
|
|
380
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => linkPage.value.jumpPageHeight = $event),
|
|
288
381
|
placeholder: "请输入"
|
|
289
382
|
}, null, 8, ["modelValue"])
|
|
290
383
|
]),
|
|
@@ -299,7 +392,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
299
392
|
default: withCtx(() => [
|
|
300
393
|
createVNode(_component_el_input, {
|
|
301
394
|
modelValue: linkPage.value.closeEvent,
|
|
302
|
-
"onUpdate:modelValue": _cache[
|
|
395
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => linkPage.value.closeEvent = $event),
|
|
303
396
|
placeholder: "请输入"
|
|
304
397
|
}, null, 8, ["modelValue"])
|
|
305
398
|
]),
|
|
@@ -309,12 +402,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
309
402
|
]),
|
|
310
403
|
withDirectives(createVNode(_component_el_form_item, {
|
|
311
404
|
label: "关闭后刷新",
|
|
405
|
+
title: "关闭页面时是否刷新父页面",
|
|
312
406
|
class: "amb-design-attr-item"
|
|
313
407
|
}, {
|
|
314
408
|
default: withCtx(() => [
|
|
315
409
|
createVNode(_component_el_switch, {
|
|
316
410
|
modelValue: linkPage.value.isRefreshWhenClosePopup,
|
|
317
|
-
"onUpdate:modelValue": _cache[
|
|
411
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => linkPage.value.isRefreshWhenClosePopup = $event)
|
|
318
412
|
}, null, 8, ["modelValue"])
|
|
319
413
|
]),
|
|
320
414
|
_: 1
|
|
@@ -344,7 +438,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
344
438
|
default: withCtx(() => [
|
|
345
439
|
createVNode(_component_el_switch, {
|
|
346
440
|
modelValue: linkPage.value.displayTextJudge,
|
|
347
|
-
"onUpdate:modelValue": _cache[
|
|
441
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => linkPage.value.displayTextJudge = $event)
|
|
348
442
|
}, null, 8, ["modelValue"])
|
|
349
443
|
]),
|
|
350
444
|
_: 1
|
|
@@ -389,7 +483,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
389
483
|
default: withCtx(() => [
|
|
390
484
|
createVNode(_component_el_switch, {
|
|
391
485
|
modelValue: linkPage.value.isNeedId,
|
|
392
|
-
"onUpdate:modelValue": _cache[
|
|
486
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => linkPage.value.isNeedId = $event)
|
|
393
487
|
}, null, 8, ["modelValue"])
|
|
394
488
|
]),
|
|
395
489
|
_: 1
|