3h1-ui 2.9.8 → 2.9.10
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 +57 -12
- package/es/style.css +5 -5
- package/es/ui/src/Table/src/components/TableAdvancedSearch.vue.d.ts +1 -1
- package/lib/index.js +57 -12
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -14422,7 +14422,12 @@ const _hoisted_5$1 = {
|
|
|
14422
14422
|
class: "shy-ui-advanced-search-item-value-range"
|
|
14423
14423
|
};
|
|
14424
14424
|
const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { style: { "flex": "0", "width": "40px", "margin-right": "8px" } }, " 至 ", -1);
|
|
14425
|
-
const _hoisted_7 =
|
|
14425
|
+
const _hoisted_7 = {
|
|
14426
|
+
key: 0,
|
|
14427
|
+
style: { "margin-left": "8px", "cursor": "pointer", "position": "relative" },
|
|
14428
|
+
class: "shy-ui-advanced-minus-icon"
|
|
14429
|
+
};
|
|
14430
|
+
const _hoisted_8 = ["onClick"];
|
|
14426
14431
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
14427
14432
|
__name: "AdvancedSearch",
|
|
14428
14433
|
props: {
|
|
@@ -14686,13 +14691,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
14686
14691
|
]),
|
|
14687
14692
|
_: 2
|
|
14688
14693
|
}, 1024),
|
|
14689
|
-
schemasCurrent.length !== 1 ? (openBlock(), createElementBlock("div",
|
|
14690
|
-
|
|
14691
|
-
|
|
14692
|
-
|
|
14693
|
-
|
|
14694
|
-
|
|
14695
|
-
|
|
14694
|
+
schemasCurrent.length !== 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
14695
|
+
createElementVNode("div", {
|
|
14696
|
+
style: { "position": "absolute", "width": "14px", "height": "14px", "left": "0", "right": "0", "top": "0", "bottom": "0" },
|
|
14697
|
+
class: "shy-basic-minus-icon",
|
|
14698
|
+
onClick: ($event) => handleMinus(index2)
|
|
14699
|
+
}, null, 8, _hoisted_8),
|
|
14700
|
+
createVNode(unref(MinusCircleTwoTone$1), { class: "shy-ui-advanced-minus-icon" })
|
|
14701
|
+
])) : createCommentVNode("", true)
|
|
14696
14702
|
])
|
|
14697
14703
|
]),
|
|
14698
14704
|
_: 2
|
|
@@ -15423,7 +15429,7 @@ const _sfc_main$k = defineComponent({
|
|
|
15423
15429
|
emits: ["ensure"],
|
|
15424
15430
|
setup(props2, { emit }) {
|
|
15425
15431
|
const advancedSearchRef = ref();
|
|
15426
|
-
useTableContext();
|
|
15432
|
+
const table2 = useTableContext();
|
|
15427
15433
|
const setStyle2 = () => {
|
|
15428
15434
|
const dom = document.querySelector(".table-settings");
|
|
15429
15435
|
if (dom) {
|
|
@@ -15439,6 +15445,31 @@ const _sfc_main$k = defineComponent({
|
|
|
15439
15445
|
const handleReset = () => {
|
|
15440
15446
|
advancedSearchRef.value.resetFields();
|
|
15441
15447
|
};
|
|
15448
|
+
const tableAdvancedSearchWrapperRef = ref();
|
|
15449
|
+
const clickOutside = (e) => {
|
|
15450
|
+
if (tableAdvancedSearchWrapperRef.value.contains(e.target))
|
|
15451
|
+
return;
|
|
15452
|
+
console.log(e.target.classList);
|
|
15453
|
+
if (document.querySelector(".table-settings").contains(e.target))
|
|
15454
|
+
return;
|
|
15455
|
+
if (e.target.classList.contains("shy-basic-minus-icon"))
|
|
15456
|
+
return;
|
|
15457
|
+
const selectList = document.getElementsByClassName("ant-select-dropdown");
|
|
15458
|
+
const pickList = document.getElementsByClassName("ant-picker-dropdown");
|
|
15459
|
+
const domList = [...Array.from(selectList), ...Array.from(pickList)];
|
|
15460
|
+
const flag = (domList == null ? void 0 : domList.length) && domList.some((dom) => {
|
|
15461
|
+
return dom.contains(e.target);
|
|
15462
|
+
});
|
|
15463
|
+
if (flag)
|
|
15464
|
+
return;
|
|
15465
|
+
table2.closeAdvancedSearch();
|
|
15466
|
+
};
|
|
15467
|
+
onMounted(() => {
|
|
15468
|
+
document.addEventListener("click", clickOutside);
|
|
15469
|
+
});
|
|
15470
|
+
onUnmounted(() => {
|
|
15471
|
+
document.removeEventListener("click", clickOutside);
|
|
15472
|
+
});
|
|
15442
15473
|
return {
|
|
15443
15474
|
handleEnsure,
|
|
15444
15475
|
handleReset,
|
|
@@ -15557,6 +15588,20 @@ const _sfc_main$j = defineComponent({
|
|
|
15557
15588
|
return {};
|
|
15558
15589
|
}
|
|
15559
15590
|
};
|
|
15591
|
+
const globalSearchWrapperRef = ref();
|
|
15592
|
+
const clickOutside = (e) => {
|
|
15593
|
+
if (document.querySelector(".table-settings").contains(e.target))
|
|
15594
|
+
return;
|
|
15595
|
+
if (globalSearchWrapperRef.value.contains(e.target))
|
|
15596
|
+
return;
|
|
15597
|
+
table2.closeGlobalSearch();
|
|
15598
|
+
};
|
|
15599
|
+
onMounted(() => {
|
|
15600
|
+
document.addEventListener("click", clickOutside);
|
|
15601
|
+
});
|
|
15602
|
+
onUnmounted(() => {
|
|
15603
|
+
document.removeEventListener("click", clickOutside);
|
|
15604
|
+
});
|
|
15560
15605
|
return {
|
|
15561
15606
|
handleReset,
|
|
15562
15607
|
advancedSearchRef,
|
|
@@ -15569,8 +15614,8 @@ const _sfc_main$j = defineComponent({
|
|
|
15569
15614
|
};
|
|
15570
15615
|
}
|
|
15571
15616
|
});
|
|
15572
|
-
const
|
|
15573
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
15617
|
+
const TableGlobalSearch_vue_vue_type_style_index_0_scoped_46f4dcdc_lang = "";
|
|
15618
|
+
const _withScopeId = (n) => (pushScopeId("data-v-46f4dcdc"), n = n(), popScopeId(), n);
|
|
15574
15619
|
const _hoisted_1$a = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索全部", -1));
|
|
15575
15620
|
const _hoisted_2$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索特定字段", -1));
|
|
15576
15621
|
const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
|
|
@@ -15628,7 +15673,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15628
15673
|
])
|
|
15629
15674
|
], 4);
|
|
15630
15675
|
}
|
|
15631
|
-
const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-
|
|
15676
|
+
const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-46f4dcdc"]]);
|
|
15632
15677
|
const _sfc_main$i = defineComponent({
|
|
15633
15678
|
components: {
|
|
15634
15679
|
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
|
@@ -14424,7 +14424,12 @@ const _hoisted_5$1 = {
|
|
|
14424
14424
|
class: "shy-ui-advanced-search-item-value-range"
|
|
14425
14425
|
};
|
|
14426
14426
|
const _hoisted_6 = /* @__PURE__ */ vue.createElementVNode("div", { style: { "flex": "0", "width": "40px", "margin-right": "8px" } }, " 至 ", -1);
|
|
14427
|
-
const _hoisted_7 =
|
|
14427
|
+
const _hoisted_7 = {
|
|
14428
|
+
key: 0,
|
|
14429
|
+
style: { "margin-left": "8px", "cursor": "pointer", "position": "relative" },
|
|
14430
|
+
class: "shy-ui-advanced-minus-icon"
|
|
14431
|
+
};
|
|
14432
|
+
const _hoisted_8 = ["onClick"];
|
|
14428
14433
|
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
14429
14434
|
__name: "AdvancedSearch",
|
|
14430
14435
|
props: {
|
|
@@ -14688,13 +14693,14 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
14688
14693
|
]),
|
|
14689
14694
|
_: 2
|
|
14690
14695
|
}, 1024),
|
|
14691
|
-
schemasCurrent.length !== 1 ? (vue.openBlock(), vue.createElementBlock("div",
|
|
14692
|
-
|
|
14693
|
-
|
|
14694
|
-
|
|
14695
|
-
|
|
14696
|
-
|
|
14697
|
-
|
|
14696
|
+
schemasCurrent.length !== 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
14697
|
+
vue.createElementVNode("div", {
|
|
14698
|
+
style: { "position": "absolute", "width": "14px", "height": "14px", "left": "0", "right": "0", "top": "0", "bottom": "0" },
|
|
14699
|
+
class: "shy-basic-minus-icon",
|
|
14700
|
+
onClick: ($event) => handleMinus(index2)
|
|
14701
|
+
}, null, 8, _hoisted_8),
|
|
14702
|
+
vue.createVNode(vue.unref(MinusCircleTwoTone$1), { class: "shy-ui-advanced-minus-icon" })
|
|
14703
|
+
])) : vue.createCommentVNode("", true)
|
|
14698
14704
|
])
|
|
14699
14705
|
]),
|
|
14700
14706
|
_: 2
|
|
@@ -15425,7 +15431,7 @@ const _sfc_main$k = vue.defineComponent({
|
|
|
15425
15431
|
emits: ["ensure"],
|
|
15426
15432
|
setup(props2, { emit }) {
|
|
15427
15433
|
const advancedSearchRef = vue.ref();
|
|
15428
|
-
useTableContext();
|
|
15434
|
+
const table2 = useTableContext();
|
|
15429
15435
|
const setStyle2 = () => {
|
|
15430
15436
|
const dom = document.querySelector(".table-settings");
|
|
15431
15437
|
if (dom) {
|
|
@@ -15441,6 +15447,31 @@ const _sfc_main$k = vue.defineComponent({
|
|
|
15441
15447
|
const handleReset = () => {
|
|
15442
15448
|
advancedSearchRef.value.resetFields();
|
|
15443
15449
|
};
|
|
15450
|
+
const tableAdvancedSearchWrapperRef = vue.ref();
|
|
15451
|
+
const clickOutside = (e) => {
|
|
15452
|
+
if (tableAdvancedSearchWrapperRef.value.contains(e.target))
|
|
15453
|
+
return;
|
|
15454
|
+
console.log(e.target.classList);
|
|
15455
|
+
if (document.querySelector(".table-settings").contains(e.target))
|
|
15456
|
+
return;
|
|
15457
|
+
if (e.target.classList.contains("shy-basic-minus-icon"))
|
|
15458
|
+
return;
|
|
15459
|
+
const selectList = document.getElementsByClassName("ant-select-dropdown");
|
|
15460
|
+
const pickList = document.getElementsByClassName("ant-picker-dropdown");
|
|
15461
|
+
const domList = [...Array.from(selectList), ...Array.from(pickList)];
|
|
15462
|
+
const flag = (domList == null ? void 0 : domList.length) && domList.some((dom) => {
|
|
15463
|
+
return dom.contains(e.target);
|
|
15464
|
+
});
|
|
15465
|
+
if (flag)
|
|
15466
|
+
return;
|
|
15467
|
+
table2.closeAdvancedSearch();
|
|
15468
|
+
};
|
|
15469
|
+
vue.onMounted(() => {
|
|
15470
|
+
document.addEventListener("click", clickOutside);
|
|
15471
|
+
});
|
|
15472
|
+
vue.onUnmounted(() => {
|
|
15473
|
+
document.removeEventListener("click", clickOutside);
|
|
15474
|
+
});
|
|
15444
15475
|
return {
|
|
15445
15476
|
handleEnsure,
|
|
15446
15477
|
handleReset,
|
|
@@ -15559,6 +15590,20 @@ const _sfc_main$j = vue.defineComponent({
|
|
|
15559
15590
|
return {};
|
|
15560
15591
|
}
|
|
15561
15592
|
};
|
|
15593
|
+
const globalSearchWrapperRef = vue.ref();
|
|
15594
|
+
const clickOutside = (e) => {
|
|
15595
|
+
if (document.querySelector(".table-settings").contains(e.target))
|
|
15596
|
+
return;
|
|
15597
|
+
if (globalSearchWrapperRef.value.contains(e.target))
|
|
15598
|
+
return;
|
|
15599
|
+
table2.closeGlobalSearch();
|
|
15600
|
+
};
|
|
15601
|
+
vue.onMounted(() => {
|
|
15602
|
+
document.addEventListener("click", clickOutside);
|
|
15603
|
+
});
|
|
15604
|
+
vue.onUnmounted(() => {
|
|
15605
|
+
document.removeEventListener("click", clickOutside);
|
|
15606
|
+
});
|
|
15562
15607
|
return {
|
|
15563
15608
|
handleReset,
|
|
15564
15609
|
advancedSearchRef,
|
|
@@ -15571,8 +15616,8 @@ const _sfc_main$j = vue.defineComponent({
|
|
|
15571
15616
|
};
|
|
15572
15617
|
}
|
|
15573
15618
|
});
|
|
15574
|
-
const
|
|
15575
|
-
const _withScopeId = (n) => (vue.pushScopeId("data-v-
|
|
15619
|
+
const TableGlobalSearch_vue_vue_type_style_index_0_scoped_46f4dcdc_lang = "";
|
|
15620
|
+
const _withScopeId = (n) => (vue.pushScopeId("data-v-46f4dcdc"), n = n(), vue.popScopeId(), n);
|
|
15576
15621
|
const _hoisted_1$a = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索全部", -1));
|
|
15577
15622
|
const _hoisted_2$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索特定字段", -1));
|
|
15578
15623
|
const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", null, null, -1));
|
|
@@ -15630,7 +15675,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15630
15675
|
])
|
|
15631
15676
|
], 4);
|
|
15632
15677
|
}
|
|
15633
|
-
const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-
|
|
15678
|
+
const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$c], ["__scopeId", "data-v-46f4dcdc"]]);
|
|
15634
15679
|
const _sfc_main$i = vue.defineComponent({
|
|
15635
15680
|
components: {
|
|
15636
15681
|
TableAdvancedSearch,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "3h1-ui",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.10",
|
|
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": {
|