@yoooloo42/joker 1.0.105 → 1.0.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +182 -188
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +183 -189
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRouter } from 'vue-router';
|
|
2
|
-
import {
|
|
2
|
+
import { ref, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, unref, reactive, computed, resolveComponent, createBlock, withCtx, renderList, createTextVNode, createVNode, isRef, defineComponent, h, onMounted, onBeforeUnmount, watch, nextTick as nextTick$1 } from 'vue';
|
|
3
3
|
import { ElMessage } from 'element-plus';
|
|
4
4
|
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
@@ -22512,15 +22512,15 @@ var script$h = {
|
|
|
22512
22512
|
default: () => ({})
|
|
22513
22513
|
}
|
|
22514
22514
|
},
|
|
22515
|
-
|
|
22516
|
-
setup(__props, { emit: __emit }) {
|
|
22515
|
+
setup(__props) {
|
|
22517
22516
|
|
|
22518
22517
|
const props = __props;
|
|
22519
|
-
// 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
|
|
22520
|
-
const emit = __emit;
|
|
22521
22518
|
|
|
22522
|
-
|
|
22523
|
-
|
|
22519
|
+
|
|
22520
|
+
// props属性包装,使得页面和js使用相同的命名
|
|
22521
|
+
const formData_box = props.modelValue;
|
|
22522
|
+
const scopeThis_box = props.scopeThis;
|
|
22523
|
+
const propsItem_box = props.item;
|
|
22524
22524
|
|
|
22525
22525
|
const style = ref({
|
|
22526
22526
|
box: styleModule.label.box(propsItem_box),
|
|
@@ -22529,18 +22529,9 @@ const style = ref({
|
|
|
22529
22529
|
|
|
22530
22530
|
const hdlClick = () => {
|
|
22531
22531
|
if(propsItem_box.hdlLabelClick){
|
|
22532
|
-
propsItem_box.hdlLabelClick({formData:
|
|
22532
|
+
propsItem_box.hdlLabelClick({formData: formData_box, scopeThis: scopeThis_box});
|
|
22533
22533
|
}
|
|
22534
22534
|
};
|
|
22535
|
-
|
|
22536
|
-
// 表单数据监听
|
|
22537
|
-
watch(
|
|
22538
|
-
props.modelValue, // 监听 reactive 对象时,默认是深层监听
|
|
22539
|
-
(newVal, oldVal) => {
|
|
22540
|
-
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
22541
|
-
emit("update:modelValue", newVal);
|
|
22542
|
-
}
|
|
22543
|
-
);
|
|
22544
22535
|
|
|
22545
22536
|
return (_ctx, _cache) => {
|
|
22546
22537
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -22551,7 +22542,7 @@ return (_ctx, _cache) => {
|
|
|
22551
22542
|
}, [
|
|
22552
22543
|
createElementVNode("span", {
|
|
22553
22544
|
style: normalizeStyle(style.value.label)
|
|
22554
|
-
}, toDisplayString(propsItem_box.label), 5 /* TEXT, STYLE */)
|
|
22545
|
+
}, toDisplayString(unref(propsItem_box).label), 5 /* TEXT, STYLE */)
|
|
22555
22546
|
], 4 /* STYLE */)
|
|
22556
22547
|
], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))
|
|
22557
22548
|
}
|
|
@@ -22615,10 +22606,11 @@ var script$g = {
|
|
|
22615
22606
|
|
|
22616
22607
|
const props = __props;
|
|
22617
22608
|
|
|
22618
|
-
|
|
22619
|
-
const
|
|
22620
|
-
const
|
|
22621
|
-
const
|
|
22609
|
+
// props属性包装,使得页面和js使用相同的命名
|
|
22610
|
+
const formData_box = props.modelValue;
|
|
22611
|
+
const formProps_box = props.myProps;
|
|
22612
|
+
const scopeThis_box = props.scopeThis;
|
|
22613
|
+
const propsItem_box = props.item;
|
|
22622
22614
|
|
|
22623
22615
|
const input = reactive({
|
|
22624
22616
|
placeholder: propsItem_box.placeholder || formProps_box.para.placeholder.input,
|
|
@@ -22857,77 +22849,77 @@ return (_ctx, _cache) => {
|
|
|
22857
22849
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
22858
22850
|
createCommentVNode(" input-box "),
|
|
22859
22851
|
createElementVNode("div", {
|
|
22860
|
-
style: normalizeStyle(style.box(propsItem_box))
|
|
22852
|
+
style: normalizeStyle(style.box(unref(propsItem_box)))
|
|
22861
22853
|
}, [
|
|
22862
22854
|
createCommentVNode(" 只读 "),
|
|
22863
|
-
(propsItem_box.inputType === 'text')
|
|
22855
|
+
(unref(propsItem_box).inputType === 'text')
|
|
22864
22856
|
? (openBlock(), createElementBlock("div", {
|
|
22865
22857
|
key: 0,
|
|
22866
|
-
style: normalizeStyle(style.text(propsItem_box, formProps_box))
|
|
22867
|
-
}, toDisplayString(unref(formData_box)[propsItem_box.fieldName] ? unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22858
|
+
style: normalizeStyle(style.text(unref(propsItem_box), unref(formProps_box)))
|
|
22859
|
+
}, toDisplayString(unref(formData_box)[unref(propsItem_box).fieldName] ? unref(formData_box)[unref(propsItem_box).fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22868
22860
|
: createCommentVNode("v-if", true),
|
|
22869
|
-
(propsItem_box.inputType === 'text0')
|
|
22861
|
+
(unref(propsItem_box).inputType === 'text0')
|
|
22870
22862
|
? (openBlock(), createElementBlock("div", {
|
|
22871
22863
|
key: 1,
|
|
22872
|
-
style: normalizeStyle(style.text0(propsItem_box))
|
|
22873
|
-
}, toDisplayString(unref(formData_box)[propsItem_box.fieldName] ? unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22864
|
+
style: normalizeStyle(style.text0(unref(propsItem_box)))
|
|
22865
|
+
}, toDisplayString(unref(formData_box)[unref(propsItem_box).fieldName] ? unref(formData_box)[unref(propsItem_box).fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22874
22866
|
: createCommentVNode("v-if", true),
|
|
22875
|
-
(!propsItem_box.inputType)
|
|
22867
|
+
(!unref(propsItem_box).inputType)
|
|
22876
22868
|
? (openBlock(), createElementBlock("div", {
|
|
22877
22869
|
key: 2,
|
|
22878
|
-
style: normalizeStyle(style.text(propsItem_box, formProps_box))
|
|
22879
|
-
}, toDisplayString(unref(formData_box)[propsItem_box.fieldName] ? unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22870
|
+
style: normalizeStyle(style.text(unref(propsItem_box), unref(formProps_box)))
|
|
22871
|
+
}, toDisplayString(unref(formData_box)[unref(propsItem_box).fieldName] ? unref(formData_box)[unref(propsItem_box).fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22880
22872
|
: createCommentVNode("v-if", true),
|
|
22881
|
-
(propsItem_box.inputType === 'expression')
|
|
22873
|
+
(unref(propsItem_box).inputType === 'expression')
|
|
22882
22874
|
? (openBlock(), createElementBlock("div", {
|
|
22883
22875
|
key: 3,
|
|
22884
|
-
style: normalizeStyle(style.text(propsItem_box, formProps_box))
|
|
22885
|
-
}, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: unref(formData_box), scopeThis: __props.scopeThis})
|
|
22886
|
-
? propsItem_box.hdlExpression({formData: unref(formData_box), scopeThis: scopeThis_box})
|
|
22876
|
+
style: normalizeStyle(style.text(unref(propsItem_box), unref(formProps_box)))
|
|
22877
|
+
}, toDisplayString(unref(propsItem_box).hdlExpression && unref(propsItem_box).hdlExpression({formData: unref(formData_box), scopeThis: __props.scopeThis})
|
|
22878
|
+
? unref(propsItem_box).hdlExpression({formData: unref(formData_box), scopeThis: unref(scopeThis_box)})
|
|
22887
22879
|
: ' '), 5 /* TEXT, STYLE */))
|
|
22888
22880
|
: createCommentVNode("v-if", true),
|
|
22889
|
-
(propsItem_box.inputType === 'expression0')
|
|
22881
|
+
(unref(propsItem_box).inputType === 'expression0')
|
|
22890
22882
|
? (openBlock(), createElementBlock("div", {
|
|
22891
22883
|
key: 4,
|
|
22892
|
-
style: normalizeStyle(style.text0(propsItem_box))
|
|
22893
|
-
}, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: unref(formData_box), scopeThis: scopeThis_box})
|
|
22894
|
-
? propsItem_box.hdlExpression({formData: unref(formData_box), scopeThis: scopeThis_box})
|
|
22884
|
+
style: normalizeStyle(style.text0(unref(propsItem_box)))
|
|
22885
|
+
}, toDisplayString(unref(propsItem_box).hdlExpression && unref(propsItem_box).hdlExpression({formData: unref(formData_box), scopeThis: unref(scopeThis_box)})
|
|
22886
|
+
? unref(propsItem_box).hdlExpression({formData: unref(formData_box), scopeThis: unref(scopeThis_box)})
|
|
22895
22887
|
: ' '), 5 /* TEXT, STYLE */))
|
|
22896
22888
|
: createCommentVNode("v-if", true),
|
|
22897
|
-
(propsItem_box.inputType === 'line')
|
|
22889
|
+
(unref(propsItem_box).inputType === 'line')
|
|
22898
22890
|
? (openBlock(), createElementBlock("div", {
|
|
22899
22891
|
key: 5,
|
|
22900
22892
|
style: normalizeStyle(style.line)
|
|
22901
22893
|
}, null, 4 /* STYLE */))
|
|
22902
22894
|
: createCommentVNode("v-if", true),
|
|
22903
22895
|
createCommentVNode(" 修改数据 "),
|
|
22904
|
-
(propsItem_box.inputType === 'input')
|
|
22896
|
+
(unref(propsItem_box).inputType === 'input')
|
|
22905
22897
|
? (openBlock(), createBlock(_component_el_input, {
|
|
22906
22898
|
key: 6,
|
|
22907
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
22908
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22899
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
22900
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
22909
22901
|
placeholder: input.placeholder,
|
|
22910
|
-
style: normalizeStyle(style.input(propsItem_box, formProps_box)),
|
|
22902
|
+
style: normalizeStyle(style.input(unref(propsItem_box), unref(formProps_box))),
|
|
22911
22903
|
onInput: input.hdlCannotInput,
|
|
22912
22904
|
"show-password": input.showPassword
|
|
22913
22905
|
}, null, 8 /* PROPS */, ["modelValue", "placeholder", "style", "onInput", "show-password"]))
|
|
22914
22906
|
: createCommentVNode("v-if", true),
|
|
22915
|
-
(propsItem_box.inputType === 'select')
|
|
22907
|
+
(unref(propsItem_box).inputType === 'select')
|
|
22916
22908
|
? (openBlock(), createBlock(_component_el_select, {
|
|
22917
22909
|
key: 7,
|
|
22918
22910
|
class: "deep-input",
|
|
22919
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
22920
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22911
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
22912
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
22921
22913
|
placeholder: select.placeholder,
|
|
22922
22914
|
filterable: "",
|
|
22923
|
-
style: normalizeStyle(style.input(propsItem_box, formProps_box)),
|
|
22915
|
+
style: normalizeStyle(style.input(unref(propsItem_box), unref(formProps_box))),
|
|
22924
22916
|
onChange: select.hdlChange
|
|
22925
22917
|
}, {
|
|
22926
22918
|
default: withCtx(() => [
|
|
22927
22919
|
(openBlock(true), createElementBlock(Fragment, null, renderList(select.items, (item0, index0) => {
|
|
22928
22920
|
return (openBlock(), createBlock(_component_el_option, {
|
|
22929
|
-
label: item0[propsItem_box.item_fieldLabel],
|
|
22930
|
-
value: item0[propsItem_box.item_fieldValue],
|
|
22921
|
+
label: item0[unref(propsItem_box).item_fieldLabel],
|
|
22922
|
+
value: item0[unref(propsItem_box).item_fieldValue],
|
|
22931
22923
|
key: index0
|
|
22932
22924
|
}, null, 8 /* PROPS */, ["label", "value"]))
|
|
22933
22925
|
}), 128 /* KEYED_FRAGMENT */))
|
|
@@ -22935,61 +22927,61 @@ return (_ctx, _cache) => {
|
|
|
22935
22927
|
_: 1 /* STABLE */
|
|
22936
22928
|
}, 8 /* PROPS */, ["modelValue", "placeholder", "style", "onChange"]))
|
|
22937
22929
|
: createCommentVNode("v-if", true),
|
|
22938
|
-
(propsItem_box.inputType === 'date-picker')
|
|
22930
|
+
(unref(propsItem_box).inputType === 'date-picker')
|
|
22939
22931
|
? (openBlock(), createBlock(_component_el_date_picker, {
|
|
22940
22932
|
key: 8,
|
|
22941
22933
|
class: "deep-input",
|
|
22942
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
22943
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22944
|
-
type: propsItem_box.type ? propsItem_box.type : 'datetime',
|
|
22934
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
22935
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
22936
|
+
type: unref(propsItem_box).type ? unref(propsItem_box).type : 'datetime',
|
|
22945
22937
|
placeholder: datePicker.placeholder,
|
|
22946
22938
|
format: datePicker.format,
|
|
22947
|
-
style: normalizeStyle(style.input(propsItem_box, formProps_box)),
|
|
22939
|
+
style: normalizeStyle(style.input(unref(propsItem_box), unref(formProps_box))),
|
|
22948
22940
|
onChange: datePicker.hdlChange
|
|
22949
22941
|
}, null, 8 /* PROPS */, ["modelValue", "type", "placeholder", "format", "style", "onChange"]))
|
|
22950
22942
|
: createCommentVNode("v-if", true),
|
|
22951
|
-
(propsItem_box.inputType === 'input-number')
|
|
22943
|
+
(unref(propsItem_box).inputType === 'input-number')
|
|
22952
22944
|
? (openBlock(), createBlock(_component_el_input_number, {
|
|
22953
22945
|
key: 9,
|
|
22954
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
22955
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22956
|
-
size: style.input_number(propsItem_box).facade.size,
|
|
22957
|
-
min: 'min' in propsItem_box ? propsItem_box.min : 1,
|
|
22958
|
-
max: 'max' in propsItem_box ? propsItem_box.max : 100,
|
|
22959
|
-
step: 'step' in propsItem_box ? propsItem_box.step : 1,
|
|
22960
|
-
"step-strictly": 'step_strictly' in propsItem_box ? propsItem_box.step_strictly : true
|
|
22946
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
22947
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
22948
|
+
size: style.input_number(unref(propsItem_box)).facade.size,
|
|
22949
|
+
min: 'min' in unref(propsItem_box) ? unref(propsItem_box).min : 1,
|
|
22950
|
+
max: 'max' in unref(propsItem_box) ? unref(propsItem_box).max : 100,
|
|
22951
|
+
step: 'step' in unref(propsItem_box) ? unref(propsItem_box).step : 1,
|
|
22952
|
+
"step-strictly": 'step_strictly' in unref(propsItem_box) ? unref(propsItem_box).step_strictly : true
|
|
22961
22953
|
}, null, 8 /* PROPS */, ["modelValue", "size", "min", "max", "step", "step-strictly"]))
|
|
22962
22954
|
: createCommentVNode("v-if", true),
|
|
22963
|
-
(propsItem_box.inputType === 'switch')
|
|
22955
|
+
(unref(propsItem_box).inputType === 'switch')
|
|
22964
22956
|
? (openBlock(), createBlock(_component_el_switch, {
|
|
22965
22957
|
key: 10,
|
|
22966
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
22967
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22968
|
-
"active-text": propsItem_box.activeText,
|
|
22969
|
-
"inactive-text": propsItem_box.inactiveText,
|
|
22970
|
-
"active-value": propsItem_box.activeValue,
|
|
22971
|
-
"inactive-value": propsItem_box.inactiveValue,
|
|
22972
|
-
"active-color": style.el_switch(propsItem_box).facade.active_color,
|
|
22973
|
-
disabled: !!('disabled' in propsItem_box && (propsItem_box.disabled === true || propsItem_box.disabled === 'true')),
|
|
22958
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
22959
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
22960
|
+
"active-text": unref(propsItem_box).activeText,
|
|
22961
|
+
"inactive-text": unref(propsItem_box).inactiveText,
|
|
22962
|
+
"active-value": unref(propsItem_box).activeValue,
|
|
22963
|
+
"inactive-value": unref(propsItem_box).inactiveValue,
|
|
22964
|
+
"active-color": style.el_switch(unref(propsItem_box)).facade.active_color,
|
|
22965
|
+
disabled: !!('disabled' in unref(propsItem_box) && (unref(propsItem_box).disabled === true || unref(propsItem_box).disabled === 'true')),
|
|
22974
22966
|
onChange: ly0switch.hdlChange
|
|
22975
22967
|
}, null, 8 /* PROPS */, ["modelValue", "active-text", "inactive-text", "active-value", "inactive-value", "active-color", "disabled", "onChange"]))
|
|
22976
22968
|
: createCommentVNode("v-if", true),
|
|
22977
|
-
(propsItem_box.inputType === 'radio-group')
|
|
22969
|
+
(unref(propsItem_box).inputType === 'radio-group')
|
|
22978
22970
|
? (openBlock(), createBlock(_component_el_radio_group, {
|
|
22979
22971
|
key: 11,
|
|
22980
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
22981
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22982
|
-
disabled: !!propsItem_box.disabled,
|
|
22972
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
22973
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
22974
|
+
disabled: !!unref(propsItem_box).disabled,
|
|
22983
22975
|
onChange: radioGroup.hdlChange
|
|
22984
22976
|
}, {
|
|
22985
22977
|
default: withCtx(() => [
|
|
22986
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(propsItem_box.items, (item0, index0) => {
|
|
22978
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(propsItem_box).items, (item0, index0) => {
|
|
22987
22979
|
return (openBlock(), createBlock(_component_el_radio, {
|
|
22988
22980
|
key: index0,
|
|
22989
|
-
label: item0[propsItem_box.item_fieldValue]
|
|
22981
|
+
label: item0[unref(propsItem_box).item_fieldValue]
|
|
22990
22982
|
}, {
|
|
22991
22983
|
default: withCtx(() => [
|
|
22992
|
-
createTextVNode(toDisplayString(item0[propsItem_box.item_fieldLabel]), 1 /* TEXT */)
|
|
22984
|
+
createTextVNode(toDisplayString(item0[unref(propsItem_box).item_fieldLabel]), 1 /* TEXT */)
|
|
22993
22985
|
]),
|
|
22994
22986
|
_: 2 /* DYNAMIC */
|
|
22995
22987
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["label"]))
|
|
@@ -22998,9 +22990,9 @@ return (_ctx, _cache) => {
|
|
|
22998
22990
|
_: 1 /* STABLE */
|
|
22999
22991
|
}, 8 /* PROPS */, ["modelValue", "disabled", "onChange"]))
|
|
23000
22992
|
: createCommentVNode("v-if", true),
|
|
23001
|
-
(propsItem_box.inputType === 'button-group' && propsItem_box.box && propsItem_box.box.length > 0)
|
|
22993
|
+
(unref(propsItem_box).inputType === 'button-group' && unref(propsItem_box).box && unref(propsItem_box).box.length > 0)
|
|
23002
22994
|
? (openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
23003
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(propsItem_box.box, (item0, index0) => {
|
|
22995
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(propsItem_box).box, (item0, index0) => {
|
|
23004
22996
|
return (openBlock(), createBlock(_component_el_button_group, {
|
|
23005
22997
|
key: index0,
|
|
23006
22998
|
style: normalizeStyle(style.button_group().group.style)
|
|
@@ -23016,14 +23008,14 @@ return (_ctx, _cache) => {
|
|
|
23016
23008
|
}, {
|
|
23017
23009
|
default: withCtx(() => [
|
|
23018
23010
|
(openBlock(), createBlock(_component_el_button, {
|
|
23019
|
-
style: normalizeStyle(style.button_group(propsItem_box, item0, item1).button.style),
|
|
23020
|
-
icon: style.button_group(propsItem_box, item0, item1).button.icon,
|
|
23021
|
-
type: style.button_group(propsItem_box, item0, item1).button.facade.type,
|
|
23022
|
-
size: style.button_group(propsItem_box, item0, item1).button.facade.size,
|
|
23023
|
-
plain: style.button_group(propsItem_box, item0, item1).button.facade.plain,
|
|
23024
|
-
round: style.button_group(propsItem_box, item0, item1).button.facade.round,
|
|
23025
|
-
circle: style.button_group(propsItem_box, item0, item1).button.facade.circle,
|
|
23026
|
-
onClick: $event => (item1.hdlClick ? item1.hdlClick({formData: unref(formData_box), scopeThis: scopeThis_box}) : null),
|
|
23011
|
+
style: normalizeStyle(style.button_group(unref(propsItem_box), item0, item1).button.style),
|
|
23012
|
+
icon: style.button_group(unref(propsItem_box), item0, item1).button.icon,
|
|
23013
|
+
type: style.button_group(unref(propsItem_box), item0, item1).button.facade.type,
|
|
23014
|
+
size: style.button_group(unref(propsItem_box), item0, item1).button.facade.size,
|
|
23015
|
+
plain: style.button_group(unref(propsItem_box), item0, item1).button.facade.plain,
|
|
23016
|
+
round: style.button_group(unref(propsItem_box), item0, item1).button.facade.round,
|
|
23017
|
+
circle: style.button_group(unref(propsItem_box), item0, item1).button.facade.circle,
|
|
23018
|
+
onClick: $event => (item1.hdlClick ? item1.hdlClick({formData: unref(formData_box), scopeThis: unref(scopeThis_box)}) : null),
|
|
23027
23019
|
key: index1
|
|
23028
23020
|
}, {
|
|
23029
23021
|
default: withCtx(() => [
|
|
@@ -23045,11 +23037,11 @@ return (_ctx, _cache) => {
|
|
|
23045
23037
|
: createCommentVNode("v-if", true),
|
|
23046
23038
|
createCommentVNode(" 图片&富文本&视频 "),
|
|
23047
23039
|
createCommentVNode(" 图片 "),
|
|
23048
|
-
(propsItem_box.inputType === 'image')
|
|
23040
|
+
(unref(propsItem_box).inputType === 'image')
|
|
23049
23041
|
? (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
23050
23042
|
createElementVNode("div", null, [
|
|
23051
23043
|
createVNode(_component_el_image, {
|
|
23052
|
-
style: normalizeStyle(style.image(propsItem_box, formProps_box)),
|
|
23044
|
+
style: normalizeStyle(style.image(unref(propsItem_box), unref(formProps_box))),
|
|
23053
23045
|
src: image.getSrc[0],
|
|
23054
23046
|
"preview-src-list": image.getSrc,
|
|
23055
23047
|
"preview-teleported": true,
|
|
@@ -23057,15 +23049,15 @@ return (_ctx, _cache) => {
|
|
|
23057
23049
|
}, null, 8 /* PROPS */, ["style", "src", "preview-src-list"])
|
|
23058
23050
|
]),
|
|
23059
23051
|
createCommentVNode(" 设置了图片删除功能,同时图片不为空 "),
|
|
23060
|
-
(!!propsItem_box.imageDelete && !!unref(formData_box)[propsItem_box.fieldName])
|
|
23052
|
+
(!!unref(propsItem_box).imageDelete && !!unref(formData_box)[unref(propsItem_box).fieldName])
|
|
23061
23053
|
? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
23062
23054
|
createVNode(_component_el_button, {
|
|
23063
23055
|
size: "small",
|
|
23064
|
-
icon: !unref(formData_box)[propsItem_box.imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
|
|
23056
|
+
icon: !unref(formData_box)[unref(propsItem_box).imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
|
|
23065
23057
|
onClick: image.delete
|
|
23066
23058
|
}, {
|
|
23067
23059
|
default: withCtx(() => [
|
|
23068
|
-
createTextVNode(toDisplayString(unref(formData_box)[propsItem_box.imageDelete] ? '图片已删除,恢复' : '删除'), 1 /* TEXT */)
|
|
23060
|
+
createTextVNode(toDisplayString(unref(formData_box)[unref(propsItem_box).imageDelete] ? '图片已删除,恢复' : '删除'), 1 /* TEXT */)
|
|
23069
23061
|
]),
|
|
23070
23062
|
_: 1 /* STABLE */
|
|
23071
23063
|
}, 8 /* PROPS */, ["icon", "onClick"])
|
|
@@ -23074,21 +23066,21 @@ return (_ctx, _cache) => {
|
|
|
23074
23066
|
]))
|
|
23075
23067
|
: createCommentVNode("v-if", true),
|
|
23076
23068
|
createCommentVNode(" 多个图片 "),
|
|
23077
|
-
(propsItem_box.inputType === 'images')
|
|
23069
|
+
(unref(propsItem_box).inputType === 'images')
|
|
23078
23070
|
? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
23079
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(formData_box)[propsItem_box.fieldName], (itemImages, indexImages) => {
|
|
23071
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(formData_box)[unref(propsItem_box).fieldName], (itemImages, indexImages) => {
|
|
23080
23072
|
return (openBlock(), createElementBlock("div", {
|
|
23081
23073
|
key: indexImages,
|
|
23082
|
-
style: normalizeStyle(style.images(propsItem_box, formProps_box).itemBox)
|
|
23074
|
+
style: normalizeStyle(style.images(unref(propsItem_box), unref(formProps_box)).itemBox)
|
|
23083
23075
|
}, [
|
|
23084
23076
|
createElementVNode("div", null, [
|
|
23085
23077
|
createVNode(_component_el_image, {
|
|
23086
|
-
style: normalizeStyle(style.images(propsItem_box, formProps_box).itemThumb),
|
|
23078
|
+
style: normalizeStyle(style.images(unref(propsItem_box), unref(formProps_box)).itemThumb),
|
|
23087
23079
|
src: images.getSrc(itemImages, indexImages),
|
|
23088
23080
|
"preview-src-list": images.show
|
|
23089
23081
|
}, null, 8 /* PROPS */, ["style", "src", "preview-src-list"])
|
|
23090
23082
|
]),
|
|
23091
|
-
(!!propsItem_box.imageDelete)
|
|
23083
|
+
(!!unref(propsItem_box).imageDelete)
|
|
23092
23084
|
? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
23093
23085
|
createVNode(_component_el_button, {
|
|
23094
23086
|
size: "small",
|
|
@@ -23096,7 +23088,7 @@ return (_ctx, _cache) => {
|
|
|
23096
23088
|
onClick: $event => (images.delete(itemImages, indexImages))
|
|
23097
23089
|
}, {
|
|
23098
23090
|
default: withCtx(() => [
|
|
23099
|
-
createTextVNode(toDisplayString(unref(formData_box)[propsItem_box.imageDelete].includes(itemImages) ? '恢复' : '删除'), 1 /* TEXT */)
|
|
23091
|
+
createTextVNode(toDisplayString(unref(formData_box)[unref(propsItem_box).imageDelete].includes(itemImages) ? '恢复' : '删除'), 1 /* TEXT */)
|
|
23100
23092
|
]),
|
|
23101
23093
|
_: 2 /* DYNAMIC */
|
|
23102
23094
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"])
|
|
@@ -23107,33 +23099,33 @@ return (_ctx, _cache) => {
|
|
|
23107
23099
|
]))
|
|
23108
23100
|
: createCommentVNode("v-if", true),
|
|
23109
23101
|
createCommentVNode(" 富文本 "),
|
|
23110
|
-
(propsItem_box.inputType === 'richtext')
|
|
23102
|
+
(unref(propsItem_box).inputType === 'richtext')
|
|
23111
23103
|
? (openBlock(), createElementBlock("div", {
|
|
23112
23104
|
key: 15,
|
|
23113
|
-
style: normalizeStyle(style.richtext(propsItem_box, formProps_box))
|
|
23105
|
+
style: normalizeStyle(style.richtext(unref(propsItem_box), unref(formProps_box)))
|
|
23114
23106
|
}, [
|
|
23115
23107
|
createVNode(_component_ly0Richtext, {
|
|
23116
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
23117
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23108
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23109
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23118
23110
|
myProps: richtextProps.value
|
|
23119
23111
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23120
23112
|
], 4 /* STYLE */))
|
|
23121
23113
|
: createCommentVNode("v-if", true),
|
|
23122
23114
|
createCommentVNode(" 富文本show "),
|
|
23123
|
-
(propsItem_box.inputType === 'richtextShow')
|
|
23115
|
+
(unref(propsItem_box).inputType === 'richtextShow')
|
|
23124
23116
|
? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
23125
23117
|
createElementVNode("div", {
|
|
23126
|
-
innerHTML: unref(formData_box)[propsItem_box.fieldName]
|
|
23118
|
+
innerHTML: unref(formData_box)[unref(propsItem_box).fieldName]
|
|
23127
23119
|
}, null, 8 /* PROPS */, _hoisted_8)
|
|
23128
23120
|
]))
|
|
23129
23121
|
: createCommentVNode("v-if", true),
|
|
23130
23122
|
createCommentVNode(" 视频 "),
|
|
23131
|
-
(propsItem_box.inputType === 'video')
|
|
23123
|
+
(unref(propsItem_box).inputType === 'video')
|
|
23132
23124
|
? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
23133
23125
|
createElementVNode("div", null, [
|
|
23134
23126
|
createElementVNode("video", {
|
|
23135
|
-
width: style.video(propsItem_box, formProps_box).width,
|
|
23136
|
-
height: style.video(propsItem_box, formProps_box).height,
|
|
23127
|
+
width: style.video(unref(propsItem_box), unref(formProps_box)).width,
|
|
23128
|
+
height: style.video(unref(propsItem_box), unref(formProps_box)).height,
|
|
23137
23129
|
controls: "",
|
|
23138
23130
|
poster: video.poster
|
|
23139
23131
|
}, [
|
|
@@ -23155,15 +23147,15 @@ return (_ctx, _cache) => {
|
|
|
23155
23147
|
], 8 /* PROPS */, _hoisted_10)
|
|
23156
23148
|
]),
|
|
23157
23149
|
createCommentVNode(" 设置了视频删除功能,同时视频不为空 "),
|
|
23158
|
-
(!!propsItem_box.videoDelete && !!unref(formData_box)[propsItem_box.fieldName])
|
|
23150
|
+
(!!unref(propsItem_box).videoDelete && !!unref(formData_box)[unref(propsItem_box).fieldName])
|
|
23159
23151
|
? (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
23160
23152
|
createVNode(_component_el_button, {
|
|
23161
23153
|
size: "small",
|
|
23162
|
-
icon: !unref(formData_box)[propsItem_box.videoDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
|
|
23154
|
+
icon: !unref(formData_box)[unref(propsItem_box).videoDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
|
|
23163
23155
|
onClick: video.delete
|
|
23164
23156
|
}, {
|
|
23165
23157
|
default: withCtx(() => [
|
|
23166
|
-
createTextVNode(toDisplayString(!!unref(formData_box)[propsItem_box.videoDelete] ? '视频已删除,恢复' : '删除'), 1 /* TEXT */)
|
|
23158
|
+
createTextVNode(toDisplayString(!!unref(formData_box)[unref(propsItem_box).videoDelete] ? '视频已删除,恢复' : '删除'), 1 /* TEXT */)
|
|
23167
23159
|
]),
|
|
23168
23160
|
_: 1 /* STABLE */
|
|
23169
23161
|
}, 8 /* PROPS */, ["icon", "onClick"])
|
|
@@ -23173,9 +23165,9 @@ return (_ctx, _cache) => {
|
|
|
23173
23165
|
: createCommentVNode("v-if", true),
|
|
23174
23166
|
createCommentVNode(" 上传及下载 "),
|
|
23175
23167
|
createCommentVNode(" 下载 "),
|
|
23176
|
-
(propsItem_box.inputType === 'download')
|
|
23168
|
+
(unref(propsItem_box).inputType === 'download')
|
|
23177
23169
|
? (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
23178
|
-
(unref(formData_box)[propsItem_box.fieldName])
|
|
23170
|
+
(unref(formData_box)[unref(propsItem_box).fieldName])
|
|
23179
23171
|
? (openBlock(), createElementBlock("a", {
|
|
23180
23172
|
key: 0,
|
|
23181
23173
|
style: normalizeStyle(style.download.style),
|
|
@@ -23191,134 +23183,134 @@ return (_ctx, _cache) => {
|
|
|
23191
23183
|
]))
|
|
23192
23184
|
: createCommentVNode("v-if", true),
|
|
23193
23185
|
createCommentVNode(" 上传多个文件 "),
|
|
23194
|
-
(propsItem_box.inputType === 'upload')
|
|
23186
|
+
(unref(propsItem_box).inputType === 'upload')
|
|
23195
23187
|
? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
23196
23188
|
createVNode(_component_ly0Upload, {
|
|
23197
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
23198
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23189
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23190
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23199
23191
|
myProps: {uploadUrl: upload.uploadUrl}
|
|
23200
23192
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23201
23193
|
]))
|
|
23202
23194
|
: createCommentVNode("v-if", true),
|
|
23203
23195
|
createCommentVNode(" 拖拽上传 "),
|
|
23204
|
-
(propsItem_box.inputType === 'upload-drag')
|
|
23196
|
+
(unref(propsItem_box).inputType === 'upload-drag')
|
|
23205
23197
|
? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
23206
23198
|
createVNode(_component_ly0Upload_drag, {
|
|
23207
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
23208
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23199
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23200
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23209
23201
|
myProps: {uploadUrl: upload.uploadUrl}
|
|
23210
23202
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23211
23203
|
]))
|
|
23212
23204
|
: createCommentVNode("v-if", true),
|
|
23213
23205
|
createCommentVNode(" 图片列表 "),
|
|
23214
|
-
(propsItem_box.inputType === 'upload-picture')
|
|
23206
|
+
(unref(propsItem_box).inputType === 'upload-picture')
|
|
23215
23207
|
? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
23216
23208
|
createVNode(_component_ly0Upload_picture, {
|
|
23217
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
23218
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23209
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23210
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23219
23211
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23220
23212
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23221
23213
|
]))
|
|
23222
23214
|
: createCommentVNode("v-if", true),
|
|
23223
23215
|
createCommentVNode(" 图片墙 "),
|
|
23224
|
-
(propsItem_box.inputType === 'upload-picture-card')
|
|
23216
|
+
(unref(propsItem_box).inputType === 'upload-picture-card')
|
|
23225
23217
|
? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
23226
23218
|
createVNode(_component_ly0Upload_pictureCard, {
|
|
23227
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
23228
|
-
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23219
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23220
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23229
23221
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23230
23222
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23231
23223
|
]))
|
|
23232
23224
|
: createCommentVNode("v-if", true),
|
|
23233
23225
|
createCommentVNode(" 头像 "),
|
|
23234
|
-
(propsItem_box.inputType === 'upload-avatar')
|
|
23226
|
+
(unref(propsItem_box).inputType === 'upload-avatar')
|
|
23235
23227
|
? (openBlock(), createElementBlock("div", _hoisted_21, [
|
|
23236
23228
|
createVNode(_component_ly0Upload_avatar, {
|
|
23237
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
23238
|
-
"onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23229
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23230
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23239
23231
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23240
23232
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23241
23233
|
]))
|
|
23242
23234
|
: createCommentVNode("v-if", true),
|
|
23243
23235
|
createCommentVNode(" 车牌识别 "),
|
|
23244
|
-
(propsItem_box.inputType === 'upload-carplate')
|
|
23236
|
+
(unref(propsItem_box).inputType === 'upload-carplate')
|
|
23245
23237
|
? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
23246
23238
|
createVNode(_component_ly0Upload_carplate, {
|
|
23247
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
23248
|
-
"onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23239
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23240
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23249
23241
|
myProps: {uploadUrl: upload.uploadUrl_carplate}
|
|
23250
23242
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23251
23243
|
]))
|
|
23252
23244
|
: createCommentVNode("v-if", true),
|
|
23253
23245
|
createCommentVNode(" 行政区划 "),
|
|
23254
|
-
(propsItem_box.inputType === 'd3gbt2260')
|
|
23246
|
+
(unref(propsItem_box).inputType === 'd3gbt2260')
|
|
23255
23247
|
? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
23256
23248
|
createVNode(_component_ly0gbt2260, {
|
|
23257
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
23258
|
-
"onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23259
|
-
myProps: {readOnly: propsItem_box.readOnly}
|
|
23249
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23250
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23251
|
+
myProps: {readOnly: unref(propsItem_box).readOnly}
|
|
23260
23252
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23261
23253
|
]))
|
|
23262
23254
|
: createCommentVNode("v-if", true),
|
|
23263
23255
|
createCommentVNode(" 商品分类 "),
|
|
23264
|
-
(propsItem_box.inputType === 'd7group')
|
|
23256
|
+
(unref(propsItem_box).inputType === 'd7group')
|
|
23265
23257
|
? (openBlock(), createElementBlock("div", _hoisted_24, [
|
|
23266
23258
|
createVNode(_component_ly0d7group, {
|
|
23267
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
23268
|
-
"onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23269
|
-
myProps: {readOnly: propsItem_box.readOnly}
|
|
23259
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23260
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23261
|
+
myProps: {readOnly: unref(propsItem_box).readOnly}
|
|
23270
23262
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23271
23263
|
]))
|
|
23272
23264
|
: createCommentVNode("v-if", true),
|
|
23273
23265
|
createCommentVNode(" 邮寄地址 "),
|
|
23274
|
-
(propsItem_box.inputType === 'd7postal')
|
|
23266
|
+
(unref(propsItem_box).inputType === 'd7postal')
|
|
23275
23267
|
? (openBlock(), createElementBlock("div", _hoisted_25, [
|
|
23276
23268
|
createVNode(_component_ly0d7postal, {
|
|
23277
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
23278
|
-
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23279
|
-
myProps: {readOnly: propsItem_box.readOnly}
|
|
23269
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23270
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23271
|
+
myProps: {readOnly: unref(propsItem_box).readOnly}
|
|
23280
23272
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23281
23273
|
]))
|
|
23282
23274
|
: createCommentVNode("v-if", true),
|
|
23283
23275
|
createCommentVNode(" 商品标价 "),
|
|
23284
|
-
(propsItem_box.inputType === 'd7price')
|
|
23276
|
+
(unref(propsItem_box).inputType === 'd7price')
|
|
23285
23277
|
? (openBlock(), createElementBlock("div", _hoisted_26, [
|
|
23286
23278
|
createVNode(_component_ly0d7price, {
|
|
23287
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
23288
|
-
"onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23289
|
-
myProps: {readOnly: propsItem_box.readOnly}
|
|
23279
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23280
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23281
|
+
myProps: {readOnly: unref(propsItem_box).readOnly}
|
|
23290
23282
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23291
23283
|
]))
|
|
23292
23284
|
: createCommentVNode("v-if", true),
|
|
23293
23285
|
createCommentVNode(" 商品规格 "),
|
|
23294
|
-
(propsItem_box.inputType === 'd7size')
|
|
23286
|
+
(unref(propsItem_box).inputType === 'd7size')
|
|
23295
23287
|
? (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
23296
23288
|
createVNode(_component_ly0d7size, {
|
|
23297
|
-
modelValue: unref(formData_box)[propsItem_box.fieldName],
|
|
23298
|
-
"onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23299
|
-
myProps: {readOnly: propsItem_box.readOnly}
|
|
23289
|
+
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23290
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23291
|
+
myProps: {readOnly: unref(propsItem_box).readOnly}
|
|
23300
23292
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23301
23293
|
]))
|
|
23302
23294
|
: createCommentVNode("v-if", true),
|
|
23303
23295
|
createCommentVNode(" 商品缩略图 "),
|
|
23304
|
-
(propsItem_box.inputType === 'd7thumb')
|
|
23296
|
+
(unref(propsItem_box).inputType === 'd7thumb')
|
|
23305
23297
|
? (openBlock(), createElementBlock("div", _hoisted_28, [
|
|
23306
23298
|
createVNode(_component_ly0d7thumb, {
|
|
23307
23299
|
modelValue: unref(formData_box),
|
|
23308
|
-
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (isRef(formData_box) ? (formData_box).value = $event :
|
|
23300
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (isRef(formData_box) ? (formData_box).value = $event : null)),
|
|
23309
23301
|
myProps: {
|
|
23310
23302
|
thumb: {
|
|
23311
|
-
fieldName: propsItem_box.thumb.fieldName || formProps_box.para.ly0d7thumb.thumb.fieldName,
|
|
23312
|
-
width: propsItem_box.thumb.width || formProps_box.para.ly0d7thumb.thumb.width,
|
|
23313
|
-
height: propsItem_box.thumb.height || formProps_box.para.ly0d7thumb.thumb.height
|
|
23303
|
+
fieldName: unref(propsItem_box).thumb.fieldName || unref(formProps_box).para.ly0d7thumb.thumb.fieldName,
|
|
23304
|
+
width: unref(propsItem_box).thumb.width || unref(formProps_box).para.ly0d7thumb.thumb.width,
|
|
23305
|
+
height: unref(propsItem_box).thumb.height || unref(formProps_box).para.ly0d7thumb.thumb.height
|
|
23314
23306
|
},
|
|
23315
23307
|
name: {
|
|
23316
|
-
fieldName: propsItem_box.name.fieldName || formProps_box.para.ly0d7thumb.name.fieldName,
|
|
23308
|
+
fieldName: unref(propsItem_box).name.fieldName || unref(formProps_box).para.ly0d7thumb.name.fieldName,
|
|
23317
23309
|
},
|
|
23318
23310
|
number: {
|
|
23319
|
-
fieldName: propsItem_box.number.fieldName || formProps_box.para.ly0d7thumb.number.fieldName,
|
|
23311
|
+
fieldName: unref(propsItem_box).number.fieldName || unref(formProps_box).para.ly0d7thumb.number.fieldName,
|
|
23320
23312
|
},
|
|
23321
|
-
readOnly: propsItem_box.readOnly
|
|
23313
|
+
readOnly: unref(propsItem_box).readOnly
|
|
23322
23314
|
}
|
|
23323
23315
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23324
23316
|
]))
|
|
@@ -23359,9 +23351,10 @@ var script$f = {
|
|
|
23359
23351
|
|
|
23360
23352
|
const props = __props;
|
|
23361
23353
|
|
|
23362
|
-
|
|
23363
|
-
const
|
|
23364
|
-
const
|
|
23354
|
+
// props属性包装,使得页面和js使用相同的命名
|
|
23355
|
+
const formData_box = props.modelValue;
|
|
23356
|
+
const formProps_box = props.myProps;
|
|
23357
|
+
const scopeThis_box = props.scopeThis;
|
|
23365
23358
|
|
|
23366
23359
|
const style = reactive({
|
|
23367
23360
|
collapse: styleModule.collapse,
|
|
@@ -23422,10 +23415,10 @@ return (_ctx, _cache) => {
|
|
|
23422
23415
|
|
|
23423
23416
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
23424
23417
|
createCommentVNode(" 置顶菜单 "),
|
|
23425
|
-
(formProps_box.menu && formProps_box.menu.menu && formProps_box.menu.menu.length > 0)
|
|
23418
|
+
(unref(formProps_box).menu && unref(formProps_box).menu.menu && unref(formProps_box).menu.menu.length > 0)
|
|
23426
23419
|
? (openBlock(), createBlock(_component_ly0Menu, {
|
|
23427
23420
|
key: 0,
|
|
23428
|
-
myProps: formProps_box.menu,
|
|
23421
|
+
myProps: unref(formProps_box).menu,
|
|
23429
23422
|
scopeThis: __props.scopeThis
|
|
23430
23423
|
}, null, 8 /* PROPS */, ["myProps", "scopeThis"]))
|
|
23431
23424
|
: createCommentVNode("v-if", true),
|
|
@@ -23433,13 +23426,13 @@ return (_ctx, _cache) => {
|
|
|
23433
23426
|
createElementVNode("div", {
|
|
23434
23427
|
style: normalizeStyle(style.root_box)
|
|
23435
23428
|
}, [
|
|
23436
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(formProps_box.cols, (item, index) => {
|
|
23429
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(formProps_box).cols, (item, index) => {
|
|
23437
23430
|
return (openBlock(), createElementBlock("div", { key: index }, [
|
|
23438
23431
|
createElementVNode("table", null, [
|
|
23439
23432
|
createElementVNode("tbody", null, [
|
|
23440
23433
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.items, (item0, index0) => {
|
|
23441
23434
|
return (openBlock(), createElementBlock(Fragment, { key: index0 }, [
|
|
23442
|
-
(item0.hdlVisible ? item0.hdlVisible({formData: unref(formData_box), scopeThis: scopeThis_box}) : true)
|
|
23435
|
+
(item0.hdlVisible ? item0.hdlVisible({formData: unref(formData_box), scopeThis: unref(scopeThis_box)}) : true)
|
|
23443
23436
|
? (openBlock(), createElementBlock("tr", _hoisted_1$c, [
|
|
23444
23437
|
(!!item0.label)
|
|
23445
23438
|
? (openBlock(), createElementBlock("td", {
|
|
@@ -23448,9 +23441,9 @@ return (_ctx, _cache) => {
|
|
|
23448
23441
|
}, [
|
|
23449
23442
|
createVNode(script$h, {
|
|
23450
23443
|
modelValue: unref(formData_box),
|
|
23451
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event :
|
|
23452
|
-
myProps: formProps_box,
|
|
23453
|
-
scopeThis: scopeThis_box,
|
|
23444
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event : null)),
|
|
23445
|
+
myProps: unref(formProps_box),
|
|
23446
|
+
scopeThis: unref(scopeThis_box),
|
|
23454
23447
|
item: item0
|
|
23455
23448
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis", "item"])
|
|
23456
23449
|
], 4 /* STYLE */))
|
|
@@ -23473,7 +23466,7 @@ return (_ctx, _cache) => {
|
|
|
23473
23466
|
default: withCtx(() => [
|
|
23474
23467
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item0.items, (item1, index1) => {
|
|
23475
23468
|
return (openBlock(), createElementBlock(Fragment, { key: index1 }, [
|
|
23476
|
-
(item1.hdlVisible ? item1.hdlVisible({formData: unref(formData_box), scopeThis: scopeThis_box}) : true)
|
|
23469
|
+
(item1.hdlVisible ? item1.hdlVisible({formData: unref(formData_box), scopeThis: unref(scopeThis_box)}) : true)
|
|
23477
23470
|
? (openBlock(), createBlock(_component_el_collapse_item, {
|
|
23478
23471
|
key: 0,
|
|
23479
23472
|
title: item1.title,
|
|
@@ -23487,7 +23480,7 @@ return (_ctx, _cache) => {
|
|
|
23487
23480
|
return (openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
23488
23481
|
(
|
|
23489
23482
|
item2.hdlVisible
|
|
23490
|
-
? item2.hdlVisible({formData: unref(formData_box), scopeThis: scopeThis_box})
|
|
23483
|
+
? item2.hdlVisible({formData: unref(formData_box), scopeThis: unref(scopeThis_box)})
|
|
23491
23484
|
: true
|
|
23492
23485
|
)
|
|
23493
23486
|
? (openBlock(), createElementBlock("tr", _hoisted_3$5, [
|
|
@@ -23498,9 +23491,9 @@ return (_ctx, _cache) => {
|
|
|
23498
23491
|
}, [
|
|
23499
23492
|
createVNode(script$h, {
|
|
23500
23493
|
modelValue: unref(formData_box),
|
|
23501
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (isRef(formData_box) ? (formData_box).value = $event :
|
|
23502
|
-
myProps: formProps_box,
|
|
23503
|
-
scopeThis: scopeThis_box,
|
|
23494
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (isRef(formData_box) ? (formData_box).value = $event : null)),
|
|
23495
|
+
myProps: unref(formProps_box),
|
|
23496
|
+
scopeThis: unref(scopeThis_box),
|
|
23504
23497
|
item: item2
|
|
23505
23498
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis", "item"])
|
|
23506
23499
|
], 4 /* STYLE */))
|
|
@@ -23511,9 +23504,9 @@ return (_ctx, _cache) => {
|
|
|
23511
23504
|
}, [
|
|
23512
23505
|
createVNode(script$g, {
|
|
23513
23506
|
modelValue: unref(formData_box),
|
|
23514
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event :
|
|
23515
|
-
myProps: formProps_box,
|
|
23516
|
-
scopeThis: scopeThis_box,
|
|
23507
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event : null)),
|
|
23508
|
+
myProps: unref(formProps_box),
|
|
23509
|
+
scopeThis: unref(scopeThis_box),
|
|
23517
23510
|
item: item2
|
|
23518
23511
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis", "item"])
|
|
23519
23512
|
], 12 /* STYLE, PROPS */, _hoisted_4$3)
|
|
@@ -23534,9 +23527,9 @@ return (_ctx, _cache) => {
|
|
|
23534
23527
|
: createCommentVNode("v-if", true),
|
|
23535
23528
|
createVNode(script$g, {
|
|
23536
23529
|
modelValue: unref(formData_box),
|
|
23537
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (isRef(formData_box) ? (formData_box).value = $event :
|
|
23538
|
-
myProps: formProps_box,
|
|
23539
|
-
scopeThis: scopeThis_box,
|
|
23530
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (isRef(formData_box) ? (formData_box).value = $event : null)),
|
|
23531
|
+
myProps: unref(formProps_box),
|
|
23532
|
+
scopeThis: unref(scopeThis_box),
|
|
23540
23533
|
item: item0
|
|
23541
23534
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis", "item"])
|
|
23542
23535
|
], 12 /* STYLE, PROPS */, _hoisted_2$c)
|
|
@@ -23550,7 +23543,7 @@ return (_ctx, _cache) => {
|
|
|
23550
23543
|
}), 128 /* KEYED_FRAGMENT */))
|
|
23551
23544
|
], 4 /* STYLE */),
|
|
23552
23545
|
createCommentVNode(" 提交 "),
|
|
23553
|
-
(formProps_box.submit.switch)
|
|
23546
|
+
(unref(formProps_box).submit.switch)
|
|
23554
23547
|
? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
23555
23548
|
createElementVNode("div", {
|
|
23556
23549
|
style: normalizeStyle(style.line)
|
|
@@ -23600,9 +23593,10 @@ var script$e = {
|
|
|
23600
23593
|
|
|
23601
23594
|
const props = __props;
|
|
23602
23595
|
|
|
23603
|
-
|
|
23596
|
+
// props属性包装,使得页面和js使用相同的命名
|
|
23597
|
+
const formData_box = props.modelValue;
|
|
23604
23598
|
const formProps_box = reactive(Object.assign({}, ly0default$2.myProps, props.myProps));
|
|
23605
|
-
const scopeThis_box =
|
|
23599
|
+
const scopeThis_box = props.scopeThis;
|
|
23606
23600
|
|
|
23607
23601
|
return (_ctx, _cache) => {
|
|
23608
23602
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
@@ -23623,9 +23617,9 @@ return (_ctx, _cache) => {
|
|
|
23623
23617
|
default: withCtx(() => [
|
|
23624
23618
|
createVNode(script$f, {
|
|
23625
23619
|
modelValue: unref(formData_box),
|
|
23626
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event :
|
|
23620
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event : null)),
|
|
23627
23621
|
myProps: formProps_box,
|
|
23628
|
-
scopeThis: scopeThis_box
|
|
23622
|
+
scopeThis: unref(scopeThis_box)
|
|
23629
23623
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"])
|
|
23630
23624
|
]),
|
|
23631
23625
|
_: 1 /* STABLE */
|
|
@@ -23633,9 +23627,9 @@ return (_ctx, _cache) => {
|
|
|
23633
23627
|
: (openBlock(), createBlock(script$f, {
|
|
23634
23628
|
key: 1,
|
|
23635
23629
|
modelValue: unref(formData_box),
|
|
23636
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event :
|
|
23630
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event : null)),
|
|
23637
23631
|
myProps: formProps_box,
|
|
23638
|
-
scopeThis: scopeThis_box
|
|
23632
|
+
scopeThis: unref(scopeThis_box)
|
|
23639
23633
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]))
|
|
23640
23634
|
}
|
|
23641
23635
|
}
|