3h1-ui 2.9.7 → 2.9.8

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
@@ -15423,7 +15423,7 @@ const _sfc_main$k = defineComponent({
15423
15423
  emits: ["ensure"],
15424
15424
  setup(props2, { emit }) {
15425
15425
  const advancedSearchRef = ref();
15426
- const table2 = useTableContext();
15426
+ useTableContext();
15427
15427
  const setStyle2 = () => {
15428
15428
  const dom = document.querySelector(".table-settings");
15429
15429
  if (dom) {
@@ -15439,20 +15439,6 @@ const _sfc_main$k = defineComponent({
15439
15439
  const handleReset = () => {
15440
15440
  advancedSearchRef.value.resetFields();
15441
15441
  };
15442
- const tableAdvancedSearchWrapperRef = ref();
15443
- const clickOutside = (e) => {
15444
- if (document.querySelector(".table-settings").contains(e.target))
15445
- return;
15446
- if (tableAdvancedSearchWrapperRef.value.contains(e.target))
15447
- return;
15448
- table2.closeAdvancedSearch();
15449
- };
15450
- onMounted(() => {
15451
- document.addEventListener("click", clickOutside);
15452
- });
15453
- onUnmounted(() => {
15454
- document.removeEventListener("click", clickOutside);
15455
- });
15456
15442
  return {
15457
15443
  handleEnsure,
15458
15444
  handleReset,
@@ -15571,20 +15557,6 @@ const _sfc_main$j = defineComponent({
15571
15557
  return {};
15572
15558
  }
15573
15559
  };
15574
- const globalSearchWrapperRef = ref();
15575
- const clickOutside = (e) => {
15576
- if (document.querySelector(".table-settings").contains(e.target))
15577
- return;
15578
- if (globalSearchWrapperRef.value.contains(e.target))
15579
- return;
15580
- table2.closeGlobalSearch();
15581
- };
15582
- onMounted(() => {
15583
- document.addEventListener("click", clickOutside);
15584
- });
15585
- onUnmounted(() => {
15586
- document.removeEventListener("click", clickOutside);
15587
- });
15588
15560
  return {
15589
15561
  handleReset,
15590
15562
  advancedSearchRef,
@@ -15597,8 +15569,8 @@ const _sfc_main$j = defineComponent({
15597
15569
  };
15598
15570
  }
15599
15571
  });
15600
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_46f4dcdc_lang = "";
15601
- const _withScopeId = (n) => (pushScopeId("data-v-46f4dcdc"), n = n(), popScopeId(), n);
15572
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_01cc6536_lang = "";
15573
+ const _withScopeId = (n) => (pushScopeId("data-v-01cc6536"), n = n(), popScopeId(), n);
15602
15574
  const _hoisted_1$a = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索全部", -1));
15603
15575
  const _hoisted_2$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索特定字段", -1));
15604
15576
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
@@ -15656,7 +15628,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
15656
15628
  ])
15657
15629
  ], 4);
15658
15630
  }
15659
- const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-46f4dcdc"]]);
15631
+ const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-01cc6536"]]);
15660
15632
  const _sfc_main$i = defineComponent({
15661
15633
  components: {
15662
15634
  TableAdvancedSearch,
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-46f4dcdc] {
25485
+ }.shy-basic-table-global-search[data-v-01cc6536] {
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-46f4dcdc] {
25497
+ .shy-basic-table-global-search-item-global[data-v-01cc6536] {
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-46f4dcdc] {
25508
+ .shy-basic-table-global-search-item-special[data-v-01cc6536] {
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-46f4dcdc] {
25519
+ .shy-basic-table-global-search-checkbox-wrapper[data-v-01cc6536] {
25520
25520
  padding: 0 8px;
25521
25521
  }
25522
- .shy-basic-table-global-search .selected-bg[data-v-46f4dcdc] {
25522
+ .shy-basic-table-global-search .selected-bg[data-v-01cc6536] {
25523
25523
  background-color: #ebf1ff;
25524
25524
  }.shy-basic-table-action {
25525
25525
  display: flex;
@@ -12,7 +12,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
12
12
  } | {
13
13
  left?: undefined;
14
14
  };
15
- tableAdvancedSearchWrapperRef: import("vue").Ref<any>;
15
+ tableAdvancedSearchWrapperRef: any;
16
16
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "ensure"[], "ensure", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
17
  schemasAdvancedSearch: {
18
18
  default: () => any[];
package/lib/index.js CHANGED
@@ -15425,7 +15425,7 @@ const _sfc_main$k = vue.defineComponent({
15425
15425
  emits: ["ensure"],
15426
15426
  setup(props2, { emit }) {
15427
15427
  const advancedSearchRef = vue.ref();
15428
- const table2 = useTableContext();
15428
+ useTableContext();
15429
15429
  const setStyle2 = () => {
15430
15430
  const dom = document.querySelector(".table-settings");
15431
15431
  if (dom) {
@@ -15441,20 +15441,6 @@ const _sfc_main$k = vue.defineComponent({
15441
15441
  const handleReset = () => {
15442
15442
  advancedSearchRef.value.resetFields();
15443
15443
  };
15444
- const tableAdvancedSearchWrapperRef = vue.ref();
15445
- const clickOutside = (e) => {
15446
- if (document.querySelector(".table-settings").contains(e.target))
15447
- return;
15448
- if (tableAdvancedSearchWrapperRef.value.contains(e.target))
15449
- return;
15450
- table2.closeAdvancedSearch();
15451
- };
15452
- vue.onMounted(() => {
15453
- document.addEventListener("click", clickOutside);
15454
- });
15455
- vue.onUnmounted(() => {
15456
- document.removeEventListener("click", clickOutside);
15457
- });
15458
15444
  return {
15459
15445
  handleEnsure,
15460
15446
  handleReset,
@@ -15573,20 +15559,6 @@ const _sfc_main$j = vue.defineComponent({
15573
15559
  return {};
15574
15560
  }
15575
15561
  };
15576
- const globalSearchWrapperRef = vue.ref();
15577
- const clickOutside = (e) => {
15578
- if (document.querySelector(".table-settings").contains(e.target))
15579
- return;
15580
- if (globalSearchWrapperRef.value.contains(e.target))
15581
- return;
15582
- table2.closeGlobalSearch();
15583
- };
15584
- vue.onMounted(() => {
15585
- document.addEventListener("click", clickOutside);
15586
- });
15587
- vue.onUnmounted(() => {
15588
- document.removeEventListener("click", clickOutside);
15589
- });
15590
15562
  return {
15591
15563
  handleReset,
15592
15564
  advancedSearchRef,
@@ -15599,8 +15571,8 @@ const _sfc_main$j = vue.defineComponent({
15599
15571
  };
15600
15572
  }
15601
15573
  });
15602
- const TableGlobalSearch_vue_vue_type_style_index_0_scoped_46f4dcdc_lang = "";
15603
- const _withScopeId = (n) => (vue.pushScopeId("data-v-46f4dcdc"), n = n(), vue.popScopeId(), n);
15574
+ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_01cc6536_lang = "";
15575
+ const _withScopeId = (n) => (vue.pushScopeId("data-v-01cc6536"), n = n(), vue.popScopeId(), n);
15604
15576
  const _hoisted_1$a = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索全部", -1));
15605
15577
  const _hoisted_2$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索特定字段", -1));
15606
15578
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, null, -1));
@@ -15658,7 +15630,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
15658
15630
  ])
15659
15631
  ], 4);
15660
15632
  }
15661
- const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-46f4dcdc"]]);
15633
+ const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-01cc6536"]]);
15662
15634
  const _sfc_main$i = vue.defineComponent({
15663
15635
  components: {
15664
15636
  TableAdvancedSearch,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "2.9.7",
3
+ "version": "2.9.8",
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/use": "1.0.4",
35
- "@shy-plugins/utils": "1.0.15"
34
+ "@shy-plugins/utils": "1.0.15",
35
+ "@shy-plugins/use": "1.0.4"
36
36
  },
37
37
  "types": "es/ui/index.d.ts",
38
38
  "devDependencies": {