3h1-ui 2.9.4 → 2.9.5

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/es/index.js CHANGED
@@ -14476,6 +14476,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
14476
14476
  return;
14477
14477
  delete schema[key2];
14478
14478
  });
14479
+ schema.op = "eq";
14479
14480
  };
14480
14481
  const getSearchType = (field) => {
14481
14482
  const type = getTypeByField(field);
@@ -15172,6 +15173,11 @@ const useAdvancedSearch = ({ getProps, reload }) => {
15172
15173
  };
15173
15174
  });
15174
15175
  });
15176
+ const schemasAdvancedSearchString = computed(() => {
15177
+ return schemasAdvancedSearch.value.filter((item) => {
15178
+ return item.type === "string";
15179
+ });
15180
+ });
15175
15181
  const openAdvancedSearch = () => {
15176
15182
  isVisibleAdvancedSearch.value = true;
15177
15183
  };
@@ -15234,7 +15240,8 @@ const useAdvancedSearch = ({ getProps, reload }) => {
15234
15240
  setGlobalSearchValue,
15235
15241
  getGlobalSearchValue,
15236
15242
  setCurSearchParams,
15237
- getCurSearchParams
15243
+ getCurSearchParams,
15244
+ schemasAdvancedSearchString
15238
15245
  };
15239
15246
  };
15240
15247
  const basicProps$3 = reactive({
@@ -15507,8 +15514,8 @@ const _sfc_main$j = defineComponent({
15507
15514
  };
15508
15515
  }
15509
15516
  });
15510
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_e43dae4b_lang = "";
15511
- const _withScopeId = (n) => (pushScopeId("data-v-e43dae4b"), n = n(), popScopeId(), n);
15517
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_fa3d98b2_lang = "";
15518
+ const _withScopeId = (n) => (pushScopeId("data-v-fa3d98b2"), n = n(), popScopeId(), n);
15512
15519
  const _hoisted_1$a = { class: "shy-basic-table-global-search" };
15513
15520
  const _hoisted_2$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索全部", -1));
15514
15521
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索特定字段", -1));
@@ -15563,7 +15570,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
15563
15570
  ])
15564
15571
  ]);
15565
15572
  }
15566
- const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-e43dae4b"]]);
15573
+ const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-fa3d98b2"]]);
15567
15574
  const _sfc_main$i = defineComponent({
15568
15575
  components: {
15569
15576
  TableAdvancedSearch,
@@ -15754,6 +15761,7 @@ const _sfc_main$i = defineComponent({
15754
15761
  });
15755
15762
  const {
15756
15763
  schemasAdvancedSearch,
15764
+ schemasAdvancedSearchString,
15757
15765
  isVisibleAdvancedSearch,
15758
15766
  openAdvancedSearch,
15759
15767
  closeAdvancedSearch,
@@ -15863,7 +15871,8 @@ const _sfc_main$i = defineComponent({
15863
15871
  schemasAdvancedSearch,
15864
15872
  isVisibleAdvancedSearch,
15865
15873
  handleAdvancedEnsure,
15866
- isVisibleGlobalSearch
15874
+ isVisibleGlobalSearch,
15875
+ schemasAdvancedSearchString
15867
15876
  };
15868
15877
  }
15869
15878
  });
@@ -15908,7 +15917,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
15908
15917
  }, null, 8, ["schemasAdvancedSearch", "onEnsure"]), [
15909
15918
  [vShow, _ctx.isVisibleAdvancedSearch]
15910
15919
  ]),
