@yoooloo42/joker 1.0.98 → 1.0.100
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 +115 -168
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +116 -169
- 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 { reactive, ref, watch, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, computed, resolveComponent, createBlock,
|
|
2
|
+
import { reactive, ref, watch, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, computed, resolveComponent, createBlock, withCtx, renderList, createTextVNode, createVNode, defineComponent, h, onMounted, onBeforeUnmount, nextTick as nextTick$1, unref } from 'vue';
|
|
3
3
|
import { ElMessage } from 'element-plus';
|
|
4
4
|
|
|
5
5
|
function _mergeNamespaces(n, m) {
|
|
@@ -22519,8 +22519,6 @@ const props = __props;
|
|
|
22519
22519
|
// 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
|
|
22520
22520
|
const emit = __emit;
|
|
22521
22521
|
|
|
22522
|
-
let formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
|
|
22523
|
-
reactive(Object.assign({}, props.myProps));
|
|
22524
22522
|
const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
|
|
22525
22523
|
const propsItem_box = reactive(Object.assign({}, props.item));
|
|
22526
22524
|
|
|
@@ -22531,13 +22529,13 @@ const style = ref({
|
|
|
22531
22529
|
|
|
22532
22530
|
const hdlClick = () => {
|
|
22533
22531
|
if(propsItem_box.hdlLabelClick){
|
|
22534
|
-
propsItem_box.hdlLabelClick({formData:
|
|
22532
|
+
propsItem_box.hdlLabelClick({formData: props.modelValue, scopeThis: scopeThis_box});
|
|
22535
22533
|
}
|
|
22536
22534
|
};
|
|
22537
22535
|
|
|
22538
22536
|
// 表单数据监听
|
|
22539
22537
|
watch(
|
|
22540
|
-
|
|
22538
|
+
props.modelValue, // 监听 reactive 对象时,默认是深层监听
|
|
22541
22539
|
(newVal, oldVal) => {
|
|
22542
22540
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
22543
22541
|
emit("update:modelValue", newVal);
|
|
@@ -22613,14 +22611,10 @@ var script$g = {
|
|
|
22613
22611
|
default: () => ({})
|
|
22614
22612
|
}
|
|
22615
22613
|
},
|
|
22616
|
-
|
|
22617
|
-
setup(__props, { emit: __emit }) {
|
|
22614
|
+
setup(__props) {
|
|
22618
22615
|
|
|
22619
22616
|
const props = __props;
|
|
22620
|
-
// 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
|
|
22621
|
-
const emit = __emit;
|
|
22622
22617
|
|
|
22623
|
-
let formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
|
|
22624
22618
|
const formProps_box = reactive(Object.assign({}, props.myProps));
|
|
22625
22619
|
const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
|
|
22626
22620
|
const propsItem_box = reactive(Object.assign({}, props.item));
|
|
@@ -22629,7 +22623,7 @@ const input = reactive({
|
|
|
22629
22623
|
placeholder: propsItem_box.placeholder || formProps_box.para.placeholder.input,
|
|
22630
22624
|
showPassword: !!propsItem_box.showPassword,
|
|
22631
22625
|
hdlCannotInput: value => { // 解决偶发不能输入的问题
|
|
22632
|
-
|
|
22626
|
+
props.modelValue[propsItem_box.fieldName] = value;
|
|
22633
22627
|
}
|
|
22634
22628
|
});
|
|
22635
22629
|
|
|
@@ -22639,12 +22633,12 @@ const select = reactive({
|
|
|
22639
22633
|
if (propsItem_box.items) {
|
|
22640
22634
|
return propsItem_box.items
|
|
22641
22635
|
} else if (propsItem_box.hdlGetItems) {
|
|
22642
|
-
return propsItem_box.hdlGetItems({formData:
|
|
22636
|
+
return propsItem_box.hdlGetItems({formData: props.modelValue, scopeThis: scopeThis_box})
|
|
22643
22637
|
}
|
|
22644
22638
|
}),
|
|
22645
22639
|
hdlChange: value => {
|
|
22646
22640
|
if (propsItem_box.hdlChange) {
|
|
22647
|
-
propsItem_box.hdlChange({formData:
|
|
22641
|
+
propsItem_box.hdlChange({formData: props.modelValue, scopeThis: scopeThis_box, value});
|
|
22648
22642
|
}
|
|
22649
22643
|
}
|
|
22650
22644
|
});
|
|
@@ -22676,7 +22670,7 @@ const datePicker = reactive({
|
|
|
22676
22670
|
}),
|
|
22677
22671
|
hdlChange: value => {
|
|
22678
22672
|
if (propsItem_box.hdlChange) {
|
|
22679
|
-
propsItem_box.hdlChange({formData:
|
|
22673
|
+
propsItem_box.hdlChange({formData: props.modelValue, scopeThis: scopeThis_box, value});
|
|
22680
22674
|
}
|
|
22681
22675
|
}
|
|
22682
22676
|
});
|
|
@@ -22684,7 +22678,7 @@ const datePicker = reactive({
|
|
|
22684
22678
|
const ly0switch = reactive({
|
|
22685
22679
|
hdlChange: value => {
|
|
22686
22680
|
if (propsItem_box.hdlChange) {
|
|
22687
|
-
propsItem_box.hdlChange({formData:
|
|
22681
|
+
propsItem_box.hdlChange({formData: props.modelValue, scopeThis: scopeThis_box, value});
|
|
22688
22682
|
}
|
|
22689
22683
|
}
|
|
22690
22684
|
});
|
|
@@ -22692,7 +22686,7 @@ const ly0switch = reactive({
|
|
|
22692
22686
|
const radioGroup = reactive({
|
|
22693
22687
|
hdlChange: value => {
|
|
22694
22688
|
if (propsItem_box.hdlChange) {
|
|
22695
|
-
propsItem_box.hdlChange({formData:
|
|
22689
|
+
propsItem_box.hdlChange({formData: props.modelValue, scopeThis: scopeThis_box, value});
|
|
22696
22690
|
}
|
|
22697
22691
|
}
|
|
22698
22692
|
});
|
|
@@ -22701,20 +22695,20 @@ const image = reactive({
|
|
|
22701
22695
|
getSrc: computed(() => {
|
|
22702
22696
|
if (
|
|
22703
22697
|
propsItem_box.imageDelete &&
|
|
22704
|
-
|
|
22705
|
-
(
|
|
22706
|
-
|
|
22698
|
+
props.modelValue[propsItem_box.imageDelete] &&
|
|
22699
|
+
(props.modelValue[propsItem_box.imageDelete] === true ||
|
|
22700
|
+
props.modelValue[propsItem_box.imageDelete] === 'true') // 图片已删除
|
|
22707
22701
|
) {
|
|
22708
22702
|
return ['']
|
|
22709
22703
|
}
|
|
22710
|
-
if (
|
|
22711
|
-
return
|
|
22704
|
+
if (props.modelValue[propsItem_box.fieldName]) {
|
|
22705
|
+
return props.modelValue[propsItem_box.fieldName]
|
|
22712
22706
|
}
|
|
22713
22707
|
return ['']
|
|
22714
22708
|
}),
|
|
22715
22709
|
delete: ()=>{
|
|
22716
|
-
|
|
22717
|
-
!
|
|
22710
|
+
props.modelValue[propsItem_box.imageDelete] =
|
|
22711
|
+
!props.modelValue[propsItem_box.imageDelete];
|
|
22718
22712
|
}
|
|
22719
22713
|
});
|
|
22720
22714
|
|
|
@@ -22722,32 +22716,32 @@ const images = reactive({
|
|
|
22722
22716
|
getSrc: (itemImages, indexImages) => {
|
|
22723
22717
|
if (
|
|
22724
22718
|
!propsItem_box.imageDelete ||
|
|
22725
|
-
!
|
|
22719
|
+
!props.modelValue[propsItem_box.imageDelete].includes(itemImages)
|
|
22726
22720
|
) {
|
|
22727
22721
|
return itemImages
|
|
22728
22722
|
}
|
|
22729
22723
|
return ''
|
|
22730
22724
|
},
|
|
22731
22725
|
delete: (itemImages, indexImages) => {
|
|
22732
|
-
if (!
|
|
22733
|
-
|
|
22726
|
+
if (!props.modelValue[propsItem_box.imageDelete].includes(itemImages)) {
|
|
22727
|
+
props.modelValue[propsItem_box.imageDelete].push(itemImages);
|
|
22734
22728
|
return
|
|
22735
22729
|
}
|
|
22736
22730
|
|
|
22737
|
-
|
|
22731
|
+
props.modelValue[propsItem_box.imageDelete] = props.modelValue[propsItem_box.imageDelete].filter(i => {
|
|
22738
22732
|
return i !== itemImages
|
|
22739
22733
|
});
|
|
22740
22734
|
},
|
|
22741
22735
|
show: computed(()=>{
|
|
22742
22736
|
let result = [];
|
|
22743
22737
|
if (!propsItem_box.imageDelete) {
|
|
22744
|
-
|
|
22738
|
+
props.modelValue[propsItem_box.fieldName].forEach(i => {
|
|
22745
22739
|
result.push(i);
|
|
22746
22740
|
});
|
|
22747
22741
|
} else {
|
|
22748
|
-
|
|
22742
|
+
props.modelValue[propsItem_box.fieldName]
|
|
22749
22743
|
.filter(i => {
|
|
22750
|
-
return !
|
|
22744
|
+
return !props.modelValue[propsItem_box.imageDelete].includes(i)
|
|
22751
22745
|
})
|
|
22752
22746
|
.forEach(i => {
|
|
22753
22747
|
result.push(i);
|
|
@@ -22765,49 +22759,49 @@ const video = reactive({
|
|
|
22765
22759
|
src: computed(()=>{
|
|
22766
22760
|
if (
|
|
22767
22761
|
propsItem_box.videoDelete &&
|
|
22768
|
-
|
|
22769
|
-
(
|
|
22770
|
-
|
|
22762
|
+
props.modelValue[propsItem_box.videoDelete] &&
|
|
22763
|
+
(props.modelValue[propsItem_box.videoDelete] === true ||
|
|
22764
|
+
props.modelValue[propsItem_box.videoDelete] === 'true') // 图片已删除
|
|
22771
22765
|
) {
|
|
22772
22766
|
return ''
|
|
22773
22767
|
}
|
|
22774
|
-
if (
|
|
22775
|
-
return
|
|
22768
|
+
if (props.modelValue[propsItem_box.fieldName]) {
|
|
22769
|
+
return props.modelValue[propsItem_box.fieldName]
|
|
22776
22770
|
}
|
|
22777
22771
|
return ''
|
|
22778
22772
|
}),
|
|
22779
22773
|
poster: computed(()=>{
|
|
22780
22774
|
if (
|
|
22781
22775
|
propsItem_box.videoDelete &&
|
|
22782
|
-
|
|
22783
|
-
(
|
|
22784
|
-
|
|
22776
|
+
props.modelValue[propsItem_box.videoDelete] &&
|
|
22777
|
+
(props.modelValue[propsItem_box.videoDelete] === true ||
|
|
22778
|
+
props.modelValue[propsItem_box.videoDelete] === 'true') // 图片已删除
|
|
22785
22779
|
) {
|
|
22786
22780
|
return ''
|
|
22787
22781
|
}
|
|
22788
|
-
if (
|
|
22789
|
-
return
|
|
22782
|
+
if (props.modelValue[propsItem_box.poster]) {
|
|
22783
|
+
return props.modelValue[propsItem_box.poster]
|
|
22790
22784
|
}
|
|
22791
22785
|
return ''
|
|
22792
22786
|
}),
|
|
22793
22787
|
delete: ()=>{
|
|
22794
|
-
|
|
22795
|
-
!
|
|
22788
|
+
props.modelValue[propsItem_box.videoDelete] =
|
|
22789
|
+
!props.modelValue[propsItem_box.videoDelete];
|
|
22796
22790
|
},
|
|
22797
22791
|
});
|
|
22798
22792
|
|
|
22799
22793
|
const download = reactive({
|
|
22800
22794
|
fileName: propsItem_box.downloadFileName || formProps_box.para.download.fileName,
|
|
22801
22795
|
downloadLabel: computed(() => {
|
|
22802
|
-
if (!
|
|
22796
|
+
if (!props.modelValue[propsItem_box.fieldName]) {
|
|
22803
22797
|
return formProps_box.para.download.downloadLabelNoSrc
|
|
22804
22798
|
}
|
|
22805
22799
|
if (propsItem_box.hdlGetDownloadLabel) {
|
|
22806
|
-
return propsItem_box.hdlGetDownloadLabel({formData:
|
|
22800
|
+
return propsItem_box.hdlGetDownloadLabel({formData: props.modelValue, scopeThis: scopeThis_box})
|
|
22807
22801
|
}
|
|
22808
22802
|
return formProps_box.para.download.downloadLabel
|
|
22809
22803
|
}),
|
|
22810
|
-
downloadSrc:
|
|
22804
|
+
downloadSrc: props.modelValue[propsItem_box.fieldName] || ''
|
|
22811
22805
|
});
|
|
22812
22806
|
|
|
22813
22807
|
const upload = reactive({
|
|
@@ -22832,19 +22826,6 @@ const style = reactive({
|
|
|
22832
22826
|
download: computed(()=>styleModule.input.download()),
|
|
22833
22827
|
});
|
|
22834
22828
|
|
|
22835
|
-
// 表单数据监听
|
|
22836
|
-
watch(
|
|
22837
|
-
formData_box, // 监听 reactive 对象时,默认是深层监听
|
|
22838
|
-
(newVal, oldVal) => {
|
|
22839
|
-
|
|
22840
|
-
console.log('测试 000 监听', newVal);
|
|
22841
|
-
console.log('测试 111 监听', oldVal);
|
|
22842
|
-
|
|
22843
|
-
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
22844
|
-
emit("update:modelValue", newVal);
|
|
22845
|
-
}
|
|
22846
|
-
);
|
|
22847
|
-
|
|
22848
22829
|
return (_ctx, _cache) => {
|
|
22849
22830
|
const _component_el_input = resolveComponent("el-input");
|
|
22850
22831
|
const _component_el_option = resolveComponent("el-option");
|
|
@@ -22882,34 +22863,34 @@ return (_ctx, _cache) => {
|
|
|
22882
22863
|
? (openBlock(), createElementBlock("div", {
|
|
22883
22864
|
key: 0,
|
|
22884
22865
|
style: normalizeStyle(style.text(propsItem_box, formProps_box))
|
|
22885
|
-
}, toDisplayString(
|
|
22866
|
+
}, toDisplayString(props.modelValue[propsItem_box.fieldName] ? props.modelValue[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22886
22867
|
: createCommentVNode("v-if", true),
|
|
22887
22868
|
(propsItem_box.inputType === 'text0')
|
|
22888
22869
|
? (openBlock(), createElementBlock("div", {
|
|
22889
22870
|
key: 1,
|
|
22890
22871
|
style: normalizeStyle(style.text0(propsItem_box))
|
|
22891
|
-
}, toDisplayString(
|
|
22872
|
+
}, toDisplayString(props.modelValue[propsItem_box.fieldName] ? props.modelValue[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22892
22873
|
: createCommentVNode("v-if", true),
|
|
22893
22874
|
(!propsItem_box.inputType)
|
|
22894
22875
|
? (openBlock(), createElementBlock("div", {
|
|
22895
22876
|
key: 2,
|
|
22896
22877
|
style: normalizeStyle(style.text(propsItem_box, formProps_box))
|
|
22897
|
-
}, toDisplayString(
|
|
22878
|
+
}, toDisplayString(props.modelValue[propsItem_box.fieldName] ? props.modelValue[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22898
22879
|
: createCommentVNode("v-if", true),
|
|
22899
22880
|
(propsItem_box.inputType === 'expression')
|
|
22900
22881
|
? (openBlock(), createElementBlock("div", {
|
|
22901
22882
|
key: 3,
|
|
22902
22883
|
style: normalizeStyle(style.text(propsItem_box, formProps_box))
|
|
22903
|
-
}, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData:
|
|
22904
|
-
? propsItem_box.hdlExpression({formData:
|
|
22884
|
+
}, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: props.modelValue, scopeThis: __props.scopeThis})
|
|
22885
|
+
? propsItem_box.hdlExpression({formData: props.modelValue, scopeThis: scopeThis_box})
|
|
22905
22886
|
: ' '), 5 /* TEXT, STYLE */))
|
|
22906
22887
|
: createCommentVNode("v-if", true),
|
|
22907
22888
|
(propsItem_box.inputType === 'expression0')
|
|
22908
22889
|
? (openBlock(), createElementBlock("div", {
|
|
22909
22890
|
key: 4,
|
|
22910
22891
|
style: normalizeStyle(style.text0(propsItem_box))
|
|
22911
|
-
}, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData:
|
|
22912
|
-
? propsItem_box.hdlExpression({formData:
|
|
22892
|
+
}, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: props.modelValue, scopeThis: scopeThis_box})
|
|
22893
|
+
? propsItem_box.hdlExpression({formData: props.modelValue, scopeThis: scopeThis_box})
|
|
22913
22894
|
: ' '), 5 /* TEXT, STYLE */))
|
|
22914
22895
|
: createCommentVNode("v-if", true),
|
|
22915
22896
|
(propsItem_box.inputType === 'line')
|
|
@@ -22922,8 +22903,8 @@ return (_ctx, _cache) => {
|
|
|
22922
22903
|
(propsItem_box.inputType === 'input')
|
|
22923
22904
|
? (openBlock(), createBlock(_component_el_input, {
|
|
22924
22905
|
key: 6,
|
|
22925
|
-
modelValue:
|
|
22926
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((
|
|
22906
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
22907
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
22927
22908
|
placeholder: input.placeholder,
|
|
22928
22909
|
style: normalizeStyle(style.input(propsItem_box, formProps_box)),
|
|
22929
22910
|
onInput: input.hdlCannotInput,
|
|
@@ -22934,8 +22915,8 @@ return (_ctx, _cache) => {
|
|
|
22934
22915
|
? (openBlock(), createBlock(_component_el_select, {
|
|
22935
22916
|
key: 7,
|
|
22936
22917
|
class: "deep-input",
|
|
22937
|
-
modelValue:
|
|
22938
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((
|
|
22918
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
22919
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
22939
22920
|
placeholder: select.placeholder,
|
|
22940
22921
|
filterable: "",
|
|
22941
22922
|
style: normalizeStyle(style.input(propsItem_box, formProps_box)),
|
|
@@ -22957,8 +22938,8 @@ return (_ctx, _cache) => {
|
|
|
22957
22938
|
? (openBlock(), createBlock(_component_el_date_picker, {
|
|
22958
22939
|
key: 8,
|
|
22959
22940
|
class: "deep-input",
|
|
22960
|
-
modelValue:
|
|
22961
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((
|
|
22941
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
22942
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
22962
22943
|
type: propsItem_box.type ? propsItem_box.type : 'datetime',
|
|
22963
22944
|
placeholder: datePicker.placeholder,
|
|
22964
22945
|
format: datePicker.format,
|
|
@@ -22969,8 +22950,8 @@ return (_ctx, _cache) => {
|
|
|
22969
22950
|
(propsItem_box.inputType === 'input-number')
|
|
22970
22951
|
? (openBlock(), createBlock(_component_el_input_number, {
|
|
22971
22952
|
key: 9,
|
|
22972
|
-
modelValue:
|
|
22973
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((
|
|
22953
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
22954
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
22974
22955
|
size: style.input_number(propsItem_box).facade.size,
|
|
22975
22956
|
min: 'min' in propsItem_box ? propsItem_box.min : 1,
|
|
22976
22957
|
max: 'max' in propsItem_box ? propsItem_box.max : 100,
|
|
@@ -22981,8 +22962,8 @@ return (_ctx, _cache) => {
|
|
|
22981
22962
|
(propsItem_box.inputType === 'switch')
|
|
22982
22963
|
? (openBlock(), createBlock(_component_el_switch, {
|
|
22983
22964
|
key: 10,
|
|
22984
|
-
modelValue:
|
|
22985
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((
|
|
22965
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
22966
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
22986
22967
|
"active-text": propsItem_box.activeText,
|
|
22987
22968
|
"inactive-text": propsItem_box.inactiveText,
|
|
22988
22969
|
"active-value": propsItem_box.activeValue,
|
|
@@ -22995,8 +22976,8 @@ return (_ctx, _cache) => {
|
|
|
22995
22976
|
(propsItem_box.inputType === 'radio-group')
|
|
22996
22977
|
? (openBlock(), createBlock(_component_el_radio_group, {
|
|
22997
22978
|
key: 11,
|
|
22998
|
-
modelValue:
|
|
22999
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((
|
|
22979
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
22980
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
23000
22981
|
disabled: !!propsItem_box.disabled,
|
|
23001
22982
|
onChange: radioGroup.hdlChange
|
|
23002
22983
|
}, {
|
|
@@ -23041,7 +23022,7 @@ return (_ctx, _cache) => {
|
|
|
23041
23022
|
plain: style.button_group(propsItem_box, item0, item1).button.facade.plain,
|
|
23042
23023
|
round: style.button_group(propsItem_box, item0, item1).button.facade.round,
|
|
23043
23024
|
circle: style.button_group(propsItem_box, item0, item1).button.facade.circle,
|
|
23044
|
-
onClick: $event => (item1.hdlClick ? item1.hdlClick({formData:
|
|
23025
|
+
onClick: $event => (item1.hdlClick ? item1.hdlClick({formData: props.modelValue, scopeThis: scopeThis_box}) : null),
|
|
23045
23026
|
key: index1
|
|
23046
23027
|
}, {
|
|
23047
23028
|
default: withCtx(() => [
|
|
@@ -23075,15 +23056,15 @@ return (_ctx, _cache) => {
|
|
|
23075
23056
|
}, null, 8 /* PROPS */, ["style", "src", "preview-src-list"])
|
|
23076
23057
|
]),
|
|
23077
23058
|
createCommentVNode(" 设置了图片删除功能,同时图片不为空 "),
|
|
23078
|
-
(!!propsItem_box.imageDelete && !!
|
|
23059
|
+
(!!propsItem_box.imageDelete && !!props.modelValue[propsItem_box.fieldName])
|
|
23079
23060
|
? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
23080
23061
|
createVNode(_component_el_button, {
|
|
23081
23062
|
size: "small",
|
|
23082
|
-
icon: !
|
|
23063
|
+
icon: !props.modelValue[propsItem_box.imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
|
|
23083
23064
|
onClick: image.delete
|
|
23084
23065
|
}, {
|
|
23085
23066
|
default: withCtx(() => [
|
|
23086
|
-
createTextVNode(toDisplayString(
|
|
23067
|
+
createTextVNode(toDisplayString(props.modelValue[propsItem_box.imageDelete] ? '图片已删除,恢复' : '删除'), 1 /* TEXT */)
|
|
23087
23068
|
]),
|
|
23088
23069
|
_: 1 /* STABLE */
|
|
23089
23070
|
}, 8 /* PROPS */, ["icon", "onClick"])
|
|
@@ -23094,7 +23075,7 @@ return (_ctx, _cache) => {
|
|
|
23094
23075
|
createCommentVNode(" 多个图片 "),
|
|
23095
23076
|
(propsItem_box.inputType === 'images')
|
|
23096
23077
|
? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
23097
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
23078
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(props.modelValue[propsItem_box.fieldName], (itemImages, indexImages) => {
|
|
23098
23079
|
return (openBlock(), createElementBlock("div", {
|
|
23099
23080
|
key: indexImages,
|
|
23100
23081
|
style: normalizeStyle(style.images(propsItem_box, formProps_box).itemBox)
|
|
@@ -23114,7 +23095,7 @@ return (_ctx, _cache) => {
|
|
|
23114
23095
|
onClick: $event => (images.delete(itemImages, indexImages))
|
|
23115
23096
|
}, {
|
|
23116
23097
|
default: withCtx(() => [
|
|
23117
|
-
createTextVNode(toDisplayString(
|
|
23098
|
+
createTextVNode(toDisplayString(props.modelValue[propsItem_box.imageDelete].includes(itemImages) ? '恢复' : '删除'), 1 /* TEXT */)
|
|
23118
23099
|
]),
|
|
23119
23100
|
_: 2 /* DYNAMIC */
|
|
23120
23101
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"])
|
|
@@ -23131,8 +23112,8 @@ return (_ctx, _cache) => {
|
|
|
23131
23112
|
style: normalizeStyle(style.richtext(propsItem_box, formProps_box))
|
|
23132
23113
|
}, [
|
|
23133
23114
|
createVNode(_component_ly0Richtext, {
|
|
23134
|
-
modelValue:
|
|
23135
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((
|
|
23115
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
23116
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
23136
23117
|
myProps: richtextProps.value
|
|
23137
23118
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23138
23119
|
], 4 /* STYLE */))
|
|
@@ -23141,7 +23122,7 @@ return (_ctx, _cache) => {
|
|
|
23141
23122
|
(propsItem_box.inputType === 'richtextShow')
|
|
23142
23123
|
? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
23143
23124
|
createElementVNode("div", {
|
|
23144
|
-
innerHTML:
|
|
23125
|
+
innerHTML: props.modelValue[propsItem_box.fieldName]
|
|
23145
23126
|
}, null, 8 /* PROPS */, _hoisted_8)
|
|
23146
23127
|
]))
|
|
23147
23128
|
: createCommentVNode("v-if", true),
|
|
@@ -23173,15 +23154,15 @@ return (_ctx, _cache) => {
|
|
|
23173
23154
|
], 8 /* PROPS */, _hoisted_10)
|
|
23174
23155
|
]),
|
|
23175
23156
|
createCommentVNode(" 设置了视频删除功能,同时视频不为空 "),
|
|
23176
|
-
(!!propsItem_box.videoDelete && !!
|
|
23157
|
+
(!!propsItem_box.videoDelete && !!props.modelValue[propsItem_box.fieldName])
|
|
23177
23158
|
? (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
23178
23159
|
createVNode(_component_el_button, {
|
|
23179
23160
|
size: "small",
|
|
23180
|
-
icon: !
|
|
23161
|
+
icon: !props.modelValue[propsItem_box.videoDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
|
|
23181
23162
|
onClick: video.delete
|
|
23182
23163
|
}, {
|
|
23183
23164
|
default: withCtx(() => [
|
|
23184
|
-
createTextVNode(toDisplayString(!!
|
|
23165
|
+
createTextVNode(toDisplayString(!!props.modelValue[propsItem_box.videoDelete] ? '视频已删除,恢复' : '删除'), 1 /* TEXT */)
|
|
23185
23166
|
]),
|
|
23186
23167
|
_: 1 /* STABLE */
|
|
23187
23168
|
}, 8 /* PROPS */, ["icon", "onClick"])
|
|
@@ -23193,7 +23174,7 @@ return (_ctx, _cache) => {
|
|
|
23193
23174
|
createCommentVNode(" 下载 "),
|
|
23194
23175
|
(propsItem_box.inputType === 'download')
|
|
23195
23176
|
? (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
23196
|
-
(
|
|
23177
|
+
(props.modelValue[propsItem_box.fieldName])
|
|
23197
23178
|
? (openBlock(), createElementBlock("a", {
|
|
23198
23179
|
key: 0,
|
|
23199
23180
|
style: normalizeStyle(style.download.style),
|
|
@@ -23212,8 +23193,8 @@ return (_ctx, _cache) => {
|
|
|
23212
23193
|
(propsItem_box.inputType === 'upload')
|
|
23213
23194
|
? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
23214
23195
|
createVNode(_component_ly0Upload, {
|
|
23215
|
-
modelValue:
|
|
23216
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((
|
|
23196
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
23197
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
23217
23198
|
myProps: {uploadUrl: upload.uploadUrl}
|
|
23218
23199
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23219
23200
|
]))
|
|
@@ -23222,8 +23203,8 @@ return (_ctx, _cache) => {
|
|
|
23222
23203
|
(propsItem_box.inputType === 'upload-drag')
|
|
23223
23204
|
? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
23224
23205
|
createVNode(_component_ly0Upload_drag, {
|
|
23225
|
-
modelValue:
|
|
23226
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((
|
|
23206
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
23207
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
23227
23208
|
myProps: {uploadUrl: upload.uploadUrl}
|
|
23228
23209
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23229
23210
|
]))
|
|
@@ -23232,8 +23213,8 @@ return (_ctx, _cache) => {
|
|
|
23232
23213
|
(propsItem_box.inputType === 'upload-picture')
|
|
23233
23214
|
? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
23234
23215
|
createVNode(_component_ly0Upload_picture, {
|
|
23235
|
-
modelValue:
|
|
23236
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((
|
|
23216
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
23217
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
23237
23218
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23238
23219
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23239
23220
|
]))
|
|
@@ -23242,8 +23223,8 @@ return (_ctx, _cache) => {
|
|
|
23242
23223
|
(propsItem_box.inputType === 'upload-picture-card')
|
|
23243
23224
|
? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
23244
23225
|
createVNode(_component_ly0Upload_pictureCard, {
|
|
23245
|
-
modelValue:
|
|
23246
|
-
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((
|
|
23226
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
23227
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
23247
23228
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23248
23229
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23249
23230
|
]))
|
|
@@ -23252,8 +23233,8 @@ return (_ctx, _cache) => {
|
|
|
23252
23233
|
(propsItem_box.inputType === 'upload-avatar')
|
|
23253
23234
|
? (openBlock(), createElementBlock("div", _hoisted_21, [
|
|
23254
23235
|
createVNode(_component_ly0Upload_avatar, {
|
|
23255
|
-
modelValue:
|
|
23256
|
-
"onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((
|
|
23236
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
23237
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
23257
23238
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23258
23239
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23259
23240
|
]))
|
|
@@ -23262,8 +23243,8 @@ return (_ctx, _cache) => {
|
|
|
23262
23243
|
(propsItem_box.inputType === 'upload-carplate')
|
|
23263
23244
|
? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
23264
23245
|
createVNode(_component_ly0Upload_carplate, {
|
|
23265
|
-
modelValue:
|
|
23266
|
-
"onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((
|
|
23246
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
23247
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
23267
23248
|
myProps: {uploadUrl: upload.uploadUrl_carplate}
|
|
23268
23249
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23269
23250
|
]))
|
|
@@ -23272,8 +23253,8 @@ return (_ctx, _cache) => {
|
|
|
23272
23253
|
(propsItem_box.inputType === 'd3gbt2260')
|
|
23273
23254
|
? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
23274
23255
|
createVNode(_component_ly0gbt2260, {
|
|
23275
|
-
modelValue:
|
|
23276
|
-
"onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((
|
|
23256
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
23257
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
23277
23258
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23278
23259
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23279
23260
|
]))
|
|
@@ -23282,8 +23263,8 @@ return (_ctx, _cache) => {
|
|
|
23282
23263
|
(propsItem_box.inputType === 'd7group')
|
|
23283
23264
|
? (openBlock(), createElementBlock("div", _hoisted_24, [
|
|
23284
23265
|
createVNode(_component_ly0d7group, {
|
|
23285
|
-
modelValue:
|
|
23286
|
-
"onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((
|
|
23266
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
23267
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
23287
23268
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23288
23269
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23289
23270
|
]))
|
|
@@ -23292,8 +23273,8 @@ return (_ctx, _cache) => {
|
|
|
23292
23273
|
(propsItem_box.inputType === 'd7postal')
|
|
23293
23274
|
? (openBlock(), createElementBlock("div", _hoisted_25, [
|
|
23294
23275
|
createVNode(_component_ly0d7postal, {
|
|
23295
|
-
modelValue:
|
|
23296
|
-
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((
|
|
23276
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
23277
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
23297
23278
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23298
23279
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23299
23280
|
]))
|
|
@@ -23302,8 +23283,8 @@ return (_ctx, _cache) => {
|
|
|
23302
23283
|
(propsItem_box.inputType === 'd7price')
|
|
23303
23284
|
? (openBlock(), createElementBlock("div", _hoisted_26, [
|
|
23304
23285
|
createVNode(_component_ly0d7price, {
|
|
23305
|
-
modelValue:
|
|
23306
|
-
"onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((
|
|
23286
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
23287
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
23307
23288
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23308
23289
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23309
23290
|
]))
|
|
@@ -23312,8 +23293,8 @@ return (_ctx, _cache) => {
|
|
|
23312
23293
|
(propsItem_box.inputType === 'd7size')
|
|
23313
23294
|
? (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
23314
23295
|
createVNode(_component_ly0d7size, {
|
|
23315
|
-
modelValue:
|
|
23316
|
-
"onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((
|
|
23296
|
+
modelValue: props.modelValue[propsItem_box.fieldName],
|
|
23297
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
|
|
23317
23298
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23318
23299
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23319
23300
|
]))
|
|
@@ -23322,8 +23303,8 @@ return (_ctx, _cache) => {
|
|
|
23322
23303
|
(propsItem_box.inputType === 'd7thumb')
|
|
23323
23304
|
? (openBlock(), createElementBlock("div", _hoisted_28, [
|
|
23324
23305
|
createVNode(_component_ly0d7thumb, {
|
|
23325
|
-
modelValue:
|
|
23326
|
-
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (
|
|
23306
|
+
modelValue: props.modelValue,
|
|
23307
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => ((props.modelValue) = $event)),
|
|
23327
23308
|
myProps: {
|
|
23328
23309
|
thumb: {
|
|
23329
23310
|
fieldName: propsItem_box.thumb.fieldName || formProps_box.para.ly0d7thumb.thumb.fieldName,
|
|
@@ -23373,14 +23354,10 @@ var script$f = {
|
|
|
23373
23354
|
default: () => ({})
|
|
23374
23355
|
}
|
|
23375
23356
|
},
|
|
23376
|
-
|
|
23377
|
-
setup(__props, { emit: __emit }) {
|
|
23357
|
+
setup(__props) {
|
|
23378
23358
|
|
|
23379
23359
|
const props = __props;
|
|
23380
|
-
// 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
|
|
23381
|
-
const emit = __emit;
|
|
23382
23360
|
|
|
23383
|
-
let formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
|
|
23384
23361
|
const formProps_box = reactive(Object.assign({}, props.myProps));
|
|
23385
23362
|
const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
|
|
23386
23363
|
|
|
@@ -23398,7 +23375,7 @@ const hdl = {
|
|
|
23398
23375
|
if(formProps_box.submit.handle){
|
|
23399
23376
|
// 执行用户句柄
|
|
23400
23377
|
const result = await formProps_box.submit.handle({
|
|
23401
|
-
formData:
|
|
23378
|
+
formData: props.modelValue,
|
|
23402
23379
|
scopeThis: scopeThis_box
|
|
23403
23380
|
});
|
|
23404
23381
|
if(result.code !== 0){
|
|
@@ -23410,7 +23387,7 @@ const hdl = {
|
|
|
23410
23387
|
if(formProps_box.submit.url){
|
|
23411
23388
|
const result = await request.ly0.ly0request({
|
|
23412
23389
|
url: formProps_box.submit.url,
|
|
23413
|
-
data:
|
|
23390
|
+
data: props.modelValue
|
|
23414
23391
|
});
|
|
23415
23392
|
if(result.code !== 0){
|
|
23416
23393
|
return
|
|
@@ -23421,7 +23398,7 @@ const hdl = {
|
|
|
23421
23398
|
if(formProps_box.submit.storpro){
|
|
23422
23399
|
const result = await request.ly0.storpro({
|
|
23423
23400
|
storproName: formProps_box.submit.storpro,
|
|
23424
|
-
data:
|
|
23401
|
+
data: props.modelValue
|
|
23425
23402
|
});
|
|
23426
23403
|
if(result.code !== 0){
|
|
23427
23404
|
return
|
|
@@ -23434,23 +23411,10 @@ const hdl = {
|
|
|
23434
23411
|
}
|
|
23435
23412
|
|
|
23436
23413
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
23437
|
-
emit("update:modelValue",
|
|
23414
|
+
emit("update:modelValue", props.modelValue);
|
|
23438
23415
|
}
|
|
23439
23416
|
};
|
|
23440
23417
|
|
|
23441
|
-
// 表单数据监听
|
|
23442
|
-
watch(
|
|
23443
|
-
formData_box, // 监听 reactive 对象时,默认是深层监听
|
|
23444
|
-
(newVal, oldVal) => {
|
|
23445
|
-
|
|
23446
|
-
console.log('测试 222 监听', newVal);
|
|
23447
|
-
console.log('测试 333 监听', oldVal);
|
|
23448
|
-
|
|
23449
|
-
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
23450
|
-
emit("update:modelValue", newVal);
|
|
23451
|
-
}
|
|
23452
|
-
);
|
|
23453
|
-
|
|
23454
23418
|
return (_ctx, _cache) => {
|
|
23455
23419
|
const _component_ly0Menu = resolveComponent("ly0Menu");
|
|
23456
23420
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
@@ -23476,7 +23440,7 @@ return (_ctx, _cache) => {
|
|
|
23476
23440
|
createElementVNode("tbody", null, [
|
|
23477
23441
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.items, (item0, index0) => {
|
|
23478
23442
|
return (openBlock(), createElementBlock(Fragment, { key: index0 }, [
|
|
23479
|
-
(item0.hdlVisible ? item0.hdlVisible({formData:
|
|
23443
|
+
(item0.hdlVisible ? item0.hdlVisible({formData: props.modelValue, scopeThis: scopeThis_box}) : true)
|
|
23480
23444
|
? (openBlock(), createElementBlock("tr", _hoisted_1$c, [
|
|
23481
23445
|
(!!item0.label)
|
|
23482
23446
|
? (openBlock(), createElementBlock("td", {
|
|
@@ -23484,8 +23448,8 @@ return (_ctx, _cache) => {
|
|
|
23484
23448
|
style: normalizeStyle(style.field_box.left)
|
|
23485
23449
|
}, [
|
|
23486
23450
|
createVNode(script$h, {
|
|
23487
|
-
modelValue:
|
|
23488
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (
|
|
23451
|
+
modelValue: props.modelValue,
|
|
23452
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((props.modelValue) = $event)),
|
|
23489
23453
|
myProps: formProps_box,
|
|
23490
23454
|
scopeThis: scopeThis_box,
|
|
23491
23455
|
item: item0
|
|
@@ -23510,7 +23474,7 @@ return (_ctx, _cache) => {
|
|
|
23510
23474
|
default: withCtx(() => [
|
|
23511
23475
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item0.items, (item1, index1) => {
|
|
23512
23476
|
return (openBlock(), createElementBlock(Fragment, { key: index1 }, [
|
|
23513
|
-
(item1.hdlVisible ? item1.hdlVisible({formData:
|
|
23477
|
+
(item1.hdlVisible ? item1.hdlVisible({formData: props.modelValue, scopeThis: scopeThis_box}) : true)
|
|
23514
23478
|
? (openBlock(), createBlock(_component_el_collapse_item, {
|
|
23515
23479
|
key: 0,
|
|
23516
23480
|
title: item1.title,
|
|
@@ -23524,7 +23488,7 @@ return (_ctx, _cache) => {
|
|
|
23524
23488
|
return (openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
23525
23489
|
(
|
|
23526
23490
|
item2.hdlVisible
|
|
23527
|
-
? item2.hdlVisible({formData:
|
|
23491
|
+
? item2.hdlVisible({formData: props.modelValue, scopeThis: scopeThis_box})
|
|
23528
23492
|
: true
|
|
23529
23493
|
)
|
|
23530
23494
|
? (openBlock(), createElementBlock("tr", _hoisted_3$5, [
|
|
@@ -23534,8 +23498,8 @@ return (_ctx, _cache) => {
|
|
|
23534
23498
|
style: normalizeStyle(style.field_box.left)
|
|
23535
23499
|
}, [
|
|
23536
23500
|
createVNode(script$h, {
|
|
23537
|
-
modelValue:
|
|
23538
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (
|
|
23501
|
+
modelValue: props.modelValue,
|
|
23502
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((props.modelValue) = $event)),
|
|
23539
23503
|
myProps: formProps_box,
|
|
23540
23504
|
scopeThis: scopeThis_box,
|
|
23541
23505
|
item: item2
|
|
@@ -23547,8 +23511,8 @@ return (_ctx, _cache) => {
|
|
|
23547
23511
|
colspan: style.no_field_label(item2)
|
|
23548
23512
|
}, [
|
|
23549
23513
|
createVNode(script$g, {
|
|
23550
|
-
modelValue:
|
|
23551
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (
|
|
23514
|
+
modelValue: props.modelValue,
|
|
23515
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((props.modelValue) = $event)),
|
|
23552
23516
|
myProps: formProps_box,
|
|
23553
23517
|
scopeThis: scopeThis_box,
|
|
23554
23518
|
item: item2
|
|
@@ -23570,8 +23534,8 @@ return (_ctx, _cache) => {
|
|
|
23570
23534
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accordion", "modelValue", "onUpdate:modelValue", "style"]))
|
|
23571
23535
|
: createCommentVNode("v-if", true),
|
|
23572
23536
|
createVNode(script$g, {
|
|
23573
|
-
modelValue:
|
|
23574
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (
|
|
23537
|
+
modelValue: props.modelValue,
|
|
23538
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((props.modelValue) = $event)),
|
|
23575
23539
|
myProps: formProps_box,
|
|
23576
23540
|
scopeThis: scopeThis_box,
|
|
23577
23541
|
item: item0
|
|
@@ -23633,30 +23597,13 @@ var script$e = {
|
|
|
23633
23597
|
default: () => ({})
|
|
23634
23598
|
}
|
|
23635
23599
|
},
|
|
23636
|
-
|
|
23637
|
-
setup(__props, { emit: __emit }) {
|
|
23600
|
+
setup(__props) {
|
|
23638
23601
|
|
|
23639
23602
|
const props = __props;
|
|
23640
|
-
// 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
|
|
23641
|
-
const emit = __emit;
|
|
23642
23603
|
|
|
23643
|
-
let formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
|
|
23644
23604
|
const formProps_box = reactive(Object.assign({}, ly0default$2.myProps, props.myProps));
|
|
23645
23605
|
const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
|
|
23646
23606
|
|
|
23647
|
-
// 表单数据监听
|
|
23648
|
-
watch(
|
|
23649
|
-
formData_box, // 监听 reactive 对象时,默认是深层监听
|
|
23650
|
-
(newVal, oldVal) => {
|
|
23651
|
-
|
|
23652
|
-
console.log('测试 444 监听', newVal);
|
|
23653
|
-
console.log('测试 555 监听', oldVal);
|
|
23654
|
-
|
|
23655
|
-
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
23656
|
-
emit("update:modelValue", newVal);
|
|
23657
|
-
}
|
|
23658
|
-
);
|
|
23659
|
-
|
|
23660
23607
|
return (_ctx, _cache) => {
|
|
23661
23608
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
23662
23609
|
|
|
@@ -23675,8 +23622,8 @@ return (_ctx, _cache) => {
|
|
|
23675
23622
|
}, {
|
|
23676
23623
|
default: withCtx(() => [
|
|
23677
23624
|
createVNode(script$f, {
|
|
23678
|
-
modelValue:
|
|
23679
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (
|
|
23625
|
+
modelValue: props.modelValue,
|
|
23626
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((props.modelValue) = $event)),
|
|
23680
23627
|
myProps: formProps_box,
|
|
23681
23628
|
scopeThis: scopeThis_box
|
|
23682
23629
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"])
|
|
@@ -23685,8 +23632,8 @@ return (_ctx, _cache) => {
|
|
|
23685
23632
|
}, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
|
|
23686
23633
|
: (openBlock(), createBlock(script$f, {
|
|
23687
23634
|
key: 1,
|
|
23688
|
-
modelValue:
|
|
23689
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (
|
|
23635
|
+
modelValue: props.modelValue,
|
|
23636
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((props.modelValue) = $event)),
|
|
23690
23637
|
myProps: formProps_box,
|
|
23691
23638
|
scopeThis: scopeThis_box
|
|
23692
23639
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]))
|