@yoooloo42/joker 1.0.80 → 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.esm.js CHANGED
@@ -41815,7 +41815,7 @@ const props = __props;
41815
41815
  // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
41816
41816
  const emit = __emit;
41817
41817
 
41818
- const value = ref(computed(() => Object.assign({
41818
+ const value = reactive(computed(() => Object.assign({
41819
41819
  code2: '',
41820
41820
  text2: '',
41821
41821
  code4: '',
@@ -41870,16 +41870,18 @@ watch(() => props.modelValue,
41870
41870
  );
41871
41871
 
41872
41872
  const hdlPopup = async () => {
41873
- if (!props.myProps.readOnly) {
41874
- popup.select.code2 = value.code2;
41875
- await hdlChangeCode2(popup.select.code2);
41876
-
41877
- popup.select.code4 = value.code4;
41878
- await hdlChangeCode4(popup.select.code4);
41879
-
41880
- popup.select.code6 = value.code6;
41881
- popup.visible = true;
41873
+ if (props.myProps.readOnly) {
41874
+ return
41882
41875
  }
41876
+
41877
+ popup.select.code2 = value.code2;
41878
+ await hdlChangeCode2(popup.select.code2);
41879
+
41880
+ popup.select.code4 = value.code4;
41881
+ await hdlChangeCode4(popup.select.code4);
41882
+
41883
+ popup.select.code6 = value.code6;
41884
+ popup.visible = true;
41883
41885
  };
41884
41886
 
41885
41887
  const hdlChangeCode2 = async value => { // 使用 async 标记
@@ -41985,12 +41987,12 @@ return (_ctx, _cache) => {
41985
41987
  createElementVNode("td", null, [
41986
41988
  createElementVNode("span", {
41987
41989
  style: normalizeStyle(style.value.code)
41988
- }, toDisplayString('[' + (value.value.code2 ? value.value.code2 : '省') + ']'), 5 /* TEXT, STYLE */)
41990
+ }, toDisplayString('[' + (value.code2 ? value.code2 : '省') + ']'), 5 /* TEXT, STYLE */)
41989
41991
  ]),
41990
41992
  createElementVNode("td", null, [
41991
41993
  createElementVNode("span", {
41992
41994
  style: normalizeStyle(style.value.text)
41993
- }, toDisplayString(value.value.text2 ? value.value.text2 : ''), 5 /* TEXT, STYLE */)
41995
+ }, toDisplayString(value.text2 ? value.text2 : ''), 5 /* TEXT, STYLE */)
41994
41996
  ])
41995
41997
  ]),
41996
41998
  createElementVNode("tr", null, [
@@ -41998,12 +42000,12 @@ return (_ctx, _cache) => {
41998
42000
  createElementVNode("td", null, [
41999
42001
  createElementVNode("span", {
42000
42002
  style: normalizeStyle(style.value.code)
42001
- }, toDisplayString('[' + (value.value.code4 ? value.value.code4 : '市') + ']'), 5 /* TEXT, STYLE */)
42003
+ }, toDisplayString('[' + (value.code4 ? value.code4 : '市') + ']'), 5 /* TEXT, STYLE */)
42002
42004
  ]),
42003
42005
  createElementVNode("td", null, [
42004
42006
  createElementVNode("span", {
42005
42007
  style: normalizeStyle(style.value.text)
42006
- }, toDisplayString(value.value.text4 ? value.value.text4 : ''), 5 /* TEXT, STYLE */)
42008
+ }, toDisplayString(value.text4 ? value.text4 : ''), 5 /* TEXT, STYLE */)
42007
42009
  ])
42008
42010
  ]),
42009
42011
  createElementVNode("tr", null, [
@@ -42011,12 +42013,12 @@ return (_ctx, _cache) => {
42011
42013
  createElementVNode("td", null, [
42012
42014
  createElementVNode("span", {
42013
42015
  style: normalizeStyle(style.value.code)
42014
- }, toDisplayString('[' + (value.value.code6 ? value.value.code6 : '县') + ']'), 5 /* TEXT, STYLE */)
42016
+ }, toDisplayString('[' + (value.code6 ? value.code6 : '县') + ']'), 5 /* TEXT, STYLE */)
42015
42017
  ]),
42016
42018
  createElementVNode("td", null, [
42017
42019
  createElementVNode("span", {
42018
42020
  style: normalizeStyle(style.value.text)
42019
- }, toDisplayString(value.value.text6 ? value.value.text6 : ''), 5 /* TEXT, STYLE */)
42021
+ }, toDisplayString(value.text6 ? value.text6 : ''), 5 /* TEXT, STYLE */)
42020
42022
  ])
42021
42023
  ])
42022
42024
  ])