15911
- withDirectives(createVNode(_component_TableGlobalSearch, { schemasAdvancedSearch: _ctx.schemasAdvancedSearch }, null, 8, ["schemasAdvancedSearch"]), [
15920
+ withDirectives(createVNode(_component_TableGlobalSearch, { schemasAdvancedSearch: _ctx.schemasAdvancedSearchString }, null, 8, ["schemasAdvancedSearch"]), [
15912
15921
  [vShow, _ctx.isVisibleGlobalSearch]
15913
15922
  ]),
15914
15923
  withDirectives(createVNode(_component_Table, mergeProps({ ref: "tableElRef" }, _ctx.getBindValues, {
package/es/style.css CHANGED
@@ -25482,7 +25482,7 @@ span.iconify {
25482
25482
  }
25483
25483
  .shy-basic-table-header__toolbar > * {
25484
25484
  margin-right: 8px;
25485
- }.shy-basic-table-global-search[data-v-e43dae4b] {
25485
+ }.shy-basic-table-global-search[data-v-fa3d98b2] {
25486
25486
  position: absolute;
25487
25487
  top: 40px;
25488
25488
  right: 131px;
@@ -25494,7 +25494,7 @@ span.iconify {
25494
25494
  border: 1px solid #ebebeb;
25495
25495
  padding: 10px;
25496
25496
  }
25497
- .shy-basic-table-global-search-item-global[data-v-e43dae4b] {
25497
+ .shy-basic-table-global-search-item-global[data-v-fa3d98b2] {
25498
25498
  height: 32px;
25499
25499
  line-height: 32px;
25500
25500
  font-size: 14px;
@@ -25505,7 +25505,7 @@ span.iconify {
25505
25505
  align-items: center;
25506
25506
  justify-content: space-between;
25507
25507
  }
25508
- .shy-basic-table-global-search-item-special[data-v-e43dae4b] {
25508
+ .shy-basic-table-global-search-item-special[data-v-fa3d98b2] {
25509
25509
  height: 32px;
25510
25510
  line-height: 32px;
25511
25511
  font-size: 14px;
@@ -25516,10 +25516,10 @@ span.iconify {
25516
25516
  align-items: center;
25517
25517
  justify-content: space-between;
25518
25518
  }
25519
- .shy-basic-table-global-search-checkbox-wrapper[data-v-e43dae4b] {
25519
+ .shy-basic-table-global-search-checkbox-wrapper[data-v-fa3d98b2] {
25520
25520
  padding: 0 8px;
25521
25521
  }
25522
- .shy-basic-table-global-search .selected-bg[data-v-e43dae4b] {
25522
+ .shy-basic-table-global-search .selected-bg[data-v-fa3d98b2] {
25523
25523
  background-color: #ebf1ff;
25524
25524
  }.shy-basic-table-action {
25525
25525
  display: flex;
@@ -31,6 +31,7 @@ export declare const useAdvancedSearch: ({ getProps, reload }: {
31
31
  getGlobalSearchValue: () => string;
32
32
  setCurSearchParams: (value: any) => void;
33
33
  getCurSearchParams: () => {};
34
+ schemasAdvancedSearchString: import("vue").ComputedRef<any>;
34
35
  };
35
36
  export declare const useAdvancedSearchKv: () => {
36
37
  getKvOperator: () => {
package/lib/index.js CHANGED
@@ -14478,6 +14478,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
14478
14478
  return;
14479
14479
  delete schema[key2];
14480
14480
  });
14481
+ schema.op = "eq";
14481
14482
  };
14482
14483
  const getSearchType = (field) => {
14483
14484
  const type = getTypeByField(field);
@@ -15174,6 +15175,11 @@ const useAdvancedSearch = ({ getProps, reload }) => {
15174
15175
  };
15175
15176
  });
15176
15177
  });
15178
+ const schemasAdvancedSearchString = vue.computed(() => {
15179
+ return schemasAdvancedSearch.value.filter((item) => {
15180
+ return item.type === "string";
15181
+ });
15182
+ });
15177
15183
  const openAdvancedSearch = () => {
15178
15184
  isVisibleAdvancedSearch.value = true;
15179
15185
  };
@@ -15236,7 +15242,8 @@ const useAdvancedSearch = ({ getProps, reload }) => {
15236
15242
  setGlobalSearchValue,
15237
15243
  getGlobalSearchValue,
15238
15244
  setCurSearchParams,
15239
- getCurSearchParams
15245
+ getCurSearchParams,
15246
+ schemasAdvancedSearchString
15240
15247
  };
15241
15248
  };
15242
15249
  const basicProps$3 = vue.reactive({
@@ -15509,8 +15516,8 @@ const _sfc_main$j = vue.defineComponent({
15509
15516
  };
15510
15517
  }
15511
15518
  });
15512
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_e43dae4b_lang = "";
15513
- const _withScopeId = (n) => (vue.pushScopeId("data-v-e43dae4b"), n = n(), vue.popScopeId(), n);
15519
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_fa3d98b2_lang = "";
15520
+ const _withScopeId = (n) => (vue.pushScopeId("data-v-fa3d98b2"), n = n(), vue.popScopeId(), n);
15514
15521
  const _hoisted_1$a = { class: "shy-basic-table-global-search" };
15515
15522
  const _hoisted_2$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索全部", -1));
15516
15523
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索特定字段", -1));
@@ -15565,7 +15572,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
15565
15572
  ])
15566
15573
  ]);
15567
15574
  }
15568
- const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-e43dae4b"]]);
15575
+ const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-fa3d98b2"]]);
15569
15576
  const _sfc_main$i = vue.defineComponent({
15570
15577
  components: {
15571
15578
  TableAdvancedSearch,
@@ -15756,6 +15763,7 @@ const _sfc_main$i = vue.defineComponent({
15756
15763
  });
15757
15764
  const {
15758
15765
  schemasAdvancedSearch,
15766
+ schemasAdvancedSearchString,
15759
15767
  isVisibleAdvancedSearch,
15760
15768
  openAdvancedSearch,
15761
15769
  closeAdvancedSearch,
@@ -15865,7 +15873,8 @@ const _sfc_main$i = vue.defineComponent({
15865
15873
  schemasAdvancedSearch,
15866
15874
  isVisibleAdvancedSearch,
15867
15875
  handleAdvancedEnsure,
15868
- isVisibleGlobalSearch
15876
+ isVisibleGlobalSearch,
15877
+ schemasAdvancedSearchString
15869
15878
  };
15870
15879
  }
15871
15880
  });
@@ -15910,7 +15919,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
15910
15919
  }, null, 8, ["schemasAdvancedSearch", "onEnsure"]), [
15911
15920
  [vue.vShow, _ctx.isVisibleAdvancedSearch]
15912
15921
  ]),
15913
- vue.withDirectives(vue.createVNode(_component_TableGlobalSearch, { schemasAdvancedSearch: _ctx.schemasAdvancedSearch }, null, 8, ["schemasAdvancedSearch"]), [
15922
+ vue.withDirectives(vue.createVNode(_component_TableGlobalSearch, { schemasAdvancedSearch: _ctx.schemasAdvancedSearchString }, null, 8, ["schemasAdvancedSearch"]), [
15914
15923
  [vue.vShow, _ctx.isVisibleGlobalSearch]
15915
15924
  ]),
15916
15925
  vue.withDirectives(vue.createVNode(_component_Table, vue.mergeProps({ ref: "tableElRef" }, _ctx.getBindValues, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "2.9.4",
3
+ "version": "2.9.5",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -31,8 +31,8 @@
31
31
  "vue-types": "^5.0.2",
32
32
  "vxe-table": "^4.3.6",
33
33
  "xe-utils": "^3.5.7",
34
- "@shy-plugins/utils": "1.0.15",
35
- "@shy-plugins/use": "1.0.4"
34
+ "@shy-plugins/use": "1.0.4",
35
+ "@shy-plugins/utils": "1.0.15"
36
36
  },
37
37
  "types": "es/ui/index.d.ts",
38
38
  "devDependencies": {