@yoooloo42/joker 1.0.75 → 1.0.78
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.cjs.js
CHANGED
|
@@ -22749,9 +22749,6 @@ const style = vue.reactive({
|
|
|
22749
22749
|
});
|
|
22750
22750
|
|
|
22751
22751
|
const hdlGetValue = {
|
|
22752
|
-
gbt2260(result) {
|
|
22753
|
-
props.dataBox.fieldsValue[props.item.fieldName] = !!result.code6 ? result.code6 : '';
|
|
22754
|
-
},
|
|
22755
22752
|
ly0d7group(result) {
|
|
22756
22753
|
props.dataBox.fieldsValue[props.item.fieldName] = !!result.value ? result.value : [];
|
|
22757
22754
|
},
|
|
@@ -23188,12 +23185,10 @@ return (_ctx, _cache) => {
|
|
|
23188
23185
|
(__props.item.inputType === 'd3gbt2260')
|
|
23189
23186
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_23, [
|
|
23190
23187
|
vue.createVNode(_component_ly0gbt2260, {
|
|
23191
|
-
myProps: {
|
|
23192
|
-
|
|
23193
|
-
|
|
23194
|
-
|
|
23195
|
-
onGetValue: hdlGetValue.gbt2260
|
|
23196
|
-
}, null, 8 /* PROPS */, ["myProps", "onGetValue"])
|
|
23188
|
+
myProps: {readOnly: __props.item.readOnly},
|
|
23189
|
+
modelValue: __props.dataBox.fieldsValue[__props.item.fieldName],
|
|
23190
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((__props.dataBox.fieldsValue[__props.item.fieldName]) = $event))
|
|
23191
|
+
}, null, 8 /* PROPS */, ["myProps", "modelValue"])
|
|
23197
23192
|
]))
|
|
23198
23193
|
: vue.createCommentVNode("v-if", true),
|
|
23199
23194
|
vue.createCommentVNode(" 商品分类 "),
|
|
@@ -23224,11 +23219,9 @@ return (_ctx, _cache) => {
|
|
|
23224
23219
|
(__props.item.inputType === 'd7price')
|
|
23225
23220
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26, [
|
|
23226
23221
|
vue.createVNode(_component_ly0d7price, {
|
|
23227
|
-
myProps: {
|
|
23228
|
-
readOnly: __props.item.readOnly
|
|
23229
|
-
},
|
|
23222
|
+
myProps: {readOnly: __props.item.readOnly},
|
|
23230
23223
|
modelValue: __props.dataBox.fieldsValue[__props.item.fieldName],
|
|
23231
|
-
"onUpdate:modelValue": _cache[
|
|
23224
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((__props.dataBox.fieldsValue[__props.item.fieldName]) = $event))
|
|
23232
23225
|
}, null, 8 /* PROPS */, ["myProps", "modelValue"])
|
|
23233
23226
|
]))
|
|
23234
23227
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -41801,29 +41794,40 @@ var upload = {
|
|
|
41801
41794
|
const _hoisted_1$5 = { style: {"width":"100%"} };
|
|
41802
41795
|
const _hoisted_2$5 = { style: {"width":"30%"} };
|
|
41803
41796
|
|
|
41797
|
+
// 遵循 Vue 3 v-model 规范,使用 modelValue
|
|
41804
41798
|
|
|
41805
41799
|
var script$5 = {
|
|
41806
41800
|
__name: 'index',
|
|
41807
41801
|
props: {
|
|
41802
|
+
// modelValue: 外部 v-model 绑定的值
|
|
41803
|
+
modelValue: {
|
|
41804
|
+
type: String,
|
|
41805
|
+
default: () => ''
|
|
41806
|
+
},
|
|
41808
41807
|
myProps: {
|
|
41809
|
-
|
|
41810
|
-
|
|
41808
|
+
readOnly: {
|
|
41809
|
+
type: Boolean,
|
|
41810
|
+
default: false
|
|
41811
|
+
}
|
|
41811
41812
|
}
|
|
41813
|
+
|
|
41812
41814
|
},
|
|
41813
|
-
emits: ['
|
|
41815
|
+
emits: ['update:modelValue', 'change'],
|
|
41814
41816
|
setup(__props, { emit: __emit }) {
|
|
41815
41817
|
|
|
41816
41818
|
const props = __props;
|
|
41819
|
+
// 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
|
|
41817
41820
|
const emit = __emit;
|
|
41818
41821
|
|
|
41819
|
-
const value = vue.
|
|
41822
|
+
const value = vue.computed(() => Object.assign({
|
|
41820
41823
|
code2: '',
|
|
41821
41824
|
text2: '',
|
|
41822
41825
|
code4: '',
|
|
41823
41826
|
text4: '',
|
|
41824
41827
|
code6: '',
|
|
41825
41828
|
text6: '',
|
|
41826
|
-
});
|
|
41829
|
+
}, {code6: props.modelValue || ''}));
|
|
41830
|
+
|
|
41827
41831
|
const popup = vue.reactive({
|
|
41828
41832
|
visible: false,
|
|
41829
41833
|
select: {
|
|
@@ -41917,16 +41921,8 @@ const hdlSubmit = () => {
|
|
|
41917
41921
|
value.code6 = popup.select.code6;
|
|
41918
41922
|
const foundItem6 = popup.select.arrCode6.find(i => i.code6 === value.code6);
|
|
41919
41923
|
value.text6 = foundItem6 ? foundItem6.text6 : '';
|
|
41920
|
-
|
|
41921
|
-
|
|
41922
|
-
? value.code6
|
|
41923
|
-
: value.code4
|
|
41924
|
-
? value.code4
|
|
41925
|
-
: value.code2
|
|
41926
|
-
? value.code2
|
|
41927
|
-
: '',
|
|
41928
|
-
_id: '_id' in props.myProps ? props.myProps._id : null,
|
|
41929
|
-
});
|
|
41924
|
+
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
41925
|
+
emit("update:modelValue", value.code6 ?? value.code4 ?? value.code2 ?? '');
|
|
41930
41926
|
popup.visible = false;
|
|
41931
41927
|
};
|
|
41932
41928
|
|
|
@@ -41993,12 +41989,12 @@ return (_ctx, _cache) => {
|
|
|
41993
41989
|
vue.createElementVNode("td", null, [
|
|
41994
41990
|
vue.createElementVNode("span", {
|
|
41995
41991
|
style: vue.normalizeStyle(style.value.code)
|
|
41996
|
-
}, vue.toDisplayString('[' + (value.code2 ? value.code2 : '省') + ']'), 5 /* TEXT, STYLE */)
|
|
41992
|
+
}, vue.toDisplayString('[' + (value.value.code2 ? value.value.code2 : '省') + ']'), 5 /* TEXT, STYLE */)
|
|
41997
41993
|
]),
|
|
41998
41994
|
vue.createElementVNode("td", null, [
|
|
41999
41995
|
vue.createElementVNode("span", {
|
|
42000
41996
|
style: vue.normalizeStyle(style.value.text)
|
|
42001
|
-
}, vue.toDisplayString(value.text2 ? value.text2 : ''), 5 /* TEXT, STYLE */)
|
|
41997
|
+
}, vue.toDisplayString(value.value.text2 ? value.value.text2 : ''), 5 /* TEXT, STYLE */)
|
|
42002
41998
|
])
|
|
42003
41999
|
]),
|
|
42004
42000
|
vue.createElementVNode("tr", null, [
|
|
@@ -42006,12 +42002,12 @@ return (_ctx, _cache) => {
|
|
|
42006
42002
|
vue.createElementVNode("td", null, [
|
|
42007
42003
|
vue.createElementVNode("span", {
|
|
42008
42004
|
style: vue.normalizeStyle(style.value.code)
|
|
42009
|
-
}, vue.toDisplayString('[' + (value.code4 ? value.code4 : '市') + ']'), 5 /* TEXT, STYLE */)
|
|
42005
|
+
}, vue.toDisplayString('[' + (value.value.code4 ? value.value.code4 : '市') + ']'), 5 /* TEXT, STYLE */)
|
|
42010
42006
|
]),
|
|
42011
42007
|
vue.createElementVNode("td", null, [
|
|
42012
42008
|
vue.createElementVNode("span", {
|
|
42013
42009
|
style: vue.normalizeStyle(style.value.text)
|
|
42014
|
-
}, vue.toDisplayString(value.text4 ? value.text4 : ''), 5 /* TEXT, STYLE */)
|
|
42010
|
+
}, vue.toDisplayString(value.value.text4 ? value.value.text4 : ''), 5 /* TEXT, STYLE */)
|
|
42015
42011
|
])
|
|
42016
42012
|
]),
|
|
42017
42013
|
vue.createElementVNode("tr", null, [
|
|
@@ -42019,12 +42015,12 @@ return (_ctx, _cache) => {
|
|
|
42019
42015
|
vue.createElementVNode("td", null, [
|
|
42020
42016
|
vue.createElementVNode("span", {
|
|
42021
42017
|
style: vue.normalizeStyle(style.value.code)
|
|
42022
|
-
}, vue.toDisplayString('[' + (value.code6 ? value.code6 : '县') + ']'), 5 /* TEXT, STYLE */)
|
|
42018
|
+
}, vue.toDisplayString('[' + (value.value.code6 ? value.value.code6 : '县') + ']'), 5 /* TEXT, STYLE */)
|
|
42023
42019
|
]),
|
|
42024
42020
|
vue.createElementVNode("td", null, [
|
|
42025
42021
|
vue.createElementVNode("span", {
|
|
42026
42022
|
style: vue.normalizeStyle(style.value.text)
|
|
42027
|
-
}, vue.toDisplayString(value.text6 ? value.text6 : ''), 5 /* TEXT, STYLE */)
|
|
42023
|
+
}, vue.toDisplayString(value.value.text6 ? value.value.text6 : ''), 5 /* TEXT, STYLE */)
|
|
42028
42024
|
])
|
|
42029
42025
|
])
|
|
42030
42026
|
])
|
|
@@ -42610,8 +42606,7 @@ var script$2 = {
|
|
|
42610
42606
|
readOnly: {
|
|
42611
42607
|
type: Boolean,
|
|
42612
42608
|
default: false
|
|
42613
|
-
}
|
|
42614
|
-
_id: [String, Number] // 允许传入一个 _id 用于回传,可选
|
|
42609
|
+
}
|
|
42615
42610
|
}
|
|
42616
42611
|
|
|
42617
42612
|
},
|