3h1-ui 2.9.8 → 2.9.9
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
|
-
useTableContext();
|
|
15426
|
+
const table2 = useTableContext();
|
|
15427
15427
|
const setStyle2 = () => {
|
|
15428
15428
|
const dom = document.querySelector(".table-settings");
|
|
15429
15429
|
if (dom) {
|
|
@@ -15439,6 +15439,28 @@ 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
|
+
const selectList = document.getElementsByClassName("ant-select-dropdown");
|
|
15449
|
+
const pickList = document.getElementsByClassName("ant-picker-dropdown");
|
|
15450
|
+
const domList = [...Array.from(selectList), ...Array.from(pickList)];
|
|
15451
|
+
const flag = (domList == null ? void 0 : domList.length) && domList.some((dom) => {
|
|
15452
|
+
return dom.contains(e.target);
|
|
15453
|
+
});
|
|
15454
|
+
if (flag)
|
|
15455
|
+
return;
|
|
15456
|
+
table2.closeAdvancedSearch();
|
|
15457
|
+
};
|
|
15458
|
+
onMounted(() => {
|
|
15459
|
+
document.addEventListener("click", clickOutside);
|
|
15460
|
+
});
|
|
15461
|
+
onUnmounted(() => {
|
|
15462
|
+
document.removeEventListener("click", clickOutside);
|
|
15463
|
+
});
|
|
15442
15464
|
return {
|
|
15443
15465
|
handleEnsure,
|
|
15444
15466
|
handleReset,
|
|
@@ -15557,6 +15579,20 @@ const _sfc_main$j = defineComponent({
|
|
|
15557
15579
|
return {};
|
|
15558
15580
|
}
|
|
15559
15581
|
};
|
|
15582
|
+
const globalSearchWrapperRef = ref();
|
|
15583
|
+
const clickOutside = (e) => {
|
|
15584
|
+
if (document.querySelector(".table-settings").contains(e.target))
|
|
15585
|
+
return;
|
|
15586
|
+
if (globalSearchWrapperRef.value.contains(e.target))
|
|
15587
|
+
return;
|
|
15588
|
+
table2.closeGlobalSearch();
|
|
15589
|
+
};
|
|
15590
|
+
onMounted(() => {
|
|
15591
|
+
document.addEventListener("click", clickOutside);
|
|
15592
|
+
});
|
|
15593
|
+
onUnmounted(() => {
|
|
15594
|
+
document.removeEventListener("click", clickOutside);
|
|
15595
|
+
});
|
|
15560
15596
|
return {
|
|
15561
15597
|
handleReset,
|
|
15562
15598
|
advancedSearchRef,
|
|
@@ -15569,8 +15605,8 @@ const _sfc_main$j = defineComponent({
|
|
|
15569
15605
|
};
|
|
15570
15606
|
}
|
|
15571
15607
|
});
|
|
15572
|
-
const
|
|
15573
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
15608
|
+
const TableGlobalSearch_vue_vue_type_style_index_0_scoped_46f4dcdc_lang = "";
|
|
15609
|
+
const _withScopeId = (n) => (pushScopeId("data-v-46f4dcdc"), n = n(), popScopeId(), n);
|
|
15574
15610
|
const _hoisted_1$a = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索全部", -1));
|
|
15575
15611
|
const _hoisted_2$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索特定字段", -1));
|
|
15576
15612
|
const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
|
|
@@ -15628,7 +15664,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15628
15664
|
])
|
|
15629
15665
|
], 4);
|
|
15630
15666
|
}
|
|
15631
|
-
const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-
|
|
15667
|
+
const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-46f4dcdc"]]);
|
|
15632
15668
|
const _sfc_main$i = defineComponent({
|
|
15633
15669
|
components: {
|
|
15634
15670
|
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-
|
|
25485
|
+
}.shy-basic-table-global-search[data-v-46f4dcdc] {
|
|
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-
|
|
25497
|
+
.shy-basic-table-global-search-item-global[data-v-46f4dcdc] {
|
|
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-
|
|
25508
|
+
.shy-basic-table-global-search-item-special[data-v-46f4dcdc] {
|
|
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-
|
|
25519
|
+
.shy-basic-table-global-search-checkbox-wrapper[data-v-46f4dcdc] {
|
|
25520
25520
|
padding: 0 8px;
|
|
25521
25521
|
}
|
|
25522
|
-
.shy-basic-table-global-search .selected-bg[data-v-
|
|
25522
|
+
.shy-basic-table-global-search .selected-bg[data-v-46f4dcdc] {
|
|
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: any
|
|
15
|
+
tableAdvancedSearchWrapperRef: import("vue").Ref<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
|
-
useTableContext();
|
|
15428
|
+
const table2 = useTableContext();
|
|
15429
15429
|
const setStyle2 = () => {
|
|
15430
15430
|
const dom = document.querySelector(".table-settings");
|
|
15431
15431
|
if (dom) {
|
|
@@ -15441,6 +15441,28 @@ 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
|
+
const selectList = document.getElementsByClassName("ant-select-dropdown");
|
|
15451
|
+
const pickList = document.getElementsByClassName("ant-picker-dropdown");
|
|
15452
|
+
const domList = [...Array.from(selectList), ...Array.from(pickList)];
|
|
15453
|
+
const flag = (domList == null ? void 0 : domList.length) && domList.some((dom) => {
|
|
15454
|
+
return dom.contains(e.target);
|
|
15455
|
+
});
|
|
15456
|
+
if (flag)
|
|
15457
|
+
return;
|
|
15458
|
+
table2.closeAdvancedSearch();
|
|
15459
|
+
};
|
|
15460
|
+
vue.onMounted(() => {
|
|
15461
|
+
document.addEventListener("click", clickOutside);
|
|
15462
|
+
});
|
|
15463
|
+
vue.onUnmounted(() => {
|
|
15464
|
+
document.removeEventListener("click", clickOutside);
|
|
15465
|
+
});
|
|
15444
15466
|
return {
|
|
15445
15467
|
handleEnsure,
|
|
15446
15468
|
handleReset,
|
|
@@ -15559,6 +15581,20 @@ const _sfc_main$j = vue.defineComponent({
|
|
|
15559
15581
|
return {};
|
|
15560
15582
|
}
|
|
15561
15583
|
};
|
|
15584
|
+
const globalSearchWrapperRef = vue.ref();
|
|
15585
|
+
const clickOutside = (e) => {
|
|
15586
|
+
if (document.querySelector(".table-settings").contains(e.target))
|
|
15587
|
+
return;
|
|
15588
|
+
if (globalSearchWrapperRef.value.contains(e.target))
|
|
15589
|
+
return;
|
|
15590
|
+
table2.closeGlobalSearch();
|
|
15591
|
+
};
|
|
15592
|
+
vue.onMounted(() => {
|
|
15593
|
+
document.addEventListener("click", clickOutside);
|
|
15594
|
+
});
|
|
15595
|
+
vue.onUnmounted(() => {
|
|
15596
|
+
document.removeEventListener("click", clickOutside);
|
|
15597
|
+
});
|
|
15562
15598
|
return {
|
|
15563
15599
|
handleReset,
|
|
15564
15600
|
advancedSearchRef,
|
|
@@ -15571,8 +15607,8 @@ const _sfc_main$j = vue.defineComponent({
|
|
|
15571
15607
|
};
|
|
15572
15608
|
}
|
|
15573
15609
|
});
|
|
15574
|
-
const
|
|
15575
|
-
const _withScopeId = (n) => (vue.pushScopeId("data-v-
|
|
15610
|
+
const TableGlobalSearch_vue_vue_type_style_index_0_scoped_46f4dcdc_lang = "";
|
|
15611
|
+
const _withScopeId = (n) => (vue.pushScopeId("data-v-46f4dcdc"), n = n(), vue.popScopeId(), n);
|
|
15576
15612
|
const _hoisted_1$a = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索全部", -1));
|
|
15577
15613
|
const _hoisted_2$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索特定字段", -1));
|
|
15578
15614
|
const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, null, -1));
|
|
@@ -15630,7 +15666,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15630
15666
|
])
|
|
15631
15667
|
], 4);
|
|
15632
15668
|
}
|
|
15633
|
-
const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-
|
|
15669
|
+
const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-46f4dcdc"]]);
|
|
15634
15670
|
const _sfc_main$i = vue.defineComponent({
|
|
15635
15671
|
components: {
|
|
15636
15672
|
TableAdvancedSearch,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "3h1-ui",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.9",
|
|
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/
|
|
35
|
-
"@shy-plugins/
|
|
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": {
|