yc-pro-components 0.0.64 → 0.0.66
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/components/yc-plus-page/src/filter-strategies.mjs +2 -2
- package/es/components/yc-plus-page/src/header-filter-cell.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/header-filter-cell.vue2.mjs +30 -69
- package/es/index.css +12 -12
- package/index.css +6 -6
- package/index.js +37 -76
- package/index.min.css +1 -1
- package/index.min.js +11 -11
- package/index.min.mjs +11 -11
- package/index.mjs +37 -76
- package/lib/components/yc-plus-page/src/filter-strategies.js +2 -2
- package/lib/components/yc-plus-page/src/header-filter-cell.vue.js +1 -1
- package/lib/components/yc-plus-page/src/header-filter-cell.vue2.js +29 -68
- package/lib/index.css +11 -11
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.66 */
|
|
2
2
|
import { unref, isRef, ref, inject, isReactive, watch, computed, shallowRef, provide, onMounted, nextTick, onBeforeUnmount, defineComponent, useAttrs, watchEffect, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeStyle, createVNode, createTextVNode, toDisplayString, createElementBlock, normalizeClass, createCommentVNode, reactive, Fragment, renderList, resolveDynamicComponent, normalizeProps, guardReactiveProps, h, withDirectives, isVNode, withKeys, withModifiers, TransitionGroup, toHandlers, getCurrentInstance, resolveComponent, toRefs, useSlots, onUnmounted, resolveDirective, pushScopeId, popScopeId, onBeforeMount, getCurrentScope, onScopeDispose, toRef, mergeModels, useModel, vShow, createStaticVNode, hasInjectionContext, markRaw, effectScope, toRaw } from 'vue';
|
|
3
3
|
import { dayjs, localeContextKey, ElDialog, ElButton, ElPagination, ElRadioGroup, ElRadio, ElTableColumn, ElDropdown, ElDropdownMenu, ElDropdownItem, ElIcon, ElTooltip, ElPopconfirm, ElLink, ElMessageBox, useFormDisabled, ElDatePicker, ClickOutside, ElTag, ElInput, ElAutocomplete, ElCascader, ElCheckboxGroup, ElCheckbox, ElColorPicker, ElInputNumber, ElRate, ElSelect, ElOption, ElSlider, ElSwitch, ElTimePicker, ElTimeSelect, ElTransfer, ElTreeSelect, ElSelectV2, ElText, ElDivider, ElFormItem, ElOptionGroup, ElRow, ElCol, ElForm, ElCard, ElMessage, ElImage, ElProgress, ElAvatar, ElPopover, ElTable, vLoading, ElDescriptions, ElDescriptionsItem, ElDrawer, TableV2FixedDir, ElAutoResizer, ElTableV2, ElSteps, ElStep, ElBreadcrumb, ElBreadcrumbItem, ElMenuItem, ElSubMenu, ElMenu, ElScrollbar, ElHeader, ElContainer, ElMain, ElBacktop, ElUpload } from 'element-plus';
|
|
4
4
|
|
|
@@ -18357,7 +18357,7 @@ const _hoisted_5$9 = /* @__PURE__ */ createElementVNode(
|
|
|
18357
18357
|
/* HOISTED */
|
|
18358
18358
|
);
|
|
18359
18359
|
const _hoisted_6$7 = { class: "plus-table-checkbox-checkAll" };
|
|
18360
|
-
const _hoisted_7$
|
|
18360
|
+
const _hoisted_7$5 = {
|
|
18361
18361
|
key: 0,
|
|
18362
18362
|
class: "plus-table-checkbox-handle"
|
|
18363
18363
|
};
|
|
@@ -18715,7 +18715,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
18715
18715
|
key: item.prop,
|
|
18716
18716
|
class: "plus-table-checkbox-item"
|
|
18717
18717
|
}, [
|
|
18718
|
-
((_a3 = columnSetting.value) == null ? void 0 : _a3.dragSort) !== false ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
18718
|
+
((_a3 = columnSetting.value) == null ? void 0 : _a3.dragSort) !== false ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
|
|
18719
18719
|
renderSlot(_ctx.$slots, "drag-sort-icon", {}, () => [
|
|
18720
18720
|
createTextVNode("\u2637")
|
|
18721
18721
|
])
|
|
@@ -22048,7 +22048,7 @@ const _hoisted_4$8 = /* @__PURE__ */ createElementVNode(
|
|
|
22048
22048
|
);
|
|
22049
22049
|
const _hoisted_5$8 = { class: "plus-header__right" };
|
|
22050
22050
|
const _hoisted_6$6 = { class: "plus-header__dropdown-area" };
|
|
22051
|
-
const _hoisted_7$
|
|
22051
|
+
const _hoisted_7$4 = ["src"];
|
|
22052
22052
|
const _hoisted_8$3 = { class: "plus-header__username" };
|
|
22053
22053
|
const _hoisted_9$3 = {
|
|
22054
22054
|
key: 0,
|
|
@@ -22190,7 +22190,7 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
22190
22190
|
src: _ctx.userInfo.avatar,
|
|
22191
22191
|
alt: "",
|
|
22192
22192
|
class: "plus-header__avatar"
|
|
22193
|
-
}, null, 8, _hoisted_7$
|
|
22193
|
+
}, null, 8, _hoisted_7$4)) : (openBlock(), createBlock(unref(ElIcon), {
|
|
22194
22194
|
key: 1,
|
|
22195
22195
|
size: 20,
|
|
22196
22196
|
class: "plus-header__avatar"
|
|
@@ -32519,7 +32519,7 @@ const FILTER_COMPONENT_STRATEGIES = {
|
|
|
32519
32519
|
const showCheckAll = fp.showCheckAll !== false;
|
|
32520
32520
|
const showInvert = fp.showInvert !== false;
|
|
32521
32521
|
const checkAllText = fp.checkAllText || "\u5168\u9009";
|
|
32522
|
-
return h("div", { class: "header-filter-checkbox-group", style: "max-height: 250px; overflow-y: auto;
|
|
32522
|
+
return h("div", { class: "header-filter-checkbox-group", style: "max-height: 250px; overflow-y: auto;" }, [
|
|
32523
32523
|
showCheckAll && options.length > 0 ? h("div", { style: "display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--el-border-color-lighter);" }, [
|
|
32524
32524
|
h(ElCheckbox, {
|
|
32525
32525
|
modelValue: checkAll,
|
|
@@ -32542,7 +32542,7 @@ const FILTER_COMPONENT_STRATEGIES = {
|
|
|
32542
32542
|
...fp,
|
|
32543
32543
|
modelValue: parsedValue,
|
|
32544
32544
|
"onUpdate:modelValue": (v) => setInputVal(fromArrayValue(v)),
|
|
32545
|
-
style: "display: flex; flex-direction: column;"
|
|
32545
|
+
style: "display: flex; flex-direction: column;gap:4px;"
|
|
32546
32546
|
}, {
|
|
32547
32547
|
default: () => options.map(
|
|
32548
32548
|
(opt) => h(
|
|
@@ -32632,24 +32632,16 @@ const _hoisted_3$8 = {
|
|
|
32632
32632
|
style: {
|
|
32633
32633
|
display: "flex",
|
|
32634
32634
|
flexDirection: "column",
|
|
32635
|
-
padding: "8px",
|
|
32636
32635
|
minWidth: "180px",
|
|
32637
32636
|
gap: "4px"
|
|
32638
32637
|
}
|
|
32639
32638
|
};
|
|
32640
32639
|
const _hoisted_4$6 = {
|
|
32641
|
-
class: "yc-header-filter-cell__actions",
|
|
32642
|
-
style: {
|
|
32643
|
-
display: "flex",
|
|
32644
|
-
justifyContent: "flex-end"
|
|
32645
|
-
}
|
|
32646
|
-
};
|
|
32647
|
-
const _hoisted_5$6 = {
|
|
32648
32640
|
key: 0,
|
|
32649
32641
|
class: "yc-header-filter-cell__operators"
|
|
32650
32642
|
};
|
|
32651
|
-
const
|
|
32652
|
-
const
|
|
32643
|
+
const _hoisted_5$6 = ["onClick"];
|
|
32644
|
+
const _hoisted_6$5 = { key: 0 };
|
|
32653
32645
|
var _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
32654
32646
|
...{
|
|
32655
32647
|
name: "YcTableHeaderFilterCell"
|
|
@@ -32745,29 +32737,6 @@ var _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
32745
32737
|
const handleSelect = (op) => {
|
|
32746
32738
|
state.selectedOp = op.code;
|
|
32747
32739
|
};
|
|
32748
|
-
const handleReset = () => {
|
|
32749
|
-
state.inputVal = "";
|
|
32750
|
-
const payload = { column: props.column, op: state.selectedOp };
|
|
32751
|
-
const customConfig = getHeaderFilterObject();
|
|
32752
|
-
if (customConfig.onReset) {
|
|
32753
|
-
customConfig.onReset(payload);
|
|
32754
|
-
}
|
|
32755
|
-
emit("reset", payload);
|
|
32756
|
-
popVisible.value = false;
|
|
32757
|
-
};
|
|
32758
|
-
const handleConfirm = () => {
|
|
32759
|
-
const payload = {
|
|
32760
|
-
column: props.column,
|
|
32761
|
-
op: state.selectedOp,
|
|
32762
|
-
value: state.inputVal
|
|
32763
|
-
};
|
|
32764
|
-
const customConfig = getHeaderFilterObject();
|
|
32765
|
-
if (customConfig.onConfirm) {
|
|
32766
|
-
customConfig.onConfirm(payload);
|
|
32767
|
-
}
|
|
32768
|
-
emit("confirm", payload);
|
|
32769
|
-
popVisible.value = false;
|
|
32770
|
-
};
|
|
32771
32740
|
const cycleSort = () => {
|
|
32772
32741
|
const field = fieldRef.value;
|
|
32773
32742
|
if (!field) return;
|
|
@@ -32833,19 +32802,31 @@ var _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
32833
32802
|
return false;
|
|
32834
32803
|
});
|
|
32835
32804
|
const popoverWidth = computed(() => hideOperatorList.value ? 320 : 220);
|
|
32836
|
-
watch(popVisible, (visible) => {
|
|
32805
|
+
watch(popVisible, (visible, prevVisible) => {
|
|
32837
32806
|
var _a, _b;
|
|
32838
|
-
if (
|
|
32839
|
-
|
|
32840
|
-
|
|
32841
|
-
|
|
32842
|
-
|
|
32843
|
-
|
|
32844
|
-
|
|
32845
|
-
|
|
32846
|
-
|
|
32847
|
-
|
|
32848
|
-
|
|
32807
|
+
if (visible) {
|
|
32808
|
+
const t = resolvedInteractionType.value;
|
|
32809
|
+
const customConfig = getHeaderFilterObject();
|
|
32810
|
+
const fp = {
|
|
32811
|
+
...fieldPropsForFilter.value,
|
|
32812
|
+
...customConfig.props || {}
|
|
32813
|
+
};
|
|
32814
|
+
if (t === "date-picker" && isRangeType(fp.type)) {
|
|
32815
|
+
if (state.selectedOp !== "between") state.selectedOp = "between";
|
|
32816
|
+
} else if (t === "checkbox" || t === "select" && ((_a = customConfig.props) == null ? void 0 : _a.multiple) || t === "tree-select" && ((_b = customConfig.props) == null ? void 0 : _b.multiple)) {
|
|
32817
|
+
if (state.selectedOp !== "in") state.selectedOp = "in";
|
|
32818
|
+
}
|
|
32819
|
+
} else if (prevVisible) {
|
|
32820
|
+
const payload = {
|
|
32821
|
+
column: props.column,
|
|
32822
|
+
op: state.selectedOp,
|
|
32823
|
+
value: state.inputVal
|
|
32824
|
+
};
|
|
32825
|
+
const customConfig = getHeaderFilterObject();
|
|
32826
|
+
if (customConfig.onConfirm) {
|
|
32827
|
+
customConfig.onConfirm(payload);
|
|
32828
|
+
}
|
|
32829
|
+
emit("confirm", payload);
|
|
32849
32830
|
}
|
|
32850
32831
|
});
|
|
32851
32832
|
const renderValueField = () => {
|
|
@@ -33064,28 +33045,8 @@ var _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
33064
33045
|
]),
|
|
33065
33046
|
default: withCtx(() => [
|
|
33066
33047
|
createElementVNode("div", _hoisted_3$8, [
|
|
33067
|
-
createCommentVNode(" \u64CD\u4F5C\u6309\u94AE\uFF08\u7F6E\u9876\u53F3\u4FA7\uFF0C\u907F\u514D\u4E0B\u62C9\u9009\u62E9\u5668\u906E\u6321\uFF09 "),
|
|
33068
|
-
createElementVNode("div", _hoisted_4$6, [
|
|
33069
|
-
createVNode(unref(ElButton), { onClick: handleReset }, {
|
|
33070
|
-
default: withCtx(() => [
|
|
33071
|
-
createTextVNode("\u91CD\u7F6E")
|
|
33072
|
-
]),
|
|
33073
|
-
_: 1
|
|
33074
|
-
/* STABLE */
|
|
33075
|
-
}),
|
|
33076
|
-
createVNode(unref(ElButton), {
|
|
33077
|
-
type: "primary",
|
|
33078
|
-
onClick: handleConfirm
|
|
33079
|
-
}, {
|
|
33080
|
-
default: withCtx(() => [
|
|
33081
|
-
createTextVNode("\u786E\u5B9A")
|
|
33082
|
-
]),
|
|
33083
|
-
_: 1
|
|
33084
|
-
/* STABLE */
|
|
33085
|
-
})
|
|
33086
|
-
]),
|
|
33087
33048
|
createCommentVNode(" \u64CD\u4F5C\u7B26\u5217\u8868\uFF08\u591A\u9009/\u65E5\u671F\u533A\u95F4\u7B49\u7531 hideOperatorList \u9690\u85CF\uFF0C\u9ED8\u8BA4 in / between\uFF09 "),
|
|
33088
|
-
!hideOperatorList.value ? (openBlock(), createElementBlock("div",
|
|
33049
|
+
!hideOperatorList.value ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
|
|
33089
33050
|
(openBlock(true), createElementBlock(
|
|
33090
33051
|
Fragment,
|
|
33091
33052
|
null,
|
|
@@ -33112,8 +33073,8 @@ var _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
33112
33073
|
1
|
|
33113
33074
|
/* TEXT */
|
|
33114
33075
|
),
|
|
33115
|
-
state.selectedOp === op.code ? (openBlock(), createElementBlock("span",
|
|
33116
|
-
], 12,
|
|
33076
|
+
state.selectedOp === op.code ? (openBlock(), createElementBlock("span", _hoisted_6$5, "\u2713")) : createCommentVNode("v-if", true)
|
|
33077
|
+
], 12, _hoisted_5$6);
|
|
33117
33078
|
}),
|
|
33118
33079
|
128
|
|
33119
33080
|
/* KEYED_FRAGMENT */
|
|
@@ -33134,7 +33095,7 @@ var _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
33134
33095
|
}
|
|
33135
33096
|
});
|
|
33136
33097
|
|
|
33137
|
-
var YcTableHeaderFilterCellComponent = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
33098
|
+
var YcTableHeaderFilterCellComponent = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-ce1588fc"], ["__file", "header-filter-cell.vue"]]);
|
|
33138
33099
|
|
|
33139
33100
|
const DEFAULT_PAGE_SIZE = 20;
|
|
33140
33101
|
const COLUMN_CACHE_PREFIX = "yc-column-settings:";
|
|
@@ -86,7 +86,7 @@ const FILTER_COMPONENT_STRATEGIES = {
|
|
|
86
86
|
const showCheckAll = fp.showCheckAll !== false;
|
|
87
87
|
const showInvert = fp.showInvert !== false;
|
|
88
88
|
const checkAllText = fp.checkAllText || "\u5168\u9009";
|
|
89
|
-
return vue.h("div", { class: "header-filter-checkbox-group", style: "max-height: 250px; overflow-y: auto;
|
|
89
|
+
return vue.h("div", { class: "header-filter-checkbox-group", style: "max-height: 250px; overflow-y: auto;" }, [
|
|
90
90
|
showCheckAll && options.length > 0 ? vue.h("div", { style: "display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--el-border-color-lighter);" }, [
|
|
91
91
|
vue.h(elementPlus.ElCheckbox, {
|
|
92
92
|
modelValue: checkAll,
|
|
@@ -109,7 +109,7 @@ const FILTER_COMPONENT_STRATEGIES = {
|
|
|
109
109
|
...fp,
|
|
110
110
|
modelValue: parsedValue,
|
|
111
111
|
"onUpdate:modelValue": (v) => setInputVal(filterUtils.fromArrayValue(v)),
|
|
112
|
-
style: "display: flex; flex-direction: column;"
|
|
112
|
+
style: "display: flex; flex-direction: column;gap:4px;"
|
|
113
113
|
}, {
|
|
114
114
|
default: () => options.map(
|
|
115
115
|
(opt) => vue.h(
|
|
@@ -5,6 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var headerFilterCell_vue_vue_type_script_setup_true_lang = require('./header-filter-cell.vue2.js');
|
|
6
6
|
var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
|
|
7
7
|
|
|
8
|
-
var YcTableHeaderFilterCellComponent = /* @__PURE__ */ _pluginVue_exportHelper.default(headerFilterCell_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
8
|
+
var YcTableHeaderFilterCellComponent = /* @__PURE__ */ _pluginVue_exportHelper.default(headerFilterCell_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-ce1588fc"], ["__file", "header-filter-cell.vue"]]);
|
|
9
9
|
|
|
10
10
|
exports.default = YcTableHeaderFilterCellComponent;
|
|
@@ -20,24 +20,16 @@ const _hoisted_3 = {
|
|
|
20
20
|
style: {
|
|
21
21
|
display: "flex",
|
|
22
22
|
flexDirection: "column",
|
|
23
|
-
padding: "8px",
|
|
24
23
|
minWidth: "180px",
|
|
25
24
|
gap: "4px"
|
|
26
25
|
}
|
|
27
26
|
};
|
|
28
27
|
const _hoisted_4 = {
|
|
29
|
-
class: "yc-header-filter-cell__actions",
|
|
30
|
-
style: {
|
|
31
|
-
display: "flex",
|
|
32
|
-
justifyContent: "flex-end"
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
const _hoisted_5 = {
|
|
36
28
|
key: 0,
|
|
37
29
|
class: "yc-header-filter-cell__operators"
|
|
38
30
|
};
|
|
39
|
-
const
|
|
40
|
-
const
|
|
31
|
+
const _hoisted_5 = ["onClick"];
|
|
32
|
+
const _hoisted_6 = { key: 0 };
|
|
41
33
|
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
42
34
|
...{
|
|
43
35
|
name: "YcTableHeaderFilterCell"
|
|
@@ -133,29 +125,6 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
133
125
|
const handleSelect = (op) => {
|
|
134
126
|
state.selectedOp = op.code;
|
|
135
127
|
};
|
|
136
|
-
const handleReset = () => {
|
|
137
|
-
state.inputVal = "";
|
|
138
|
-
const payload = { column: props.column, op: state.selectedOp };
|
|
139
|
-
const customConfig = getHeaderFilterObject();
|
|
140
|
-
if (customConfig.onReset) {
|
|
141
|
-
customConfig.onReset(payload);
|
|
142
|
-
}
|
|
143
|
-
emit("reset", payload);
|
|
144
|
-
popVisible.value = false;
|
|
145
|
-
};
|
|
146
|
-
const handleConfirm = () => {
|
|
147
|
-
const payload = {
|
|
148
|
-
column: props.column,
|
|
149
|
-
op: state.selectedOp,
|
|
150
|
-
value: state.inputVal
|
|
151
|
-
};
|
|
152
|
-
const customConfig = getHeaderFilterObject();
|
|
153
|
-
if (customConfig.onConfirm) {
|
|
154
|
-
customConfig.onConfirm(payload);
|
|
155
|
-
}
|
|
156
|
-
emit("confirm", payload);
|
|
157
|
-
popVisible.value = false;
|
|
158
|
-
};
|
|
159
128
|
const cycleSort = () => {
|
|
160
129
|
const field = fieldRef.value;
|
|
161
130
|
if (!field) return;
|
|
@@ -221,19 +190,31 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
221
190
|
return false;
|
|
222
191
|
});
|
|
223
192
|
const popoverWidth = vue.computed(() => hideOperatorList.value ? 320 : 220);
|
|
224
|
-
vue.watch(popVisible, (visible) => {
|
|
193
|
+
vue.watch(popVisible, (visible, prevVisible) => {
|
|
225
194
|
var _a, _b;
|
|
226
|
-
if (
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
195
|
+
if (visible) {
|
|
196
|
+
const t = resolvedInteractionType.value;
|
|
197
|
+
const customConfig = getHeaderFilterObject();
|
|
198
|
+
const fp = {
|
|
199
|
+
...fieldPropsForFilter.value,
|
|
200
|
+
...customConfig.props || {}
|
|
201
|
+
};
|
|
202
|
+
if (t === "date-picker" && filterUtils.isRangeType(fp.type)) {
|
|
203
|
+
if (state.selectedOp !== "between") state.selectedOp = "between";
|
|
204
|
+
} else if (t === "checkbox" || t === "select" && ((_a = customConfig.props) == null ? void 0 : _a.multiple) || t === "tree-select" && ((_b = customConfig.props) == null ? void 0 : _b.multiple)) {
|
|
205
|
+
if (state.selectedOp !== "in") state.selectedOp = "in";
|
|
206
|
+
}
|
|
207
|
+
} else if (prevVisible) {
|
|
208
|
+
const payload = {
|
|
209
|
+
column: props.column,
|
|
210
|
+
op: state.selectedOp,
|
|
211
|
+
value: state.inputVal
|
|
212
|
+
};
|
|
213
|
+
const customConfig = getHeaderFilterObject();
|
|
214
|
+
if (customConfig.onConfirm) {
|
|
215
|
+
customConfig.onConfirm(payload);
|
|
216
|
+
}
|
|
217
|
+
emit("confirm", payload);
|
|
237
218
|
}
|
|
238
219
|
});
|
|
239
220
|
const renderValueField = () => {
|
|
@@ -452,28 +433,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
452
433
|
]),
|
|
453
434
|
default: vue.withCtx(() => [
|
|
454
435
|
vue.createElementVNode("div", _hoisted_3, [
|
|
455
|
-
vue.createCommentVNode(" \u64CD\u4F5C\u6309\u94AE\uFF08\u7F6E\u9876\u53F3\u4FA7\uFF0C\u907F\u514D\u4E0B\u62C9\u9009\u62E9\u5668\u906E\u6321\uFF09 "),
|
|
456
|
-
vue.createElementVNode("div", _hoisted_4, [
|
|
457
|
-
vue.createVNode(vue.unref(elementPlus.ElButton), { onClick: handleReset }, {
|
|
458
|
-
default: vue.withCtx(() => [
|
|
459
|
-
vue.createTextVNode("\u91CD\u7F6E")
|
|
460
|
-
]),
|
|
461
|
-
_: 1
|
|
462
|
-
/* STABLE */
|
|
463
|
-
}),
|
|
464
|
-
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
465
|
-
type: "primary",
|
|
466
|
-
onClick: handleConfirm
|
|
467
|
-
}, {
|
|
468
|
-
default: vue.withCtx(() => [
|
|
469
|
-
vue.createTextVNode("\u786E\u5B9A")
|
|
470
|
-
]),
|
|
471
|
-
_: 1
|
|
472
|
-
/* STABLE */
|
|
473
|
-
})
|
|
474
|
-
]),
|
|
475
436
|
vue.createCommentVNode(" \u64CD\u4F5C\u7B26\u5217\u8868\uFF08\u591A\u9009/\u65E5\u671F\u533A\u95F4\u7B49\u7531 hideOperatorList \u9690\u85CF\uFF0C\u9ED8\u8BA4 in / between\uFF09 "),
|
|
476
|
-
!hideOperatorList.value ? (vue.openBlock(), vue.createElementBlock("div",
|
|
437
|
+
!hideOperatorList.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
477
438
|
(vue.openBlock(true), vue.createElementBlock(
|
|
478
439
|
vue.Fragment,
|
|
479
440
|
null,
|
|
@@ -500,8 +461,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
500
461
|
1
|
|
501
462
|
/* TEXT */
|
|
502
463
|
),
|
|
503
|
-
state.selectedOp === op.code ? (vue.openBlock(), vue.createElementBlock("span",
|
|
504
|
-
], 12,
|
|
464
|
+
state.selectedOp === op.code ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6, "\u2713")) : vue.createCommentVNode("v-if", true)
|
|
465
|
+
], 12, _hoisted_5);
|
|
505
466
|
}),
|
|
506
467
|
128
|
|
507
468
|
/* KEYED_FRAGMENT */
|