@fecp/designer 5.4.1 → 5.4.3
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/designer/package.json.mjs +1 -1
- package/es/designer/src/components/ValueSelector.vue.mjs +191 -0
- package/es/designer/src/packages/table/tableSummary.vue.mjs +1 -1
- package/es/designer.css +18 -18
- package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +2 -2
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/ValueSelector.vue.js +191 -0
- package/lib/designer/src/packages/table/tableSummary.vue.js +1 -1
- package/lib/designer.css +18 -18
- package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { computed, createBlock, openBlock, resolveDynamicComponent, withCtx, createVNode } from "vue";
|
|
2
|
+
import "../../../node_modules/element-plus/es/index.mjs";
|
|
3
|
+
import ValueSelectorPopover from "./ValueSelectorPopover.vue2.mjs";
|
|
4
|
+
import { getEditConfigData, getEditConfigDataFields } from "../packages/utils/common.mjs";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
+
import { ElInputTag } from "../../../node_modules/element-plus/es/components/input-tag/index.mjs";
|
|
8
|
+
import { ElInput } from "../../../node_modules/element-plus/es/components/input/index.mjs";
|
|
9
|
+
const _sfc_main = {
|
|
10
|
+
__name: "ValueSelector",
|
|
11
|
+
props: {
|
|
12
|
+
// modelValue 的格式:
|
|
13
|
+
// 单选:{ type: 'field', value: '字段ID' }
|
|
14
|
+
// 多选:[{ type: 'field', value: '字段ID1' }, { type: 'field', value: '字段ID2' }]
|
|
15
|
+
modelValue: {
|
|
16
|
+
default: () => null
|
|
17
|
+
},
|
|
18
|
+
placeholder: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "请输入或选择值"
|
|
21
|
+
},
|
|
22
|
+
readOnly: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
25
|
+
},
|
|
26
|
+
disabled: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: false
|
|
29
|
+
},
|
|
30
|
+
multiple: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: false
|
|
33
|
+
},
|
|
34
|
+
size: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "small"
|
|
37
|
+
}
|
|
38
|
+
// // 可选的字段列表(从父组件传入)
|
|
39
|
+
// availableFields: {
|
|
40
|
+
// type: Array,
|
|
41
|
+
// default: () => [],
|
|
42
|
+
// validator: (value) => Array.isArray(value),
|
|
43
|
+
// },
|
|
44
|
+
},
|
|
45
|
+
emits: ["update:modelValue"],
|
|
46
|
+
setup(__props, { emit: __emit }) {
|
|
47
|
+
const props = __props;
|
|
48
|
+
const emit = __emit;
|
|
49
|
+
const inputComponent = computed(() => {
|
|
50
|
+
return props.multiple ? ElInputTag : ElInput;
|
|
51
|
+
});
|
|
52
|
+
const hiddenFieldsData = computed(() => {
|
|
53
|
+
const editConfigData = getEditConfigData();
|
|
54
|
+
return (editConfigData == null ? void 0 : editConfigData.hiddenFields) || [];
|
|
55
|
+
});
|
|
56
|
+
const availableFields = computed(() => {
|
|
57
|
+
const fields = getEditConfigDataFields() || [];
|
|
58
|
+
return fields.map((item) => ({
|
|
59
|
+
id: item.id,
|
|
60
|
+
label: item.label,
|
|
61
|
+
fieldName: item.fieldName,
|
|
62
|
+
fieldType: item.fieldType
|
|
63
|
+
}));
|
|
64
|
+
});
|
|
65
|
+
const displayText = computed(() => {
|
|
66
|
+
if (!props.modelValue) return "";
|
|
67
|
+
if (!props.multiple && typeof props.modelValue === "object" && !Array.isArray(props.modelValue)) {
|
|
68
|
+
const val = props.modelValue;
|
|
69
|
+
if (val.label) return val.label;
|
|
70
|
+
const field = availableFields.value.find((f) => f.id === val.value);
|
|
71
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || val.value;
|
|
72
|
+
} else if (!props.multiple && typeof props.modelValue === "string") {
|
|
73
|
+
return props.modelValue;
|
|
74
|
+
}
|
|
75
|
+
return "";
|
|
76
|
+
});
|
|
77
|
+
const tags = computed({
|
|
78
|
+
get() {
|
|
79
|
+
if (!props.multiple || !Array.isArray(props.modelValue)) {
|
|
80
|
+
return [];
|
|
81
|
+
}
|
|
82
|
+
return props.modelValue.map((item) => {
|
|
83
|
+
if (item.label) return item.label;
|
|
84
|
+
const field = availableFields.value.find((f) => f.id === item.value);
|
|
85
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || item.value;
|
|
86
|
+
}).filter(Boolean);
|
|
87
|
+
},
|
|
88
|
+
set(val) {
|
|
89
|
+
if (Array.isArray(props.modelValue)) {
|
|
90
|
+
const newModelValue = props.modelValue.filter((item) => {
|
|
91
|
+
const itemLabel = item.label || (() => {
|
|
92
|
+
const field = [
|
|
93
|
+
...availableFields.value,
|
|
94
|
+
...hiddenFieldsData.value
|
|
95
|
+
].find((f) => f.id === item.value);
|
|
96
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || item.value;
|
|
97
|
+
})();
|
|
98
|
+
return val.includes(itemLabel);
|
|
99
|
+
});
|
|
100
|
+
emit("update:modelValue", newModelValue);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
const unifiedInputValue = computed({
|
|
105
|
+
get() {
|
|
106
|
+
return props.multiple ? tags.value : displayText.value;
|
|
107
|
+
},
|
|
108
|
+
set(val) {
|
|
109
|
+
if (props.multiple && Array.isArray(val)) {
|
|
110
|
+
tags.value = val;
|
|
111
|
+
} else if (!props.multiple && typeof val === "string") {
|
|
112
|
+
emit("update:modelValue", val);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
const handleConfirm = (selected) => {
|
|
117
|
+
let result = null;
|
|
118
|
+
if (selected.type === "field") {
|
|
119
|
+
const field = [...availableFields.value, ...hiddenFieldsData.value].find(
|
|
120
|
+
(f) => f.id === selected.value
|
|
121
|
+
);
|
|
122
|
+
result = {
|
|
123
|
+
label: `\${${(field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || selected.value}}`,
|
|
124
|
+
type: "field",
|
|
125
|
+
value: selected.value
|
|
126
|
+
};
|
|
127
|
+
} else if (selected.type === "userInfo") {
|
|
128
|
+
result = {
|
|
129
|
+
label: `\${用户信息: ${getUserInfoLabel(selected.value)}}`,
|
|
130
|
+
type: "userInfo",
|
|
131
|
+
value: selected.value
|
|
132
|
+
};
|
|
133
|
+
} else if (selected.type === "urlParam") {
|
|
134
|
+
result = {
|
|
135
|
+
label: `\${路由参数: ${selected.value}}`,
|
|
136
|
+
type: "urlParam",
|
|
137
|
+
value: selected.value
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
if (!result) return;
|
|
141
|
+
if (props.multiple) {
|
|
142
|
+
const currentValue = Array.isArray(props.modelValue) ? props.modelValue : [];
|
|
143
|
+
const exists = currentValue.some((item) => item.value === result.value);
|
|
144
|
+
if (!exists) {
|
|
145
|
+
emit("update:modelValue", [...currentValue, result]);
|
|
146
|
+
}
|
|
147
|
+
} else {
|
|
148
|
+
emit("update:modelValue", result);
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
const getUserInfoLabel = (key) => {
|
|
152
|
+
const labels = {
|
|
153
|
+
userCode: "用户编号",
|
|
154
|
+
userName: "用户名称",
|
|
155
|
+
roleCode: "角色编号",
|
|
156
|
+
roleName: "角色名称",
|
|
157
|
+
orgCode: "机构编号",
|
|
158
|
+
orgName: "机构名称"
|
|
159
|
+
};
|
|
160
|
+
return labels[key] || key;
|
|
161
|
+
};
|
|
162
|
+
return (_ctx, _cache) => {
|
|
163
|
+
return openBlock(), createBlock(resolveDynamicComponent(inputComponent.value), {
|
|
164
|
+
modelValue: unifiedInputValue.value,
|
|
165
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unifiedInputValue.value = $event),
|
|
166
|
+
placeholder: __props.placeholder,
|
|
167
|
+
disabled: __props.disabled,
|
|
168
|
+
readonly: __props.readOnly,
|
|
169
|
+
trigger: __props.multiple ? "Space" : void 0,
|
|
170
|
+
"collapse-tags": "",
|
|
171
|
+
"collapse-tags-tooltip": "",
|
|
172
|
+
"max-collapse-tags": 1,
|
|
173
|
+
class: "value-selector-input",
|
|
174
|
+
size: __props.size
|
|
175
|
+
}, {
|
|
176
|
+
suffix: withCtx(() => [
|
|
177
|
+
createVNode(ValueSelectorPopover, {
|
|
178
|
+
"available-fields": availableFields.value,
|
|
179
|
+
disabled: __props.disabled,
|
|
180
|
+
onConfirm: handleConfirm
|
|
181
|
+
}, null, 8, ["available-fields", "disabled"])
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
}, 8, ["modelValue", "placeholder", "disabled", "readonly", "trigger", "size"]);
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
const ValueSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e5b87efa"]]);
|
|
189
|
+
export {
|
|
190
|
+
ValueSelector as default
|
|
191
|
+
};
|
|
@@ -106,7 +106,7 @@ const _sfc_main = {
|
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
|
-
const TableSummary = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
109
|
+
const TableSummary = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-16eca1ad"]]);
|
|
110
110
|
export {
|
|
111
111
|
TableSummary as default
|
|
112
112
|
};
|
package/es/designer.css
CHANGED
|
@@ -3933,13 +3933,13 @@ to {
|
|
|
3933
3933
|
margin-left: 8px;
|
|
3934
3934
|
}
|
|
3935
3935
|
|
|
3936
|
-
.table-summary-config[data-v-
|
|
3936
|
+
.table-summary-config[data-v-16eca1ad] {
|
|
3937
3937
|
position: relative;
|
|
3938
|
-
margin: 0
|
|
3939
|
-
margin-top: -49px;
|
|
3938
|
+
margin: 0 18px;
|
|
3939
|
+
/* margin-top: -49px; */
|
|
3940
3940
|
margin-bottom: 16px;
|
|
3941
3941
|
}
|
|
3942
|
-
.config-row[data-v-
|
|
3942
|
+
.config-row[data-v-16eca1ad] {
|
|
3943
3943
|
display: flex;
|
|
3944
3944
|
align-items: center;
|
|
3945
3945
|
flex-wrap: wrap;
|
|
@@ -3947,10 +3947,10 @@ to {
|
|
|
3947
3947
|
padding: 8px 12px;
|
|
3948
3948
|
background: #f5f7fa;
|
|
3949
3949
|
border-radius: 4px;
|
|
3950
|
-
border-top-left-radius: 0;
|
|
3951
|
-
border-top-right-radius: 0;
|
|
3950
|
+
/* border-top-left-radius: 0;
|
|
3951
|
+
border-top-right-radius: 0; */
|
|
3952
3952
|
}
|
|
3953
|
-
.config-label[data-v-
|
|
3953
|
+
.config-label[data-v-16eca1ad] {
|
|
3954
3954
|
font-size: 13px;
|
|
3955
3955
|
color: #606266;
|
|
3956
3956
|
margin-right: 4px;
|
|
@@ -5669,27 +5669,27 @@ body,
|
|
|
5669
5669
|
width: 80px;
|
|
5670
5670
|
font-size: var(--el-font-size-extra-small);
|
|
5671
5671
|
}
|
|
5672
|
-
.fec-form[data-v-
|
|
5672
|
+
.fec-form[data-v-c9bc9779] {
|
|
5673
5673
|
height: 100%;
|
|
5674
5674
|
}
|
|
5675
|
-
[data-v-
|
|
5675
|
+
[data-v-c9bc9779] .vgl-item {
|
|
5676
5676
|
transition: none;
|
|
5677
5677
|
}
|
|
5678
|
-
[data-v-
|
|
5678
|
+
[data-v-c9bc9779] .vgl-item > .el-form-item {
|
|
5679
5679
|
width: 100%;
|
|
5680
5680
|
padding: 12px 8px 0 8px;
|
|
5681
5681
|
height: calc(100% - 15px);
|
|
5682
5682
|
display: flex;
|
|
5683
5683
|
}
|
|
5684
|
-
[data-v-
|
|
5684
|
+
[data-v-c9bc9779] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5685
5685
|
flex-direction: column;
|
|
5686
5686
|
}
|
|
5687
|
-
[data-v-
|
|
5687
|
+
[data-v-c9bc9779] .vgl-item > .el-form-item .el-form-item__label {
|
|
5688
5688
|
line-height: 20px;
|
|
5689
5689
|
display: flex;
|
|
5690
5690
|
align-items: center;
|
|
5691
5691
|
}
|
|
5692
|
-
[data-v-
|
|
5692
|
+
[data-v-c9bc9779] .vgl-item > .el-container {
|
|
5693
5693
|
height: auto !important;
|
|
5694
5694
|
}.cell-content .cell-text[data-v-3e5372d4] {
|
|
5695
5695
|
display: inline-block;
|
|
@@ -6026,6 +6026,11 @@ body,
|
|
|
6026
6026
|
:root,:host{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: 24px;--van-cell-vertical-padding: 10px;--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background: var(--van-background-2);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: var(--van-padding-base);--van-cell-value-color: var(--van-text-color-2);--van-cell-value-font-size: inherit;--van-cell-icon-size: 16px;--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md);--van-cell-large-value-font-size: inherit}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__title,.van-cell__value{flex:1}.van-cell__value{position:relative;overflow:hidden;color:var(--van-cell-value-color);font-size:var(--van-cell-value-font-size);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__left-icon,.van-cell__right-icon{height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height)}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size)}.van-cell--large .van-cell__value{font-size:var(--van-cell-large-value-font-size)}
|
|
6027
6027
|
:root,:host{--van-cell-group-background: var(--van-background-2);--van-cell-group-title-color: var(--van-text-color-2);--van-cell-group-title-padding: var(--van-padding-md) var(--van-padding-md);--van-cell-group-title-font-size: var(--van-font-size-md);--van-cell-group-title-line-height: 16px;--van-cell-group-inset-padding: 0 var(--van-padding-md);--van-cell-group-inset-radius: var(--van-radius-lg);--van-cell-group-inset-title-padding: var(--van-padding-md) var(--van-padding-md)}.van-cell-group{background:var(--van-cell-group-background)}.van-cell-group--inset{margin:var(--van-cell-group-inset-padding);border-radius:var(--van-cell-group-inset-radius);overflow:hidden}.van-cell-group__title{padding:var(--van-cell-group-title-padding);color:var(--van-cell-group-title-color);font-size:var(--van-cell-group-title-font-size);line-height:var(--van-cell-group-title-line-height)}.van-cell-group__title--inset{padding:var(--van-cell-group-inset-title-padding)}
|
|
6028
6028
|
.van-swipe-cell{position:relative;overflow:hidden;cursor:-webkit-grab;cursor:grab}.van-swipe-cell__wrapper{transition-timing-function:cubic-bezier(.18,.89,.32,1);transition-property:transform}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}
|
|
6029
|
+
:root,:host{--van-action-bar-background: var(--van-background-2);--van-action-bar-height: 50px}.van-action-bar{position:fixed;right:0;bottom:0;left:0;display:flex;align-items:center;box-sizing:content-box;height:var(--van-action-bar-height);background:var(--van-action-bar-background)}
|
|
6030
|
+
:root,:host{--van-action-bar-button-height: 40px;--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:5px;border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:5px;border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media (max-width: 321px){.van-action-bar-button{font-size:13px}}
|
|
6031
|
+
:root,:host{--van-overlay-z-index: 1;--van-overlay-background: rgba(0, 0, 0, .7)}.van-overlay{position:fixed;top:0;left:0;z-index:var(--van-overlay-z-index);width:100%;height:100%;background:var(--van-overlay-background)}
|
|
6032
|
+
:root,:host{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:0;right:0;width:-webkit-fit-content;width:fit-content;max-width:calc(100vw - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
|
|
6033
|
+
:root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
|
|
6029
6034
|
|
|
6030
6035
|
.fec-card[data-v-656fbde7] {
|
|
6031
6036
|
margin: 12px;
|
|
@@ -6033,11 +6038,6 @@ body,
|
|
|
6033
6038
|
.fec-swipe-delete-button[data-v-656fbde7] {
|
|
6034
6039
|
height: 100%;
|
|
6035
6040
|
}
|
|
6036
|
-
:root,:host{--van-action-bar-background: var(--van-background-2);--van-action-bar-height: 50px}.van-action-bar{position:fixed;right:0;bottom:0;left:0;display:flex;align-items:center;box-sizing:content-box;height:var(--van-action-bar-height);background:var(--van-action-bar-background)}
|
|
6037
|
-
:root,:host{--van-action-bar-button-height: 40px;--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:5px;border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:5px;border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media (max-width: 321px){.van-action-bar-button{font-size:13px}}
|
|
6038
|
-
:root,:host{--van-overlay-z-index: 1;--van-overlay-background: rgba(0, 0, 0, .7)}.van-overlay{position:fixed;top:0;left:0;z-index:var(--van-overlay-z-index);width:100%;height:100%;background:var(--van-overlay-background)}
|
|
6039
|
-
:root,:host{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:0;right:0;width:-webkit-fit-content;width:fit-content;max-width:calc(100vw - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
|
|
6040
|
-
:root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
|
|
6041
6041
|
:root,:host{--van-image-placeholder-text-color: var(--van-text-color-2);--van-image-placeholder-font-size: var(--van-font-size-md);--van-image-placeholder-background: var(--van-background);--van-image-loading-icon-size: 32px;--van-image-loading-icon-color: var(--van-gray-4);--van-image-error-icon-size: 32px;--van-image-error-icon-color: var(--van-gray-4)}.van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:var(--van-radius-max)}.van-image--round .van-image__img{border-radius:inherit}.van-image--block{display:block}.van-image__img,.van-image__error,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--van-image-placeholder-text-color);font-size:var(--van-image-placeholder-font-size);background:var(--van-image-placeholder-background)}.van-image__loading-icon{color:var(--van-image-loading-icon-color);font-size:var(--van-image-loading-icon-size)}.van-image__error-icon{color:var(--van-image-error-icon-color);font-size:var(--van-image-error-icon-size)}
|
|
6042
6042
|
|
|
6043
6043
|
.fec-collapse-container[data-v-6037566c] {
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { createBlock, openBlock, withCtx, createVNode, renderSlot } from "vue";
|
|
9
|
-
/* empty css */
|
|
10
|
-
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
11
9
|
/* empty css */
|
|
12
10
|
/* empty css */
|
|
13
11
|
/* empty css */
|
|
14
12
|
/* empty css */
|
|
15
13
|
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
16
16
|
import { SwipeCell } from "../../../../../../node_modules/vant/es/swipe-cell/index.mjs";
|
|
17
17
|
import { showConfirmDialog } from "../../../../../../node_modules/vant/es/dialog/function-call.mjs";
|
|
18
18
|
import "../../../../../../node_modules/vant/es/dialog/index.mjs";
|
|
@@ -146,7 +146,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
146
146
|
"form",
|
|
147
147
|
props.initOption
|
|
148
148
|
);
|
|
149
|
-
emit("loaded", option);
|
|
150
149
|
rowHeight.value = option.labelPosition == "top" ? 1.5 : 1;
|
|
151
150
|
localConfig.value = option;
|
|
152
151
|
if (props.initFormMode) {
|
|
@@ -177,6 +176,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
177
176
|
await pageEvents.executeEvent("onCreated");
|
|
178
177
|
}
|
|
179
178
|
}
|
|
179
|
+
emit("loaded", option);
|
|
180
180
|
} catch (error) {
|
|
181
181
|
console.error("加载配置失败:", error);
|
|
182
182
|
ElMessage.error("加载配置失败");
|
|
@@ -1027,7 +1027,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1027
1027
|
};
|
|
1028
1028
|
}
|
|
1029
1029
|
});
|
|
1030
|
-
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1030
|
+
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c9bc9779"]]);
|
|
1031
1031
|
export {
|
|
1032
1032
|
_Form as default
|
|
1033
1033
|
};
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
require("../../../node_modules/element-plus/es/index.js");
|
|
5
|
+
const ValueSelectorPopover = require("./ValueSelectorPopover.vue2.js");
|
|
6
|
+
const common = require("../packages/utils/common.js");
|
|
7
|
+
;/* empty css */
|
|
8
|
+
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
9
|
+
const index = require("../../../node_modules/element-plus/es/components/input-tag/index.js");
|
|
10
|
+
const index$1 = require("../../../node_modules/element-plus/es/components/input/index.js");
|
|
11
|
+
const _sfc_main = {
|
|
12
|
+
__name: "ValueSelector",
|
|
13
|
+
props: {
|
|
14
|
+
// modelValue 的格式:
|
|
15
|
+
// 单选:{ type: 'field', value: '字段ID' }
|
|
16
|
+
// 多选:[{ type: 'field', value: '字段ID1' }, { type: 'field', value: '字段ID2' }]
|
|
17
|
+
modelValue: {
|
|
18
|
+
default: () => null
|
|
19
|
+
},
|
|
20
|
+
placeholder: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "请输入或选择值"
|
|
23
|
+
},
|
|
24
|
+
readOnly: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false
|
|
27
|
+
},
|
|
28
|
+
disabled: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
},
|
|
32
|
+
multiple: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
size: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "small"
|
|
39
|
+
}
|
|
40
|
+
// // 可选的字段列表(从父组件传入)
|
|
41
|
+
// availableFields: {
|
|
42
|
+
// type: Array,
|
|
43
|
+
// default: () => [],
|
|
44
|
+
// validator: (value) => Array.isArray(value),
|
|
45
|
+
// },
|
|
46
|
+
},
|
|
47
|
+
emits: ["update:modelValue"],
|
|
48
|
+
setup(__props, { emit: __emit }) {
|
|
49
|
+
const props = __props;
|
|
50
|
+
const emit = __emit;
|
|
51
|
+
const inputComponent = vue.computed(() => {
|
|
52
|
+
return props.multiple ? index.ElInputTag : index$1.ElInput;
|
|
53
|
+
});
|
|
54
|
+
const hiddenFieldsData = vue.computed(() => {
|
|
55
|
+
const editConfigData = common.getEditConfigData();
|
|
56
|
+
return (editConfigData == null ? void 0 : editConfigData.hiddenFields) || [];
|
|
57
|
+
});
|
|
58
|
+
const availableFields = vue.computed(() => {
|
|
59
|
+
const fields = common.getEditConfigDataFields() || [];
|
|
60
|
+
return fields.map((item) => ({
|
|
61
|
+
id: item.id,
|
|
62
|
+
label: item.label,
|
|
63
|
+
fieldName: item.fieldName,
|
|
64
|
+
fieldType: item.fieldType
|
|
65
|
+
}));
|
|
66
|
+
});
|
|
67
|
+
const displayText = vue.computed(() => {
|
|
68
|
+
if (!props.modelValue) return "";
|
|
69
|
+
if (!props.multiple && typeof props.modelValue === "object" && !Array.isArray(props.modelValue)) {
|
|
70
|
+
const val = props.modelValue;
|
|
71
|
+
if (val.label) return val.label;
|
|
72
|
+
const field = availableFields.value.find((f) => f.id === val.value);
|
|
73
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || val.value;
|
|
74
|
+
} else if (!props.multiple && typeof props.modelValue === "string") {
|
|
75
|
+
return props.modelValue;
|
|
76
|
+
}
|
|
77
|
+
return "";
|
|
78
|
+
});
|
|
79
|
+
const tags = vue.computed({
|
|
80
|
+
get() {
|
|
81
|
+
if (!props.multiple || !Array.isArray(props.modelValue)) {
|
|
82
|
+
return [];
|
|
83
|
+
}
|
|
84
|
+
return props.modelValue.map((item) => {
|
|
85
|
+
if (item.label) return item.label;
|
|
86
|
+
const field = availableFields.value.find((f) => f.id === item.value);
|
|
87
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || item.value;
|
|
88
|
+
}).filter(Boolean);
|
|
89
|
+
},
|
|
90
|
+
set(val) {
|
|
91
|
+
if (Array.isArray(props.modelValue)) {
|
|
92
|
+
const newModelValue = props.modelValue.filter((item) => {
|
|
93
|
+
const itemLabel = item.label || (() => {
|
|
94
|
+
const field = [
|
|
95
|
+
...availableFields.value,
|
|
96
|
+
...hiddenFieldsData.value
|
|
97
|
+
].find((f) => f.id === item.value);
|
|
98
|
+
return (field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || item.value;
|
|
99
|
+
})();
|
|
100
|
+
return val.includes(itemLabel);
|
|
101
|
+
});
|
|
102
|
+
emit("update:modelValue", newModelValue);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
const unifiedInputValue = vue.computed({
|
|
107
|
+
get() {
|
|
108
|
+
return props.multiple ? tags.value : displayText.value;
|
|
109
|
+
},
|
|
110
|
+
set(val) {
|
|
111
|
+
if (props.multiple && Array.isArray(val)) {
|
|
112
|
+
tags.value = val;
|
|
113
|
+
} else if (!props.multiple && typeof val === "string") {
|
|
114
|
+
emit("update:modelValue", val);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
const handleConfirm = (selected) => {
|
|
119
|
+
let result = null;
|
|
120
|
+
if (selected.type === "field") {
|
|
121
|
+
const field = [...availableFields.value, ...hiddenFieldsData.value].find(
|
|
122
|
+
(f) => f.id === selected.value
|
|
123
|
+
);
|
|
124
|
+
result = {
|
|
125
|
+
label: `\${${(field == null ? void 0 : field.label) || (field == null ? void 0 : field.fieldName) || selected.value}}`,
|
|
126
|
+
type: "field",
|
|
127
|
+
value: selected.value
|
|
128
|
+
};
|
|
129
|
+
} else if (selected.type === "userInfo") {
|
|
130
|
+
result = {
|
|
131
|
+
label: `\${用户信息: ${getUserInfoLabel(selected.value)}}`,
|
|
132
|
+
type: "userInfo",
|
|
133
|
+
value: selected.value
|
|
134
|
+
};
|
|
135
|
+
} else if (selected.type === "urlParam") {
|
|
136
|
+
result = {
|
|
137
|
+
label: `\${路由参数: ${selected.value}}`,
|
|
138
|
+
type: "urlParam",
|
|
139
|
+
value: selected.value
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
if (!result) return;
|
|
143
|
+
if (props.multiple) {
|
|
144
|
+
const currentValue = Array.isArray(props.modelValue) ? props.modelValue : [];
|
|
145
|
+
const exists = currentValue.some((item) => item.value === result.value);
|
|
146
|
+
if (!exists) {
|
|
147
|
+
emit("update:modelValue", [...currentValue, result]);
|
|
148
|
+
}
|
|
149
|
+
} else {
|
|
150
|
+
emit("update:modelValue", result);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
const getUserInfoLabel = (key) => {
|
|
154
|
+
const labels = {
|
|
155
|
+
userCode: "用户编号",
|
|
156
|
+
userName: "用户名称",
|
|
157
|
+
roleCode: "角色编号",
|
|
158
|
+
roleName: "角色名称",
|
|
159
|
+
orgCode: "机构编号",
|
|
160
|
+
orgName: "机构名称"
|
|
161
|
+
};
|
|
162
|
+
return labels[key] || key;
|
|
163
|
+
};
|
|
164
|
+
return (_ctx, _cache) => {
|
|
165
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(inputComponent.value), {
|
|
166
|
+
modelValue: unifiedInputValue.value,
|
|
167
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unifiedInputValue.value = $event),
|
|
168
|
+
placeholder: __props.placeholder,
|
|
169
|
+
disabled: __props.disabled,
|
|
170
|
+
readonly: __props.readOnly,
|
|
171
|
+
trigger: __props.multiple ? "Space" : void 0,
|
|
172
|
+
"collapse-tags": "",
|
|
173
|
+
"collapse-tags-tooltip": "",
|
|
174
|
+
"max-collapse-tags": 1,
|
|
175
|
+
class: "value-selector-input",
|
|
176
|
+
size: __props.size
|
|
177
|
+
}, {
|
|
178
|
+
suffix: vue.withCtx(() => [
|
|
179
|
+
vue.createVNode(ValueSelectorPopover.default, {
|
|
180
|
+
"available-fields": availableFields.value,
|
|
181
|
+
disabled: __props.disabled,
|
|
182
|
+
onConfirm: handleConfirm
|
|
183
|
+
}, null, 8, ["available-fields", "disabled"])
|
|
184
|
+
]),
|
|
185
|
+
_: 1
|
|
186
|
+
}, 8, ["modelValue", "placeholder", "disabled", "readonly", "trigger", "size"]);
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
const ValueSelector = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e5b87efa"]]);
|
|
191
|
+
exports.default = ValueSelector;
|
|
@@ -108,5 +108,5 @@ const _sfc_main = {
|
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
-
const TableSummary = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
111
|
+
const TableSummary = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-16eca1ad"]]);
|
|
112
112
|
exports.default = TableSummary;
|
package/lib/designer.css
CHANGED
|
@@ -3933,13 +3933,13 @@ to {
|
|
|
3933
3933
|
margin-left: 8px;
|
|
3934
3934
|
}
|
|
3935
3935
|
|
|
3936
|
-
.table-summary-config[data-v-
|
|
3936
|
+
.table-summary-config[data-v-16eca1ad] {
|
|
3937
3937
|
position: relative;
|
|
3938
|
-
margin: 0
|
|
3939
|
-
margin-top: -49px;
|
|
3938
|
+
margin: 0 18px;
|
|
3939
|
+
/* margin-top: -49px; */
|
|
3940
3940
|
margin-bottom: 16px;
|
|
3941
3941
|
}
|
|
3942
|
-
.config-row[data-v-
|
|
3942
|
+
.config-row[data-v-16eca1ad] {
|
|
3943
3943
|
display: flex;
|
|
3944
3944
|
align-items: center;
|
|
3945
3945
|
flex-wrap: wrap;
|
|
@@ -3947,10 +3947,10 @@ to {
|
|
|
3947
3947
|
padding: 8px 12px;
|
|
3948
3948
|
background: #f5f7fa;
|
|
3949
3949
|
border-radius: 4px;
|
|
3950
|
-
border-top-left-radius: 0;
|
|
3951
|
-
border-top-right-radius: 0;
|
|
3950
|
+
/* border-top-left-radius: 0;
|
|
3951
|
+
border-top-right-radius: 0; */
|
|
3952
3952
|
}
|
|
3953
|
-
.config-label[data-v-
|
|
3953
|
+
.config-label[data-v-16eca1ad] {
|
|
3954
3954
|
font-size: 13px;
|
|
3955
3955
|
color: #606266;
|
|
3956
3956
|
margin-right: 4px;
|
|
@@ -5669,27 +5669,27 @@ body,
|
|
|
5669
5669
|
width: 80px;
|
|
5670
5670
|
font-size: var(--el-font-size-extra-small);
|
|
5671
5671
|
}
|
|
5672
|
-
.fec-form[data-v-
|
|
5672
|
+
.fec-form[data-v-c9bc9779] {
|
|
5673
5673
|
height: 100%;
|
|
5674
5674
|
}
|
|
5675
|
-
[data-v-
|
|
5675
|
+
[data-v-c9bc9779] .vgl-item {
|
|
5676
5676
|
transition: none;
|
|
5677
5677
|
}
|
|
5678
|
-
[data-v-
|
|
5678
|
+
[data-v-c9bc9779] .vgl-item > .el-form-item {
|
|
5679
5679
|
width: 100%;
|
|
5680
5680
|
padding: 12px 8px 0 8px;
|
|
5681
5681
|
height: calc(100% - 15px);
|
|
5682
5682
|
display: flex;
|
|
5683
5683
|
}
|
|
5684
|
-
[data-v-
|
|
5684
|
+
[data-v-c9bc9779] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5685
5685
|
flex-direction: column;
|
|
5686
5686
|
}
|
|
5687
|
-
[data-v-
|
|
5687
|
+
[data-v-c9bc9779] .vgl-item > .el-form-item .el-form-item__label {
|
|
5688
5688
|
line-height: 20px;
|
|
5689
5689
|
display: flex;
|
|
5690
5690
|
align-items: center;
|
|
5691
5691
|
}
|
|
5692
|
-
[data-v-
|
|
5692
|
+
[data-v-c9bc9779] .vgl-item > .el-container {
|
|
5693
5693
|
height: auto !important;
|
|
5694
5694
|
}.cell-content .cell-text[data-v-3e5372d4] {
|
|
5695
5695
|
display: inline-block;
|
|
@@ -6026,6 +6026,11 @@ body,
|
|
|
6026
6026
|
:root,:host{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: 24px;--van-cell-vertical-padding: 10px;--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background: var(--van-background-2);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: var(--van-padding-base);--van-cell-value-color: var(--van-text-color-2);--van-cell-value-font-size: inherit;--van-cell-icon-size: 16px;--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md);--van-cell-large-value-font-size: inherit}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__title,.van-cell__value{flex:1}.van-cell__value{position:relative;overflow:hidden;color:var(--van-cell-value-color);font-size:var(--van-cell-value-font-size);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__left-icon,.van-cell__right-icon{height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height)}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size)}.van-cell--large .van-cell__value{font-size:var(--van-cell-large-value-font-size)}
|
|
6027
6027
|
:root,:host{--van-cell-group-background: var(--van-background-2);--van-cell-group-title-color: var(--van-text-color-2);--van-cell-group-title-padding: var(--van-padding-md) var(--van-padding-md);--van-cell-group-title-font-size: var(--van-font-size-md);--van-cell-group-title-line-height: 16px;--van-cell-group-inset-padding: 0 var(--van-padding-md);--van-cell-group-inset-radius: var(--van-radius-lg);--van-cell-group-inset-title-padding: var(--van-padding-md) var(--van-padding-md)}.van-cell-group{background:var(--van-cell-group-background)}.van-cell-group--inset{margin:var(--van-cell-group-inset-padding);border-radius:var(--van-cell-group-inset-radius);overflow:hidden}.van-cell-group__title{padding:var(--van-cell-group-title-padding);color:var(--van-cell-group-title-color);font-size:var(--van-cell-group-title-font-size);line-height:var(--van-cell-group-title-line-height)}.van-cell-group__title--inset{padding:var(--van-cell-group-inset-title-padding)}
|
|
6028
6028
|
.van-swipe-cell{position:relative;overflow:hidden;cursor:-webkit-grab;cursor:grab}.van-swipe-cell__wrapper{transition-timing-function:cubic-bezier(.18,.89,.32,1);transition-property:transform}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}
|
|
6029
|
+
:root,:host{--van-action-bar-background: var(--van-background-2);--van-action-bar-height: 50px}.van-action-bar{position:fixed;right:0;bottom:0;left:0;display:flex;align-items:center;box-sizing:content-box;height:var(--van-action-bar-height);background:var(--van-action-bar-background)}
|
|
6030
|
+
:root,:host{--van-action-bar-button-height: 40px;--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:5px;border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:5px;border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media (max-width: 321px){.van-action-bar-button{font-size:13px}}
|
|
6031
|
+
:root,:host{--van-overlay-z-index: 1;--van-overlay-background: rgba(0, 0, 0, .7)}.van-overlay{position:fixed;top:0;left:0;z-index:var(--van-overlay-z-index);width:100%;height:100%;background:var(--van-overlay-background)}
|
|
6032
|
+
:root,:host{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:0;right:0;width:-webkit-fit-content;width:fit-content;max-width:calc(100vw - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
|
|
6033
|
+
:root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
|
|
6029
6034
|
|
|
6030
6035
|
.fec-card[data-v-656fbde7] {
|
|
6031
6036
|
margin: 12px;
|
|
@@ -6033,11 +6038,6 @@ body,
|
|
|
6033
6038
|
.fec-swipe-delete-button[data-v-656fbde7] {
|
|
6034
6039
|
height: 100%;
|
|
6035
6040
|
}
|
|
6036
|
-
:root,:host{--van-action-bar-background: var(--van-background-2);--van-action-bar-height: 50px}.van-action-bar{position:fixed;right:0;bottom:0;left:0;display:flex;align-items:center;box-sizing:content-box;height:var(--van-action-bar-height);background:var(--van-action-bar-background)}
|
|
6037
|
-
:root,:host{--van-action-bar-button-height: 40px;--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:5px;border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:5px;border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media (max-width: 321px){.van-action-bar-button{font-size:13px}}
|
|
6038
|
-
:root,:host{--van-overlay-z-index: 1;--van-overlay-background: rgba(0, 0, 0, .7)}.van-overlay{position:fixed;top:0;left:0;z-index:var(--van-overlay-z-index);width:100%;height:100%;background:var(--van-overlay-background)}
|
|
6039
|
-
:root,:host{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:0;right:0;width:-webkit-fit-content;width:fit-content;max-width:calc(100vw - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
|
|
6040
|
-
:root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
|
|
6041
6041
|
:root,:host{--van-image-placeholder-text-color: var(--van-text-color-2);--van-image-placeholder-font-size: var(--van-font-size-md);--van-image-placeholder-background: var(--van-background);--van-image-loading-icon-size: 32px;--van-image-loading-icon-color: var(--van-gray-4);--van-image-error-icon-size: 32px;--van-image-error-icon-color: var(--van-gray-4)}.van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:var(--van-radius-max)}.van-image--round .van-image__img{border-radius:inherit}.van-image--block{display:block}.van-image__img,.van-image__error,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--van-image-placeholder-text-color);font-size:var(--van-image-placeholder-font-size);background:var(--van-image-placeholder-background)}.van-image__loading-icon{color:var(--van-image-loading-icon-color);font-size:var(--van-image-loading-icon-size)}.van-image__error-icon{color:var(--van-image-error-icon-color);font-size:var(--van-image-error-icon-size)}
|
|
6042
6042
|
|
|
6043
6043
|
.fec-collapse-container[data-v-6037566c] {
|
|
@@ -8,13 +8,13 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
8
8
|
;/* empty css */
|
|
9
9
|
;/* empty css */
|
|
10
10
|
const vue = require("vue");
|
|
11
|
-
;/* empty css */
|
|
12
|
-
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
13
11
|
;/* empty css */
|
|
14
12
|
;/* empty css */
|
|
15
13
|
;/* empty css */
|
|
16
14
|
;/* empty css */
|
|
17
15
|
;/* empty css */
|
|
16
|
+
;/* empty css */
|
|
17
|
+
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
18
18
|
const index$1 = require("../../../../../../node_modules/vant/es/swipe-cell/index.js");
|
|
19
19
|
const functionCall = require("../../../../../../node_modules/vant/es/dialog/function-call.js");
|
|
20
20
|
require("../../../../../../node_modules/vant/es/dialog/index.js");
|
|
@@ -148,7 +148,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
148
148
|
"form",
|
|
149
149
|
props.initOption
|
|
150
150
|
);
|
|
151
|
-
emit("loaded", option);
|
|
152
151
|
rowHeight.value = option.labelPosition == "top" ? 1.5 : 1;
|
|
153
152
|
localConfig.value = option;
|
|
154
153
|
if (props.initFormMode) {
|
|
@@ -179,6 +178,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
179
178
|
await pageEvents.executeEvent("onCreated");
|
|
180
179
|
}
|
|
181
180
|
}
|
|
181
|
+
emit("loaded", option);
|
|
182
182
|
} catch (error) {
|
|
183
183
|
console.error("加载配置失败:", error);
|
|
184
184
|
index.ElMessage.error("加载配置失败");
|
|
@@ -1029,5 +1029,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1029
1029
|
};
|
|
1030
1030
|
}
|
|
1031
1031
|
});
|
|
1032
|
-
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
1032
|
+
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-c9bc9779"]]);
|
|
1033
1033
|
exports.default = _Form;
|