@kengic/vue 0.10.6 → 0.10.7-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/kengic-vue.js +14 -5
  2. package/package.json +1 -1
@@ -3939,7 +3939,7 @@ const emptyIcon = {
3939
3939
  ...t.data
3940
3940
  }, r);
3941
3941
  }
3942
- }), name = "@kengic/vue", version = "0.10.6", data$1 = {
3942
+ }), name = "@kengic/vue", version = "0.10.7-beta.0", data$1 = {
3943
3943
  width: 24,
3944
3944
  height: 24,
3945
3945
  body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
@@ -15597,10 +15597,19 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
15597
15597
  }).bind(null, pinia())), store$2);
15598
15598
  function useKgSearch(e) {
15599
15599
  const t = useKgVar(e), r = useKgSearchStore()(), a = computed(() => r.getIsReady(t.formID)), n = computed(() => r.getModel(t.formID)), s = computed(() => r.getOperatorModel(t.formID)), l = (i) => {
15600
- useKgSearch(t.formID).onReady(async () => {
15601
- const u = r.getSearchFn(t.formID);
15602
- return u ? (u(i), !1) : (KgLogger.error("KgSearch.search() | \u67E5\u8BE2\u51FD\u6570\u4E3A\u7A7A.", { frm_id: t.formID }), !0);
15603
- });
15600
+ const c = useKgSearch(t.formID), u = watch(
15601
+ c.isReady,
15602
+ async (d) => {
15603
+ if (d) {
15604
+ setTimeout(() => u());
15605
+ const m = r.getSearchFn(t.formID);
15606
+ if (!m)
15607
+ return KgLogger.error("KgSearch.search() | \u67E5\u8BE2\u51FD\u6570\u4E3A\u7A7A.", { frm_id: t.formID }), !0;
15608
+ m(i);
15609
+ }
15610
+ },
15611
+ { immediate: !0 }
15612
+ );
15604
15613
  }, o = () => {
15605
15614
  var i;
15606
15615
  return (i = r.getResetFn(t.formID)) == null ? void 0 : i();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.10.6",
3
+ "version": "0.10.7-beta.0",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",