@yoooloo42/joker 1.0.99 → 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 -177
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +116 -178
- 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,22 +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
|
-
deep: true,
|
|
22848
|
-
}
|
|
22849
|
-
);
|
|
22850
|
-
|
|
22851
22829
|
return (_ctx, _cache) => {
|
|
22852
22830
|
const _component_el_input = resolveComponent("el-input");
|
|
22853
22831
|
const _component_el_option = resolveComponent("el-option");
|
|
@@ -22885,34 +22863,34 @@ return (_ctx, _cache) => {
|
|
|
22885
22863
|
? (openBlock(), createElementBlock("div", {
|
|
22886
22864
|
key: 0,
|
|
22887
22865
|
style: normalizeStyle(style.text(propsItem_box, formProps_box))
|
|
22888
|
-
}, toDisplayString(
|
|
22866
|
+
}, toDisplayString(props.modelValue[propsItem_box.fieldName] ? props.modelValue[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22889
22867
|
: createCommentVNode("v-if", true),
|
|
22890
22868
|
(propsItem_box.inputType === 'text0')
|
|
22891
22869
|
? (openBlock(), createElementBlock("div", {
|
|
22892
22870
|
key: 1,
|
|
22893
22871
|
style: normalizeStyle(style.text0(propsItem_box))
|
|
22894
|
-
}, toDisplayString(
|
|
22872
|
+
}, toDisplayString(props.modelValue[propsItem_box.fieldName] ? props.modelValue[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22895
22873
|
: createCommentVNode("v-if", true),
|
|
22896
22874
|
(!propsItem_box.inputType)
|
|
22897
22875
|
? (openBlock(), createElementBlock("div", {
|
|
22898
22876
|
key: 2,
|
|
22899
22877
|
style: normalizeStyle(style.text(propsItem_box, formProps_box))
|
|
22900
|
-
}, toDisplayString(
|
|
22878
|
+
}, toDisplayString(props.modelValue[propsItem_box.fieldName] ? props.modelValue[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
22901
22879
|
: createCommentVNode("v-if", true),
|
|
22902
22880
|
(propsItem_box.inputType === 'expression')
|
|
22903
22881
|
? (openBlock(), createElementBlock("div", {
|
|
22904
22882
|
key: 3,
|
|
22905
22883
|
style: normalizeStyle(style.text(propsItem_box, formProps_box))
|
|
22906
|
-
}, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData:
|
|
22907
|
-
? 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})
|
|
22908
22886
|
: ' '), 5 /* TEXT, STYLE */))
|
|
22909
22887
|
: createCommentVNode("v-if", true),
|
|
22910
22888
|
(propsItem_box.inputType === 'expression0')
|
|
22911
22889
|
? (openBlock(), createElementBlock("div", {
|
|
22912
22890
|
key: 4,
|
|
22913
22891
|
style: normalizeStyle(style.text0(propsItem_box))
|
|
22914
|
-
}, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData:
|
|
22915
|
-
? 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})
|
|
22916
22894
|
: ' '), 5 /* TEXT, STYLE */))
|
|
22917
22895
|
: createCommentVNode("v-if", true),
|
|
22918
22896
|
(propsItem_box.inputType === 'line')
|
|
@@ -22925,8 +22903,8 @@ return (_ctx, _cache) => {
|
|
|
22925
22903
|
(propsItem_box.inputType === 'input')
|
|
22926
22904
|
? (openBlock(), createBlock(_component_el_input, {
|
|
22927
22905
|
key: 6,
|
|
22928
|
-
modelValue:
|
|
22929
|
-
"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)),
|
|
22930
22908
|
placeholder: input.placeholder,
|
|
22931
22909
|
style: normalizeStyle(style.input(propsItem_box, formProps_box)),
|
|
22932
22910
|
onInput: input.hdlCannotInput,
|
|
@@ -22937,8 +22915,8 @@ return (_ctx, _cache) => {
|
|
|
22937
22915
|
? (openBlock(), createBlock(_component_el_select, {
|
|
22938
22916
|
key: 7,
|
|
22939
22917
|
class: "deep-input",
|
|
22940
|
-
modelValue:
|
|
22941
|
-
"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)),
|
|
22942
22920
|
placeholder: select.placeholder,
|
|
22943
22921
|
filterable: "",
|
|
22944
22922
|
style: normalizeStyle(style.input(propsItem_box, formProps_box)),
|
|
@@ -22960,8 +22938,8 @@ return (_ctx, _cache) => {
|
|
|
22960
22938
|
? (openBlock(), createBlock(_component_el_date_picker, {
|
|
22961
22939
|
key: 8,
|
|
22962
22940
|
class: "deep-input",
|
|
22963
|
-
modelValue:
|
|
22964
|
-
"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)),
|
|
22965
22943
|
type: propsItem_box.type ? propsItem_box.type : 'datetime',
|
|
22966
22944
|
placeholder: datePicker.placeholder,
|
|
22967
22945
|
format: datePicker.format,
|
|
@@ -22972,8 +22950,8 @@ return (_ctx, _cache) => {
|
|
|
22972
22950
|
(propsItem_box.inputType === 'input-number')
|
|
22973
22951
|
? (openBlock(), createBlock(_component_el_input_number, {
|
|
22974
22952
|
key: 9,
|
|
22975
|
-
modelValue:
|
|
22976
|
-
"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)),
|
|
22977
22955
|
size: style.input_number(propsItem_box).facade.size,
|
|
22978
22956
|
min: 'min' in propsItem_box ? propsItem_box.min : 1,
|
|
22979
22957
|
max: 'max' in propsItem_box ? propsItem_box.max : 100,
|
|
@@ -22984,8 +22962,8 @@ return (_ctx, _cache) => {
|
|
|
22984
22962
|
(propsItem_box.inputType === 'switch')
|
|
22985
22963
|
? (openBlock(), createBlock(_component_el_switch, {
|
|
22986
22964
|
key: 10,
|
|
22987
|
-
modelValue:
|
|
22988
|
-
"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)),
|
|
22989
22967
|
"active-text": propsItem_box.activeText,
|
|
22990
22968
|
"inactive-text": propsItem_box.inactiveText,
|
|
22991
22969
|
"active-value": propsItem_box.activeValue,
|
|
@@ -22998,8 +22976,8 @@ return (_ctx, _cache) => {
|
|
|
22998
22976
|
(propsItem_box.inputType === 'radio-group')
|
|
22999
22977
|
? (openBlock(), createBlock(_component_el_radio_group, {
|
|
23000
22978
|
key: 11,
|
|
23001
|
-
modelValue:
|
|
23002
|
-
"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)),
|
|
23003
22981
|
disabled: !!propsItem_box.disabled,
|
|
23004
22982
|
onChange: radioGroup.hdlChange
|
|
23005
22983
|
}, {
|
|
@@ -23044,7 +23022,7 @@ return (_ctx, _cache) => {
|
|
|
23044
23022
|
plain: style.button_group(propsItem_box, item0, item1).button.facade.plain,
|
|
23045
23023
|
round: style.button_group(propsItem_box, item0, item1).button.facade.round,
|
|
23046
23024
|
circle: style.button_group(propsItem_box, item0, item1).button.facade.circle,
|
|
23047
|
-
onClick: $event => (item1.hdlClick ? item1.hdlClick({formData:
|
|
23025
|
+
onClick: $event => (item1.hdlClick ? item1.hdlClick({formData: props.modelValue, scopeThis: scopeThis_box}) : null),
|
|
23048
23026
|
key: index1
|
|
23049
23027
|
}, {
|
|
23050
23028
|
default: withCtx(() => [
|
|
@@ -23078,15 +23056,15 @@ return (_ctx, _cache) => {
|
|
|
23078
23056
|
}, null, 8 /* PROPS */, ["style", "src", "preview-src-list"])
|
|
23079
23057
|
]),
|
|
23080
23058
|
createCommentVNode(" 设置了图片删除功能,同时图片不为空 "),
|
|
23081
|
-
(!!propsItem_box.imageDelete && !!
|
|
23059
|
+
(!!propsItem_box.imageDelete && !!props.modelValue[propsItem_box.fieldName])
|
|
23082
23060
|
? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
23083
23061
|
createVNode(_component_el_button, {
|
|
23084
23062
|
size: "small",
|
|
23085
|
-
icon: !
|
|
23063
|
+
icon: !props.modelValue[propsItem_box.imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
|
|
23086
23064
|
onClick: image.delete
|
|
23087
23065
|
}, {
|
|
23088
23066
|
default: withCtx(() => [
|
|
23089
|
-
createTextVNode(toDisplayString(
|
|
23067
|
+
createTextVNode(toDisplayString(props.modelValue[propsItem_box.imageDelete] ? '图片已删除,恢复' : '删除'), 1 /* TEXT */)
|
|
23090
23068
|
]),
|
|
23091
23069
|
_: 1 /* STABLE */
|
|
23092
23070
|
}, 8 /* PROPS */, ["icon", "onClick"])
|
|
@@ -23097,7 +23075,7 @@ return (_ctx, _cache) => {
|
|
|
23097
23075
|
createCommentVNode(" 多个图片 "),
|
|
23098
23076
|
(propsItem_box.inputType === 'images')
|
|
23099
23077
|
? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
23100
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
23078
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(props.modelValue[propsItem_box.fieldName], (itemImages, indexImages) => {
|
|
23101
23079
|
return (openBlock(), createElementBlock("div", {
|
|
23102
23080
|
key: indexImages,
|
|
23103
23081
|
style: normalizeStyle(style.images(propsItem_box, formProps_box).itemBox)
|
|
@@ -23117,7 +23095,7 @@ return (_ctx, _cache) => {
|
|
|
23117
23095
|
onClick: $event => (images.delete(itemImages, indexImages))
|
|
23118
23096
|
}, {
|
|
23119
23097
|
default: withCtx(() => [
|
|
23120
|
-
createTextVNode(toDisplayString(
|
|
23098
|
+
createTextVNode(toDisplayString(props.modelValue[propsItem_box.imageDelete].includes(itemImages) ? '恢复' : '删除'), 1 /* TEXT */)
|
|
23121
23099
|
]),
|
|
23122
23100
|
_: 2 /* DYNAMIC */
|
|
23123
23101
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"])
|
|
@@ -23134,8 +23112,8 @@ return (_ctx, _cache) => {
|
|
|
23134
23112
|
style: normalizeStyle(style.richtext(propsItem_box, formProps_box))
|
|
23135
23113
|
}, [
|
|
23136
23114
|
createVNode(_component_ly0Richtext, {
|
|
23137
|
-
modelValue:
|
|
23138
|
-
"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)),
|
|
23139
23117
|
myProps: richtextProps.value
|
|
23140
23118
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23141
23119
|
], 4 /* STYLE */))
|
|
@@ -23144,7 +23122,7 @@ return (_ctx, _cache) => {
|
|
|
23144
23122
|
(propsItem_box.inputType === 'richtextShow')
|
|
23145
23123
|
? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
23146
23124
|
createElementVNode("div", {
|
|
23147
|
-
innerHTML:
|
|
23125
|
+
innerHTML: props.modelValue[propsItem_box.fieldName]
|
|
23148
23126
|
}, null, 8 /* PROPS */, _hoisted_8)
|
|
23149
23127
|
]))
|
|
23150
23128
|
: createCommentVNode("v-if", true),
|
|
@@ -23176,15 +23154,15 @@ return (_ctx, _cache) => {
|
|
|
23176
23154
|
], 8 /* PROPS */, _hoisted_10)
|
|
23177
23155
|
]),
|
|
23178
23156
|
createCommentVNode(" 设置了视频删除功能,同时视频不为空 "),
|
|
23179
|
-
(!!propsItem_box.videoDelete && !!
|
|
23157
|
+
(!!propsItem_box.videoDelete && !!props.modelValue[propsItem_box.fieldName])
|
|
23180
23158
|
? (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
23181
23159
|
createVNode(_component_el_button, {
|
|
23182
23160
|
size: "small",
|
|
23183
|
-
icon: !
|
|
23161
|
+
icon: !props.modelValue[propsItem_box.videoDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
|
|
23184
23162
|
onClick: video.delete
|
|
23185
23163
|
}, {
|
|
23186
23164
|
default: withCtx(() => [
|
|
23187
|
-
createTextVNode(toDisplayString(!!
|
|
23165
|
+
createTextVNode(toDisplayString(!!props.modelValue[propsItem_box.videoDelete] ? '视频已删除,恢复' : '删除'), 1 /* TEXT */)
|
|
23188
23166
|
]),
|
|
23189
23167
|
_: 1 /* STABLE */
|
|
23190
23168
|
}, 8 /* PROPS */, ["icon", "onClick"])
|
|
@@ -23196,7 +23174,7 @@ return (_ctx, _cache) => {
|
|
|
23196
23174
|
createCommentVNode(" 下载 "),
|
|
23197
23175
|
(propsItem_box.inputType === 'download')
|
|
23198
23176
|
? (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
23199
|
-
(
|
|
23177
|
+
(props.modelValue[propsItem_box.fieldName])
|
|
23200
23178
|
? (openBlock(), createElementBlock("a", {
|
|
23201
23179
|
key: 0,
|
|
23202
23180
|
style: normalizeStyle(style.download.style),
|
|
@@ -23215,8 +23193,8 @@ return (_ctx, _cache) => {
|
|
|
23215
23193
|
(propsItem_box.inputType === 'upload')
|
|
23216
23194
|
? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
23217
23195
|
createVNode(_component_ly0Upload, {
|
|
23218
|
-
modelValue:
|
|
23219
|
-
"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)),
|
|
23220
23198
|
myProps: {uploadUrl: upload.uploadUrl}
|
|
23221
23199
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23222
23200
|
]))
|
|
@@ -23225,8 +23203,8 @@ return (_ctx, _cache) => {
|
|
|
23225
23203
|
(propsItem_box.inputType === 'upload-drag')
|
|
23226
23204
|
? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
23227
23205
|
createVNode(_component_ly0Upload_drag, {
|
|
23228
|
-
modelValue:
|
|
23229
|
-
"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)),
|
|
23230
23208
|
myProps: {uploadUrl: upload.uploadUrl}
|
|
23231
23209
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23232
23210
|
]))
|
|
@@ -23235,8 +23213,8 @@ return (_ctx, _cache) => {
|
|
|
23235
23213
|
(propsItem_box.inputType === 'upload-picture')
|
|
23236
23214
|
? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
23237
23215
|
createVNode(_component_ly0Upload_picture, {
|
|
23238
|
-
modelValue:
|
|
23239
|
-
"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)),
|
|
23240
23218
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23241
23219
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23242
23220
|
]))
|
|
@@ -23245,8 +23223,8 @@ return (_ctx, _cache) => {
|
|
|
23245
23223
|
(propsItem_box.inputType === 'upload-picture-card')
|
|
23246
23224
|
? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
23247
23225
|
createVNode(_component_ly0Upload_pictureCard, {
|
|
23248
|
-
modelValue:
|
|
23249
|
-
"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)),
|
|
23250
23228
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23251
23229
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23252
23230
|
]))
|
|
@@ -23255,8 +23233,8 @@ return (_ctx, _cache) => {
|
|
|
23255
23233
|
(propsItem_box.inputType === 'upload-avatar')
|
|
23256
23234
|
? (openBlock(), createElementBlock("div", _hoisted_21, [
|
|
23257
23235
|
createVNode(_component_ly0Upload_avatar, {
|
|
23258
|
-
modelValue:
|
|
23259
|
-
"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)),
|
|
23260
23238
|
myProps: {uploadUrl: upload.uploadUrl_image}
|
|
23261
23239
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23262
23240
|
]))
|
|
@@ -23265,8 +23243,8 @@ return (_ctx, _cache) => {
|
|
|
23265
23243
|
(propsItem_box.inputType === 'upload-carplate')
|
|
23266
23244
|
? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
23267
23245
|
createVNode(_component_ly0Upload_carplate, {
|
|
23268
|
-
modelValue:
|
|
23269
|
-
"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)),
|
|
23270
23248
|
myProps: {uploadUrl: upload.uploadUrl_carplate}
|
|
23271
23249
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23272
23250
|
]))
|
|
@@ -23275,8 +23253,8 @@ return (_ctx, _cache) => {
|
|
|
23275
23253
|
(propsItem_box.inputType === 'd3gbt2260')
|
|
23276
23254
|
? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
23277
23255
|
createVNode(_component_ly0gbt2260, {
|
|
23278
|
-
modelValue:
|
|
23279
|
-
"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)),
|
|
23280
23258
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23281
23259
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23282
23260
|
]))
|
|
@@ -23285,8 +23263,8 @@ return (_ctx, _cache) => {
|
|
|
23285
23263
|
(propsItem_box.inputType === 'd7group')
|
|
23286
23264
|
? (openBlock(), createElementBlock("div", _hoisted_24, [
|
|
23287
23265
|
createVNode(_component_ly0d7group, {
|
|
23288
|
-
modelValue:
|
|
23289
|
-
"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)),
|
|
23290
23268
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23291
23269
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23292
23270
|
]))
|
|
@@ -23295,8 +23273,8 @@ return (_ctx, _cache) => {
|
|
|
23295
23273
|
(propsItem_box.inputType === 'd7postal')
|
|
23296
23274
|
? (openBlock(), createElementBlock("div", _hoisted_25, [
|
|
23297
23275
|
createVNode(_component_ly0d7postal, {
|
|
23298
|
-
modelValue:
|
|
23299
|
-
"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)),
|
|
23300
23278
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23301
23279
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23302
23280
|
]))
|
|
@@ -23305,8 +23283,8 @@ return (_ctx, _cache) => {
|
|
|
23305
23283
|
(propsItem_box.inputType === 'd7price')
|
|
23306
23284
|
? (openBlock(), createElementBlock("div", _hoisted_26, [
|
|
23307
23285
|
createVNode(_component_ly0d7price, {
|
|
23308
|
-
modelValue:
|
|
23309
|
-
"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)),
|
|
23310
23288
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23311
23289
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23312
23290
|
]))
|
|
@@ -23315,8 +23293,8 @@ return (_ctx, _cache) => {
|
|
|
23315
23293
|
(propsItem_box.inputType === 'd7size')
|
|
23316
23294
|
? (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
23317
23295
|
createVNode(_component_ly0d7size, {
|
|
23318
|
-
modelValue:
|
|
23319
|
-
"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)),
|
|
23320
23298
|
myProps: {readOnly: propsItem_box.readOnly}
|
|
23321
23299
|
}, null, 8 /* PROPS */, ["modelValue", "myProps"])
|
|
23322
23300
|
]))
|
|
@@ -23325,8 +23303,8 @@ return (_ctx, _cache) => {
|
|
|
23325
23303
|
(propsItem_box.inputType === 'd7thumb')
|
|
23326
23304
|
? (openBlock(), createElementBlock("div", _hoisted_28, [
|
|
23327
23305
|
createVNode(_component_ly0d7thumb, {
|
|
23328
|
-
modelValue:
|
|
23329
|
-
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (
|
|
23306
|
+
modelValue: props.modelValue,
|
|
23307
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => ((props.modelValue) = $event)),
|
|
23330
23308
|
myProps: {
|
|
23331
23309
|
thumb: {
|
|
23332
23310
|
fieldName: propsItem_box.thumb.fieldName || formProps_box.para.ly0d7thumb.thumb.fieldName,
|
|
@@ -23376,14 +23354,10 @@ var script$f = {
|
|
|
23376
23354
|
default: () => ({})
|
|
23377
23355
|
}
|
|
23378
23356
|
},
|
|
23379
|
-
|
|
23380
|
-
setup(__props, { emit: __emit }) {
|
|
23357
|
+
setup(__props) {
|
|
23381
23358
|
|
|
23382
23359
|
const props = __props;
|
|
23383
|
-
// 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
|
|
23384
|
-
const emit = __emit;
|
|
23385
23360
|
|
|
23386
|
-
let formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
|
|
23387
23361
|
const formProps_box = reactive(Object.assign({}, props.myProps));
|
|
23388
23362
|
const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
|
|
23389
23363
|
|
|
@@ -23401,7 +23375,7 @@ const hdl = {
|
|
|
23401
23375
|
if(formProps_box.submit.handle){
|
|
23402
23376
|
// 执行用户句柄
|
|
23403
23377
|
const result = await formProps_box.submit.handle({
|
|
23404
|
-
formData:
|
|
23378
|
+
formData: props.modelValue,
|
|
23405
23379
|
scopeThis: scopeThis_box
|
|
23406
23380
|
});
|
|
23407
23381
|
if(result.code !== 0){
|
|
@@ -23413,7 +23387,7 @@ const hdl = {
|
|
|
23413
23387
|
if(formProps_box.submit.url){
|
|
23414
23388
|
const result = await request.ly0.ly0request({
|
|
23415
23389
|
url: formProps_box.submit.url,
|
|
23416
|
-
data:
|
|
23390
|
+
data: props.modelValue
|
|
23417
23391
|
});
|
|
23418
23392
|
if(result.code !== 0){
|
|
23419
23393
|
return
|
|
@@ -23424,7 +23398,7 @@ const hdl = {
|
|
|
23424
23398
|
if(formProps_box.submit.storpro){
|
|
23425
23399
|
const result = await request.ly0.storpro({
|
|
23426
23400
|
storproName: formProps_box.submit.storpro,
|
|
23427
|
-
data:
|
|
23401
|
+
data: props.modelValue
|
|
23428
23402
|
});
|
|
23429
23403
|
if(result.code !== 0){
|
|
23430
23404
|
return
|
|
@@ -23437,26 +23411,10 @@ const hdl = {
|
|
|
23437
23411
|
}
|
|
23438
23412
|
|
|
23439
23413
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
23440
|
-
emit("update:modelValue",
|
|
23414
|
+
emit("update:modelValue", props.modelValue);
|
|
23441
23415
|
}
|
|
23442
23416
|
};
|
|
23443
23417
|
|
|
23444
|
-
// 表单数据监听
|
|
23445
|
-
watch(
|
|
23446
|
-
formData_box, // 监听 reactive 对象时,默认是深层监听
|
|
23447
|
-
(newVal, oldVal) => {
|
|
23448
|
-
|
|
23449
|
-
console.log('测试 222 监听', newVal);
|
|
23450
|
-
console.log('测试 333 监听', oldVal);
|
|
23451
|
-
|
|
23452
|
-
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
23453
|
-
emit("update:modelValue", newVal);
|
|
23454
|
-
},
|
|
23455
|
-
{
|
|
23456
|
-
deep: true,
|
|
23457
|
-
}
|
|
23458
|
-
);
|
|
23459
|
-
|
|
23460
23418
|
return (_ctx, _cache) => {
|
|
23461
23419
|
const _component_ly0Menu = resolveComponent("ly0Menu");
|
|
23462
23420
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
@@ -23482,7 +23440,7 @@ return (_ctx, _cache) => {
|
|
|
23482
23440
|
createElementVNode("tbody", null, [
|
|
23483
23441
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.items, (item0, index0) => {
|
|
23484
23442
|
return (openBlock(), createElementBlock(Fragment, { key: index0 }, [
|
|
23485
|
-
(item0.hdlVisible ? item0.hdlVisible({formData:
|
|
23443
|
+
(item0.hdlVisible ? item0.hdlVisible({formData: props.modelValue, scopeThis: scopeThis_box}) : true)
|
|
23486
23444
|
? (openBlock(), createElementBlock("tr", _hoisted_1$c, [
|
|
23487
23445
|
(!!item0.label)
|
|
23488
23446
|
? (openBlock(), createElementBlock("td", {
|
|
@@ -23490,8 +23448,8 @@ return (_ctx, _cache) => {
|
|
|
23490
23448
|
style: normalizeStyle(style.field_box.left)
|
|
23491
23449
|
}, [
|
|
23492
23450
|
createVNode(script$h, {
|
|
23493
|
-
modelValue:
|
|
23494
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (
|
|
23451
|
+
modelValue: props.modelValue,
|
|
23452
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((props.modelValue) = $event)),
|
|
23495
23453
|
myProps: formProps_box,
|
|
23496
23454
|
scopeThis: scopeThis_box,
|
|
23497
23455
|
item: item0
|
|
@@ -23516,7 +23474,7 @@ return (_ctx, _cache) => {
|
|
|
23516
23474
|
default: withCtx(() => [
|
|
23517
23475
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item0.items, (item1, index1) => {
|
|
23518
23476
|
return (openBlock(), createElementBlock(Fragment, { key: index1 }, [
|
|
23519
|
-
(item1.hdlVisible ? item1.hdlVisible({formData:
|
|
23477
|
+
(item1.hdlVisible ? item1.hdlVisible({formData: props.modelValue, scopeThis: scopeThis_box}) : true)
|
|
23520
23478
|
? (openBlock(), createBlock(_component_el_collapse_item, {
|
|
23521
23479
|
key: 0,
|
|
23522
23480
|
title: item1.title,
|
|
@@ -23530,7 +23488,7 @@ return (_ctx, _cache) => {
|
|
|
23530
23488
|
return (openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
23531
23489
|
(
|
|
23532
23490
|
item2.hdlVisible
|
|
23533
|
-
? item2.hdlVisible({formData:
|
|
23491
|
+
? item2.hdlVisible({formData: props.modelValue, scopeThis: scopeThis_box})
|
|
23534
23492
|
: true
|
|
23535
23493
|
)
|
|
23536
23494
|
? (openBlock(), createElementBlock("tr", _hoisted_3$5, [
|
|
@@ -23540,8 +23498,8 @@ return (_ctx, _cache) => {
|
|
|
23540
23498
|
style: normalizeStyle(style.field_box.left)
|
|
23541
23499
|
}, [
|
|
23542
23500
|
createVNode(script$h, {
|
|
23543
|
-
modelValue:
|
|
23544
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (
|
|
23501
|
+
modelValue: props.modelValue,
|
|
23502
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((props.modelValue) = $event)),
|
|
23545
23503
|
myProps: formProps_box,
|
|
23546
23504
|
scopeThis: scopeThis_box,
|
|
23547
23505
|
item: item2
|
|
@@ -23553,8 +23511,8 @@ return (_ctx, _cache) => {
|
|
|
23553
23511
|
colspan: style.no_field_label(item2)
|
|
23554
23512
|
}, [
|
|
23555
23513
|
createVNode(script$g, {
|
|
23556
|
-
modelValue:
|
|
23557
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (
|
|
23514
|
+
modelValue: props.modelValue,
|
|
23515
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((props.modelValue) = $event)),
|
|
23558
23516
|
myProps: formProps_box,
|
|
23559
23517
|
scopeThis: scopeThis_box,
|
|
23560
23518
|
item: item2
|
|
@@ -23576,8 +23534,8 @@ return (_ctx, _cache) => {
|
|
|
23576
23534
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accordion", "modelValue", "onUpdate:modelValue", "style"]))
|
|
23577
23535
|
: createCommentVNode("v-if", true),
|
|
23578
23536
|
createVNode(script$g, {
|
|
23579
|
-
modelValue:
|
|
23580
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (
|
|
23537
|
+
modelValue: props.modelValue,
|
|
23538
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((props.modelValue) = $event)),
|
|
23581
23539
|
myProps: formProps_box,
|
|
23582
23540
|
scopeThis: scopeThis_box,
|
|
23583
23541
|
item: item0
|
|
@@ -23639,33 +23597,13 @@ var script$e = {
|
|
|
23639
23597
|
default: () => ({})
|
|
23640
23598
|
}
|
|
23641
23599
|
},
|
|
23642
|
-
|
|
23643
|
-
setup(__props, { emit: __emit }) {
|
|
23600
|
+
setup(__props) {
|
|
23644
23601
|
|
|
23645
23602
|
const props = __props;
|
|
23646
|
-
// 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
|
|
23647
|
-
const emit = __emit;
|
|
23648
23603
|
|
|
23649
|
-
let formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
|
|
23650
23604
|
const formProps_box = reactive(Object.assign({}, ly0default$2.myProps, props.myProps));
|
|
23651
23605
|
const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
|
|
23652
23606
|
|
|
23653
|
-
// 表单数据监听
|
|
23654
|
-
watch(
|
|
23655
|
-
formData_box, // 监听 reactive 对象时,默认是深层监听
|
|
23656
|
-
(newVal, oldVal) => {
|
|
23657
|
-
|
|
23658
|
-
console.log('测试 444 监听', newVal);
|
|
23659
|
-
console.log('测试 555 监听', oldVal);
|
|
23660
|
-
|
|
23661
|
-
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
23662
|
-
emit("update:modelValue", newVal);
|
|
23663
|
-
},
|
|
23664
|
-
{
|
|
23665
|
-
deep: true,
|
|
23666
|
-
}
|
|
23667
|
-
);
|
|
23668
|
-
|
|
23669
23607
|
return (_ctx, _cache) => {
|
|
23670
23608
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
23671
23609
|
|
|
@@ -23684,8 +23622,8 @@ return (_ctx, _cache) => {
|
|
|
23684
23622
|
}, {
|
|
23685
23623
|
default: withCtx(() => [
|
|
23686
23624
|
createVNode(script$f, {
|
|
23687
|
-
modelValue:
|
|
23688
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (
|
|
23625
|
+
modelValue: props.modelValue,
|
|
23626
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((props.modelValue) = $event)),
|
|
23689
23627
|
myProps: formProps_box,
|
|
23690
23628
|
scopeThis: scopeThis_box
|
|
23691
23629
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"])
|
|
@@ -23694,8 +23632,8 @@ return (_ctx, _cache) => {
|
|
|
23694
23632
|
}, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
|
|
23695
23633
|
: (openBlock(), createBlock(script$f, {
|
|
23696
23634
|
key: 1,
|
|
23697
|
-
modelValue:
|
|
23698
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (
|
|
23635
|
+
modelValue: props.modelValue,
|
|
23636
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((props.modelValue) = $event)),
|
|
23699
23637
|
myProps: formProps_box,
|
|
23700
23638
|
scopeThis: scopeThis_box
|
|
23701
23639
|
}, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]))
|