@yoooloo42/joker 1.0.79 → 1.0.81
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 +19 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +19 -17
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -41819,14 +41819,14 @@ const props = __props;
|
|
|
41819
41819
|
// 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
|
|
41820
41820
|
const emit = __emit;
|
|
41821
41821
|
|
|
41822
|
-
const value = vue.computed(() => Object.assign({
|
|
41822
|
+
const value = vue.reactive(vue.computed(() => Object.assign({
|
|
41823
41823
|
code2: '',
|
|
41824
41824
|
text2: '',
|
|
41825
41825
|
code4: '',
|
|
41826
41826
|
text4: '',
|
|
41827
41827
|
code6: '',
|
|
41828
41828
|
text6: '',
|
|
41829
|
-
}, {code6: props.modelValue || ''}));
|
|
41829
|
+
}, {code6: props.modelValue || ''})));
|
|
41830
41830
|
|
|
41831
41831
|
const popup = vue.reactive({
|
|
41832
41832
|
visible: false,
|
|
@@ -41874,16 +41874,18 @@ vue.watch(() => props.modelValue,
|
|
|
41874
41874
|
);
|
|
41875
41875
|
|
|
41876
41876
|
const hdlPopup = async () => {
|
|
41877
|
-
if (
|
|
41878
|
-
|
|
41879
|
-
await hdlChangeCode2(popup.select.code2);
|
|
41880
|
-
|
|
41881
|
-
popup.select.code4 = value.code4;
|
|
41882
|
-
await hdlChangeCode4(popup.select.code4);
|
|
41883
|
-
|
|
41884
|
-
popup.select.code6 = value.code6;
|
|
41885
|
-
popup.visible = true;
|
|
41877
|
+
if (props.myProps.readOnly) {
|
|
41878
|
+
return
|
|
41886
41879
|
}
|
|
41880
|
+
|
|
41881
|
+
popup.select.code2 = value.code2;
|
|
41882
|
+
await hdlChangeCode2(popup.select.code2);
|
|
41883
|
+
|
|
41884
|
+
popup.select.code4 = value.code4;
|
|
41885
|
+
await hdlChangeCode4(popup.select.code4);
|
|
41886
|
+
|
|
41887
|
+
popup.select.code6 = value.code6;
|
|
41888
|
+
popup.visible = true;
|
|
41887
41889
|
};
|
|
41888
41890
|
|
|
41889
41891
|
const hdlChangeCode2 = async value => { // 使用 async 标记
|
|
@@ -41989,12 +41991,12 @@ return (_ctx, _cache) => {
|
|
|
41989
41991
|
vue.createElementVNode("td", null, [
|
|
41990
41992
|
vue.createElementVNode("span", {
|
|
41991
41993
|
style: vue.normalizeStyle(style.value.code)
|
|
41992
|
-
}, vue.toDisplayString('[' + (value.
|
|
41994
|
+
}, vue.toDisplayString('[' + (value.code2 ? value.code2 : '省') + ']'), 5 /* TEXT, STYLE */)
|
|
41993
41995
|
]),
|
|
41994
41996
|
vue.createElementVNode("td", null, [
|
|
41995
41997
|
vue.createElementVNode("span", {
|
|
41996
41998
|
style: vue.normalizeStyle(style.value.text)
|
|
41997
|
-
}, vue.toDisplayString(value.
|
|
41999
|
+
}, vue.toDisplayString(value.text2 ? value.text2 : ''), 5 /* TEXT, STYLE */)
|
|
41998
42000
|
])
|
|
41999
42001
|
]),
|
|
42000
42002
|
vue.createElementVNode("tr", null, [
|
|
@@ -42002,12 +42004,12 @@ return (_ctx, _cache) => {
|
|
|
42002
42004
|
vue.createElementVNode("td", null, [
|
|
42003
42005
|
vue.createElementVNode("span", {
|
|
42004
42006
|
style: vue.normalizeStyle(style.value.code)
|
|
42005
|
-
}, vue.toDisplayString('[' + (value.
|
|
42007
|
+
}, vue.toDisplayString('[' + (value.code4 ? value.code4 : '市') + ']'), 5 /* TEXT, STYLE */)
|
|
42006
42008
|
]),
|
|
42007
42009
|
vue.createElementVNode("td", null, [
|
|
42008
42010
|
vue.createElementVNode("span", {
|
|
42009
42011
|
style: vue.normalizeStyle(style.value.text)
|
|
42010
|
-
}, vue.toDisplayString(value.
|
|
42012
|
+
}, vue.toDisplayString(value.text4 ? value.text4 : ''), 5 /* TEXT, STYLE */)
|
|
42011
42013
|
])
|
|
42012
42014
|
]),
|
|
42013
42015
|
vue.createElementVNode("tr", null, [
|
|
@@ -42015,12 +42017,12 @@ return (_ctx, _cache) => {
|
|
|
42015
42017
|
vue.createElementVNode("td", null, [
|
|
42016
42018
|
vue.createElementVNode("span", {
|
|
42017
42019
|
style: vue.normalizeStyle(style.value.code)
|
|
42018
|
-
}, vue.toDisplayString('[' + (value.
|
|
42020
|
+
}, vue.toDisplayString('[' + (value.code6 ? value.code6 : '县') + ']'), 5 /* TEXT, STYLE */)
|
|
42019
42021
|
]),
|
|
42020
42022
|
vue.createElementVNode("td", null, [
|
|
42021
42023
|
vue.createElementVNode("span", {
|
|
42022
42024
|
style: vue.normalizeStyle(style.value.text)
|
|
42023
|
-
}, vue.toDisplayString(value.
|
|
42025
|
+
}, vue.toDisplayString(value.text6 ? value.text6 : ''), 5 /* TEXT, STYLE */)
|
|
42024
42026
|
])
|
|
42025
42027
|
])
|
|
42026
42028
|
])
|