@fecp/designer 5.5.5 → 5.5.6
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/_virtual/app.mjs +5 -0
- package/es/_virtual/app2.mjs +4 -0
- package/es/designer/package.json.mjs +1 -1
- package/es/designer/src/api/index.mjs +30 -31
- package/es/designer/src/components/DocumentParam.vue.mjs +5 -3
- package/es/designer/src/components/RiskSchemeDialog.vue2.mjs +5 -3
- package/es/designer/src/components/TemplateDialog.vue.mjs +5 -3
- package/es/designer/src/layout/header/index.vue.mjs +4 -2
- package/es/designer/src/layout/index.vue.mjs +6 -4
- package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +5 -3
- package/es/designer/src/packages/dataLinkage/index.vue.mjs +0 -3
- package/es/designer/src/packages/dialog/index.vue2.mjs +6 -4
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +9 -7
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/eventFlow/dialog/action/Dialog.vue.mjs +5 -3
- package/es/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.mjs +5 -3
- package/es/designer/src/packages/form/components/ComponentPreviewWrapper.vue.mjs +5 -3
- package/es/designer/src/packages/form/components/DefaultValueEditor.vue.mjs +2 -2
- package/es/designer/src/packages/form/property/contract.vue.mjs +5 -3
- package/es/designer/src/packages/form/property/subTable.vue.mjs +5 -3
- package/es/designer/src/packages/form/property/widgets.vue.mjs +8 -6
- package/es/designer/src/packages/prod/index.vue.mjs +5 -3
- package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -4
- package/es/designer/src/utils/optionLoader.mjs +8 -7
- package/es/designer.css +214 -185
- package/es/node_modules/element-china-category-data/dist/app.mjs +77 -0
- package/es/packages/mobile/index.mjs +4 -0
- package/es/packages/mobile/src/components/all.mjs +4 -0
- package/es/packages/mobile/src/components/form/checkboxGroup/CheckboxGroup.vue.mjs +2 -2
- package/es/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.mjs +29 -25
- package/es/packages/mobile/src/components/form/fieldIndustry/FieldIndustry.vue.mjs +195 -0
- package/es/packages/mobile/src/components/form/fieldIndustry/index.mjs +10 -0
- package/es/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.mjs +3 -25
- package/es/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.mjs +34 -7
- package/es/packages/mobile/src/components/form/fieldSubTitle/FieldSubTitle.vue.mjs +27 -0
- package/es/packages/mobile/src/components/form/fieldSubTitle/index.mjs +10 -0
- package/es/packages/mobile/src/components/form/radioGroup/RadioGroup.vue.mjs +1 -1
- package/es/packages/mobile/src/components/navigation/actionBar/ActionBar.vue.mjs +35 -16
- package/es/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.mjs +2 -1
- package/es/packages/mobile/src/utils/common.mjs +28 -0
- package/es/packages/mobile/src/utils/datasource.mjs +354 -0
- package/es/packages/mobile/src/utils/optionUtil.mjs +63 -40
- package/es/packages/mobile/src/utils/parseRouteParams.mjs +41 -0
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +1 -1
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +1 -1
- package/es/packages/vue/src/composables/usePageEvents.mjs +1 -1
- package/es/packages/vue/src/utils/datasource.mjs +1 -1
- package/lib/_virtual/app.js +5 -0
- package/lib/_virtual/app2.js +4 -0
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/api/index.js +30 -31
- package/lib/designer/src/components/DocumentParam.vue.js +4 -2
- package/lib/designer/src/components/RiskSchemeDialog.vue2.js +4 -2
- package/lib/designer/src/components/TemplateDialog.vue.js +4 -2
- package/lib/designer/src/layout/header/index.vue.js +3 -1
- package/lib/designer/src/layout/index.vue.js +5 -3
- package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +4 -2
- package/lib/designer/src/packages/dataLinkage/index.vue.js +0 -3
- package/lib/designer/src/packages/dialog/index.vue2.js +5 -3
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue2.js +8 -6
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/eventFlow/dialog/action/Dialog.vue.js +4 -2
- package/lib/designer/src/packages/eventFlow/dialog/action/TableChildSelection.vue2.js +4 -2
- package/lib/designer/src/packages/form/components/ComponentPreviewWrapper.vue.js +4 -2
- package/lib/designer/src/packages/form/components/DefaultValueEditor.vue.js +2 -2
- package/lib/designer/src/packages/form/property/contract.vue.js +4 -2
- package/lib/designer/src/packages/form/property/subTable.vue.js +4 -2
- package/lib/designer/src/packages/form/property/widgets.vue.js +7 -5
- package/lib/designer/src/packages/prod/index.vue.js +4 -2
- package/lib/designer/src/packages/table/headerBtn.vue.js +1 -4
- package/lib/designer/src/utils/optionLoader.js +8 -7
- package/lib/designer.css +214 -185
- package/lib/node_modules/element-china-category-data/dist/app.js +77 -0
- package/lib/packages/mobile/index.js +48 -44
- package/lib/packages/mobile/src/components/all.js +48 -44
- package/lib/packages/mobile/src/components/form/checkboxGroup/CheckboxGroup.vue.js +2 -2
- package/lib/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.js +28 -24
- package/lib/packages/mobile/src/components/form/fieldIndustry/FieldIndustry.vue.js +195 -0
- package/lib/packages/mobile/src/components/form/fieldIndustry/index.js +10 -0
- package/lib/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.js +2 -24
- package/lib/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.js +33 -6
- package/lib/packages/mobile/src/components/form/fieldSubTitle/FieldSubTitle.vue.js +27 -0
- package/lib/packages/mobile/src/components/form/fieldSubTitle/index.js +10 -0
- package/lib/packages/mobile/src/components/form/radioGroup/RadioGroup.vue.js +1 -1
- package/lib/packages/mobile/src/components/navigation/actionBar/ActionBar.vue.js +34 -15
- package/lib/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.js +2 -1
- package/lib/packages/mobile/src/utils/common.js +28 -0
- package/lib/packages/mobile/src/utils/datasource.js +354 -0
- package/lib/packages/mobile/src/utils/optionUtil.js +64 -41
- package/lib/packages/mobile/src/utils/parseRouteParams.js +41 -0
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +1 -1
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +1 -1
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +1 -1
- package/lib/packages/vue/src/composables/usePageEvents.js +1 -1
- package/lib/packages/vue/src/utils/datasource.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
;/* empty css */
|
|
5
|
+
;/* empty css */
|
|
6
|
+
;/* empty css */
|
|
7
|
+
;/* empty css */
|
|
8
|
+
;/* empty css */
|
|
9
|
+
;/* empty css */
|
|
10
|
+
;/* empty css */
|
|
11
|
+
;/* empty css */
|
|
12
|
+
;/* empty css */
|
|
13
|
+
;/* empty css */
|
|
14
|
+
const vue = require("vue");
|
|
15
|
+
const index = require("../field/index.js");
|
|
16
|
+
const app = require("../../../../../../_virtual/app.js");
|
|
17
|
+
const index$1 = require("../../../../node_modules/vant/es/popup/index.js");
|
|
18
|
+
const index$2 = require("../../../../node_modules/vant/es/cascader/index.js");
|
|
19
|
+
const index$3 = require("../../../../node_modules/vant/es/icon/index.js");
|
|
20
|
+
const _sfc_main = {
|
|
21
|
+
__name: "FieldIndustry",
|
|
22
|
+
props: {
|
|
23
|
+
treeOptionsFieldNames: {
|
|
24
|
+
type: Object,
|
|
25
|
+
default: {
|
|
26
|
+
text: "label",
|
|
27
|
+
value: "value",
|
|
28
|
+
children: "children"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
modelValue: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: ""
|
|
34
|
+
},
|
|
35
|
+
disabled: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: false
|
|
38
|
+
},
|
|
39
|
+
readonly: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: false
|
|
42
|
+
},
|
|
43
|
+
"is-link": false,
|
|
44
|
+
industryType: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "4"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
emits: ["update:modelValue"],
|
|
50
|
+
setup(__props, { emit: __emit }) {
|
|
51
|
+
const props = __props;
|
|
52
|
+
const finalOptions = vue.ref([]);
|
|
53
|
+
if (props.industryType == "1") {
|
|
54
|
+
finalOptions.value = parseOptionsByLevel(app.appExports.categoryData, 0);
|
|
55
|
+
} else if (props.industryType == "2") {
|
|
56
|
+
finalOptions.value = parseOptionsByLevel(app.appExports.categoryData, 1);
|
|
57
|
+
} else if (props.industryType == "3") {
|
|
58
|
+
finalOptions.value = parseOptionsByLevel(app.appExports.categoryData, 2);
|
|
59
|
+
} else if (props.industryType == "4") {
|
|
60
|
+
finalOptions.value = app.appExports.categoryData;
|
|
61
|
+
}
|
|
62
|
+
function parseOptionsByLevel(data, level) {
|
|
63
|
+
if (level === 0) {
|
|
64
|
+
return data.map((item) => ({
|
|
65
|
+
label: item.label,
|
|
66
|
+
value: item.value
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
function processNode(node, currentLevel) {
|
|
70
|
+
const newNode = {
|
|
71
|
+
label: node.label,
|
|
72
|
+
value: node.value
|
|
73
|
+
};
|
|
74
|
+
if (currentLevel < level && node.children) {
|
|
75
|
+
newNode.children = node.children.map(
|
|
76
|
+
(child) => processNode(child, currentLevel + 1)
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
return newNode;
|
|
80
|
+
}
|
|
81
|
+
return data.map((node) => processNode(node, 0));
|
|
82
|
+
}
|
|
83
|
+
const fieldTextValue = vue.ref("");
|
|
84
|
+
const showPicker = vue.ref(false);
|
|
85
|
+
const emit = __emit;
|
|
86
|
+
const pickerValue = vue.computed(() => {
|
|
87
|
+
const value = props.modelValue.split("/");
|
|
88
|
+
return value[value.length - 1];
|
|
89
|
+
});
|
|
90
|
+
function getDisplayValue(options, fieldNames, modelValue) {
|
|
91
|
+
const { label, value, children } = fieldNames;
|
|
92
|
+
const values = modelValue.split("/");
|
|
93
|
+
const displayValues = [];
|
|
94
|
+
function findValueInOptions(currentOptions, targetValue) {
|
|
95
|
+
for (const option of currentOptions) {
|
|
96
|
+
if (option[value] === targetValue) {
|
|
97
|
+
return option[label];
|
|
98
|
+
}
|
|
99
|
+
if (option[children] && option[children].length > 0) {
|
|
100
|
+
const result = findValueInOptions(option[children], targetValue);
|
|
101
|
+
if (result) {
|
|
102
|
+
return result;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
for (const val of values) {
|
|
109
|
+
const displayValue = findValueInOptions(options, val);
|
|
110
|
+
if (displayValue) {
|
|
111
|
+
displayValues.push(displayValue);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return displayValues.join("/");
|
|
115
|
+
}
|
|
116
|
+
vue.watch(
|
|
117
|
+
[() => props.modelValue, finalOptions],
|
|
118
|
+
([value, options]) => {
|
|
119
|
+
if (!value) {
|
|
120
|
+
fieldTextValue.value = "";
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
fieldTextValue.value = getDisplayValue(
|
|
124
|
+
options,
|
|
125
|
+
props.treeOptionsFieldNames,
|
|
126
|
+
value
|
|
127
|
+
);
|
|
128
|
+
},
|
|
129
|
+
{ immediate: true }
|
|
130
|
+
);
|
|
131
|
+
const onFinish = ({ selectedOptions }) => {
|
|
132
|
+
const value = selectedOptions.map((option) => option[props.treeOptionsFieldNames.value]).join("/");
|
|
133
|
+
emit("update:modelValue", value);
|
|
134
|
+
showPicker.value = false;
|
|
135
|
+
};
|
|
136
|
+
return (_ctx, _cache) => {
|
|
137
|
+
const _component_van_icon = index$3.Icon;
|
|
138
|
+
const _component_van_cascader = index$2.Cascader;
|
|
139
|
+
const _component_van_popup = index$1.Popup;
|
|
140
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.mergeProps(_ctx.$attrs, {
|
|
141
|
+
modelValue: vue.unref(fieldTextValue),
|
|
142
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
|
|
143
|
+
isLink: __props.readonly ? false : true,
|
|
144
|
+
readonly: "",
|
|
145
|
+
disabled: __props.disabled,
|
|
146
|
+
onOpenPicker: _cache[5] || (_cache[5] = () => {
|
|
147
|
+
if (!__props.readonly) {
|
|
148
|
+
showPicker.value = true;
|
|
149
|
+
}
|
|
150
|
+
})
|
|
151
|
+
}), vue.createSlots({
|
|
152
|
+
default: vue.withCtx(() => [
|
|
153
|
+
vue.createVNode(_component_van_popup, {
|
|
154
|
+
show: vue.unref(showPicker),
|
|
155
|
+
"onUpdate:show": _cache[3] || (_cache[3] = ($event) => vue.isRef(showPicker) ? showPicker.value = $event : null),
|
|
156
|
+
"destroy-on-close": "",
|
|
157
|
+
position: "bottom",
|
|
158
|
+
teleport: "body"
|
|
159
|
+
}, {
|
|
160
|
+
default: vue.withCtx(() => [
|
|
161
|
+
vue.createVNode(_component_van_cascader, vue.mergeProps(_ctx.$attrs, {
|
|
162
|
+
modelValue: vue.unref(pickerValue),
|
|
163
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
|
|
164
|
+
options: vue.unref(finalOptions),
|
|
165
|
+
placeholder: "请选择",
|
|
166
|
+
onFinish,
|
|
167
|
+
onClose: _cache[2] || (_cache[2] = ($event) => showPicker.value = false)
|
|
168
|
+
}), null, 16, ["modelValue", "options"])
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
}, 8, ["show"])
|
|
172
|
+
]),
|
|
173
|
+
_: 2
|
|
174
|
+
}, [
|
|
175
|
+
!__props.readonly && !__props.disabled && vue.unref(fieldTextValue) ? {
|
|
176
|
+
name: "right-icon",
|
|
177
|
+
fn: vue.withCtx(() => [
|
|
178
|
+
vue.createVNode(_component_van_icon, {
|
|
179
|
+
name: "clear",
|
|
180
|
+
class: "custom-close-icon",
|
|
181
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers(
|
|
182
|
+
() => {
|
|
183
|
+
emit("update:modelValue", "");
|
|
184
|
+
},
|
|
185
|
+
["stop"]
|
|
186
|
+
))
|
|
187
|
+
})
|
|
188
|
+
]),
|
|
189
|
+
key: "0"
|
|
190
|
+
} : void 0
|
|
191
|
+
]), 1040, ["modelValue", "isLink", "disabled"]);
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const FieldIndustry = require("./FieldIndustry.vue.js");
|
|
4
|
+
const install = require("../../../utils/install.js");
|
|
5
|
+
const MobileFieldIndustry = install.default.withInstall(
|
|
6
|
+
"MobileFieldIndustry",
|
|
7
|
+
FieldIndustry.default
|
|
8
|
+
);
|
|
9
|
+
exports.MobileFieldIndustry = MobileFieldIndustry;
|
|
10
|
+
exports.default = MobileFieldIndustry;
|
|
@@ -15,7 +15,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
15
15
|
;/* empty css */
|
|
16
16
|
const vue = require("vue");
|
|
17
17
|
const index = require("../field/index.js");
|
|
18
|
-
|
|
18
|
+
require("../../../utils/optionUtil.js");
|
|
19
19
|
const index$2 = require("../../../../node_modules/vant/es/picker/index.js");
|
|
20
20
|
const index$1 = require("../../../../node_modules/vant/es/popup/index.js");
|
|
21
21
|
const index$3 = require("../../../../node_modules/vant/es/icon/index.js");
|
|
@@ -70,30 +70,8 @@ const _sfc_main = {
|
|
|
70
70
|
emits: ["update:modelValue"],
|
|
71
71
|
setup(__props, { emit: __emit }) {
|
|
72
72
|
const props = __props;
|
|
73
|
-
|
|
73
|
+
vue.useAttrs();
|
|
74
74
|
const finalOptions = vue.ref([]);
|
|
75
|
-
optionUtil.getOptions({
|
|
76
|
-
...attrs,
|
|
77
|
-
staticOptions: props.pickerOptions,
|
|
78
|
-
optionsFieldNames: props.treeOptionsFieldNames
|
|
79
|
-
}).then((data) => {
|
|
80
|
-
finalOptions.value = data;
|
|
81
|
-
});
|
|
82
|
-
vue.watch(
|
|
83
|
-
() => props.pickerOptions,
|
|
84
|
-
() => {
|
|
85
|
-
optionUtil.getOptions({
|
|
86
|
-
...attrs,
|
|
87
|
-
staticOptions: props.pickerOptions,
|
|
88
|
-
optionsFieldNames: props.treeOptionsFieldNames
|
|
89
|
-
}).then((data) => {
|
|
90
|
-
finalOptions.value = data;
|
|
91
|
-
});
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
deep: true
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
75
|
const fieldTextValue = vue.ref("");
|
|
98
76
|
const showPicker = vue.ref(false);
|
|
99
77
|
const emit = __emit;
|
|
@@ -4,6 +4,7 @@ const vue = require("vue");
|
|
|
4
4
|
const index = require("../field/index.js");
|
|
5
5
|
const optionUtil = require("../../../utils/optionUtil.js");
|
|
6
6
|
const index$1 = require("../radioGroup/index.js");
|
|
7
|
+
const common = require("../../../utils/common.js");
|
|
7
8
|
const _hoisted_1 = { key: 1 };
|
|
8
9
|
const _sfc_main = {
|
|
9
10
|
__name: "FieldRadio",
|
|
@@ -19,20 +20,46 @@ const _sfc_main = {
|
|
|
19
20
|
readonly: {
|
|
20
21
|
type: Boolean,
|
|
21
22
|
default: false
|
|
23
|
+
},
|
|
24
|
+
dataSources: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: () => []
|
|
27
|
+
},
|
|
28
|
+
formData: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default: () => {
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
fields: {
|
|
34
|
+
type: Array,
|
|
35
|
+
default: () => []
|
|
22
36
|
}
|
|
23
37
|
},
|
|
24
38
|
emits: ["update:modelValue"],
|
|
25
39
|
setup(__props, { emit: __emit }) {
|
|
26
40
|
const currentInstance = vue.getCurrentInstance();
|
|
27
|
-
currentInstance.proxy;
|
|
41
|
+
const ctx = currentInstance.proxy;
|
|
28
42
|
const props = __props;
|
|
29
43
|
vue.useAttrs();
|
|
30
44
|
const finalOptions = vue.ref([]);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
45
|
+
vue.watch(
|
|
46
|
+
() => common.cloneDeep(props.optionConfig),
|
|
47
|
+
(val) => {
|
|
48
|
+
optionUtil.getOptions({
|
|
49
|
+
ctx,
|
|
50
|
+
dataSources: props.dataSources,
|
|
51
|
+
formData: props.formData,
|
|
52
|
+
fields: props.fields,
|
|
53
|
+
...props.optionConfig
|
|
54
|
+
}).then((data) => {
|
|
55
|
+
finalOptions.value = data;
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
deep: true,
|
|
60
|
+
immediate: true
|
|
61
|
+
}
|
|
62
|
+
);
|
|
36
63
|
const emit = __emit;
|
|
37
64
|
const compValue = vue.computed({
|
|
38
65
|
get: () => {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
;/* empty css */
|
|
5
|
+
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
+
const _hoisted_1 = { class: "fec-sub-title" };
|
|
7
|
+
const _hoisted_2 = { class: "fec-label-title" };
|
|
8
|
+
const _sfc_main = {
|
|
9
|
+
__name: "FieldSubTitle",
|
|
10
|
+
props: {
|
|
11
|
+
label: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
19
|
+
_cache[0] || (_cache[0] = vue.createElementVNode("div", { class: "fec-label-line" }, null, -1)),
|
|
20
|
+
vue.createElementVNode("div", _hoisted_2, vue.toDisplayString(__props.label), 1),
|
|
21
|
+
_cache[1] || (_cache[1] = vue.createElementVNode("div", { class: "fec-label-line-query" }, null, -1))
|
|
22
|
+
]);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const _FieldSubTitle = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-91f26588"]]);
|
|
27
|
+
exports.default = _FieldSubTitle;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const FieldSubTitle = require("./FieldSubTitle.vue.js");
|
|
4
|
+
const install = require("../../../utils/install.js");
|
|
5
|
+
const MobileFieldSubTitle = install.default.withInstall(
|
|
6
|
+
"MobileFieldSubTitle",
|
|
7
|
+
FieldSubTitle.default
|
|
8
|
+
);
|
|
9
|
+
exports.MobileFieldSubTitle = MobileFieldSubTitle;
|
|
10
|
+
exports.default = MobileFieldSubTitle;
|
|
@@ -2,22 +2,41 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
|
+
;/* empty css */
|
|
6
|
+
;/* empty css */
|
|
7
|
+
;/* empty css */
|
|
8
|
+
;/* empty css */
|
|
9
|
+
;/* empty css */
|
|
5
10
|
const vue = require("vue");
|
|
11
|
+
;/* empty css */
|
|
6
12
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
7
13
|
const index = require("../../../../node_modules/vant/es/action-bar/index.js");
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
14
|
+
const index$1 = require("../../../../node_modules/vant/es/action-bar-button/index.js");
|
|
15
|
+
const _sfc_main = {
|
|
16
|
+
__name: "ActionBar",
|
|
17
|
+
props: {
|
|
18
|
+
actionBarOptions: {
|
|
19
|
+
type: Array,
|
|
20
|
+
default: []
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
const _component_van_action_bar_button = index$1.ActionBarButton;
|
|
26
|
+
const _component_van_action_bar = index.ActionBar;
|
|
27
|
+
return vue.openBlock(), vue.createBlock(_component_van_action_bar, { "safe-area-inset-bottom": "" }, {
|
|
28
|
+
default: vue.withCtx(() => [
|
|
29
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.actionBarOptions, (item) => {
|
|
30
|
+
return vue.openBlock(), vue.createBlock(_component_van_action_bar_button, {
|
|
31
|
+
type: item.type,
|
|
32
|
+
text: item.text
|
|
33
|
+
}, null, 8, ["type", "text"]);
|
|
34
|
+
}), 256))
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const _ActionBar = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-44eb199a"]]);
|
|
23
42
|
exports.default = _ActionBar;
|
|
@@ -38,7 +38,8 @@ const _sfc_main = {
|
|
|
38
38
|
return vue.openBlock(), vue.createBlock(_component_van_tabbar, vue.mergeProps(_ctx.$attrs, {
|
|
39
39
|
modelValue: vue.unref(activeName),
|
|
40
40
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(activeName) ? activeName.value = $event : null),
|
|
41
|
-
fixed: false
|
|
41
|
+
fixed: false,
|
|
42
|
+
"safe-area-inset-bottom": ""
|
|
42
43
|
}), {
|
|
43
44
|
default: vue.withCtx(() => [
|
|
44
45
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.tabbarOptions, (item) => {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const cloneDeep$1 = require("../../../../node_modules/lodash-es/cloneDeep.js");
|
|
4
|
+
function cloneDeep(data) {
|
|
5
|
+
return cloneDeep$1.default(data);
|
|
6
|
+
}
|
|
7
|
+
function removeEmptyValues(data) {
|
|
8
|
+
if (typeof data !== "object" || data === null) {
|
|
9
|
+
return data;
|
|
10
|
+
}
|
|
11
|
+
if (Array.isArray(data)) {
|
|
12
|
+
return data.map((item) => removeEmptyValues(item)).filter((item) => {
|
|
13
|
+
return item !== null && item !== void 0 && item !== "";
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const result = {};
|
|
17
|
+
for (const key in data) {
|
|
18
|
+
if (Object.prototype.hasOwnProperty.call(data, key)) {
|
|
19
|
+
const value = removeEmptyValues(data[key]);
|
|
20
|
+
if (value !== null && value !== void 0 && value !== "") {
|
|
21
|
+
result[key] = value;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
exports.cloneDeep = cloneDeep;
|
|
28
|
+
exports.removeEmptyValues = removeEmptyValues;
|