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
package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js
ADDED
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
|
+
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
+
import _sfc_main$2 from "../../common/common-icon-bind.vue.js";
|
|
4
|
+
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
5
|
+
import http from "agilebuilder-ui/src/utils/request";
|
|
6
|
+
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
7
|
+
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
8
|
+
const _hoisted_3 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "exportpdf-attr-base",
|
|
11
|
+
props: {
|
|
12
|
+
configure: {
|
|
13
|
+
type: Object,
|
|
14
|
+
default: () => ({ props: {} })
|
|
15
|
+
},
|
|
16
|
+
pageDesign: {
|
|
17
|
+
type: Object,
|
|
18
|
+
default: () => ({ props: {} })
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(__props) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const openCollapseItems = ref(["base", "appearance", "otherSettings", "linkPage"]);
|
|
24
|
+
const templateList = ref([]);
|
|
25
|
+
const templateFileUuids = ref([]);
|
|
26
|
+
onMounted(() => {
|
|
27
|
+
if (props.configure.props.base.templateFiles) {
|
|
28
|
+
props.configure.props.base.templateFiles.forEach((templateFile) => {
|
|
29
|
+
templateFileUuids.value.push(templateFile.templateUuid);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
queryPdfTemplate();
|
|
33
|
+
});
|
|
34
|
+
function afterBindIcon(iconType, iconValue) {
|
|
35
|
+
props.configure.props.base.iconType = iconType;
|
|
36
|
+
props.configure.props.base.iconValue = iconValue;
|
|
37
|
+
}
|
|
38
|
+
function queryPdfTemplate() {
|
|
39
|
+
let data = { searchParam: { code: "DC_PDF_TEMPLATE" } };
|
|
40
|
+
http.post(
|
|
41
|
+
window["$vueApp"].config.globalProperties.baseAPI + `/dc/pdf-templates/list/${props.pageDesign.systemCode}`,
|
|
42
|
+
data
|
|
43
|
+
).then((res) => {
|
|
44
|
+
templateList.value = res.data;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function templateFilesChange() {
|
|
48
|
+
console.log("templateFileUuids.value", templateFileUuids.value);
|
|
49
|
+
if (templateFileUuids.value.length > 0) {
|
|
50
|
+
if (!props.configure.props.base.templateFiles) {
|
|
51
|
+
props.configure.props.base.templateFiles = [];
|
|
52
|
+
}
|
|
53
|
+
templateList.value.filter((item) => templateFileUuids.value.includes(item.uuid)).forEach((templateFile) => {
|
|
54
|
+
props.configure.props.base.templateFiles.push({
|
|
55
|
+
templateName: templateFile.fileName,
|
|
56
|
+
templateUuid: templateFile.uuid
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
} else {
|
|
60
|
+
props.configure.props.base.templateFiles = [];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return (_ctx, _cache) => {
|
|
64
|
+
const _component_el_option = resolveComponent("el-option");
|
|
65
|
+
const _component_el_select = resolveComponent("el-select");
|
|
66
|
+
const _component_el_form_item = resolveComponent("el-form-item");
|
|
67
|
+
const _component_el_input = resolveComponent("el-input");
|
|
68
|
+
const _component_el_radio = resolveComponent("el-radio");
|
|
69
|
+
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
70
|
+
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
71
|
+
const _component_el_radio_button = resolveComponent("el-radio-button");
|
|
72
|
+
const _component_el_switch = resolveComponent("el-switch");
|
|
73
|
+
const _component_el_collapse = resolveComponent("el-collapse");
|
|
74
|
+
const _component_el_form = resolveComponent("el-form");
|
|
75
|
+
return openBlock(), createBlock(_component_el_form, {
|
|
76
|
+
"label-width": "80px",
|
|
77
|
+
size: "small"
|
|
78
|
+
}, {
|
|
79
|
+
default: withCtx(() => [
|
|
80
|
+
createVNode(_component_el_collapse, {
|
|
81
|
+
modelValue: openCollapseItems.value,
|
|
82
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => openCollapseItems.value = $event),
|
|
83
|
+
style: { "margin-top": "6px" }
|
|
84
|
+
}, {
|
|
85
|
+
default: withCtx(() => [
|
|
86
|
+
createVNode(_component_el_collapse_item, {
|
|
87
|
+
title: "基本",
|
|
88
|
+
name: "base",
|
|
89
|
+
class: "amb-design-attr-group-header"
|
|
90
|
+
}, {
|
|
91
|
+
default: withCtx(() => [
|
|
92
|
+
createElementVNode("div", _hoisted_1, [
|
|
93
|
+
createVNode(_component_el_form_item, {
|
|
94
|
+
label: "组件类型",
|
|
95
|
+
class: "amb-design-attr-item"
|
|
96
|
+
}, {
|
|
97
|
+
default: withCtx(() => [
|
|
98
|
+
createVNode(_component_el_select, {
|
|
99
|
+
modelValue: __props.configure.name,
|
|
100
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
|
|
101
|
+
placeholder: "请选择"
|
|
102
|
+
}, {
|
|
103
|
+
default: withCtx(() => [
|
|
104
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getFormComponentOptions)(), (item) => {
|
|
105
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
106
|
+
key: item.name,
|
|
107
|
+
label: item.label,
|
|
108
|
+
value: item.name
|
|
109
|
+
}, null, 8, ["label", "value"]);
|
|
110
|
+
}), 128))
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}, 8, ["modelValue"])
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
}),
|
|
117
|
+
createVNode(_component_el_form_item, {
|
|
118
|
+
label: "唯一编码",
|
|
119
|
+
class: "amb-design-attr-item"
|
|
120
|
+
}, {
|
|
121
|
+
default: withCtx(() => [
|
|
122
|
+
createVNode(_component_el_input, {
|
|
123
|
+
modelValue: __props.configure.uuid,
|
|
124
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.configure.uuid = $event),
|
|
125
|
+
readonly: "",
|
|
126
|
+
title: __props.configure.uuid
|
|
127
|
+
}, null, 8, ["modelValue", "title"])
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
}),
|
|
131
|
+
createVNode(_component_el_form_item, {
|
|
132
|
+
label: "自定义编码",
|
|
133
|
+
class: "amb-design-attr-item"
|
|
134
|
+
}, {
|
|
135
|
+
default: withCtx(() => [
|
|
136
|
+
createVNode(_component_el_input, {
|
|
137
|
+
modelValue: __props.configure.code,
|
|
138
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.configure.code = $event),
|
|
139
|
+
placeholder: "请输入"
|
|
140
|
+
}, null, 8, ["modelValue"])
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}),
|
|
144
|
+
createVNode(_component_el_form_item, {
|
|
145
|
+
label: "绑定权限",
|
|
146
|
+
class: "amb-design-attr-item"
|
|
147
|
+
}, {
|
|
148
|
+
default: withCtx(() => [
|
|
149
|
+
(openBlock(), createBlock(_sfc_main$1, {
|
|
150
|
+
key: __props.configure.uuid,
|
|
151
|
+
configure: __props.configure
|
|
152
|
+
}, null, 8, ["configure"]))
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}),
|
|
156
|
+
createVNode(_component_el_form_item, {
|
|
157
|
+
label: "标题",
|
|
158
|
+
class: "amb-design-attr-item"
|
|
159
|
+
}, {
|
|
160
|
+
default: withCtx(() => [
|
|
161
|
+
createVNode(_component_el_input, {
|
|
162
|
+
modelValue: __props.configure.props.base.title,
|
|
163
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.configure.props.base.title = $event),
|
|
164
|
+
placeholder: "请输入"
|
|
165
|
+
}, null, 8, ["modelValue"])
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
}),
|
|
169
|
+
createVNode(_component_el_form_item, {
|
|
170
|
+
label: "尺寸",
|
|
171
|
+
class: "amb-design-attr-item"
|
|
172
|
+
}, {
|
|
173
|
+
default: withCtx(() => [
|
|
174
|
+
createVNode(_component_el_radio_group, {
|
|
175
|
+
modelValue: __props.configure.props.base.size,
|
|
176
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.configure.props.base.size = $event),
|
|
177
|
+
class: "ml-4"
|
|
178
|
+
}, {
|
|
179
|
+
default: withCtx(() => [
|
|
180
|
+
createVNode(_component_el_radio, { value: "large" }, {
|
|
181
|
+
default: withCtx(() => [
|
|
182
|
+
createTextVNode("大")
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}),
|
|
186
|
+
createVNode(_component_el_radio, { value: "default" }, {
|
|
187
|
+
default: withCtx(() => [
|
|
188
|
+
createTextVNode("中")
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}),
|
|
192
|
+
createVNode(_component_el_radio, { value: "small" }, {
|
|
193
|
+
default: withCtx(() => [
|
|
194
|
+
createTextVNode("小")
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
})
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
}, 8, ["modelValue"])
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}),
|
|
204
|
+
createVNode(_component_el_form_item, {
|
|
205
|
+
label: "状态",
|
|
206
|
+
class: "amb-design-attr-item"
|
|
207
|
+
}, {
|
|
208
|
+
default: withCtx(() => [
|
|
209
|
+
createVNode(_component_el_radio_group, {
|
|
210
|
+
modelValue: __props.configure.props.base.state,
|
|
211
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.configure.props.base.state = $event),
|
|
212
|
+
class: "ml-4"
|
|
213
|
+
}, {
|
|
214
|
+
default: withCtx(() => [
|
|
215
|
+
createVNode(_component_el_radio, { value: "default" }, {
|
|
216
|
+
default: withCtx(() => [
|
|
217
|
+
createTextVNode("普通")
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}),
|
|
221
|
+
createVNode(_component_el_radio, { value: "disabled" }, {
|
|
222
|
+
default: withCtx(() => [
|
|
223
|
+
createTextVNode("禁用")
|
|
224
|
+
]),
|
|
225
|
+
_: 1
|
|
226
|
+
})
|
|
227
|
+
]),
|
|
228
|
+
_: 1
|
|
229
|
+
}, 8, ["modelValue"])
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
}),
|
|
233
|
+
createVNode(_component_el_form_item, {
|
|
234
|
+
label: "模板",
|
|
235
|
+
class: "amb-design-attr-item"
|
|
236
|
+
}, {
|
|
237
|
+
default: withCtx(() => [
|
|
238
|
+
createVNode(_component_el_select, {
|
|
239
|
+
modelValue: templateFileUuids.value,
|
|
240
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => templateFileUuids.value = $event),
|
|
241
|
+
multiple: "",
|
|
242
|
+
onChange: templateFilesChange
|
|
243
|
+
}, {
|
|
244
|
+
default: withCtx(() => [
|
|
245
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(templateList.value, (item) => {
|
|
246
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
247
|
+
key: item.uuid,
|
|
248
|
+
label: item.fileName,
|
|
249
|
+
value: item.uuid
|
|
250
|
+
}, null, 8, ["label", "value"]);
|
|
251
|
+
}), 128))
|
|
252
|
+
]),
|
|
253
|
+
_: 1
|
|
254
|
+
}, 8, ["modelValue"])
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
})
|
|
258
|
+
])
|
|
259
|
+
]),
|
|
260
|
+
_: 1
|
|
261
|
+
}),
|
|
262
|
+
createVNode(_component_el_collapse_item, {
|
|
263
|
+
title: "外观",
|
|
264
|
+
name: "appearance",
|
|
265
|
+
class: "amb-design-attr-group-header"
|
|
266
|
+
}, {
|
|
267
|
+
default: withCtx(() => [
|
|
268
|
+
createElementVNode("div", _hoisted_2, [
|
|
269
|
+
createVNode(_component_el_form_item, {
|
|
270
|
+
label: "按钮类型",
|
|
271
|
+
class: "amb-design-attr-item"
|
|
272
|
+
}, {
|
|
273
|
+
default: withCtx(() => [
|
|
274
|
+
createVNode(_component_el_select, {
|
|
275
|
+
modelValue: __props.configure.props.base.type,
|
|
276
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => __props.configure.props.base.type = $event),
|
|
277
|
+
class: "ml-4",
|
|
278
|
+
clearable: ""
|
|
279
|
+
}, {
|
|
280
|
+
default: withCtx(() => [
|
|
281
|
+
createVNode(_component_el_option, {
|
|
282
|
+
label: "primary",
|
|
283
|
+
value: "primary"
|
|
284
|
+
}),
|
|
285
|
+
createVNode(_component_el_option, {
|
|
286
|
+
label: "success",
|
|
287
|
+
value: "success"
|
|
288
|
+
}),
|
|
289
|
+
createVNode(_component_el_option, {
|
|
290
|
+
label: "warning",
|
|
291
|
+
value: "warning"
|
|
292
|
+
}),
|
|
293
|
+
createVNode(_component_el_option, {
|
|
294
|
+
label: "danger",
|
|
295
|
+
value: "danger"
|
|
296
|
+
}),
|
|
297
|
+
createVNode(_component_el_option, {
|
|
298
|
+
label: "info",
|
|
299
|
+
value: "info"
|
|
300
|
+
})
|
|
301
|
+
]),
|
|
302
|
+
_: 1
|
|
303
|
+
}, 8, ["modelValue"])
|
|
304
|
+
]),
|
|
305
|
+
_: 1
|
|
306
|
+
}),
|
|
307
|
+
createVNode(_component_el_form_item, {
|
|
308
|
+
label: "图标",
|
|
309
|
+
class: "amb-design-attr-item"
|
|
310
|
+
}, {
|
|
311
|
+
default: withCtx(() => [
|
|
312
|
+
(openBlock(), createBlock(_sfc_main$2, {
|
|
313
|
+
key: __props.configure.uuid,
|
|
314
|
+
iconType: __props.configure.props.base.iconType,
|
|
315
|
+
iconValue: __props.configure.props.base.iconValue,
|
|
316
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = (iconType, iconValue) => afterBindIcon(iconType, iconValue))
|
|
317
|
+
}, null, 8, ["iconType", "iconValue"]))
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
}),
|
|
321
|
+
withDirectives(createVNode(_component_el_form_item, {
|
|
322
|
+
label: "图标位置",
|
|
323
|
+
class: "amb-design-attr-item"
|
|
324
|
+
}, {
|
|
325
|
+
default: withCtx(() => [
|
|
326
|
+
createVNode(_component_el_radio_group, {
|
|
327
|
+
modelValue: __props.configure.props.base.iconPosition,
|
|
328
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => __props.configure.props.base.iconPosition = $event),
|
|
329
|
+
class: "ml-4"
|
|
330
|
+
}, {
|
|
331
|
+
default: withCtx(() => [
|
|
332
|
+
createVNode(_component_el_radio_button, { value: "left" }, {
|
|
333
|
+
default: withCtx(() => [
|
|
334
|
+
createTextVNode("标题前")
|
|
335
|
+
]),
|
|
336
|
+
_: 1
|
|
337
|
+
}),
|
|
338
|
+
createVNode(_component_el_radio_button, { value: "right" }, {
|
|
339
|
+
default: withCtx(() => [
|
|
340
|
+
createTextVNode("标题后")
|
|
341
|
+
]),
|
|
342
|
+
_: 1
|
|
343
|
+
})
|
|
344
|
+
]),
|
|
345
|
+
_: 1
|
|
346
|
+
}, 8, ["modelValue"])
|
|
347
|
+
]),
|
|
348
|
+
_: 1
|
|
349
|
+
}, 512), [
|
|
350
|
+
[vShow, __props.configure.props.base.iconValue]
|
|
351
|
+
]),
|
|
352
|
+
createVNode(_component_el_form_item, {
|
|
353
|
+
label: "文字按钮",
|
|
354
|
+
class: "amb-design-attr-item"
|
|
355
|
+
}, {
|
|
356
|
+
default: withCtx(() => [
|
|
357
|
+
createVNode(_component_el_radio_group, {
|
|
358
|
+
modelValue: __props.configure.props.base.text,
|
|
359
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => __props.configure.props.base.text = $event),
|
|
360
|
+
class: "ml-4"
|
|
361
|
+
}, {
|
|
362
|
+
default: withCtx(() => [
|
|
363
|
+
createVNode(_component_el_radio, { value: true }, {
|
|
364
|
+
default: withCtx(() => [
|
|
365
|
+
createTextVNode("是")
|
|
366
|
+
]),
|
|
367
|
+
_: 1
|
|
368
|
+
}),
|
|
369
|
+
createVNode(_component_el_radio, { value: false }, {
|
|
370
|
+
default: withCtx(() => [
|
|
371
|
+
createTextVNode("否")
|
|
372
|
+
]),
|
|
373
|
+
_: 1
|
|
374
|
+
})
|
|
375
|
+
]),
|
|
376
|
+
_: 1
|
|
377
|
+
}, 8, ["modelValue"])
|
|
378
|
+
]),
|
|
379
|
+
_: 1
|
|
380
|
+
}),
|
|
381
|
+
createVNode(_component_el_form_item, {
|
|
382
|
+
label: "朴素按钮",
|
|
383
|
+
class: "amb-design-attr-item"
|
|
384
|
+
}, {
|
|
385
|
+
default: withCtx(() => [
|
|
386
|
+
createVNode(_component_el_radio_group, {
|
|
387
|
+
modelValue: __props.configure.props.base.plain,
|
|
388
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => __props.configure.props.base.plain = $event),
|
|
389
|
+
class: "ml-4"
|
|
390
|
+
}, {
|
|
391
|
+
default: withCtx(() => [
|
|
392
|
+
createVNode(_component_el_radio, { value: true }, {
|
|
393
|
+
default: withCtx(() => [
|
|
394
|
+
createTextVNode("是")
|
|
395
|
+
]),
|
|
396
|
+
_: 1
|
|
397
|
+
}),
|
|
398
|
+
createVNode(_component_el_radio, { value: false }, {
|
|
399
|
+
default: withCtx(() => [
|
|
400
|
+
createTextVNode("否")
|
|
401
|
+
]),
|
|
402
|
+
_: 1
|
|
403
|
+
})
|
|
404
|
+
]),
|
|
405
|
+
_: 1
|
|
406
|
+
}, 8, ["modelValue"])
|
|
407
|
+
]),
|
|
408
|
+
_: 1
|
|
409
|
+
}),
|
|
410
|
+
createVNode(_component_el_form_item, {
|
|
411
|
+
label: "圆角按钮",
|
|
412
|
+
class: "amb-design-attr-item"
|
|
413
|
+
}, {
|
|
414
|
+
default: withCtx(() => [
|
|
415
|
+
createVNode(_component_el_radio_group, {
|
|
416
|
+
modelValue: __props.configure.props.base.round,
|
|
417
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => __props.configure.props.base.round = $event),
|
|
418
|
+
class: "ml-4"
|
|
419
|
+
}, {
|
|
420
|
+
default: withCtx(() => [
|
|
421
|
+
createVNode(_component_el_radio, { value: true }, {
|
|
422
|
+
default: withCtx(() => [
|
|
423
|
+
createTextVNode("是")
|
|
424
|
+
]),
|
|
425
|
+
_: 1
|
|
426
|
+
}),
|
|
427
|
+
createVNode(_component_el_radio, { value: false }, {
|
|
428
|
+
default: withCtx(() => [
|
|
429
|
+
createTextVNode("否")
|
|
430
|
+
]),
|
|
431
|
+
_: 1
|
|
432
|
+
})
|
|
433
|
+
]),
|
|
434
|
+
_: 1
|
|
435
|
+
}, 8, ["modelValue"])
|
|
436
|
+
]),
|
|
437
|
+
_: 1
|
|
438
|
+
}),
|
|
439
|
+
createVNode(_component_el_form_item, {
|
|
440
|
+
label: "加载状态",
|
|
441
|
+
class: "amb-design-attr-item"
|
|
442
|
+
}, {
|
|
443
|
+
default: withCtx(() => [
|
|
444
|
+
createVNode(_component_el_radio_group, {
|
|
445
|
+
modelValue: __props.configure.props.base.loading,
|
|
446
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => __props.configure.props.base.loading = $event),
|
|
447
|
+
class: "ml-4"
|
|
448
|
+
}, {
|
|
449
|
+
default: withCtx(() => [
|
|
450
|
+
createVNode(_component_el_radio, { value: true }, {
|
|
451
|
+
default: withCtx(() => [
|
|
452
|
+
createTextVNode("是")
|
|
453
|
+
]),
|
|
454
|
+
_: 1
|
|
455
|
+
}),
|
|
456
|
+
createVNode(_component_el_radio, { value: false }, {
|
|
457
|
+
default: withCtx(() => [
|
|
458
|
+
createTextVNode("否")
|
|
459
|
+
]),
|
|
460
|
+
_: 1
|
|
461
|
+
})
|
|
462
|
+
]),
|
|
463
|
+
_: 1
|
|
464
|
+
}, 8, ["modelValue"])
|
|
465
|
+
]),
|
|
466
|
+
_: 1
|
|
467
|
+
}),
|
|
468
|
+
createVNode(_component_el_form_item, {
|
|
469
|
+
label: "默认聚焦",
|
|
470
|
+
class: "amb-design-attr-item"
|
|
471
|
+
}, {
|
|
472
|
+
default: withCtx(() => [
|
|
473
|
+
createVNode(_component_el_radio_group, {
|
|
474
|
+
modelValue: __props.configure.props.base.focus,
|
|
475
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => __props.configure.props.base.focus = $event),
|
|
476
|
+
class: "ml-4"
|
|
477
|
+
}, {
|
|
478
|
+
default: withCtx(() => [
|
|
479
|
+
createVNode(_component_el_radio, { value: true }, {
|
|
480
|
+
default: withCtx(() => [
|
|
481
|
+
createTextVNode("是")
|
|
482
|
+
]),
|
|
483
|
+
_: 1
|
|
484
|
+
}),
|
|
485
|
+
createVNode(_component_el_radio, { value: false }, {
|
|
486
|
+
default: withCtx(() => [
|
|
487
|
+
createTextVNode("否")
|
|
488
|
+
]),
|
|
489
|
+
_: 1
|
|
490
|
+
})
|
|
491
|
+
]),
|
|
492
|
+
_: 1
|
|
493
|
+
}, 8, ["modelValue"])
|
|
494
|
+
]),
|
|
495
|
+
_: 1
|
|
496
|
+
}),
|
|
497
|
+
createVNode(_component_el_form_item, {
|
|
498
|
+
label: "原生type",
|
|
499
|
+
class: "amb-design-attr-item"
|
|
500
|
+
}, {
|
|
501
|
+
default: withCtx(() => [
|
|
502
|
+
createVNode(_component_el_radio_group, {
|
|
503
|
+
modelValue: __props.configure.props.base.originalType,
|
|
504
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => __props.configure.props.base.originalType = $event),
|
|
505
|
+
class: "ml-4"
|
|
506
|
+
}, {
|
|
507
|
+
default: withCtx(() => [
|
|
508
|
+
createVNode(_component_el_radio, { value: "button" }, {
|
|
509
|
+
default: withCtx(() => [
|
|
510
|
+
createTextVNode("button")
|
|
511
|
+
]),
|
|
512
|
+
_: 1
|
|
513
|
+
}),
|
|
514
|
+
createVNode(_component_el_radio, { value: "submit" }, {
|
|
515
|
+
default: withCtx(() => [
|
|
516
|
+
createTextVNode("submit")
|
|
517
|
+
]),
|
|
518
|
+
_: 1
|
|
519
|
+
}),
|
|
520
|
+
createVNode(_component_el_radio, { value: "reset" }, {
|
|
521
|
+
default: withCtx(() => [
|
|
522
|
+
createTextVNode("reset")
|
|
523
|
+
]),
|
|
524
|
+
_: 1
|
|
525
|
+
})
|
|
526
|
+
]),
|
|
527
|
+
_: 1
|
|
528
|
+
}, 8, ["modelValue"])
|
|
529
|
+
]),
|
|
530
|
+
_: 1
|
|
531
|
+
})
|
|
532
|
+
])
|
|
533
|
+
]),
|
|
534
|
+
_: 1
|
|
535
|
+
}),
|
|
536
|
+
createVNode(_component_el_collapse_item, {
|
|
537
|
+
title: "其他设置",
|
|
538
|
+
name: "otherSettings",
|
|
539
|
+
class: "amb-design-attr-group-header"
|
|
540
|
+
}, {
|
|
541
|
+
default: withCtx(() => [
|
|
542
|
+
createElementVNode("div", _hoisted_3, [
|
|
543
|
+
createVNode(_component_el_form_item, {
|
|
544
|
+
label: "权限保护",
|
|
545
|
+
class: "amb-design-attr-item"
|
|
546
|
+
}, {
|
|
547
|
+
default: withCtx(() => [
|
|
548
|
+
createVNode(_component_el_switch, {
|
|
549
|
+
modelValue: __props.configure.props.base.isPermission,
|
|
550
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => __props.configure.props.base.isPermission = $event),
|
|
551
|
+
size: "default"
|
|
552
|
+
}, null, 8, ["modelValue"])
|
|
553
|
+
]),
|
|
554
|
+
_: 1
|
|
555
|
+
})
|
|
556
|
+
])
|
|
557
|
+
]),
|
|
558
|
+
_: 1
|
|
559
|
+
})
|
|
560
|
+
]),
|
|
561
|
+
_: 1
|
|
562
|
+
}, 8, ["modelValue"])
|
|
563
|
+
]),
|
|
564
|
+
_: 1
|
|
565
|
+
});
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
export {
|
|
570
|
+
_sfc_main as default
|
|
571
|
+
};
|
package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-event.vue.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createVNode } from "vue";
|
|
2
|
+
import AttrEvent from "../../form/common/attr-event.vue.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "exportpdf-attr-event",
|
|
5
|
+
props: {
|
|
6
|
+
configure: Object
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const props = __props;
|
|
10
|
+
const events = ref([]);
|
|
11
|
+
watch(() => props.configure.events, (newVal) => {
|
|
12
|
+
events.value = props.configure.events;
|
|
13
|
+
}, { immediate: true });
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
const _component_el_form = resolveComponent("el-form");
|
|
16
|
+
return openBlock(), createBlock(_component_el_form, {
|
|
17
|
+
"label-width": "80px",
|
|
18
|
+
size: "small"
|
|
19
|
+
}, {
|
|
20
|
+
default: withCtx(() => [
|
|
21
|
+
createVNode(AttrEvent, {
|
|
22
|
+
configure: __props.configure,
|
|
23
|
+
events: events.value
|
|
24
|
+
}, null, 8, ["configure", "events"])
|
|
25
|
+
]),
|
|
26
|
+
_: 1
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
_sfc_main as default
|
|
33
|
+
};
|
package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-style.vue.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode } from "vue";
|
|
2
|
+
import _sfc_main$1 from "../../form/common/attr-style.vue.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "exportpdf-attr-style",
|
|
5
|
+
props: {
|
|
6
|
+
configure: Object
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const blankOption = {
|
|
10
|
+
showTittleFont: false,
|
|
11
|
+
// 是否显示标题字体
|
|
12
|
+
showBackground: false,
|
|
13
|
+
// 是否显示背景
|
|
14
|
+
showBorder: true,
|
|
15
|
+
// 是否显示边框
|
|
16
|
+
showShadow: true,
|
|
17
|
+
// 是否显示阴影
|
|
18
|
+
showCursor: true,
|
|
19
|
+
// 是否显示鼠标手势
|
|
20
|
+
showClass: true,
|
|
21
|
+
// 是否显示class
|
|
22
|
+
showCustom: true
|
|
23
|
+
// 是否显示自定义
|
|
24
|
+
};
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
const _component_el_collapse = resolveComponent("el-collapse");
|
|
27
|
+
const _component_el_form = resolveComponent("el-form");
|
|
28
|
+
return openBlock(), createBlock(_component_el_form, {
|
|
29
|
+
"label-width": "80px",
|
|
30
|
+
size: "small"
|
|
31
|
+
}, {
|
|
32
|
+
default: withCtx(() => [
|
|
33
|
+
createVNode(_component_el_collapse, { style: { "margin-top": "6px" } }, {
|
|
34
|
+
default: withCtx(() => [
|
|
35
|
+
createVNode(_sfc_main$1, {
|
|
36
|
+
blankOption,
|
|
37
|
+
configure: __props.configure
|
|
38
|
+
}, null, 8, ["configure"])
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
})
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
_sfc_main as default
|
|
50
|
+
};
|