@yoooloo42/joker 1.0.74 → 1.0.77
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 +31 -36
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +31 -36
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -22745,18 +22745,12 @@ const style = reactive({
|
|
|
22745
22745
|
});
|
|
22746
22746
|
|
|
22747
22747
|
const hdlGetValue = {
|
|
22748
|
-
gbt2260(result) {
|
|
22749
|
-
props.dataBox.fieldsValue[props.item.fieldName] = !!result.code6 ? result.code6 : '';
|
|
22750
|
-
},
|
|
22751
22748
|
ly0d7group(result) {
|
|
22752
22749
|
props.dataBox.fieldsValue[props.item.fieldName] = !!result.value ? result.value : [];
|
|
22753
22750
|
},
|
|
22754
22751
|
ly0d7postal(result) {
|
|
22755
22752
|
props.dataBox.fieldsValue[props.item.fieldName] = !!result.value ? result.value : [];
|
|
22756
22753
|
},
|
|
22757
|
-
ly0d7price(result) {
|
|
22758
|
-
props.dataBox.fieldsValue[props.item.fieldName] = !!result.value ? result.value : [];
|
|
22759
|
-
},
|
|
22760
22754
|
ly0d7size(result) {
|
|
22761
22755
|
props.dataBox.fieldsValue[props.item.fieldName] = !!result.value ? result.value : [];
|
|
22762
22756
|
},
|
|
@@ -23187,12 +23181,10 @@ return (_ctx, _cache) => {
|
|
|
23187
23181
|
(__props.item.inputType === 'd3gbt2260')
|
|
23188
23182
|
? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
23189
23183
|
createVNode(_component_ly0gbt2260, {
|
|
23190
|
-
myProps: {
|
|
23191
|
-
|
|
23192
|
-
|
|
23193
|
-
|
|
23194
|
-
onGetValue: hdlGetValue.gbt2260
|
|
23195
|
-
}, null, 8 /* PROPS */, ["myProps", "onGetValue"])
|
|
23184
|
+
myProps: {readOnly: __props.item.readOnly},
|
|
23185
|
+
modelValue: __props.dataBox.fieldsValue[__props.item.fieldName],
|
|
23186
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((__props.dataBox.fieldsValue[__props.item.fieldName]) = $event))
|
|
23187
|
+
}, null, 8 /* PROPS */, ["myProps", "modelValue"])
|
|
23196
23188
|
]))
|
|
23197
23189
|
: createCommentVNode("v-if", true),
|
|
23198
23190
|
createCommentVNode(" 商品分类 "),
|
|
@@ -23224,11 +23216,11 @@ return (_ctx, _cache) => {
|
|
|
23224
23216
|
? (openBlock(), createElementBlock("div", _hoisted_26, [
|
|
23225
23217
|
createVNode(_component_ly0d7price, {
|
|
23226
23218
|
myProps: {
|
|
23227
|
-
|
|
23228
|
-
readOnly: __props.item.readOnly,
|
|
23219
|
+
readOnly: __props.item.readOnly
|
|
23229
23220
|
},
|
|
23230
|
-
|
|
23231
|
-
|
|
23221
|
+
modelValue: __props.dataBox.fieldsValue[__props.item.fieldName],
|
|
23222
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((__props.dataBox.fieldsValue[__props.item.fieldName]) = $event))
|
|
23223
|
+
}, null, 8 /* PROPS */, ["myProps", "modelValue"])
|
|
23232
23224
|
]))
|
|
23233
23225
|
: createCommentVNode("v-if", true),
|
|
23234
23226
|
createCommentVNode(" 商品规格 "),
|
|
@@ -41800,22 +41792,32 @@ var upload = {
|
|
|
41800
41792
|
const _hoisted_1$5 = { style: {"width":"100%"} };
|
|
41801
41793
|
const _hoisted_2$5 = { style: {"width":"30%"} };
|
|
41802
41794
|
|
|
41795
|
+
// 遵循 Vue 3 v-model 规范,使用 modelValue
|
|
41803
41796
|
|
|
41804
41797
|
var script$5 = {
|
|
41805
41798
|
__name: 'index',
|
|
41806
41799
|
props: {
|
|
41800
|
+
// modelValue: 外部 v-model 绑定的值
|
|
41801
|
+
modelValue: {
|
|
41802
|
+
type: String,
|
|
41803
|
+
default: () => ''
|
|
41804
|
+
},
|
|
41807
41805
|
myProps: {
|
|
41808
|
-
|
|
41809
|
-
|
|
41806
|
+
readOnly: {
|
|
41807
|
+
type: Boolean,
|
|
41808
|
+
default: false
|
|
41809
|
+
}
|
|
41810
41810
|
}
|
|
41811
|
+
|
|
41811
41812
|
},
|
|
41812
|
-
emits: ['
|
|
41813
|
+
emits: ['update:modelValue', 'change'],
|
|
41813
41814
|
setup(__props, { emit: __emit }) {
|
|
41814
41815
|
|
|
41815
41816
|
const props = __props;
|
|
41817
|
+
// 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
|
|
41816
41818
|
const emit = __emit;
|
|
41817
41819
|
|
|
41818
|
-
const value =
|
|
41820
|
+
const value = computed(() => props.modelValue || {
|
|
41819
41821
|
code2: '',
|
|
41820
41822
|
text2: '',
|
|
41821
41823
|
code4: '',
|
|
@@ -41823,6 +41825,7 @@ const value = reactive({
|
|
|
41823
41825
|
code6: '',
|
|
41824
41826
|
text6: '',
|
|
41825
41827
|
});
|
|
41828
|
+
|
|
41826
41829
|
const popup = reactive({
|
|
41827
41830
|
visible: false,
|
|
41828
41831
|
select: {
|
|
@@ -41916,16 +41919,8 @@ const hdlSubmit = () => {
|
|
|
41916
41919
|
value.code6 = popup.select.code6;
|
|
41917
41920
|
const foundItem6 = popup.select.arrCode6.find(i => i.code6 === value.code6);
|
|
41918
41921
|
value.text6 = foundItem6 ? foundItem6.text6 : '';
|
|
41919
|
-
|
|
41920
|
-
|
|
41921
|
-
? value.code6
|
|
41922
|
-
: value.code4
|
|
41923
|
-
? value.code4
|
|
41924
|
-
: value.code2
|
|
41925
|
-
? value.code2
|
|
41926
|
-
: '',
|
|
41927
|
-
_id: '_id' in props.myProps ? props.myProps._id : null,
|
|
41928
|
-
});
|
|
41922
|
+
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
41923
|
+
emit("update:modelValue", value.code6 ?? value.code4 ?? value.code2 ?? '');
|
|
41929
41924
|
popup.visible = false;
|
|
41930
41925
|
};
|
|
41931
41926
|
|
|
@@ -41992,12 +41987,12 @@ return (_ctx, _cache) => {
|
|
|
41992
41987
|
createElementVNode("td", null, [
|
|
41993
41988
|
createElementVNode("span", {
|
|
41994
41989
|
style: normalizeStyle(style.value.code)
|
|
41995
|
-
}, toDisplayString('[' + (value.code2 ? value.code2 : '省') + ']'), 5 /* TEXT, STYLE */)
|
|
41990
|
+
}, toDisplayString('[' + (value.value.code2 ? value.value.code2 : '省') + ']'), 5 /* TEXT, STYLE */)
|
|
41996
41991
|
]),
|
|
41997
41992
|
createElementVNode("td", null, [
|
|
41998
41993
|
createElementVNode("span", {
|
|
41999
41994
|
style: normalizeStyle(style.value.text)
|
|
42000
|
-
}, toDisplayString(value.text2 ? value.text2 : ''), 5 /* TEXT, STYLE */)
|
|
41995
|
+
}, toDisplayString(value.value.text2 ? value.value.text2 : ''), 5 /* TEXT, STYLE */)
|
|
42001
41996
|
])
|
|
42002
41997
|
]),
|
|
42003
41998
|
createElementVNode("tr", null, [
|
|
@@ -42005,12 +42000,12 @@ return (_ctx, _cache) => {
|
|
|
42005
42000
|
createElementVNode("td", null, [
|
|
42006
42001
|
createElementVNode("span", {
|
|
42007
42002
|
style: normalizeStyle(style.value.code)
|
|
42008
|
-
}, toDisplayString('[' + (value.code4 ? value.code4 : '市') + ']'), 5 /* TEXT, STYLE */)
|
|
42003
|
+
}, toDisplayString('[' + (value.value.code4 ? value.value.code4 : '市') + ']'), 5 /* TEXT, STYLE */)
|
|
42009
42004
|
]),
|
|
42010
42005
|
createElementVNode("td", null, [
|
|
42011
42006
|
createElementVNode("span", {
|
|
42012
42007
|
style: normalizeStyle(style.value.text)
|
|
42013
|
-
}, toDisplayString(value.text4 ? value.text4 : ''), 5 /* TEXT, STYLE */)
|
|
42008
|
+
}, toDisplayString(value.value.text4 ? value.value.text4 : ''), 5 /* TEXT, STYLE */)
|
|
42014
42009
|
])
|
|
42015
42010
|
]),
|
|
42016
42011
|
createElementVNode("tr", null, [
|
|
@@ -42018,12 +42013,12 @@ return (_ctx, _cache) => {
|
|
|
42018
42013
|
createElementVNode("td", null, [
|
|
42019
42014
|
createElementVNode("span", {
|
|
42020
42015
|
style: normalizeStyle(style.value.code)
|
|
42021
|
-
}, toDisplayString('[' + (value.code6 ? value.code6 : '县') + ']'), 5 /* TEXT, STYLE */)
|
|
42016
|
+
}, toDisplayString('[' + (value.value.code6 ? value.value.code6 : '县') + ']'), 5 /* TEXT, STYLE */)
|
|
42022
42017
|
]),
|
|
42023
42018
|
createElementVNode("td", null, [
|
|
42024
42019
|
createElementVNode("span", {
|
|
42025
42020
|
style: normalizeStyle(style.value.text)
|
|
42026
|
-
}, toDisplayString(value.text6 ? value.text6 : ''), 5 /* TEXT, STYLE */)
|
|
42021
|
+
}, toDisplayString(value.value.text6 ? value.value.text6 : ''), 5 /* TEXT, STYLE */)
|
|
42027
42022
|
])
|
|
42028
42023
|
])
|
|
42029
42024
|
])
|