@94ai/nf-search-form 100.1.19 → 100.1.20

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.
@@ -7135,7 +7135,6 @@ __sfc_main.setup = (__props, __ctx) => {
7135
7135
  });
7136
7136
  const renderSearchFormItemOptions = vueDemi.ref([]);
7137
7137
  const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
7138
- renderSearchFormItemOptions.value = [];
7139
7138
  props.formOptions._skip = true;
7140
7139
  const columns = props.formOptions.map((item, index2) => {
7141
7140
  item.key = item.key || commonUtils.createUniqueString();
@@ -7173,10 +7172,11 @@ __sfc_main.setup = (__props, __ctx) => {
7173
7172
  }
7174
7173
  }
7175
7174
  renderSearchFormItemOptions.value = columns.sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
7176
- await vueDemi.nextTick();
7177
- props.formOptions._skip = false;
7175
+ vueDemi.nextTick(() => {
7176
+ props.formOptions._skip = false;
7177
+ });
7178
7178
  };
7179
- syncCookiesToSearchFormItemOptions();
7179
+ syncCookiesToSearchFormItemOptions(true);
7180
7180
  const itemIsShow = (item) => {
7181
7181
  return !item.initHidden && !item.destory;
7182
7182
  };
@@ -7209,7 +7209,7 @@ __sfc_main.setup = (__props, __ctx) => {
7209
7209
  return;
7210
7210
  }
7211
7211
  setLocalShowItems(initLocalShow());
7212
- await syncCookiesToSearchFormItemOptions(false);
7212
+ await syncCookiesToSearchFormItemOptions();
7213
7213
  }, {
7214
7214
  deep: true
7215
7215
  });
@@ -7133,7 +7133,6 @@ __sfc_main.setup = (__props, __ctx) => {
7133
7133
  });
7134
7134
  const renderSearchFormItemOptions = ref([]);
7135
7135
  const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
7136
- renderSearchFormItemOptions.value = [];
7137
7136
  props.formOptions._skip = true;
7138
7137
  const columns = props.formOptions.map((item, index2) => {
7139
7138
  item.key = item.key || createUniqueString();
@@ -7171,10 +7170,11 @@ __sfc_main.setup = (__props, __ctx) => {
7171
7170
  }
7172
7171
  }
7173
7172
  renderSearchFormItemOptions.value = columns.sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
7174
- await nextTick();
7175
- props.formOptions._skip = false;
7173
+ nextTick(() => {
7174
+ props.formOptions._skip = false;
7175
+ });
7176
7176
  };
7177
- syncCookiesToSearchFormItemOptions();
7177
+ syncCookiesToSearchFormItemOptions(true);
7178
7178
  const itemIsShow = (item) => {
7179
7179
  return !item.initHidden && !item.destory;
7180
7180
  };
@@ -7207,7 +7207,7 @@ __sfc_main.setup = (__props, __ctx) => {
7207
7207
  return;
7208
7208
  }
7209
7209
  setLocalShowItems(initLocalShow());
7210
- await syncCookiesToSearchFormItemOptions(false);
7210
+ await syncCookiesToSearchFormItemOptions();
7211
7211
  }, {
7212
7212
  deep: true
7213
7213
  });
@@ -731,7 +731,6 @@ const isShowBtnBoxSlot = computed(() => {
731
731
  */
732
732
  const renderSearchFormItemOptions = ref<NfSearchFormItemOption[]>([])
733
733
  const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
734
- renderSearchFormItemOptions.value = []
735
734
  props.formOptions._skip = true
736
735
  const columns = props.formOptions!.map((item, index) => {
737
736
  item.key = item.key || createUniqueString()
@@ -770,11 +769,12 @@ const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
770
769
  console.log(e)
771
770
  }
772
771
  }
773
- renderSearchFormItemOptions.value = columns.sort((a, b) => a._index! - b._index! < 0 ? -1 : a._index! - b._index! > 0 ? 1 : 0)
774
- await nextTick()
775
- props.formOptions._skip = false
772
+ renderSearchFormItemOptions.value = columns.sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
773
+ nextTick(() => {
774
+ props.formOptions._skip = false;
775
+ })
776
776
  }
777
- syncCookiesToSearchFormItemOptions()
777
+ syncCookiesToSearchFormItemOptions(true)
778
778
 
779
779
  /**
780
780
  * 判断SearchItem是否显示
@@ -834,7 +834,7 @@ onBeforeMount(() => {
834
834
  return
835
835
  }
836
836
  setLocalShowItems(initLocalShow())
837
- await syncCookiesToSearchFormItemOptions(false)
837
+ await syncCookiesToSearchFormItemOptions()
838
838
  }, {
839
839
  deep: true
840
840
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-search-form",
3
- "version": "100.1.19",
3
+ "version": "100.1.20",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,21 +14,21 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/common-utils": "^100.1.19",
18
- "@94ai/nf-action": "^100.1.19",
19
- "@94ai/nf-double-half-year": "^100.1.19",
20
- "@94ai/nf-double-quarter": "^100.1.19",
21
- "@94ai/nf-double-week": "^100.1.19",
22
- "@94ai/nf-double-year": "^100.1.19",
23
- "@94ai/nf-drawer": "^100.1.19",
24
- "@94ai/nf-form": "^100.1.19",
25
- "@94ai/nf-form-item": "^100.1.19",
26
- "@94ai/nf-half-year-picker": "^100.1.19",
27
- "@94ai/nf-message": "^100.1.19",
28
- "@94ai/nf-quarter-picker": "^100.1.19",
29
- "@94ai/nf-select-transfer": "^100.1.19",
30
- "@94ai/nf-theme-chalk": "^100.1.19",
31
- "@94ai/nf-virtual-select": "^100.1.19",
17
+ "@94ai/common-utils": "^100.1.20",
18
+ "@94ai/nf-action": "^100.1.20",
19
+ "@94ai/nf-double-half-year": "^100.1.20",
20
+ "@94ai/nf-double-quarter": "^100.1.20",
21
+ "@94ai/nf-double-week": "^100.1.20",
22
+ "@94ai/nf-double-year": "^100.1.20",
23
+ "@94ai/nf-drawer": "^100.1.20",
24
+ "@94ai/nf-form": "^100.1.20",
25
+ "@94ai/nf-form-item": "^100.1.20",
26
+ "@94ai/nf-half-year-picker": "^100.1.20",
27
+ "@94ai/nf-message": "^100.1.20",
28
+ "@94ai/nf-quarter-picker": "^100.1.20",
29
+ "@94ai/nf-select-transfer": "^100.1.20",
30
+ "@94ai/nf-theme-chalk": "^100.1.20",
31
+ "@94ai/nf-virtual-select": "^100.1.20",
32
32
  "idb-keyval": "^6.2.1",
33
33
  "resize-observer-polyfill": "^1.5.1",
34
34
  "vue-demi": "^0.14.5",