@yoooloo42/joker 1.0.100 → 1.0.102
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 +132 -113
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +133 -114
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -22619,6 +22619,7 @@ var script$g = {
|
|
|
22619
22619
|
|
|
22620
22620
|
const props = __props;
|
|
22621
22621
|
|
|
22622
|
+
let formData_box = vue.reactive(props.modelValue);
|
|
22622
22623
|
const formProps_box = vue.reactive(Object.assign({}, props.myProps));
|
|
22623
22624
|
const scopeThis_box = vue.reactive(Object.assign({}, props.scopeThis));
|
|
22624
22625
|
const propsItem_box = vue.reactive(Object.assign({}, props.item));
|
|
@@ -22627,7 +22628,7 @@ const input = vue.reactive({
|
|
|
22627
22628
|
placeholder: propsItem_box.placeholder || formProps_box.para.placeholder.input,
|
|
22628
22629
|
showPassword: !!propsItem_box.showPassword,
|
|
22629
22630
|
hdlCannotInput: value => { // 解决偶发不能输入的问题
|
|
22630
|
-
|
|
22631
|
+
formData_box[propsItem_box.fieldName] = value;
|
|
22631
22632
|
}
|
|
22632
22633
|
});
|
|
22633
22634
|
|
|
@@ -22637,12 +22638,12 @@ const select = vue.reactive({
|
|
|
22637
22638
|
if (propsItem_box.items) {
|
|
22638
22639
|
return propsItem_box.items
|
|
22639
22640
|
} else if (propsItem_box.hdlGetItems) {
|
|
22640
|
-
return propsItem_box.hdlGetItems({formData:
|
|
22641
|
+
return propsItem_box.hdlGetItems({formData: formData_box, scopeThis: scopeThis_box})
|
|
22641
22642
|
}
|
|
22642
22643
|
}),
|
|
22643
22644
|
hdlChange: value => {
|
|
22644
22645
|
if (propsItem_box.hdlChange) {
|
|
22645
|
-
propsItem_box.hdlChange({formData:
|
|
22646
|
+
propsItem_box.hdlChange({formData: formData_box, scopeThis: scopeThis_box, value});
|
|
22646
22647
|
}
|
|
22647
22648
|
}
|
|
22648
22649
|
});
|
|
@@ -22674,7 +22675,7 @@ const datePicker = vue.reactive({
|
|
|
22674
22675
|
}),
|
|
22675
22676
|
hdlChange: value => {
|
|
22676
22677
|
if (propsItem_box.hdlChange) {
|
|
22677
|
-
propsItem_box.hdlChange({formData:
|
|
22678
|
+
propsItem_box.hdlChange({formData: formData_box, scopeThis: scopeThis_box, value});
|
|
22678
22679
|
}
|
|
22679
22680
|
}
|
|
22680
22681
|
});
|
|
@@ -22682,7 +22683,7 @@ const datePicker = vue.reactive({
|
|
|
22682
22683
|
const ly0switch = vue.reactive({
|
|
22683
22684
|
hdlChange: value => {
|
|
22684
22685
|
if (propsItem_box.hdlChange) {
|
|
22685
|
-
propsItem_box.hdlChange({formData:
|
|
22686
|
+
propsItem_box.hdlChange({formData: formData_box, scopeThis: scopeThis_box, value});
|
|
22686
22687
|
}
|
|
22687
22688
|
}
|
|
22688
22689
|
});
|
|
@@ -22690,7 +22691,7 @@ const ly0switch = vue.reactive({
|
|
|
22690
22691
|
const radioGroup = vue.reactive({
|
|
22691
22692
|
hdlChange: value => {
|
|
22692
22693
|
if (propsItem_box.hdlChange) {
|
|
22693
|
-
propsItem_box.hdlChange({formData:
|
|
22694
|
+
propsItem_box.hdlChange({formData: formData_box, scopeThis: scopeThis_box, value});
|
|
22694
22695
|
}
|
|
22695
22696
|
}
|
|
22696
22697
|
});
|
|
@@ -22699,20 +22700,20 @@ const image = vue.reactive({
|
|
|
22699
22700
|
getSrc: vue.computed(() => {
|
|
22700
22701
|
if (
|
|
22701
22702
|
propsItem_box.imageDelete &&
|
|
22702
|
-
|
|
22703
|
-
(
|
|
22704
|
-
|
|
22703
|
+
formData_box[propsItem_box.imageDelete] &&
|
|
22704
|
+
(formData_box[propsItem_box.imageDelete] === true ||
|
|
22705
|
+
formData_box[propsItem_box.imageDelete] === 'true') // 图片已删除
|
|
22705
22706
|
) {
|
|
22706
22707
|
return ['']
|
|
22707
22708
|
}
|
|
22708
|
-
if (
|
|
22709
|
-
return
|
|
22709
|
+
if (formData_box[propsItem_box.fieldName]) {
|
|
22710
|
+
return formData_box[propsItem_box.fieldName]
|
|
22710
22711
|
}
|
|
22711
22712
|
return ['']
|
|
22712
22713
|
}),
|
|
22713
22714
|
delete: ()=>{
|
|
22714
|
-
|
|
22715
|
-
!
|
|
22715
|
+
formData_box[propsItem_box.imageDelete] =
|
|
22716
|
+
!formData_box[propsItem_box.imageDelete];
|
|
22716
22717
|
}
|
|
22717
22718
|
});
|
|
22718
22719
|
|
|
@@ -22720,32 +22721,32 @@ const images = vue.reactive({
|
|
|
22720
22721
|
getSrc: (itemImages, indexImages) => {
|
|
22721
22722
|
if (
|
|
22722
22723
|
!propsItem_box.imageDelete ||
|
|
22723
|
-
!
|
|
22724
|
+
!formData_box[propsItem_box.imageDelete].includes(itemImages)
|
|
22724
22725
|
) {
|
|
22725
22726
|
return itemImages
|
|
22726
22727
|
}
|
|
22727
22728
|
return ''
|
|
22728
22729
|
},
|
|
22729
22730
|
delete: (itemImages, indexImages) => {
|
|
22730
|
-
if (!
|
|
22731
|
-
|
|
22731
|
+
if (!formData_box[propsItem_box.imageDelete].includes(itemImages)) {
|
|
22732
|
+
formData_box[propsItem_box.imageDelete].push(itemImages);
|
|
22732
22733
|
return
|
|
22733
22734
|
}
|
|
22734
22735
|
|
|
22735
|
-
|
|
22736
|
+
formData_box[propsItem_box.imageDelete] = formData_box[propsItem_box.imageDelete].filter(i => {
|
|
22736
22737
|
return i !== itemImages
|
|
22737
22738
|
});
|
|
22738
22739
|
},
|
|
22739
22740
|
show: vue.computed(()=>{
|
|
22740
22741
|
let result = [];
|
|
22741
22742
|
if (!propsItem_box.imageDelete) {
|
|
22742
|
-
|
|
22743
|
+
formData_box[propsItem_box.fieldName].forEach(i => {
|
|
22743
22744
|
result.push(i);
|
|
22744
22745
|
});
|
|
22745
22746
|
} else {
|
|
22746
|
-
|
|
22747
|
+
formData_box[propsItem_box.fieldName]
|
|
22747
22748
|
.filter(i => {
|
|
22748
|
-
return !
|
|
22749
|
+
return !formData_box[propsItem_box.imageDelete].includes(i)
|
|
22749
22750
|
})
|
|
22750
22751
|
.forEach(i => {
|
|
22751
22752
|
result.push(i);
|
|
@@ -22763,49 +22764,49 @@ const video = vue.reactive({
|
|
|
22763
22764
|
src: vue.computed(()=>{
|
|
22764
22765
|
if (
|
|
22765
22766
|
propsItem_box.videoDelete &&
|
|
22766
|
-
|
|
22767
|
-
(
|
|
22768
|
-
|
|
22767
|
+
formData_box[propsItem_box.videoDelete] &&
|
|
22768
|
+
(formData_box[propsItem_box.videoDelete] === true ||
|
|
22769
|
+
formData_box[propsItem_box.videoDelete] === 'true') // 图片已删除
|
|
22769
22770
|
) {
|
|
22770
22771
|
return ''
|
|
22771
22772
|
}
|
|
22772
|
-
if (
|
|
22773
|
-
return
|
|
22773
|
+
if (formData_box[propsItem_box.fieldName]) {
|
|
22774
|
+
return formData_box[propsItem_box.fieldName]
|
|
22774
22775
|
}
|
|
22775
22776
|
return ''
|
|
22776
22777
|
}),
|
|
22777
22778
|
poster: vue.computed(()=>{
|
|
22778
22779
|
if (
|
|
22779
22780
|
propsItem_box.videoDelete &&
|
|
22780
|
-
|
|
22781
|
-
(
|
|
22782
|
-
|
|
22781
|
+
formData_box[propsItem_box.videoDelete] &&
|
|
22782
|
+
(formData_box[propsItem_box.videoDelete] === true ||
|
|
22783
|
+
formData_box[propsItem_box.videoDelete] === 'true') // 图片已删除
|
|
22783
22784
|
) {
|
|
22784
22785
|
return ''
|
|
22785
22786
|
}
|
|
22786
|
-
if (
|
|
22787
|
-
return
|
|
22787
|
+
if (formData_box[propsItem_box.poster]) {
|
|
22788
|
+
return formData_box[propsItem_box.poster]
|
|
22788
22789
|
}
|
|
22789
22790
|
return ''
|
|
22790
22791
|
}),
|
|
22791
22792
|
delete: ()=>{
|
|
22792
|
-
|
|
22793
|
-
!
|
|
22793
|
+
formData_box[propsItem_box.videoDelete] =
|
|
22794
|
+
!formData_box[propsItem_box.videoDelete];
|
|
22794
22795
|
},
|
|
22795
22796
|
});
|
|
22796
22797
|
|
|
22797
22798
|
const download = vue.reactive({
|
|
22798
22799
|
fileName: propsItem_box.downloadFileName || formProps_box.para.download.fileName,
|
|
22799
22800
|
downloadLabel: vue.computed(() => {
|
|
22800
|
-
if (!
|
|
22801
|
+
if (!formData_box[propsItem_box.fieldName]) {
|
|
22801
22802
|
return formProps_box.para.download.downloadLabelNoSrc
|
|
22802
22803
|
}
|
|
22803
22804
|
if (propsItem_box.hdlGetDownloadLabel) {
|
|
22804
|
-
return propsItem_box.hdlGetDownloadLabel({formData:
|
|
22805
|
+
return propsItem_box.hdlGetDownloadLabel({formData: formData_box, scopeThis: scopeThis_box})
|
|
22805
22806
|
}
|
|
22806
22807
|
return formProps_box.para.download.downloadLabel
|
|
22807
22808
|
}),
|
|
22808
|
-
downloadSrc:
|
|
22809
|
+
downloadSrc: formData_box[propsItem_box.fieldName] || ''
|
|
22809
22810
|
});
|
|
22810
22811
|
|
|
22811
22812
|
const upload = vue.reactive({
|
|
@@ -22867,34 +22868,34 @@ return (_ctx, _cache) => {
|
|
|
22867
22868
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
22868
22869
|
key: 0,
|
|
22869
22870
|
style: vue.normalizeStyle(style.text(propsItem_box, formProps_box))
|
|
22870
|
-
}, vue.toDisplayString(
|
|
22871
|
+
}, vue.toDisplayString(vue.unref(formData_box)[propsItem_box.fieldName] ? vue.unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22871
22872
|
: vue.createCommentVNode("v-if", true),
|
|
22872
22873
|
(propsItem_box.inputType === 'text0')
|
|
22873
22874
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
22874
22875
|
key: 1,
|
|
22875
22876
|
style: vue.normalizeStyle(style.text0(propsItem_box))
|
|
22876
|
-
}, vue.toDisplayString(
|
|
22877
|
+
}, vue.toDisplayString(vue.unref(formData_box)[propsItem_box.fieldName] ? vue.unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22877
22878
|
: vue.createCommentVNode("v-if", true),
|
|
22878
22879
|
(!propsItem_box.inputType)
|
|
22879
22880
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
22880
22881
|
key: 2,
|
|
22881
22882
|
style: vue.normalizeStyle(style.text(propsItem_box, formProps_box))
|
|
22882
|
-
}, vue.toDisplayString(
|
|
22883
|
+
}, vue.toDisplayString(vue.unref(formData_box)[propsItem_box.fieldName] ? vue.unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22883
22884
|
: vue.createCommentVNode("v-if", true),
|
|
22884
22885
|
(propsItem_box.inputType === 'expression')
|
|
22885
22886
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
22886
22887
|
key: 3,
|
|
22887
22888
|
style: vue.normalizeStyle(style.text(propsItem_box, formProps_box))
|
|
22888
|
-
}, vue.toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData:
|
|
22889
|
-
? propsItem_box.hdlExpression({formData:
|
|
22889
|
+
}, vue.toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: vue.unref(formData_box), scopeThis: __props.scopeThis})
|
|
22890
|
+
? propsItem_box.hdlExpression({formData: vue.unref(formData_box), scopeThis: scopeThis_box})
|
|
22890
22891
|
: ' '), 5 /* TEXT, STYLE */))
|
|
22891
22892
|
: vue.createCommentVNode("v-if", true),
|
|
22892
22893
|
(propsItem_box.inputType === 'expression0')
|
|
22893
22894
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
22894
22895
|
key: 4,
|
|
22895
22896
|
style: vue.normalizeStyle(style.text0(propsItem_box))
|
|
22896
|
-
}, vue.toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData:
|
|
22897
|
-
? propsItem_box.hdlExpression({formData:
|
|
22897
|
+
}, vue.toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: vue.unref(formData_box), scopeThis: scopeThis_box})
|
|
22898
|
+
? propsItem_box.hdlExpression({formData: vue.unref(formData_box), scopeThis: scopeThis_box})
|
|
22898
22899
|
: ' '), 5 /* TEXT, STYLE */))
|
|
22899
22900
|
: vue.createCommentVNode("v-if", true),
|
|
22900
22901
|
(propsItem_box.inputType === 'line')
|
|
@@ -22907,8 +22908,8 @@ return (_ctx, _cache) => {
|
|
|
22907
22908
|
(propsItem_box.inputType === 'input')
|
|
22908
22909
|
? (vue.openBlock(), vue.createBlock(_component_el_input, {
|
|
22909
22910
|
key: 6,
|
|
22910
|
-
modelValue:
|
|
22911
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((
|
|
22911
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22912
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22912
22913
|
placeholder: input.placeholder,
|
|
22913
22914
|
style: vue.normalizeStyle(style.input(propsItem_box, formProps_box)),
|
|
22914
22915
|
onInput: input.hdlCannotInput,
|
|
@@ -22919,8 +22920,8 @@ return (_ctx, _cache) => {
|
|
|
22919
22920
|
? (vue.openBlock(), vue.createBlock(_component_el_select, {
|
|
22920
22921
|
key: 7,
|
|
22921
22922
|
class: "deep-input",
|
|
22922
|
-
modelValue:
|
|
22923
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((
|
|
22923
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22924
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22924
22925
|
placeholder: select.placeholder,
|
|
22925
22926
|
filterable: "",
|
|
22926
22927
|
style: vue.normalizeStyle(style.input(propsItem_box, formProps_box)),
|
|
@@ -22942,8 +22943,8 @@ return (_ctx, _cache) => {
|
|
|
22942
22943
|
? (vue.openBlock(), vue.createBlock(_component_el_date_picker, {
|
|
22943
22944
|
key: 8,
|
|
22944
22945
|
class: "deep-input",
|
|
22945
|
-
modelValue:
|
|
22946
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((
|
|
22946
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22947
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22947
22948
|
type: propsItem_box.type ? propsItem_box.type : 'datetime',
|
|
22948
22949
|
placeholder: datePicker.placeholder,
|
|
22949
22950
|
format: datePicker.format,
|
|
@@ -22954,8 +22955,8 @@ return (_ctx, _cache) => {
|
|
|
22954
22955
|
(propsItem_box.inputType === 'input-number')
|
|
22955
22956
|
? (vue.openBlock(), vue.createBlock(_component_el_input_number, {
|
|
22956
22957
|
key: 9,
|
|
22957
|
-
modelValue:
|
|
22958
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((
|
|
22958
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22959
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22959
22960
|
size: style.input_number(propsItem_box).facade.size,
|
|
22960
22961
|
min: 'min' in propsItem_box ? propsItem_box.min : 1,
|
|
22961
22962
|
max: 'max' in propsItem_box ? propsItem_box.max : 100,
|
|
@@ -22966,8 +22967,8 @@ return (_ctx, _cache) => {
|
|
|
22966
22967
|
(propsItem_box.inputType === 'switch')
|
|
22967
22968
|
? (vue.openBlock(), vue.createBlock(_component_el_switch, {
|
|
22968
22969
|
key: 10,
|
|
22969
|
-
modelValue:
|
|
22970
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((
|
|
22970
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22971
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22971
22972
|
"active-text": propsItem_box.activeText,
|
|
22972
22973
|
"inactive-text": propsItem_box.inactiveText,
|
|
22973
22974
|
"active-value": propsItem_box.activeValue,
|
|
@@ -22980,8 +22981,8 @@ return (_ctx, _cache) => {
|
|
|
22980
22981
|
(propsItem_box.inputType === 'radio-group')
|
|
22981
22982
|
? (vue.openBlock(), vue.createBlock(_component_el_radio_group, {
|
|
22982
22983
|
key: 11,
|
|
22983
|
-
modelValue:
|
|
22984
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((
|
|
22984
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
22985
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
22985
22986
|
disabled: !!propsItem_box.disabled,
|
|
22986
22987
|
onChange: radioGroup.hdlChange
|
|
22987
22988
|
}, {
|
|
@@ -23026,7 +23027,7 @@ return (_ctx, _cache) => {
|
|
|
23026
23027
|
plain: style.button_group(propsItem_box, item0, item1).button.facade.plain,
|
|
23027
23028
|
round: style.button_group(propsItem_box, item0, item1).button.facade.round,
|
|
23028
23029
|
circle: style.button_group(propsItem_box, item0, item1).button.facade.circle,
|
|
23029
|
-
onClick: $event => (item1.hdlClick ? item1.hdlClick({formData:
|
|
23030
|
+
onClick: $event => (item1.hdlClick ? item1.hdlClick({formData: vue.unref(formData_box), scopeThis: scopeThis_box}) : null),
|
|
23030
23031
|
key: index1
|
|
23031
23032
|
}, {
|
|
23032
23033
|
default: vue.withCtx(() => [
|
|
@@ -23060,15 +23061,15 @@ return (_ctx, _cache) => {
|
|
|
23060
23061
|
}, null, 8 /* PROPS */, ["style", "src", "preview-src-list"])
|
|
23061
23062
|
]),
|
|
23062
23063
|
vue.createCommentVNode(" 设置了图片删除功能,同时图片不为空 "),
|
|
23063
|
-
(!!propsItem_box.imageDelete && !!
|
|
23064
|
+
(!!propsItem_box.imageDelete && !!vue.unref(formData_box)[propsItem_box.fieldName])
|
|
23064
23065
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$4, [
|
|
23065
23066
|
vue.createVNode(_component_el_button, {
|
|
23066
23067
|
size: "small",
|
|
23067
|
-
icon: !
|
|
23068
|
+
icon: !vue.unref(formData_box)[propsItem_box.imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
|
|
23068
23069
|
onClick: image.delete
|
|
23069
23070
|
}, {
|
|
23070
23071
|
default: vue.withCtx(() => [
|
|
23071
|
-
vue.createTextVNode(vue.toDisplayString(
|
|
23072
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(formData_box)[propsItem_box.imageDelete] ? '图片已删除,恢复' : '删除'), 1 /* TEXT */)
|
|
23072
23073
|
]),
|
|
23073
23074
|
_: 1 /* STABLE */
|
|
23074
23075
|
}, 8 /* PROPS */, ["icon", "onClick"])
|
|
@@ -23079,7 +23080,7 @@ return (_ctx, _cache) => {
|
|
|
23079
23080
|
vue.createCommentVNode(" 多个图片 "),
|
|
23080
23081
|
(propsItem_box.inputType === 'images')
|
|
23081
23082
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, [
|
|
23082
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
23083
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(formData_box)[propsItem_box.fieldName], (itemImages, indexImages) => {
|
|
23083
23084
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
23084
23085
|
key: indexImages,
|
|
23085
23086
|
style: vue.normalizeStyle(style.images(propsItem_box, formProps_box).itemBox)
|
|
@@ -23099,7 +23100,7 @@ return (_ctx, _cache) => {
|
|
|
23099
23100
|
onClick: $event => (images.delete(itemImages, indexImages))
|
|
23100
23101
|
}, {
|
|
23101
23102
|
default: vue.withCtx(() => [
|
|
23102
|
-
vue.createTextVNode(vue.toDisplayString(
|
|
23103
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(formData_box)[propsItem_box.imageDelete].includes(itemImages) ? '恢复' : '删除'), 1 /* TEXT */)
|
|
23103
23104
|
]),
|
|
23104
23105
|
_: 2 /* DYNAMIC */
|
|
23105
23106
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"])
|
|
@@ -23116,8 +23117,8 @@ return (_ctx, _cache) => {
|
|
|
23116
23117
|
style: vue.normalizeStyle(style.richtext(propsItem_box, formProps_box))
|
|
23117
23118
|
}, [
|
|
23118
23119
|
vue.createVNode(_component_ly0Richtext, {
|
|
23119
|
-
modelValue:
|
|
23120
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((
|
|
23120
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23121
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23121
23122
|
myProps: richtextProps.value
|
|
23122
23123
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23123
23124
|
], 4 /* STYLE */))
|
|
@@ -23126,7 +23127,7 @@ return (_ctx, _cache) => {
|
|
|
23126
23127
|
(propsItem_box.inputType === 'richtextShow')
|
|
23127
23128
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
23128
23129
|
vue.createElementVNode("div", {
|
|
23129
|
-
innerHTML:
|
|
23130
|
+
innerHTML: vue.unref(formData_box)[propsItem_box.fieldName]
|
|
23130
23131
|
}, null, 8 /* PROPS */, _hoisted_8)
|
|
23131
23132
|
]))
|
|
23132
23133
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -23158,15 +23159,15 @@ return (_ctx, _cache) => {
|
|
|
23158
23159
|
], 8 /* PROPS */, _hoisted_10)
|
|
23159
23160
|
]),
|
|
23160
23161
|
vue.createCommentVNode(" 设置了视频删除功能,同时视频不为空 "),
|
|
23161
|
-
(!!propsItem_box.videoDelete && !!
|
|
23162
|
+
(!!propsItem_box.videoDelete && !!vue.unref(formData_box)[propsItem_box.fieldName])
|
|
23162
23163
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
|
|
23163
23164
|
vue.createVNode(_component_el_button, {
|
|
23164
23165
|
size: "small",
|
|
23165
|
-
icon: !
|
|
23166
|
+
icon: !vue.unref(formData_box)[propsItem_box.videoDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
|
|
23166
23167
|
onClick: video.delete
|
|
23167
23168
|
}, {
|
|
23168
23169
|
default: vue.withCtx(() => [
|
|
23169
|
-
vue.createTextVNode(vue.toDisplayString(!!
|
|
23170
|
+
vue.createTextVNode(vue.toDisplayString(!!vue.unref(formData_box)[propsItem_box.videoDelete] ? '视频已删除,恢复' : '删除'), 1 /* TEXT */)
|
|
23170
23171
|
]),
|
|
23171
23172
|
_: 1 /* STABLE */
|
|
23172
23173
|
}, 8 /* PROPS */, ["icon", "onClick"])
|
|
@@ -23178,7 +23179,7 @@ return (_ctx, _cache) => {
|
|
|
23178
23179
|
vue.createCommentVNode(" 下载 "),
|
|
23179
23180
|
(propsItem_box.inputType === 'download')
|
|
23180
23181
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_15, [
|
|
23181
|
-
(
|
|
23182
|
+
(vue.unref(formData_box)[propsItem_box.fieldName])
|
|
23182
23183
|
? (vue.openBlock(), vue.createElementBlock("a", {
|
|
23183
23184
|
key: 0,
|
|
23184
23185
|
style: vue.normalizeStyle(style.download.style),
|
|
@@ -23197,8 +23198,8 @@ return (_ctx, _cache) => {
|
|
|
23197
23198
|
(propsItem_box.inputType === 'upload')
|
|
23198
23199
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
|
|
23199
23200
|
vue.createVNode(_component_ly0Upload, {
|
|
23200
|
-
modelValue:
|
|
23201
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((
|
|
23201
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23202
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23202
23203
|
myProps: {uploadUrl: upload.uploadUrl}
|
|
23203
23204
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23204
23205
|
]))
|
|
@@ -23207,8 +23208,8 @@ return (_ctx, _cache) => {
|
|
|
23207
23208
|
(propsItem_box.inputType === 'upload-drag')
|
|
23208
23209
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, [
|
|
23209
23210
|
vue.createVNode(_component_ly0Upload_drag, {
|
|
23210
|
-
modelValue:
|
|
23211
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((
|
|
23211
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23212
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23212
23213
|
myProps: {uploadUrl: upload.uploadUrl}
|
|
23213
23214
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23214
23215
|
]))
|
|
@@ -23217,8 +23218,8 @@ return (_ctx, _cache) => {
|
|
|
23217
23218
|
(propsItem_box.inputType === 'upload-picture')
|
|
23218
23219
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
|
|
23219
23220
|
vue.createVNode(_component_ly0Upload_picture, {
|
|
23220
|
-
modelValue:
|
|
23221
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((
|
|
23221
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23222
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23222
23223
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23223
23224
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23224
23225
|
]))
|
|
@@ -23227,8 +23228,8 @@ return (_ctx, _cache) => {
|
|
|
23227
23228
|
(propsItem_box.inputType === 'upload-picture-card')
|
|
23228
23229
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20, [
|
|
23229
23230
|
vue.createVNode(_component_ly0Upload_pictureCard, {
|
|
23230
|
-
modelValue:
|
|
23231
|
-
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((
|
|
23231
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23232
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23232
23233
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23233
23234
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23234
23235
|
]))
|
|
@@ -23237,8 +23238,8 @@ return (_ctx, _cache) => {
|
|
|
23237
23238
|
(propsItem_box.inputType === 'upload-avatar')
|
|
23238
23239
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_21, [
|
|
23239
23240
|
vue.createVNode(_component_ly0Upload_avatar, {
|
|
23240
|
-
modelValue:
|
|
23241
|
-
"onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((
|
|
23241
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23242
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23242
23243
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23243
23244
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23244
23245
|
]))
|
|
@@ -23247,8 +23248,8 @@ return (_ctx, _cache) => {
|
|
|
23247
23248
|
(propsItem_box.inputType === 'upload-carplate')
|
|
23248
23249
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22, [
|
|
23249
23250
|
vue.createVNode(_component_ly0Upload_carplate, {
|
|
23250
|
-
modelValue:
|
|
23251
|
-
"onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((
|
|
23251
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23252
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23252
23253
|
myProps: {uploadUrl: upload.uploadUrl_carplate}
|
|
23253
23254
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23254
23255
|
]))
|
|
@@ -23257,8 +23258,8 @@ return (_ctx, _cache) => {
|
|
|
23257
23258
|
(propsItem_box.inputType === 'd3gbt2260')
|
|
23258
23259
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_23, [
|
|
23259
23260
|
vue.createVNode(_component_ly0gbt2260, {
|
|
23260
|
-
modelValue:
|
|
23261
|
-
"onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((
|
|
23261
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23262
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23262
23263
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23263
23264
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23264
23265
|
]))
|
|
@@ -23267,8 +23268,8 @@ return (_ctx, _cache) => {
|
|
|
23267
23268
|
(propsItem_box.inputType === 'd7group')
|
|
23268
23269
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_24, [
|
|
23269
23270
|
vue.createVNode(_component_ly0d7group, {
|
|
23270
|
-
modelValue:
|
|
23271
|
-
"onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((
|
|
23271
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23272
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23272
23273
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23273
23274
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23274
23275
|
]))
|
|
@@ -23277,8 +23278,8 @@ return (_ctx, _cache) => {
|
|
|
23277
23278
|
(propsItem_box.inputType === 'd7postal')
|
|
23278
23279
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_25, [
|
|
23279
23280
|
vue.createVNode(_component_ly0d7postal, {
|
|
23280
|
-
modelValue:
|
|
23281
|
-
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((
|
|
23281
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23282
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23282
23283
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23283
23284
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23284
23285
|
]))
|
|
@@ -23287,8 +23288,8 @@ return (_ctx, _cache) => {
|
|
|
23287
23288
|
(propsItem_box.inputType === 'd7price')
|
|
23288
23289
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26, [
|
|
23289
23290
|
vue.createVNode(_component_ly0d7price, {
|
|
23290
|
-
modelValue:
|
|
23291
|
-
"onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((
|
|
23291
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23292
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23292
23293
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23293
23294
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23294
23295
|
]))
|
|
@@ -23297,8 +23298,8 @@ return (_ctx, _cache) => {
|
|
|
23297
23298
|
(propsItem_box.inputType === 'd7size')
|
|
23298
23299
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_27, [
|
|
23299
23300
|
vue.createVNode(_component_ly0d7size, {
|
|
23300
|
-
modelValue:
|
|
23301
|
-
"onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((
|
|
23301
|
+
modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
|
|
23302
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
|
|
23302
23303
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23303
23304
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23304
23305
|
]))
|
|
@@ -23307,8 +23308,8 @@ return (_ctx, _cache) => {
|
|
|
23307
23308
|
(propsItem_box.inputType === 'd7thumb')
|
|
23308
23309
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_28, [
|
|
23309
23310
|
vue.createVNode(_component_ly0d7thumb, {
|
|
23310
|
-
modelValue:
|
|
23311
|
-
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => ((
|
|
23311
|
+
modelValue: vue.unref(formData_box),
|
|
23312
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23312
23313
|
myProps: {
|
|
23313
23314
|
thumb: {
|
|
23314
23315
|
fieldName: propsItem_box.thumb.fieldName || formProps_box.para.ly0d7thumb.thumb.fieldName,
|
|
@@ -23362,6 +23363,7 @@ var script$f = {
|
|
|
23362
23363
|
|
|
23363
23364
|
const props = __props;
|
|
23364
23365
|
|
|
23366
|
+
let formData_box = vue.reactive(props.modelValue);
|
|
23365
23367
|
const formProps_box = vue.reactive(Object.assign({}, props.myProps));
|
|
23366
23368
|
const scopeThis_box = vue.reactive(Object.assign({}, props.scopeThis));
|
|
23367
23369
|
|
|
@@ -23379,7 +23381,7 @@ const hdl = {
|
|
|
23379
23381
|
if(formProps_box.submit.handle){
|
|
23380
23382
|
// 执行用户句柄
|
|
23381
23383
|
const result = await formProps_box.submit.handle({
|
|
23382
|
-
formData:
|
|
23384
|
+
formData: formData_box,
|
|
23383
23385
|
scopeThis: scopeThis_box
|
|
23384
23386
|
});
|
|
23385
23387
|
if(result.code !== 0){
|
|
@@ -23391,7 +23393,7 @@ const hdl = {
|
|
|
23391
23393
|
if(formProps_box.submit.url){
|
|
23392
23394
|
const result = await request.ly0.ly0request({
|
|
23393
23395
|
url: formProps_box.submit.url,
|
|
23394
|
-
data:
|
|
23396
|
+
data: formData_box
|
|
23395
23397
|
});
|
|
23396
23398
|
if(result.code !== 0){
|
|
23397
23399
|
return
|
|
@@ -23402,7 +23404,7 @@ const hdl = {
|
|
|
23402
23404
|
if(formProps_box.submit.storpro){
|
|
23403
23405
|
const result = await request.ly0.storpro({
|
|
23404
23406
|
storproName: formProps_box.submit.storpro,
|
|
23405
|
-
data:
|
|
23407
|
+
data: formData_box
|
|
23406
23408
|
});
|
|
23407
23409
|
if(result.code !== 0){
|
|
23408
23410
|
return
|
|
@@ -23413,9 +23415,6 @@ const hdl = {
|
|
|
23413
23415
|
// 关闭表单窗口
|
|
23414
23416
|
formProps_box.popup.visible = false;
|
|
23415
23417
|
}
|
|
23416
|
-
|
|
23417
|
-
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
23418
|
-
emit("update:modelValue", props.modelValue);
|
|
23419
23418
|
}
|
|
23420
23419
|
};
|
|
23421
23420
|
|
|
@@ -23444,7 +23443,7 @@ return (_ctx, _cache) => {
|
|
|
23444
23443
|
vue.createElementVNode("tbody", null, [
|
|
23445
23444
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.items, (item0, index0) => {
|
|
23446
23445
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index0 }, [
|
|
23447
|
-
(item0.hdlVisible ? item0.hdlVisible({formData:
|
|
23446
|
+
(item0.hdlVisible ? item0.hdlVisible({formData: vue.unref(formData_box), scopeThis: scopeThis_box}) : true)
|
|
23448
23447
|
? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_1$c, [
|
|
23449
23448
|
(!!item0.label)
|
|
23450
23449
|
? (vue.openBlock(), vue.createElementBlock("td", {
|
|
@@ -23452,8 +23451,8 @@ return (_ctx, _cache) => {
|
|
|
23452
23451
|
style: vue.normalizeStyle(style.field_box.left)
|
|
23453
23452
|
}, [
|
|
23454
23453
|
vue.createVNode(script$h, {
|
|
23455
|
-
modelValue:
|
|
23456
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((
|
|
23454
|
+
modelValue: vue.unref(formData_box),
|
|
23455
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23457
23456
|
myProps: formProps_box,
|
|
23458
23457
|
scopeThis: scopeThis_box,
|
|
23459
23458
|
item: item0
|
|
@@ -23478,7 +23477,7 @@ return (_ctx, _cache) => {
|
|
|
23478
23477
|
default: vue.withCtx(() => [
|
|
23479
23478
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item0.items, (item1, index1) => {
|
|
23480
23479
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index1 }, [
|
|
23481
|
-
(item1.hdlVisible ? item1.hdlVisible({formData:
|
|
23480
|
+
(item1.hdlVisible ? item1.hdlVisible({formData: vue.unref(formData_box), scopeThis: scopeThis_box}) : true)
|
|
23482
23481
|
? (vue.openBlock(), vue.createBlock(_component_el_collapse_item, {
|
|
23483
23482
|
key: 0,
|
|
23484
23483
|
title: item1.title,
|
|
@@ -23492,7 +23491,7 @@ return (_ctx, _cache) => {
|
|
|
23492
23491
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
23493
23492
|
(
|
|
23494
23493
|
item2.hdlVisible
|
|
23495
|
-
? item2.hdlVisible({formData:
|
|
23494
|
+
? item2.hdlVisible({formData: vue.unref(formData_box), scopeThis: scopeThis_box})
|
|
23496
23495
|
: true
|
|
23497
23496
|
)
|
|
23498
23497
|
? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_3$5, [
|
|
@@ -23502,8 +23501,8 @@ return (_ctx, _cache) => {
|
|
|
23502
23501
|
style: vue.normalizeStyle(style.field_box.left)
|
|
23503
23502
|
}, [
|
|
23504
23503
|
vue.createVNode(script$h, {
|
|
23505
|
-
modelValue:
|
|
23506
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((
|
|
23504
|
+
modelValue: vue.unref(formData_box),
|
|
23505
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23507
23506
|
myProps: formProps_box,
|
|
23508
23507
|
scopeThis: scopeThis_box,
|
|
23509
23508
|
item: item2
|
|
@@ -23515,8 +23514,8 @@ return (_ctx, _cache) => {
|
|
|
23515
23514
|
colspan: style.no_field_label(item2)
|
|
23516
23515
|
}, [
|
|
23517
23516
|
vue.createVNode(script$g, {
|
|
23518
|
-
modelValue:
|
|
23519
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((
|
|
23517
|
+
modelValue: vue.unref(formData_box),
|
|
23518
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23520
23519
|
myProps: formProps_box,
|
|
23521
23520
|
scopeThis: scopeThis_box,
|
|
23522
23521
|
item: item2
|
|
@@ -23538,8 +23537,8 @@ return (_ctx, _cache) => {
|
|
|
23538
23537
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accordion", "modelValue", "onUpdate:modelValue", "style"]))
|
|
23539
23538
|
: vue.createCommentVNode("v-if", true),
|
|
23540
23539
|
vue.createVNode(script$g, {
|
|
23541
|
-
modelValue:
|
|
23542
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((
|
|
23540
|
+
modelValue: vue.unref(formData_box),
|
|
23541
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23543
23542
|
myProps: formProps_box,
|
|
23544
23543
|
scopeThis: scopeThis_box,
|
|
23545
23544
|
item: item0
|
|
@@ -23601,13 +23600,33 @@ var script$e = {
|
|
|
23601
23600
|
default: () => ({})
|
|
23602
23601
|
}
|
|
23603
23602
|
},
|
|
23604
|
-
|
|
23603
|
+
emits: ['update:modelValue', 'change'],
|
|
23604
|
+
setup(__props, { emit: __emit }) {
|
|
23605
23605
|
|
|
23606
23606
|
const props = __props;
|
|
23607
|
+
// 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
|
|
23608
|
+
const emit = __emit;
|
|
23607
23609
|
|
|
23610
|
+
let formData_box = vue.reactive(props.modelValue);
|
|
23608
23611
|
const formProps_box = vue.reactive(Object.assign({}, ly0default$2.myProps, props.myProps));
|
|
23609
23612
|
const scopeThis_box = vue.reactive(Object.assign({}, props.scopeThis));
|
|
23610
23613
|
|
|
23614
|
+
// 表单数据监听
|
|
23615
|
+
vue.watch(
|
|
23616
|
+
formData_box,
|
|
23617
|
+
(newVal, oldVal) => {
|
|
23618
|
+
|
|
23619
|
+
console.log('测试 444 监听', newVal);
|
|
23620
|
+
console.log('测试 555 监听', oldVal);
|
|
23621
|
+
|
|
23622
|
+
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
23623
|
+
emit("update:modelValue", newVal);
|
|
23624
|
+
},
|
|
23625
|
+
{
|
|
23626
|
+
deep: true, // 深层监听
|
|
23627
|
+
}
|
|
23628
|
+
);
|
|
23629
|
+
|
|
23611
23630
|
return (_ctx, _cache) => {
|
|
23612
23631
|
const _component_el_dialog = vue.resolveComponent("el-dialog");
|
|
23613
23632
|
|
|
@@ -23626,8 +23645,8 @@ return (_ctx, _cache) => {
|
|
|
23626
23645
|
}, {
|
|
23627
23646
|
default: vue.withCtx(() => [
|
|
23628
23647
|
vue.createVNode(script$f, {
|
|
23629
|
-
modelValue:
|
|
23630
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((
|
|
23648
|
+
modelValue: vue.unref(formData_box),
|
|
23649
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23631
23650
|
myProps: formProps_box,
|
|
23632
23651
|
scopeThis: scopeThis_box
|
|
23633
23652
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"])
|
|
@@ -23636,8 +23655,8 @@ return (_ctx, _cache) => {
|
|
|
23636
23655
|
}, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
|
|
23637
23656
|
: (vue.openBlock(), vue.createBlock(script$f, {
|
|
23638
23657
|
key: 1,
|
|
23639
|
-
modelValue:
|
|
23640
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((
|
|
23658
|
+
modelValue: vue.unref(formData_box),
|
|
23659
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
23641
23660
|
myProps: formProps_box,
|
|
23642
23661
|
scopeThis: scopeThis_box
|
|
23643
23662
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]))
|