yc-pro-components 0.0.20 → 0.0.22
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/dialog-form/src/index.vue2.mjs +1 -3
- package/es/components/drawer-form/src/index.vue2.mjs +2 -0
- package/es/components/form/src/index.vue2.mjs +2 -0
- package/es/components/index.mjs +3 -1
- package/es/components/popover/src/index.vue2.mjs +1 -0
- package/es/components/yc-plus-page/index.d.ts +5 -1
- package/es/components/yc-plus-page/index.mjs +5 -1
- package/es/components/yc-plus-page/src/constants.d.ts +22 -0
- package/es/components/yc-plus-page/src/constants.mjs +41 -0
- package/es/components/yc-plus-page/src/header-filter-cell.vue.d.ts +85 -0
- package/es/components/yc-plus-page/src/header-filter-cell.vue.mjs +6 -0
- package/es/components/yc-plus-page/src/header-filter-cell.vue2.mjs +354 -0
- package/es/components/yc-plus-page/src/index.vue.d.ts +327 -23
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +126 -8
- package/es/components/yc-plus-page/src/type.d.ts +112 -0
- package/es/components/yc-plus-page/src/use-header-filter.d.ts +55 -0
- package/es/components/yc-plus-page/src/use-header-filter.mjs +172 -0
- package/es/components/yc-status-dialog/src/index.vue.mjs +1 -1
- package/es/components/yc-status-dialog/src/index.vue2.mjs +1 -0
- package/es/index.css +3 -2
- package/es/index.mjs +3 -1
- package/index.css +17 -13
- package/index.js +852 -167
- package/index.min.css +3 -2
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +847 -168
- package/lib/components/dialog-form/src/index.vue2.js +1 -3
- package/lib/components/drawer-form/src/index.vue2.js +2 -0
- package/lib/components/form/src/index.vue2.js +2 -0
- package/lib/components/index.js +8 -0
- package/lib/components/popover/src/index.vue2.js +1 -0
- package/lib/components/yc-plus-page/index.d.ts +5 -1
- package/lib/components/yc-plus-page/index.js +10 -0
- package/lib/components/yc-plus-page/src/constants.d.ts +22 -0
- package/lib/components/yc-plus-page/src/constants.js +46 -0
- package/lib/components/yc-plus-page/src/header-filter-cell.vue.d.ts +85 -0
- package/lib/components/yc-plus-page/src/header-filter-cell.vue.js +10 -0
- package/lib/components/yc-plus-page/src/header-filter-cell.vue2.js +358 -0
- package/lib/components/yc-plus-page/src/index.vue.d.ts +327 -23
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +125 -7
- package/lib/components/yc-plus-page/src/type.d.ts +112 -0
- package/lib/components/yc-plus-page/src/use-header-filter.d.ts +55 -0
- package/lib/components/yc-plus-page/src/use-header-filter.js +174 -0
- package/lib/components/yc-status-dialog/src/index.vue.js +1 -1
- package/lib/components/yc-status-dialog/src/index.vue2.js +1 -0
- package/lib/index.css +3 -2
- package/lib/index.js +8 -0
- 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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.22 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('element-plus')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vue', 'element-plus'], factory) :
|
|
@@ -8589,8 +8589,8 @@
|
|
|
8589
8589
|
vue.provide(DictStoreInjectionKey, dictStore);
|
|
8590
8590
|
}
|
|
8591
8591
|
|
|
8592
|
-
const _hoisted_1$
|
|
8593
|
-
var _sfc_main$
|
|
8592
|
+
const _hoisted_1$r = { class: "plus-dialog-body" };
|
|
8593
|
+
var _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
8594
8594
|
...{
|
|
8595
8595
|
name: "PlusDialog",
|
|
8596
8596
|
inheritAttrs: false
|
|
@@ -8655,7 +8655,7 @@
|
|
|
8655
8655
|
class: "plus-dialog"
|
|
8656
8656
|
}, _ctx.$attrs), vue.createSlots({
|
|
8657
8657
|
default: vue.withCtx(() => [
|
|
8658
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
8658
|
+
vue.createElementVNode("div", _hoisted_1$r, [
|
|
8659
8659
|
vue.renderSlot(_ctx.$slots, "default")
|
|
8660
8660
|
])
|
|
8661
8661
|
]),
|
|
@@ -8727,25 +8727,25 @@
|
|
|
8727
8727
|
return target;
|
|
8728
8728
|
};
|
|
8729
8729
|
|
|
8730
|
-
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8730
|
+
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__file", "index.vue"]]);
|
|
8731
8731
|
|
|
8732
8732
|
const PlusDialog = Dialog;
|
|
8733
8733
|
|
|
8734
|
-
const _hoisted_1$
|
|
8734
|
+
const _hoisted_1$q = /* @__PURE__ */ vue.createElementVNode(
|
|
8735
8735
|
"span",
|
|
8736
8736
|
null,
|
|
8737
8737
|
null,
|
|
8738
8738
|
-1
|
|
8739
8739
|
/* HOISTED */
|
|
8740
8740
|
);
|
|
8741
|
-
const _hoisted_2$
|
|
8741
|
+
const _hoisted_2$g = /* @__PURE__ */ vue.createElementVNode(
|
|
8742
8742
|
"span",
|
|
8743
8743
|
null,
|
|
8744
8744
|
null,
|
|
8745
8745
|
-1
|
|
8746
8746
|
/* HOISTED */
|
|
8747
8747
|
);
|
|
8748
|
-
var _sfc_main$
|
|
8748
|
+
var _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
8749
8749
|
...{
|
|
8750
8750
|
name: "PlusPagination"
|
|
8751
8751
|
},
|
|
@@ -8787,7 +8787,7 @@
|
|
|
8787
8787
|
},
|
|
8788
8788
|
[
|
|
8789
8789
|
_ctx.align === "right" || _ctx.align === "center" ? vue.renderSlot(_ctx.$slots, "pagination-left", { key: 0 }, () => [
|
|
8790
|
-
_hoisted_1$
|
|
8790
|
+
_hoisted_1$q
|
|
8791
8791
|
]) : vue.createCommentVNode("v-if", true),
|
|
8792
8792
|
vue.createVNode(vue.unref(elementPlus.ElPagination), vue.mergeProps({
|
|
8793
8793
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
@@ -8801,7 +8801,7 @@
|
|
|
8801
8801
|
onCurrentChange: handleCurrentChange
|
|
8802
8802
|
}), null, 16, ["current-page", "page-size", "total", "page-sizes"]),
|
|
8803
8803
|
_ctx.align === "left" || _ctx.align === "center" ? vue.renderSlot(_ctx.$slots, "pagination-right", { key: 1 }, () => [
|
|
8804
|
-
_hoisted_2$
|
|
8804
|
+
_hoisted_2$g
|
|
8805
8805
|
]) : vue.createCommentVNode("v-if", true)
|
|
8806
8806
|
],
|
|
8807
8807
|
2
|
|
@@ -8811,11 +8811,11 @@
|
|
|
8811
8811
|
}
|
|
8812
8812
|
});
|
|
8813
8813
|
|
|
8814
|
-
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8814
|
+
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__file", "index.vue"]]);
|
|
8815
8815
|
|
|
8816
8816
|
const PlusPagination = Pagination;
|
|
8817
8817
|
|
|
8818
|
-
var _sfc_main$
|
|
8818
|
+
var _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
8819
8819
|
...{
|
|
8820
8820
|
name: "PlusRadio"
|
|
8821
8821
|
},
|
|
@@ -9000,7 +9000,7 @@
|
|
|
9000
9000
|
}
|
|
9001
9001
|
});
|
|
9002
9002
|
|
|
9003
|
-
var Radio = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9003
|
+
var Radio = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__file", "index.vue"]]);
|
|
9004
9004
|
|
|
9005
9005
|
const PlusRadio = Radio;
|
|
9006
9006
|
|
|
@@ -15062,13 +15062,13 @@
|
|
|
15062
15062
|
ZoomOut: zoom_out_default
|
|
15063
15063
|
});
|
|
15064
15064
|
|
|
15065
|
-
const _hoisted_1$
|
|
15065
|
+
const _hoisted_1$p = {
|
|
15066
15066
|
key: 0,
|
|
15067
15067
|
class: "plus-table-action-bar__dropdown__link"
|
|
15068
15068
|
};
|
|
15069
|
-
const _hoisted_2$
|
|
15070
|
-
const _hoisted_3$
|
|
15071
|
-
var _sfc_main$
|
|
15069
|
+
const _hoisted_2$f = { class: "plus-table-action-bar__dropdown__link" };
|
|
15070
|
+
const _hoisted_3$b = { class: "plus-table-action-bar__more-text" };
|
|
15071
|
+
var _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
15072
15072
|
...{
|
|
15073
15073
|
name: "PlusTableActionBar"
|
|
15074
15074
|
},
|
|
@@ -15384,7 +15384,7 @@
|
|
|
15384
15384
|
)
|
|
15385
15385
|
]),
|
|
15386
15386
|
default: vue.withCtx(() => [
|
|
15387
|
-
_ctx.moreType === "icon" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$
|
|
15387
|
+
_ctx.moreType === "icon" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$p, [
|
|
15388
15388
|
vue.renderSlot(_ctx.$slots, "action-bar-more-icon", {}, () => [
|
|
15389
15389
|
vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
|
|
15390
15390
|
default: vue.withCtx(() => [
|
|
@@ -15399,10 +15399,10 @@
|
|
|
15399
15399
|
{ key: 1 },
|
|
15400
15400
|
[
|
|
15401
15401
|
vue.createCommentVNode(" \u9ED8\u8BA4 "),
|
|
15402
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
15402
|
+
vue.createElementVNode("span", _hoisted_2$f, [
|
|
15403
15403
|
vue.createElementVNode(
|
|
15404
15404
|
"span",
|
|
15405
|
-
_hoisted_3$
|
|
15405
|
+
_hoisted_3$b,
|
|
15406
15406
|
vue.toDisplayString(vue.unref(t)("plus.table.more")),
|
|
15407
15407
|
1
|
|
15408
15408
|
/* TEXT */
|
|
@@ -15433,9 +15433,9 @@
|
|
|
15433
15433
|
}
|
|
15434
15434
|
});
|
|
15435
15435
|
|
|
15436
|
-
var PlusTableActionBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15436
|
+
var PlusTableActionBar = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__file", "table-action-bar.vue"]]);
|
|
15437
15437
|
|
|
15438
|
-
var _sfc_main$
|
|
15438
|
+
var _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
15439
15439
|
...{
|
|
15440
15440
|
name: "PlusRender"
|
|
15441
15441
|
},
|
|
@@ -15503,12 +15503,12 @@
|
|
|
15503
15503
|
}
|
|
15504
15504
|
});
|
|
15505
15505
|
|
|
15506
|
-
var Render = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15506
|
+
var Render = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__file", "index.vue"]]);
|
|
15507
15507
|
|
|
15508
15508
|
const PlusRender = Render;
|
|
15509
15509
|
|
|
15510
|
-
const _hoisted_1$
|
|
15511
|
-
var _sfc_main$
|
|
15510
|
+
const _hoisted_1$o = { class: "plus-date-picker__middle" };
|
|
15511
|
+
var _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
15512
15512
|
...{
|
|
15513
15513
|
name: "PlusDatePicker"
|
|
15514
15514
|
},
|
|
@@ -15613,7 +15613,7 @@
|
|
|
15613
15613
|
}), null, 16, ["modelValue", "type", "value-format", "placeholder", "disabled"]),
|
|
15614
15614
|
vue.createElementVNode(
|
|
15615
15615
|
"span",
|
|
15616
|
-
_hoisted_1$
|
|
15616
|
+
_hoisted_1$o,
|
|
15617
15617
|
vue.toDisplayString(_ctx.rangeSeparator),
|
|
15618
15618
|
1
|
|
15619
15619
|
/* TEXT */
|
|
@@ -15644,11 +15644,11 @@
|
|
|
15644
15644
|
}
|
|
15645
15645
|
});
|
|
15646
15646
|
|
|
15647
|
-
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15647
|
+
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__file", "index.vue"]]);
|
|
15648
15648
|
|
|
15649
15649
|
const PlusDatePicker = DatePicker;
|
|
15650
15650
|
|
|
15651
|
-
var _sfc_main$
|
|
15651
|
+
var _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
15652
15652
|
...{
|
|
15653
15653
|
name: "PlusInputTag"
|
|
15654
15654
|
},
|
|
@@ -15785,7 +15785,7 @@
|
|
|
15785
15785
|
}
|
|
15786
15786
|
});
|
|
15787
15787
|
|
|
15788
|
-
var InputTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15788
|
+
var InputTag = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__file", "index.vue"]]);
|
|
15789
15789
|
|
|
15790
15790
|
const PlusInputTag = InputTag;
|
|
15791
15791
|
|
|
@@ -15878,9 +15878,9 @@
|
|
|
15878
15878
|
);
|
|
15879
15879
|
const getFieldComponent = (valueType) => Reflect.get(FieldComponentMap, valueType) || {};
|
|
15880
15880
|
|
|
15881
|
-
const _hoisted_1$
|
|
15882
|
-
const _hoisted_2$
|
|
15883
|
-
var _sfc_main$
|
|
15881
|
+
const _hoisted_1$n = { class: "el-form-item__error" };
|
|
15882
|
+
const _hoisted_2$e = { class: "plus-form-item__label" };
|
|
15883
|
+
var _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
15884
15884
|
...{
|
|
15885
15885
|
name: "PlusFormItem"
|
|
15886
15886
|
},
|
|
@@ -16435,7 +16435,7 @@
|
|
|
16435
16435
|
vue.unref(isFunction)(_ctx.renderErrorMessage) ? {
|
|
16436
16436
|
name: "error",
|
|
16437
16437
|
fn: vue.withCtx(({ error }) => [
|
|
16438
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
16438
|
+
vue.createElementVNode("div", _hoisted_1$n, [
|
|
16439
16439
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.renderErrorMessage), vue.mergeProps(props, {
|
|
16440
16440
|
value: state.value,
|
|
16441
16441
|
error,
|
|
@@ -16448,7 +16448,7 @@
|
|
|
16448
16448
|
_ctx.hasLabel ? {
|
|
16449
16449
|
name: "label",
|
|
16450
16450
|
fn: vue.withCtx(({ label: currentLabel }) => [
|
|
16451
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
16451
|
+
vue.createElementVNode("span", _hoisted_2$e, [
|
|
16452
16452
|
_ctx.renderLabel && vue.unref(isFunction)(_ctx.renderLabel) ? (vue.openBlock(), vue.createElementBlock(
|
|
16453
16453
|
vue.Fragment,
|
|
16454
16454
|
{ key: 0 },
|
|
@@ -16506,11 +16506,11 @@
|
|
|
16506
16506
|
}
|
|
16507
16507
|
});
|
|
16508
16508
|
|
|
16509
|
-
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16509
|
+
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__file", "index.vue"]]);
|
|
16510
16510
|
|
|
16511
16511
|
const PlusFormItem = FormItem;
|
|
16512
16512
|
|
|
16513
|
-
var _sfc_main$
|
|
16513
|
+
var _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
16514
16514
|
...{
|
|
16515
16515
|
name: "PlusCollapseTransition"
|
|
16516
16516
|
},
|
|
@@ -16561,17 +16561,17 @@
|
|
|
16561
16561
|
}
|
|
16562
16562
|
});
|
|
16563
16563
|
|
|
16564
|
-
var PlusCollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16564
|
+
var PlusCollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__file", "collapse-transition.vue"]]);
|
|
16565
16565
|
|
|
16566
|
-
const _hoisted_1$
|
|
16566
|
+
const _hoisted_1$m = {
|
|
16567
16567
|
key: 0,
|
|
16568
16568
|
class: "plus-form-item-previous"
|
|
16569
16569
|
};
|
|
16570
|
-
const _hoisted_2$
|
|
16570
|
+
const _hoisted_2$d = {
|
|
16571
16571
|
key: 1,
|
|
16572
16572
|
class: "plus-form-item-extra"
|
|
16573
16573
|
};
|
|
16574
|
-
var _sfc_main$
|
|
16574
|
+
var _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
16575
16575
|
...{
|
|
16576
16576
|
name: "PlusFormContent"
|
|
16577
16577
|
},
|
|
@@ -16636,7 +16636,7 @@
|
|
|
16636
16636
|
{
|
|
16637
16637
|
default: vue.withCtx(() => [
|
|
16638
16638
|
vue.createCommentVNode(" el-form-item\u4E0A\u4E00\u884C\u7684\u5185\u5BB9 "),
|
|
16639
|
-
item.renderPrevious || _ctx.$slots[vue.unref(getPreviousSlotName)(item.prop)] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
16639
|
+
item.renderPrevious || _ctx.$slots[vue.unref(getPreviousSlotName)(item.prop)] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
|
|
16640
16640
|
vue.unref(isFunction)(item.renderPrevious) ? (vue.openBlock(), vue.createBlock(
|
|
16641
16641
|
vue.resolveDynamicComponent(item.renderPrevious),
|
|
16642
16642
|
vue.normalizeProps(vue.mergeProps({ key: 0 }, item)),
|
|
@@ -16678,7 +16678,7 @@
|
|
|
16678
16678
|
} : void 0
|
|
16679
16679
|
]), 1040, ["model-value", "clearable", "has-label", "onChange"]),
|
|
16680
16680
|
vue.createCommentVNode(" el-form-item \u4E0B\u4E00\u884C\u989D\u5916\u7684\u5185\u5BB9 "),
|
|
16681
|
-
item.renderExtra || _ctx.$slots[vue.unref(getExtraSlotName)(item.prop)] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
16681
|
+
item.renderExtra || _ctx.$slots[vue.unref(getExtraSlotName)(item.prop)] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$d, [
|
|
16682
16682
|
item.renderExtra && vue.unref(isFunction)(item.renderExtra) ? (vue.openBlock(), vue.createBlock(
|
|
16683
16683
|
vue.resolveDynamicComponent(item.renderExtra),
|
|
16684
16684
|
vue.normalizeProps(vue.mergeProps({ key: 0 }, item)),
|
|
@@ -16715,10 +16715,10 @@
|
|
|
16715
16715
|
}
|
|
16716
16716
|
});
|
|
16717
16717
|
|
|
16718
|
-
var PlusFormContent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16718
|
+
var PlusFormContent = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__file", "form-content.vue"]]);
|
|
16719
16719
|
|
|
16720
|
-
const _hoisted_1$
|
|
16721
|
-
var _sfc_main$
|
|
16720
|
+
const _hoisted_1$l = { class: "plus-form__group__item__icon" };
|
|
16721
|
+
var _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
16722
16722
|
...{
|
|
16723
16723
|
name: "PlusForm",
|
|
16724
16724
|
inheritAttrs: false
|
|
@@ -16820,6 +16820,8 @@
|
|
|
16820
16820
|
elementPlus.ElMessage.warning(message || t("plus.form.errorTip"));
|
|
16821
16821
|
}
|
|
16822
16822
|
emit("submitError", errors);
|
|
16823
|
+
} finally {
|
|
16824
|
+
isSubmitting.value = false;
|
|
16823
16825
|
}
|
|
16824
16826
|
return false;
|
|
16825
16827
|
};
|
|
@@ -16880,7 +16882,7 @@
|
|
|
16880
16882
|
icon: groupItem.icon,
|
|
16881
16883
|
index
|
|
16882
16884
|
}, () => [
|
|
16883
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
16885
|
+
vue.createElementVNode("div", _hoisted_1$l, [
|
|
16884
16886
|
groupItem.icon ? (vue.openBlock(), vue.createBlock(
|
|
16885
16887
|
vue.unref(elementPlus.ElIcon),
|
|
16886
16888
|
{ key: 0 },
|
|
@@ -17025,7 +17027,7 @@
|
|
|
17025
17027
|
}
|
|
17026
17028
|
});
|
|
17027
17029
|
|
|
17028
|
-
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17030
|
+
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__file", "index.vue"]]);
|
|
17029
17031
|
|
|
17030
17032
|
const PlusForm = Form;
|
|
17031
17033
|
|
|
@@ -17068,9 +17070,9 @@
|
|
|
17068
17070
|
const hasDisplayComponent = (valueType) => Object.keys(DisplayComponentMap).includes(valueType);
|
|
17069
17071
|
const getDisplayComponent = (valueType) => Reflect.get(DisplayComponentMap, valueType) || {};
|
|
17070
17072
|
|
|
17071
|
-
const _hoisted_1$
|
|
17072
|
-
const _hoisted_2$
|
|
17073
|
-
const _hoisted_3$
|
|
17073
|
+
const _hoisted_1$k = ["innerHTML"];
|
|
17074
|
+
const _hoisted_2$c = { class: "plus-display-item" };
|
|
17075
|
+
const _hoisted_3$a = /* @__PURE__ */ vue.createElementVNode(
|
|
17074
17076
|
"svg",
|
|
17075
17077
|
{
|
|
17076
17078
|
fill: "none",
|
|
@@ -17089,7 +17091,7 @@
|
|
|
17089
17091
|
-1
|
|
17090
17092
|
/* HOISTED */
|
|
17091
17093
|
);
|
|
17092
|
-
var _sfc_main$
|
|
17094
|
+
var _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
17093
17095
|
...{
|
|
17094
17096
|
name: "PlusDisplayItem"
|
|
17095
17097
|
},
|
|
@@ -17479,7 +17481,7 @@
|
|
|
17479
17481
|
vue.createElementVNode("span", {
|
|
17480
17482
|
class: "plus-display-item",
|
|
17481
17483
|
innerHTML: _ctx.column.renderHTML(displayValue.value, renderParams.value)
|
|
17482
|
-
}, null, 8, _hoisted_1$
|
|
17484
|
+
}, null, 8, _hoisted_1$k)
|
|
17483
17485
|
],
|
|
17484
17486
|
2112
|
|
17485
17487
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
@@ -17585,7 +17587,7 @@
|
|
|
17585
17587
|
{ key: 5 },
|
|
17586
17588
|
[
|
|
17587
17589
|
vue.createCommentVNode(" \u590D\u5236 "),
|
|
17588
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
17590
|
+
vue.createElementVNode("span", _hoisted_2$c, [
|
|
17589
17591
|
vue.createTextVNode(
|
|
17590
17592
|
vue.toDisplayString(formatterValue.value) + " ",
|
|
17591
17593
|
1
|
|
@@ -17711,7 +17713,7 @@
|
|
|
17711
17713
|
"pointer-events": "none"
|
|
17712
17714
|
}, {
|
|
17713
17715
|
default: vue.withCtx(() => [
|
|
17714
|
-
_hoisted_3$
|
|
17716
|
+
_hoisted_3$a
|
|
17715
17717
|
]),
|
|
17716
17718
|
_: 1
|
|
17717
17719
|
/* STABLE */
|
|
@@ -17725,12 +17727,12 @@
|
|
|
17725
17727
|
}
|
|
17726
17728
|
});
|
|
17727
17729
|
|
|
17728
|
-
var DisplayItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17730
|
+
var DisplayItem = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__file", "index.vue"]]);
|
|
17729
17731
|
|
|
17730
17732
|
const PlusDisplayItem = DisplayItem;
|
|
17731
17733
|
|
|
17732
|
-
const _hoisted_1$
|
|
17733
|
-
var _sfc_main$
|
|
17734
|
+
const _hoisted_1$j = { class: "plus-table-column__header" };
|
|
17735
|
+
var _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
17734
17736
|
...{
|
|
17735
17737
|
name: "PlusTableColumn"
|
|
17736
17738
|
},
|
|
@@ -17820,7 +17822,7 @@
|
|
|
17820
17822
|
"min-width": item.minWidth
|
|
17821
17823
|
}), {
|
|
17822
17824
|
header: vue.withCtx((scoped) => [
|
|
17823
|
-
vue.createElementVNode("span", _hoisted_1$
|
|
17825
|
+
vue.createElementVNode("span", _hoisted_1$j, [
|
|
17824
17826
|
item.renderHeader && vue.unref(isFunction)(item.renderHeader) ? (vue.openBlock(), vue.createBlock(vue.unref(PlusRender), {
|
|
17825
17827
|
key: 0,
|
|
17826
17828
|
render: item.renderHeader,
|
|
@@ -17949,9 +17951,9 @@
|
|
|
17949
17951
|
}
|
|
17950
17952
|
});
|
|
17951
17953
|
|
|
17952
|
-
var PlusTableColumn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17954
|
+
var PlusTableColumn = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__file", "table-column.vue"]]);
|
|
17953
17955
|
|
|
17954
|
-
var _sfc_main$
|
|
17956
|
+
var _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
17955
17957
|
...{
|
|
17956
17958
|
name: "PlusTableTableColumnIndex"
|
|
17957
17959
|
},
|
|
@@ -18025,10 +18027,10 @@
|
|
|
18025
18027
|
}
|
|
18026
18028
|
});
|
|
18027
18029
|
|
|
18028
|
-
var PlusTableTableColumnIndex = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18030
|
+
var PlusTableTableColumnIndex = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__file", "table-column-index.vue"]]);
|
|
18029
18031
|
|
|
18030
|
-
const _hoisted_1$
|
|
18031
|
-
var _sfc_main$
|
|
18032
|
+
const _hoisted_1$i = { class: "plus-table-column-drag-icon" };
|
|
18033
|
+
var _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
18032
18034
|
...{
|
|
18033
18035
|
name: "PlusTableColumnDragSort"
|
|
18034
18036
|
},
|
|
@@ -18079,7 +18081,7 @@
|
|
|
18079
18081
|
"class-name": "plus-table-column-drag-sort"
|
|
18080
18082
|
}, _ctx.dragSortableTableColumnProps), {
|
|
18081
18083
|
default: vue.withCtx(() => [
|
|
18082
|
-
vue.createElementVNode("span", _hoisted_1$
|
|
18084
|
+
vue.createElementVNode("span", _hoisted_1$i, [
|
|
18083
18085
|
vue.renderSlot(_ctx.$slots, "drag-sort-icon", {}, () => [
|
|
18084
18086
|
vue.createTextVNode("\u2637")
|
|
18085
18087
|
])
|
|
@@ -18092,13 +18094,13 @@
|
|
|
18092
18094
|
}
|
|
18093
18095
|
});
|
|
18094
18096
|
|
|
18095
|
-
var PlusTableColumnDragSort = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18097
|
+
var PlusTableColumnDragSort = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__file", "table-column-drag-sort.vue"]]);
|
|
18096
18098
|
|
|
18097
|
-
const _hoisted_1$
|
|
18099
|
+
const _hoisted_1$h = {
|
|
18098
18100
|
key: 0,
|
|
18099
18101
|
style: { "padding-top": "12px" }
|
|
18100
18102
|
};
|
|
18101
|
-
var _sfc_main$
|
|
18103
|
+
var _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
18102
18104
|
...{
|
|
18103
18105
|
name: "PlusPopover"
|
|
18104
18106
|
},
|
|
@@ -18134,6 +18136,7 @@
|
|
|
18134
18136
|
isSubmitting.value = true;
|
|
18135
18137
|
subVisible.value = false;
|
|
18136
18138
|
emit("confirm");
|
|
18139
|
+
isSubmitting.value = false;
|
|
18137
18140
|
};
|
|
18138
18141
|
const debouncedConfirm = debounce(doConfirm, 300, {
|
|
18139
18142
|
leading: true,
|
|
@@ -18156,7 +18159,7 @@
|
|
|
18156
18159
|
]),
|
|
18157
18160
|
default: vue.withCtx(() => [
|
|
18158
18161
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
18159
|
-
_ctx.hasShowBottomButton ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
18162
|
+
_ctx.hasShowBottomButton ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
|
|
18160
18163
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
18161
18164
|
size: "small",
|
|
18162
18165
|
plain: "",
|
|
@@ -18197,15 +18200,15 @@
|
|
|
18197
18200
|
}
|
|
18198
18201
|
});
|
|
18199
18202
|
|
|
18200
|
-
var Popover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18203
|
+
var Popover = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__file", "index.vue"]]);
|
|
18201
18204
|
|
|
18202
18205
|
const PlusPopover = Popover;
|
|
18203
18206
|
|
|
18204
|
-
const _hoisted_1$
|
|
18205
|
-
const _hoisted_2$
|
|
18206
|
-
const _hoisted_3$
|
|
18207
|
-
const _hoisted_4$
|
|
18208
|
-
const _hoisted_5$
|
|
18207
|
+
const _hoisted_1$g = { class: "plus-table-title-bar" };
|
|
18208
|
+
const _hoisted_2$b = { class: "plus-table-title-bar__title" };
|
|
18209
|
+
const _hoisted_3$9 = { class: "plus-table-title-bar__toolbar" };
|
|
18210
|
+
const _hoisted_4$7 = { class: "plus-table-title-bar__toolbar__density" };
|
|
18211
|
+
const _hoisted_5$7 = /* @__PURE__ */ vue.createElementVNode(
|
|
18209
18212
|
"svg",
|
|
18210
18213
|
{
|
|
18211
18214
|
viewBox: "0 0 1024 1024",
|
|
@@ -18220,14 +18223,14 @@
|
|
|
18220
18223
|
-1
|
|
18221
18224
|
/* HOISTED */
|
|
18222
18225
|
);
|
|
18223
|
-
const _hoisted_6$
|
|
18226
|
+
const _hoisted_6$5 = { class: "plus-table-checkbox-checkAll" };
|
|
18224
18227
|
const _hoisted_7$4 = {
|
|
18225
18228
|
key: 0,
|
|
18226
18229
|
class: "plus-table-checkbox-handle"
|
|
18227
18230
|
};
|
|
18228
18231
|
const _hoisted_8$2 = { key: 1 };
|
|
18229
18232
|
const _hoisted_9$2 = { key: 1 };
|
|
18230
|
-
var _sfc_main$
|
|
18233
|
+
var _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
18231
18234
|
...{
|
|
18232
18235
|
name: "PlusTableToolbar"
|
|
18233
18236
|
},
|
|
@@ -18378,8 +18381,8 @@
|
|
|
18378
18381
|
});
|
|
18379
18382
|
return (_ctx, _cache) => {
|
|
18380
18383
|
var _a, _b, _c;
|
|
18381
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
18382
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
18384
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
|
|
18385
|
+
vue.createElementVNode("div", _hoisted_2$b, [
|
|
18383
18386
|
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
18384
18387
|
vue.createTextVNode(
|
|
18385
18388
|
vue.toDisplayString(titleBarConfig.value.title),
|
|
@@ -18388,7 +18391,7 @@
|
|
|
18388
18391
|
)
|
|
18389
18392
|
])
|
|
18390
18393
|
]),
|
|
18391
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
18394
|
+
vue.createElementVNode("div", _hoisted_3$9, [
|
|
18392
18395
|
vue.renderSlot(_ctx.$slots, "toolbar"),
|
|
18393
18396
|
((_a = titleBarConfig.value) == null ? void 0 : _a.refresh) === true ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
18394
18397
|
key: 0,
|
|
@@ -18441,7 +18444,7 @@
|
|
|
18441
18444
|
class: "plus-table-title-bar__toolbar__icon"
|
|
18442
18445
|
}, {
|
|
18443
18446
|
default: vue.withCtx(() => [
|
|
18444
|
-
_hoisted_5$
|
|
18447
|
+
_hoisted_5$7
|
|
18445
18448
|
]),
|
|
18446
18449
|
_: 1
|
|
18447
18450
|
/* STABLE */
|
|
@@ -18453,7 +18456,7 @@
|
|
|
18453
18456
|
}, 8, ["content"])
|
|
18454
18457
|
]),
|
|
18455
18458
|
default: vue.withCtx(() => [
|
|
18456
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
18459
|
+
vue.createElementVNode("div", _hoisted_4$7, [
|
|
18457
18460
|
(vue.openBlock(), vue.createElementBlock(
|
|
18458
18461
|
vue.Fragment,
|
|
18459
18462
|
null,
|
|
@@ -18520,7 +18523,7 @@
|
|
|
18520
18523
|
default: vue.withCtx(() => {
|
|
18521
18524
|
var _a2, _b2, _c2;
|
|
18522
18525
|
return [
|
|
18523
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
18526
|
+
vue.createElementVNode("div", _hoisted_6$5, [
|
|
18524
18527
|
vue.createVNode(vue.unref(elementPlus.ElCheckbox), {
|
|
18525
18528
|
modelValue: state.checkAll,
|
|
18526
18529
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.checkAll = $event),
|
|
@@ -18680,10 +18683,10 @@
|
|
|
18680
18683
|
}
|
|
18681
18684
|
});
|
|
18682
18685
|
|
|
18683
|
-
var PlusTableTitleBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18686
|
+
var PlusTableTitleBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__file", "table-title-bar.vue"]]);
|
|
18684
18687
|
|
|
18685
|
-
const _hoisted_1$
|
|
18686
|
-
var _sfc_main$
|
|
18688
|
+
const _hoisted_1$f = { class: "plus-table-expand-col" };
|
|
18689
|
+
var _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
18687
18690
|
...{
|
|
18688
18691
|
name: "PlusTable",
|
|
18689
18692
|
inheritAttrs: false
|
|
@@ -19036,7 +19039,7 @@
|
|
|
19036
19039
|
}, _ctx.expandTableColumnProps),
|
|
19037
19040
|
{
|
|
19038
19041
|
default: vue.withCtx((scoped) => [
|
|
19039
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
19042
|
+
vue.createElementVNode("div", _hoisted_1$f, [
|
|
19040
19043
|
vue.renderSlot(_ctx.$slots, "expand", vue.mergeProps({
|
|
19041
19044
|
index: scoped.$index
|
|
19042
19045
|
}, scoped))
|
|
@@ -19139,11 +19142,11 @@
|
|
|
19139
19142
|
}
|
|
19140
19143
|
});
|
|
19141
19144
|
|
|
19142
|
-
var _Table = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19145
|
+
var _Table = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__file", "index.vue"]]);
|
|
19143
19146
|
|
|
19144
19147
|
const PlusTable = _Table;
|
|
19145
19148
|
|
|
19146
|
-
var _sfc_main$
|
|
19149
|
+
var _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
19147
19150
|
...{
|
|
19148
19151
|
name: "PlusDescriptions"
|
|
19149
19152
|
},
|
|
@@ -19351,11 +19354,11 @@
|
|
|
19351
19354
|
}
|
|
19352
19355
|
});
|
|
19353
19356
|
|
|
19354
|
-
var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19357
|
+
var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__file", "index.vue"]]);
|
|
19355
19358
|
|
|
19356
19359
|
const PlusDescriptions = Descriptions;
|
|
19357
19360
|
|
|
19358
|
-
var _sfc_main$
|
|
19361
|
+
var _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
19359
19362
|
...{
|
|
19360
19363
|
name: "PlusSearch"
|
|
19361
19364
|
},
|
|
@@ -19576,11 +19579,11 @@
|
|
|
19576
19579
|
}
|
|
19577
19580
|
});
|
|
19578
19581
|
|
|
19579
|
-
var Search = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19582
|
+
var Search = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__file", "index.vue"]]);
|
|
19580
19583
|
|
|
19581
19584
|
const PlusSearch = Search;
|
|
19582
19585
|
|
|
19583
|
-
var _sfc_main$
|
|
19586
|
+
var _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
19584
19587
|
...{
|
|
19585
19588
|
name: "PlusDialogForm"
|
|
19586
19589
|
},
|
|
@@ -19644,9 +19647,7 @@
|
|
|
19644
19647
|
}
|
|
19645
19648
|
emit("confirmError", errors);
|
|
19646
19649
|
} finally {
|
|
19647
|
-
|
|
19648
|
-
isSubmitting.value = false;
|
|
19649
|
-
}, 300);
|
|
19650
|
+
isSubmitting.value = false;
|
|
19650
19651
|
}
|
|
19651
19652
|
};
|
|
19652
19653
|
const debouncedConfirm = debounce(doConfirm, 300, {
|
|
@@ -19744,12 +19745,12 @@
|
|
|
19744
19745
|
}
|
|
19745
19746
|
});
|
|
19746
19747
|
|
|
19747
|
-
var DialogForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19748
|
+
var DialogForm = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__file", "index.vue"]]);
|
|
19748
19749
|
|
|
19749
19750
|
const PlusDialogForm = DialogForm;
|
|
19750
19751
|
|
|
19751
|
-
const _hoisted_1$
|
|
19752
|
-
var _sfc_main$
|
|
19752
|
+
const _hoisted_1$e = { class: "plus-drawer-form__footer" };
|
|
19753
|
+
var _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
19753
19754
|
...{
|
|
19754
19755
|
name: "PlusDrawerForm"
|
|
19755
19756
|
},
|
|
@@ -19819,6 +19820,8 @@
|
|
|
19819
19820
|
elementPlus.ElMessage.warning(message || t("plus.form.errorTip"));
|
|
19820
19821
|
}
|
|
19821
19822
|
emit("confirmError", errors);
|
|
19823
|
+
} finally {
|
|
19824
|
+
isSubmitting.value = false;
|
|
19822
19825
|
}
|
|
19823
19826
|
};
|
|
19824
19827
|
const debouncedConfirm = debounce(doConfirm, 300, {
|
|
@@ -19902,7 +19905,7 @@
|
|
|
19902
19905
|
_ctx.hasFooter ? {
|
|
19903
19906
|
name: "footer",
|
|
19904
19907
|
fn: vue.withCtx(() => [
|
|
19905
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
19908
|
+
vue.createElementVNode("div", _hoisted_1$e, [
|
|
19906
19909
|
vue.renderSlot(_ctx.$slots, "drawer-footer", vue.normalizeProps(vue.guardReactiveProps({ handleConfirm, handleCancel })), () => [
|
|
19907
19910
|
vue.createVNode(vue.unref(elementPlus.ElButton), { onClick: handleCancel }, {
|
|
19908
19911
|
default: vue.withCtx(() => [
|
|
@@ -19940,12 +19943,12 @@
|
|
|
19940
19943
|
}
|
|
19941
19944
|
});
|
|
19942
19945
|
|
|
19943
|
-
var DrawerForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19946
|
+
var DrawerForm = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__file", "index.vue"]]);
|
|
19944
19947
|
|
|
19945
19948
|
const PlusDrawerForm = DrawerForm;
|
|
19946
19949
|
|
|
19947
|
-
const _hoisted_1$
|
|
19948
|
-
var _sfc_main$
|
|
19950
|
+
const _hoisted_1$d = { class: "plus-page" };
|
|
19951
|
+
var _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
19949
19952
|
...{
|
|
19950
19953
|
name: "PlusPage"
|
|
19951
19954
|
},
|
|
@@ -20102,7 +20105,7 @@
|
|
|
20102
20105
|
setTableData
|
|
20103
20106
|
});
|
|
20104
20107
|
return (_ctx, _cache) => {
|
|
20105
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
20108
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
|
|
20106
20109
|
_ctx.search ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(renderWrapper().search), { key: 0 }, {
|
|
20107
20110
|
default: vue.withCtx(() => [
|
|
20108
20111
|
vue.createVNode(vue.unref(PlusSearch), vue.mergeProps({
|
|
@@ -20226,11 +20229,11 @@
|
|
|
20226
20229
|
}
|
|
20227
20230
|
});
|
|
20228
20231
|
|
|
20229
|
-
var Page = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20232
|
+
var Page = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__file", "index.vue"]]);
|
|
20230
20233
|
|
|
20231
20234
|
const PlusPage = Page;
|
|
20232
20235
|
|
|
20233
|
-
var _sfc_main$
|
|
20236
|
+
var _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
20234
20237
|
...{
|
|
20235
20238
|
name: "PlusStepsForm"
|
|
20236
20239
|
},
|
|
@@ -20371,11 +20374,11 @@
|
|
|
20371
20374
|
}
|
|
20372
20375
|
});
|
|
20373
20376
|
|
|
20374
|
-
var StepsForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20377
|
+
var StepsForm = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__file", "index.vue"]]);
|
|
20375
20378
|
|
|
20376
20379
|
const PlusStepsForm = StepsForm;
|
|
20377
20380
|
|
|
20378
|
-
var _sfc_main$
|
|
20381
|
+
var _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
20379
20382
|
...{
|
|
20380
20383
|
name: "PlusBreadcrumb"
|
|
20381
20384
|
},
|
|
@@ -20465,13 +20468,13 @@
|
|
|
20465
20468
|
}
|
|
20466
20469
|
});
|
|
20467
20470
|
|
|
20468
|
-
var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20471
|
+
var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__file", "index.vue"]]);
|
|
20469
20472
|
|
|
20470
20473
|
const PlusBreadcrumb = Breadcrumb;
|
|
20471
20474
|
|
|
20472
|
-
const _hoisted_1$
|
|
20473
|
-
const _hoisted_2$
|
|
20474
|
-
var _sfc_main$
|
|
20475
|
+
const _hoisted_1$c = { class: "plus-sidebar__item-title" };
|
|
20476
|
+
const _hoisted_2$a = { class: "plus-sidebar__item-title" };
|
|
20477
|
+
var _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
20475
20478
|
...{
|
|
20476
20479
|
name: "PlusSidebarItem",
|
|
20477
20480
|
inheritAttrs: false
|
|
@@ -20536,7 +20539,7 @@
|
|
|
20536
20539
|
title: vue.withCtx(() => {
|
|
20537
20540
|
var _a2;
|
|
20538
20541
|
return [
|
|
20539
|
-
vue.createElementVNode("span", _hoisted_1$
|
|
20542
|
+
vue.createElementVNode("span", _hoisted_1$c, [
|
|
20540
20543
|
_ctx.renderTitle && vue.unref(isFunction)(_ctx.renderTitle) ? (vue.openBlock(), vue.createBlock(
|
|
20541
20544
|
vue.resolveDynamicComponent(_ctx.renderTitle),
|
|
20542
20545
|
vue.normalizeProps(vue.mergeProps({ key: 0 }, vue.unref(removeChildrenField)(_ctx.item))),
|
|
@@ -20651,7 +20654,7 @@
|
|
|
20651
20654
|
_: 1
|
|
20652
20655
|
/* STABLE */
|
|
20653
20656
|
})) : vue.createCommentVNode("v-if", true),
|
|
20654
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
20657
|
+
vue.createElementVNode("span", _hoisted_2$a, [
|
|
20655
20658
|
_ctx.renderTitle && vue.unref(isFunction)(_ctx.renderTitle) ? (vue.openBlock(), vue.createBlock(
|
|
20656
20659
|
vue.resolveDynamicComponent(_ctx.renderTitle),
|
|
20657
20660
|
vue.normalizeProps(vue.mergeProps({ key: 0 }, vue.unref(removeChildrenField)(_ctx.item))),
|
|
@@ -20743,9 +20746,9 @@
|
|
|
20743
20746
|
}
|
|
20744
20747
|
});
|
|
20745
20748
|
|
|
20746
|
-
var SidebarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20749
|
+
var SidebarItem = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__file", "sidebar-item.vue"]]);
|
|
20747
20750
|
|
|
20748
|
-
var _sfc_main$
|
|
20751
|
+
var _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
20749
20752
|
...{
|
|
20750
20753
|
name: "PlusSidebar"
|
|
20751
20754
|
},
|
|
@@ -20911,33 +20914,33 @@
|
|
|
20911
20914
|
}
|
|
20912
20915
|
});
|
|
20913
20916
|
|
|
20914
|
-
var Sidebar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20917
|
+
var Sidebar = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__file", "index.vue"]]);
|
|
20915
20918
|
|
|
20916
20919
|
const PlusSidebar = Sidebar;
|
|
20917
20920
|
const PlusSidebarItem = SidebarItem;
|
|
20918
20921
|
|
|
20919
|
-
const _hoisted_1$
|
|
20920
|
-
const _hoisted_2$
|
|
20921
|
-
const _hoisted_3$
|
|
20922
|
+
const _hoisted_1$b = { class: "plus-header__left" };
|
|
20923
|
+
const _hoisted_2$9 = ["src"];
|
|
20924
|
+
const _hoisted_3$8 = {
|
|
20922
20925
|
key: 1,
|
|
20923
20926
|
class: "plus-header__title"
|
|
20924
20927
|
};
|
|
20925
|
-
const _hoisted_4$
|
|
20928
|
+
const _hoisted_4$6 = /* @__PURE__ */ vue.createElementVNode(
|
|
20926
20929
|
"div",
|
|
20927
20930
|
{ class: "plus-header__placeholder" },
|
|
20928
20931
|
null,
|
|
20929
20932
|
-1
|
|
20930
20933
|
/* HOISTED */
|
|
20931
20934
|
);
|
|
20932
|
-
const _hoisted_5$
|
|
20933
|
-
const _hoisted_6$
|
|
20935
|
+
const _hoisted_5$6 = { class: "plus-header__right" };
|
|
20936
|
+
const _hoisted_6$4 = { class: "plus-header__dropdown-area" };
|
|
20934
20937
|
const _hoisted_7$3 = ["src"];
|
|
20935
20938
|
const _hoisted_8$1 = { class: "plus-header__username" };
|
|
20936
20939
|
const _hoisted_9$1 = {
|
|
20937
20940
|
key: 0,
|
|
20938
20941
|
class: "plus-header-placeholder"
|
|
20939
20942
|
};
|
|
20940
|
-
var _sfc_main$
|
|
20943
|
+
var _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
20941
20944
|
...{
|
|
20942
20945
|
name: "PlusHeader"
|
|
20943
20946
|
},
|
|
@@ -20975,7 +20978,7 @@
|
|
|
20975
20978
|
class: vue.normalizeClass(["plus-header", { "is-fixed": _ctx.fixed }])
|
|
20976
20979
|
}, {
|
|
20977
20980
|
default: vue.withCtx(() => [
|
|
20978
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
20981
|
+
vue.createElementVNode("div", _hoisted_1$b, [
|
|
20979
20982
|
_ctx.renderHeaderLeft && vue.unref(isFunction)(_ctx.renderHeaderLeft) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.renderHeaderLeft), {
|
|
20980
20983
|
key: 0,
|
|
20981
20984
|
logo: _ctx.logo,
|
|
@@ -20993,10 +20996,10 @@
|
|
|
20993
20996
|
src: _ctx.logo,
|
|
20994
20997
|
alt: "",
|
|
20995
20998
|
class: "plus-header__logo"
|
|
20996
|
-
}, null, 8, _hoisted_2$
|
|
20999
|
+
}, null, 8, _hoisted_2$9)) : vue.createCommentVNode("v-if", true),
|
|
20997
21000
|
_ctx.title ? (vue.openBlock(), vue.createElementBlock(
|
|
20998
21001
|
"h2",
|
|
20999
|
-
_hoisted_3$
|
|
21002
|
+
_hoisted_3$8,
|
|
21000
21003
|
vue.toDisplayString(_ctx.title),
|
|
21001
21004
|
1
|
|
21002
21005
|
/* TEXT */
|
|
@@ -21006,8 +21009,8 @@
|
|
|
21006
21009
|
/* STABLE_FRAGMENT */
|
|
21007
21010
|
))
|
|
21008
21011
|
]),
|
|
21009
|
-
_hoisted_4$
|
|
21010
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
21012
|
+
_hoisted_4$6,
|
|
21013
|
+
vue.createElementVNode("div", _hoisted_5$6, [
|
|
21011
21014
|
_ctx.renderHeaderRight && vue.unref(isFunction)(_ctx.renderHeaderRight) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.renderHeaderRight), {
|
|
21012
21015
|
key: 0,
|
|
21013
21016
|
"user-info": _ctx.userInfo,
|
|
@@ -21066,7 +21069,7 @@
|
|
|
21066
21069
|
})
|
|
21067
21070
|
]),
|
|
21068
21071
|
default: vue.withCtx(() => [
|
|
21069
|
-
vue.createElementVNode("span", _hoisted_6$
|
|
21072
|
+
vue.createElementVNode("span", _hoisted_6$4, [
|
|
21070
21073
|
vue.createCommentVNode(" avatar "),
|
|
21071
21074
|
_ctx.userInfo.avatar ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
21072
21075
|
key: 0,
|
|
@@ -21118,16 +21121,16 @@
|
|
|
21118
21121
|
}
|
|
21119
21122
|
});
|
|
21120
21123
|
|
|
21121
|
-
var Header = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21124
|
+
var Header = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__file", "index.vue"]]);
|
|
21122
21125
|
|
|
21123
21126
|
const PlusHeader = Header;
|
|
21124
21127
|
|
|
21125
|
-
const _hoisted_1$
|
|
21126
|
-
const _hoisted_2$
|
|
21128
|
+
const _hoisted_1$a = { class: "plus-layout-main" };
|
|
21129
|
+
const _hoisted_2$8 = {
|
|
21127
21130
|
key: 0,
|
|
21128
21131
|
class: "plus-layout-extra"
|
|
21129
21132
|
};
|
|
21130
|
-
var _sfc_main$
|
|
21133
|
+
var _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
21131
21134
|
...{
|
|
21132
21135
|
name: "PlusLayout"
|
|
21133
21136
|
},
|
|
@@ -21246,9 +21249,9 @@
|
|
|
21246
21249
|
} : void 0
|
|
21247
21250
|
]), 1040, ["collapse"])) : vue.createCommentVNode("v-if", true),
|
|
21248
21251
|
vue.createCommentVNode(" \u4E3B\u5185\u5BB9 "),
|
|
21249
|
-
vue.createElementVNode("main", _hoisted_1$
|
|
21252
|
+
vue.createElementVNode("main", _hoisted_1$a, [
|
|
21250
21253
|
vue.createCommentVNode(" \u9762\u5305\u5C51\u4E0A\u65B9 "),
|
|
21251
|
-
_ctx.$slots["layout-extra"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
21254
|
+
_ctx.$slots["layout-extra"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, [
|
|
21252
21255
|
vue.renderSlot(_ctx.$slots, "layout-extra")
|
|
21253
21256
|
])) : vue.createCommentVNode("v-if", true),
|
|
21254
21257
|
vue.createCommentVNode(" \u9762\u5305\u5C51 "),
|
|
@@ -21321,22 +21324,22 @@
|
|
|
21321
21324
|
}
|
|
21322
21325
|
});
|
|
21323
21326
|
|
|
21324
|
-
var Layout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21327
|
+
var Layout = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__file", "index.vue"]]);
|
|
21325
21328
|
|
|
21326
21329
|
const PlusLayout = Layout;
|
|
21327
21330
|
|
|
21328
|
-
const _hoisted_1$
|
|
21329
|
-
const _hoisted_2$
|
|
21330
|
-
const _hoisted_3$
|
|
21331
|
+
const _hoisted_1$9 = { class: "plus-check-card__avatar-wrapper" };
|
|
21332
|
+
const _hoisted_2$7 = { class: "plus-check-card__right-content" };
|
|
21333
|
+
const _hoisted_3$7 = {
|
|
21331
21334
|
key: 0,
|
|
21332
21335
|
class: "plus-check-card__title"
|
|
21333
21336
|
};
|
|
21334
|
-
const _hoisted_4$
|
|
21335
|
-
const _hoisted_5$
|
|
21337
|
+
const _hoisted_4$5 = { class: "plus-check-card__title-left" };
|
|
21338
|
+
const _hoisted_5$5 = {
|
|
21336
21339
|
key: 1,
|
|
21337
21340
|
class: "plus-check-card__description"
|
|
21338
21341
|
};
|
|
21339
|
-
var _sfc_main$
|
|
21342
|
+
var _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
21340
21343
|
...{
|
|
21341
21344
|
name: "PlusCheckCard"
|
|
21342
21345
|
},
|
|
@@ -21391,7 +21394,7 @@
|
|
|
21391
21394
|
onClick: handleClick
|
|
21392
21395
|
},
|
|
21393
21396
|
[
|
|
21394
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
21397
|
+
vue.createElementVNode("div", _hoisted_1$9, [
|
|
21395
21398
|
vue.unref(isFunction)(_ctx.avatar) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.avatar), {
|
|
21396
21399
|
key: 0,
|
|
21397
21400
|
avatar: _ctx.avatar,
|
|
@@ -21407,9 +21410,9 @@
|
|
|
21407
21410
|
src: _ctx.avatar
|
|
21408
21411
|
}, _ctx.avatarProps), null, 16, ["src"])) : vue.createCommentVNode("v-if", true)
|
|
21409
21412
|
]),
|
|
21410
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
21411
|
-
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
21412
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
21413
|
+
vue.createElementVNode("div", _hoisted_2$7, [
|
|
21414
|
+
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$7, [
|
|
21415
|
+
vue.createElementVNode("div", _hoisted_4$5, [
|
|
21413
21416
|
vue.unref(isFunction)(_ctx.title) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.title), {
|
|
21414
21417
|
key: 0,
|
|
21415
21418
|
avatar: _ctx.avatar,
|
|
@@ -21451,7 +21454,7 @@
|
|
|
21451
21454
|
}) : vue.createCommentVNode("v-if", true)
|
|
21452
21455
|
])
|
|
21453
21456
|
])) : vue.createCommentVNode("v-if", true),
|
|
21454
|
-
_ctx.description || _ctx.$slots.description ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
21457
|
+
_ctx.description || _ctx.$slots.description ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$5, [
|
|
21455
21458
|
vue.unref(isFunction)(_ctx.description) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.description), {
|
|
21456
21459
|
key: 0,
|
|
21457
21460
|
title: _ctx.title,
|
|
@@ -21485,12 +21488,12 @@
|
|
|
21485
21488
|
}
|
|
21486
21489
|
});
|
|
21487
21490
|
|
|
21488
|
-
var CheckCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21491
|
+
var CheckCard = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__file", "index.vue"]]);
|
|
21489
21492
|
|
|
21490
21493
|
const PlusCheckCard = CheckCard;
|
|
21491
21494
|
|
|
21492
|
-
const _hoisted_1$
|
|
21493
|
-
var _sfc_main$
|
|
21495
|
+
const _hoisted_1$8 = { class: "plus-check-card-group" };
|
|
21496
|
+
var _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
21494
21497
|
...{
|
|
21495
21498
|
name: "PlusCheckCardGroup"
|
|
21496
21499
|
},
|
|
@@ -21544,7 +21547,7 @@
|
|
|
21544
21547
|
emit("extra", item);
|
|
21545
21548
|
};
|
|
21546
21549
|
return (_ctx, _cache) => {
|
|
21547
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
21550
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
|
|
21548
21551
|
(vue.openBlock(true), vue.createElementBlock(
|
|
21549
21552
|
vue.Fragment,
|
|
21550
21553
|
null,
|
|
@@ -21603,7 +21606,7 @@
|
|
|
21603
21606
|
}
|
|
21604
21607
|
});
|
|
21605
21608
|
|
|
21606
|
-
var CheckCardGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21609
|
+
var CheckCardGroup = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "index.vue"]]);
|
|
21607
21610
|
|
|
21608
21611
|
const PlusCheckCardGroup = CheckCardGroup;
|
|
21609
21612
|
|
|
@@ -30868,7 +30871,7 @@
|
|
|
30868
30871
|
}
|
|
30869
30872
|
};
|
|
30870
30873
|
|
|
30871
|
-
var _sfc_main$
|
|
30874
|
+
var _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
30872
30875
|
...{
|
|
30873
30876
|
name: "YcConfigProvider"
|
|
30874
30877
|
},
|
|
@@ -30914,7 +30917,7 @@
|
|
|
30914
30917
|
}
|
|
30915
30918
|
});
|
|
30916
30919
|
|
|
30917
|
-
var ConfigProvider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30920
|
+
var ConfigProvider = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "index.vue"]]);
|
|
30918
30921
|
|
|
30919
30922
|
function useYcConfig() {
|
|
30920
30923
|
const config = vue.inject(YC_CONFIG_KEY, DEFAULT_YC_CONFIG);
|
|
@@ -30966,8 +30969,8 @@
|
|
|
30966
30969
|
|
|
30967
30970
|
const YcConfigProvider = l(ConfigProvider);
|
|
30968
30971
|
|
|
30969
|
-
const _hoisted_1$
|
|
30970
|
-
var _sfc_main$
|
|
30972
|
+
const _hoisted_1$7 = ["src"];
|
|
30973
|
+
var _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
30971
30974
|
...{
|
|
30972
30975
|
name: "YcSvgIcon",
|
|
30973
30976
|
inheritAttrs: false
|
|
@@ -31014,7 +31017,7 @@
|
|
|
31014
31017
|
opacity: _ctx.opacity
|
|
31015
31018
|
},
|
|
31016
31019
|
alt: ""
|
|
31017
|
-
}), null, 16, _hoisted_1$
|
|
31020
|
+
}), null, 16, _hoisted_1$7)) : (vue.openBlock(), vue.createElementBlock(
|
|
31018
31021
|
vue.Fragment,
|
|
31019
31022
|
{ key: 1 },
|
|
31020
31023
|
[
|
|
@@ -31048,7 +31051,565 @@
|
|
|
31048
31051
|
}
|
|
31049
31052
|
});
|
|
31050
31053
|
|
|
31051
|
-
var YcSvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31054
|
+
var YcSvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-34e1f2f7"], ["__file", "index.vue"]]);
|
|
31055
|
+
|
|
31056
|
+
const OPERATOR_CATALOG = {
|
|
31057
|
+
string: ["=", "!=", "like", "not like", "in", "not in"],
|
|
31058
|
+
number: ["=", "!=", ">", ">=", "<", "<=", "in", "not in", "between"],
|
|
31059
|
+
date: ["=", ">", ">=", "<", "<=", "between"],
|
|
31060
|
+
boolean: ["is true", "is false", "is null", "is not null"],
|
|
31061
|
+
nullable: ["is null", "is not null"],
|
|
31062
|
+
json: ["contains", "not contains", "is null", "is not null"]
|
|
31063
|
+
};
|
|
31064
|
+
const OPERATOR_LABELS = {
|
|
31065
|
+
// 通用
|
|
31066
|
+
"=": "\u7B49\u4E8E",
|
|
31067
|
+
"!=": "\u4E0D\u7B49\u4E8E",
|
|
31068
|
+
">": "\u5927\u4E8E",
|
|
31069
|
+
">=": "\u5927\u4E8E\u7B49\u4E8E",
|
|
31070
|
+
"<": "\u5C0F\u4E8E",
|
|
31071
|
+
"<=": "\u5C0F\u4E8E\u7B49\u4E8E",
|
|
31072
|
+
like: "\u5305\u542B",
|
|
31073
|
+
"not like": "\u4E0D\u5305\u542B",
|
|
31074
|
+
in: "\u5C5E\u4E8E",
|
|
31075
|
+
"not in": "\u4E0D\u5C5E\u4E8E",
|
|
31076
|
+
between: "\u4ECB\u4E8E",
|
|
31077
|
+
"is null": "\u4E3A\u7A7A",
|
|
31078
|
+
"is not null": "\u4E0D\u4E3A\u7A7A",
|
|
31079
|
+
// 布尔专用
|
|
31080
|
+
"is true": "\u4E3A\u771F",
|
|
31081
|
+
"is false": "\u4E3A\u5047",
|
|
31082
|
+
// JSON 专用
|
|
31083
|
+
contains: "\u5305\u542B\u952E\u503C",
|
|
31084
|
+
"not contains": "\u4E0D\u5305\u542B\u952E\u503C"
|
|
31085
|
+
};
|
|
31086
|
+
const NO_VALUE_OPERATORS = [
|
|
31087
|
+
"empty",
|
|
31088
|
+
"not_empty",
|
|
31089
|
+
"is null",
|
|
31090
|
+
"is not null",
|
|
31091
|
+
"is true",
|
|
31092
|
+
"is false"
|
|
31093
|
+
];
|
|
31094
|
+
const DEFAULT_OPERATORS = [{ label: OPERATOR_LABELS["="] || "=", code: "=" }];
|
|
31095
|
+
|
|
31096
|
+
function useHeaderFilter(options = {}) {
|
|
31097
|
+
const { headerFilterConfig: headerFilterConfigOption, hideHeaderFilter: hideHeaderFilterOption } = options;
|
|
31098
|
+
const getHeaderFilterConfig = () => {
|
|
31099
|
+
return typeof headerFilterConfigOption === "function" ? headerFilterConfigOption() : headerFilterConfigOption;
|
|
31100
|
+
};
|
|
31101
|
+
const getHideHeaderFilter = () => {
|
|
31102
|
+
return typeof hideHeaderFilterOption === "function" ? hideHeaderFilterOption() : hideHeaderFilterOption;
|
|
31103
|
+
};
|
|
31104
|
+
const isEnabled = vue.computed(() => {
|
|
31105
|
+
const hideHeaderFilter = getHideHeaderFilter();
|
|
31106
|
+
const headerFilterConfig = getHeaderFilterConfig();
|
|
31107
|
+
if (hideHeaderFilter === true) return false;
|
|
31108
|
+
if (typeof headerFilterConfig === "boolean") return headerFilterConfig;
|
|
31109
|
+
if (headerFilterConfig && typeof headerFilterConfig === "object") {
|
|
31110
|
+
return headerFilterConfig.enabled !== false;
|
|
31111
|
+
}
|
|
31112
|
+
return false;
|
|
31113
|
+
});
|
|
31114
|
+
const operatorCatalogState = vue.computed(() => {
|
|
31115
|
+
const headerFilterConfig = getHeaderFilterConfig();
|
|
31116
|
+
if (typeof headerFilterConfig === "object" && (headerFilterConfig == null ? void 0 : headerFilterConfig.operatorCatalog)) {
|
|
31117
|
+
return headerFilterConfig.operatorCatalog;
|
|
31118
|
+
}
|
|
31119
|
+
return {};
|
|
31120
|
+
});
|
|
31121
|
+
const fieldCatalogState = vue.computed(() => {
|
|
31122
|
+
const headerFilterConfig = getHeaderFilterConfig();
|
|
31123
|
+
if (typeof headerFilterConfig === "object" && (headerFilterConfig == null ? void 0 : headerFilterConfig.fieldCatalog)) {
|
|
31124
|
+
return headerFilterConfig.fieldCatalog;
|
|
31125
|
+
}
|
|
31126
|
+
return {};
|
|
31127
|
+
});
|
|
31128
|
+
const headerFiltersState = vue.reactive({
|
|
31129
|
+
logic: "and",
|
|
31130
|
+
filters: []
|
|
31131
|
+
});
|
|
31132
|
+
const initConfig = getHeaderFilterConfig();
|
|
31133
|
+
const orderByState = vue.reactive(
|
|
31134
|
+
typeof initConfig === "object" && (initConfig == null ? void 0 : initConfig.defaultOrderBy) || []
|
|
31135
|
+
);
|
|
31136
|
+
const updateCatalogs = (_operatorCatalog, _fieldCatalog) => {
|
|
31137
|
+
};
|
|
31138
|
+
const findTypeByProp = (prop) => {
|
|
31139
|
+
const p = String(prop || "");
|
|
31140
|
+
const catalog = fieldCatalogState.value || {};
|
|
31141
|
+
for (const [key, val] of Object.entries(catalog)) {
|
|
31142
|
+
if (key === p || String((val == null ? void 0 : val.allowedField) || "") === p) {
|
|
31143
|
+
const t = String((val == null ? void 0 : val.type) || "").toLowerCase();
|
|
31144
|
+
return t || void 0;
|
|
31145
|
+
}
|
|
31146
|
+
}
|
|
31147
|
+
return void 0;
|
|
31148
|
+
};
|
|
31149
|
+
const isFieldFilterable = (prop) => {
|
|
31150
|
+
const p = String(prop || "");
|
|
31151
|
+
const catalog = fieldCatalogState.value || {};
|
|
31152
|
+
for (const [, val] of Object.entries(catalog)) {
|
|
31153
|
+
if (String((val == null ? void 0 : val.allowedField) || "") === p) {
|
|
31154
|
+
return (val == null ? void 0 : val.filter) === true;
|
|
31155
|
+
}
|
|
31156
|
+
}
|
|
31157
|
+
return true;
|
|
31158
|
+
};
|
|
31159
|
+
const isFieldVisible = (prop) => {
|
|
31160
|
+
const p = String(prop || "");
|
|
31161
|
+
const catalog = fieldCatalogState.value || {};
|
|
31162
|
+
for (const [, val] of Object.entries(catalog)) {
|
|
31163
|
+
const allowedField = String((val == null ? void 0 : val.allowedField) || "");
|
|
31164
|
+
if (allowedField === p) {
|
|
31165
|
+
return (val == null ? void 0 : val.nullable) !== false;
|
|
31166
|
+
}
|
|
31167
|
+
}
|
|
31168
|
+
return true;
|
|
31169
|
+
};
|
|
31170
|
+
const getOpsByProp = (prop) => {
|
|
31171
|
+
const typeKey = findTypeByProp(prop);
|
|
31172
|
+
const source = operatorCatalogState.value[String(typeKey || "")] || OPERATOR_CATALOG[String(typeKey || "")];
|
|
31173
|
+
if (Array.isArray(source) && source.length) {
|
|
31174
|
+
return source.map((s) => {
|
|
31175
|
+
var _a;
|
|
31176
|
+
return { label: (_a = OPERATOR_LABELS[s]) != null ? _a : s, code: s };
|
|
31177
|
+
});
|
|
31178
|
+
}
|
|
31179
|
+
return DEFAULT_OPERATORS;
|
|
31180
|
+
};
|
|
31181
|
+
const mapOp = (op) => {
|
|
31182
|
+
if (op === "eq") return "=";
|
|
31183
|
+
if (op === "neq") return "!=";
|
|
31184
|
+
return op;
|
|
31185
|
+
};
|
|
31186
|
+
const upsertHeaderFilter = (field, op, value) => {
|
|
31187
|
+
const idx = headerFiltersState.filters.findIndex((i) => i.field === field);
|
|
31188
|
+
const next = {
|
|
31189
|
+
field,
|
|
31190
|
+
op: mapOp(op),
|
|
31191
|
+
value: value != null ? String(value) : void 0
|
|
31192
|
+
};
|
|
31193
|
+
if (op === "empty" || op === "not_empty" || op === "is null" || op === "is not null" || op === "is true" || op === "is false") {
|
|
31194
|
+
delete next.value;
|
|
31195
|
+
}
|
|
31196
|
+
if (idx >= 0) {
|
|
31197
|
+
headerFiltersState.filters.splice(idx, 1, next);
|
|
31198
|
+
} else {
|
|
31199
|
+
headerFiltersState.filters.push(next);
|
|
31200
|
+
}
|
|
31201
|
+
};
|
|
31202
|
+
const removeHeaderFilter = (field) => {
|
|
31203
|
+
const idx = headerFiltersState.filters.findIndex((i) => i.field === field);
|
|
31204
|
+
if (idx >= 0) {
|
|
31205
|
+
headerFiltersState.filters.splice(idx, 1);
|
|
31206
|
+
}
|
|
31207
|
+
};
|
|
31208
|
+
const setOrderBy = (field, direction) => {
|
|
31209
|
+
const idx = orderByState.findIndex((i) => i.field === field);
|
|
31210
|
+
if (!direction) {
|
|
31211
|
+
if (idx >= 0) orderByState.splice(idx, 1);
|
|
31212
|
+
return;
|
|
31213
|
+
}
|
|
31214
|
+
const next = { field, direction };
|
|
31215
|
+
if (idx >= 0) {
|
|
31216
|
+
orderByState.splice(idx, 1, next);
|
|
31217
|
+
} else {
|
|
31218
|
+
orderByState.push(next);
|
|
31219
|
+
}
|
|
31220
|
+
};
|
|
31221
|
+
const getMergedQuery = (baseQuery) => {
|
|
31222
|
+
let mergedFilters = baseQuery.filters;
|
|
31223
|
+
if (headerFiltersState.filters.length > 0) {
|
|
31224
|
+
const baseFilters = baseQuery.filters;
|
|
31225
|
+
if (baseFilters && typeof baseFilters === "object" && Array.isArray(baseFilters.filters)) {
|
|
31226
|
+
mergedFilters = {
|
|
31227
|
+
logic: baseFilters.logic || "and",
|
|
31228
|
+
filters: [
|
|
31229
|
+
...baseFilters.filters,
|
|
31230
|
+
...headerFiltersState.filters
|
|
31231
|
+
]
|
|
31232
|
+
};
|
|
31233
|
+
} else {
|
|
31234
|
+
mergedFilters = {
|
|
31235
|
+
logic: headerFiltersState.logic,
|
|
31236
|
+
filters: [...headerFiltersState.filters]
|
|
31237
|
+
};
|
|
31238
|
+
}
|
|
31239
|
+
}
|
|
31240
|
+
const mergedOrderBy = orderByState.length > 0 ? [...orderByState] : baseQuery.order_by;
|
|
31241
|
+
return {
|
|
31242
|
+
...baseQuery,
|
|
31243
|
+
filters: mergedFilters,
|
|
31244
|
+
order_by: mergedOrderBy
|
|
31245
|
+
};
|
|
31246
|
+
};
|
|
31247
|
+
return {
|
|
31248
|
+
isEnabled,
|
|
31249
|
+
headerFiltersState,
|
|
31250
|
+
orderByState,
|
|
31251
|
+
operatorCatalogState,
|
|
31252
|
+
fieldCatalogState,
|
|
31253
|
+
upsertHeaderFilter,
|
|
31254
|
+
removeHeaderFilter,
|
|
31255
|
+
setOrderBy,
|
|
31256
|
+
getOpsByProp,
|
|
31257
|
+
getMergedQuery,
|
|
31258
|
+
updateCatalogs,
|
|
31259
|
+
isFieldFilterable,
|
|
31260
|
+
isFieldVisible
|
|
31261
|
+
};
|
|
31262
|
+
}
|
|
31263
|
+
|
|
31264
|
+
const _hoisted_1$6 = {
|
|
31265
|
+
class: "yc-header-filter-cell__sort",
|
|
31266
|
+
style: {
|
|
31267
|
+
display: "inline-flex",
|
|
31268
|
+
flexDirection: "column",
|
|
31269
|
+
alignItems: "center",
|
|
31270
|
+
lineHeight: 1
|
|
31271
|
+
}
|
|
31272
|
+
};
|
|
31273
|
+
const _hoisted_2$6 = {
|
|
31274
|
+
class: "yc-header-filter-cell__content",
|
|
31275
|
+
style: {
|
|
31276
|
+
display: "flex",
|
|
31277
|
+
flexDirection: "column",
|
|
31278
|
+
padding: "8px",
|
|
31279
|
+
minWidth: "180px",
|
|
31280
|
+
gap: "6px"
|
|
31281
|
+
}
|
|
31282
|
+
};
|
|
31283
|
+
const _hoisted_3$6 = { class: "yc-header-filter-cell__operators" };
|
|
31284
|
+
const _hoisted_4$4 = ["onClick"];
|
|
31285
|
+
const _hoisted_5$4 = { key: 0 };
|
|
31286
|
+
const _hoisted_6$3 = {
|
|
31287
|
+
class: "yc-header-filter-cell__actions",
|
|
31288
|
+
style: {
|
|
31289
|
+
display: "flex",
|
|
31290
|
+
justifyContent: "space-between",
|
|
31291
|
+
marginTop: "6px"
|
|
31292
|
+
}
|
|
31293
|
+
};
|
|
31294
|
+
var _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
31295
|
+
...{
|
|
31296
|
+
name: "YcTableHeaderFilterCell"
|
|
31297
|
+
},
|
|
31298
|
+
__name: "header-filter-cell",
|
|
31299
|
+
props: {
|
|
31300
|
+
label: {},
|
|
31301
|
+
column: {},
|
|
31302
|
+
operators: { default: () => [] },
|
|
31303
|
+
filters: { default: () => [] },
|
|
31304
|
+
orderBy: { default: () => [] },
|
|
31305
|
+
disableFilter: { type: Boolean, default: false },
|
|
31306
|
+
referenceRenderer: { type: Function, default: void 0 }
|
|
31307
|
+
},
|
|
31308
|
+
emits: ["confirm", "reset", "sortChange"],
|
|
31309
|
+
setup(__props, { emit: __emit }) {
|
|
31310
|
+
const props = __props;
|
|
31311
|
+
const emit = __emit;
|
|
31312
|
+
const state = vue.reactive({
|
|
31313
|
+
selectedOp: "=",
|
|
31314
|
+
inputVal: ""
|
|
31315
|
+
});
|
|
31316
|
+
const popVisible = vue.ref(false);
|
|
31317
|
+
const wrapperElRef = vue.ref(null);
|
|
31318
|
+
const operatorsList = vue.computed(() => props.operators);
|
|
31319
|
+
vue.watch(
|
|
31320
|
+
operatorsList,
|
|
31321
|
+
(list) => {
|
|
31322
|
+
var _a;
|
|
31323
|
+
const firstCode = (_a = list == null ? void 0 : list[0]) == null ? void 0 : _a.code;
|
|
31324
|
+
if (!Array.isArray(list)) return;
|
|
31325
|
+
if (!list.some((op) => op.code === state.selectedOp)) {
|
|
31326
|
+
state.selectedOp = firstCode != null ? firstCode : "=";
|
|
31327
|
+
}
|
|
31328
|
+
},
|
|
31329
|
+
{ immediate: true }
|
|
31330
|
+
);
|
|
31331
|
+
const fieldRef = vue.computed(() => {
|
|
31332
|
+
var _a;
|
|
31333
|
+
return String(((_a = props.column) == null ? void 0 : _a.prop) || "");
|
|
31334
|
+
});
|
|
31335
|
+
const isActive = vue.computed(() => {
|
|
31336
|
+
var _a, _b;
|
|
31337
|
+
const field = fieldRef.value;
|
|
31338
|
+
return (_b = (_a = props.filters) == null ? void 0 : _a.some((i) => String(i.field) === field)) != null ? _b : false;
|
|
31339
|
+
});
|
|
31340
|
+
const isAscActive = vue.computed(
|
|
31341
|
+
() => {
|
|
31342
|
+
var _a;
|
|
31343
|
+
return (_a = props.orderBy) == null ? void 0 : _a.some((i) => i.field === fieldRef.value && i.direction === "asc");
|
|
31344
|
+
}
|
|
31345
|
+
);
|
|
31346
|
+
const isDescActive = vue.computed(
|
|
31347
|
+
() => {
|
|
31348
|
+
var _a;
|
|
31349
|
+
return (_a = props.orderBy) == null ? void 0 : _a.some((i) => i.field === fieldRef.value && i.direction === "desc");
|
|
31350
|
+
}
|
|
31351
|
+
);
|
|
31352
|
+
const onDocPointerOrClick = (e) => {
|
|
31353
|
+
if (!popVisible.value) return;
|
|
31354
|
+
const target = e.target;
|
|
31355
|
+
const wrapper = wrapperElRef.value;
|
|
31356
|
+
if (target && ((wrapper == null ? void 0 : wrapper.contains(target)) || target.closest(".yc-header-filter-pop"))) return;
|
|
31357
|
+
popVisible.value = false;
|
|
31358
|
+
};
|
|
31359
|
+
vue.onMounted(() => {
|
|
31360
|
+
window.addEventListener("pointerdown", onDocPointerOrClick, true);
|
|
31361
|
+
window.addEventListener("click", onDocPointerOrClick, true);
|
|
31362
|
+
});
|
|
31363
|
+
vue.onBeforeUnmount(() => {
|
|
31364
|
+
window.removeEventListener("pointerdown", onDocPointerOrClick, true);
|
|
31365
|
+
window.removeEventListener("click", onDocPointerOrClick, true);
|
|
31366
|
+
});
|
|
31367
|
+
const handleSelect = (op) => {
|
|
31368
|
+
state.selectedOp = op.code;
|
|
31369
|
+
};
|
|
31370
|
+
const handleReset = () => {
|
|
31371
|
+
state.inputVal = "";
|
|
31372
|
+
emit("reset", { column: props.column, op: state.selectedOp });
|
|
31373
|
+
popVisible.value = false;
|
|
31374
|
+
};
|
|
31375
|
+
const handleConfirm = () => {
|
|
31376
|
+
emit("confirm", {
|
|
31377
|
+
column: props.column,
|
|
31378
|
+
op: state.selectedOp,
|
|
31379
|
+
value: state.inputVal
|
|
31380
|
+
});
|
|
31381
|
+
popVisible.value = false;
|
|
31382
|
+
};
|
|
31383
|
+
const toggleAsc = () => {
|
|
31384
|
+
const field = fieldRef.value;
|
|
31385
|
+
emit("sortChange", { field, direction: isAscActive.value ? void 0 : "asc" });
|
|
31386
|
+
};
|
|
31387
|
+
const toggleDesc = () => {
|
|
31388
|
+
const field = fieldRef.value;
|
|
31389
|
+
emit("sortChange", { field, direction: isDescActive.value ? void 0 : "desc" });
|
|
31390
|
+
};
|
|
31391
|
+
const cycleSort = () => {
|
|
31392
|
+
const field = fieldRef.value;
|
|
31393
|
+
if (!field) return;
|
|
31394
|
+
if (isDescActive.value) {
|
|
31395
|
+
emit("sortChange", { field, direction: "asc" });
|
|
31396
|
+
} else if (isAscActive.value) {
|
|
31397
|
+
emit("sortChange", { field, direction: void 0 });
|
|
31398
|
+
} else {
|
|
31399
|
+
emit("sortChange", { field, direction: "desc" });
|
|
31400
|
+
}
|
|
31401
|
+
};
|
|
31402
|
+
const needValueInput = vue.computed(() => {
|
|
31403
|
+
return !NO_VALUE_OPERATORS.includes(state.selectedOp);
|
|
31404
|
+
});
|
|
31405
|
+
const renderValueField = () => {
|
|
31406
|
+
var _a, _b, _c, _d, _e;
|
|
31407
|
+
if (!needValueInput.value) return null;
|
|
31408
|
+
const vt = String(((_a = props.column) == null ? void 0 : _a.valueType) || "").toLowerCase();
|
|
31409
|
+
const fp = ((_b = props.column) == null ? void 0 : _b.fieldProps) || {};
|
|
31410
|
+
if (vt === "time-picker") {
|
|
31411
|
+
return vue.h(elementPlus.ElTimePicker, {
|
|
31412
|
+
...fp,
|
|
31413
|
+
format: (_c = fp == null ? void 0 : fp.format) != null ? _c : "HH:mm:ss",
|
|
31414
|
+
valueFormat: (_d = fp == null ? void 0 : fp.valueFormat) != null ? _d : "HH:mm:ss",
|
|
31415
|
+
modelValue: state.inputVal,
|
|
31416
|
+
"onUpdate:modelValue": (v) => state.inputVal = String(v != null ? v : ""),
|
|
31417
|
+
style: "margin-top: 4px; width: 100%"
|
|
31418
|
+
});
|
|
31419
|
+
}
|
|
31420
|
+
if (vt === "time-select") {
|
|
31421
|
+
return vue.h(elementPlus.ElTimeSelect, {
|
|
31422
|
+
...fp,
|
|
31423
|
+
modelValue: state.inputVal,
|
|
31424
|
+
"onUpdate:modelValue": (v) => {
|
|
31425
|
+
const raw = String(v != null ? v : "");
|
|
31426
|
+
const nv = raw && /^\d{2}:\d{2}$/.test(raw) ? `${raw}:00` : raw;
|
|
31427
|
+
state.inputVal = nv;
|
|
31428
|
+
},
|
|
31429
|
+
style: "margin-top: 4px; width: 100%"
|
|
31430
|
+
});
|
|
31431
|
+
}
|
|
31432
|
+
if (vt === "date-picker") {
|
|
31433
|
+
return vue.h(elementPlus.ElDatePicker, {
|
|
31434
|
+
...fp,
|
|
31435
|
+
valueFormat: (_e = fp == null ? void 0 : fp.valueFormat) != null ? _e : "YYYY-MM-DD HH:mm:ss",
|
|
31436
|
+
modelValue: state.inputVal,
|
|
31437
|
+
"onUpdate:modelValue": (v) => {
|
|
31438
|
+
const nv = Array.isArray(v) ? v.join(",") : String(v != null ? v : "");
|
|
31439
|
+
state.inputVal = nv;
|
|
31440
|
+
},
|
|
31441
|
+
style: "margin-top: 4px; width: 100%"
|
|
31442
|
+
});
|
|
31443
|
+
}
|
|
31444
|
+
return vue.h(elementPlus.ElInput, {
|
|
31445
|
+
modelValue: state.inputVal,
|
|
31446
|
+
"onUpdate:modelValue": (v) => state.inputVal = v,
|
|
31447
|
+
placeholder: "",
|
|
31448
|
+
style: "margin-top: 4px; width: 100%"
|
|
31449
|
+
});
|
|
31450
|
+
};
|
|
31451
|
+
return (_ctx, _cache) => {
|
|
31452
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
31453
|
+
"div",
|
|
31454
|
+
{
|
|
31455
|
+
ref_key: "wrapperElRef",
|
|
31456
|
+
ref: wrapperElRef,
|
|
31457
|
+
class: "yc-header-filter-cell",
|
|
31458
|
+
style: {
|
|
31459
|
+
display: "inline-flex",
|
|
31460
|
+
alignItems: "center",
|
|
31461
|
+
gap: "6px",
|
|
31462
|
+
cursor: "default"
|
|
31463
|
+
}
|
|
31464
|
+
},
|
|
31465
|
+
[
|
|
31466
|
+
vue.createCommentVNode(" \u6807\u7B7E\u5185\u5BB9 "),
|
|
31467
|
+
vue.createElementVNode("span", {
|
|
31468
|
+
class: "yc-header-filter-cell__label",
|
|
31469
|
+
style: {
|
|
31470
|
+
userSelect: "none",
|
|
31471
|
+
cursor: "pointer"
|
|
31472
|
+
},
|
|
31473
|
+
onClick: vue.withModifiers(cycleSort, ["stop"])
|
|
31474
|
+
}, [
|
|
31475
|
+
_ctx.referenceRenderer ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.referenceRenderer), { key: 0 })) : (vue.openBlock(), vue.createElementBlock(
|
|
31476
|
+
vue.Fragment,
|
|
31477
|
+
{ key: 1 },
|
|
31478
|
+
[
|
|
31479
|
+
vue.createTextVNode(
|
|
31480
|
+
vue.toDisplayString(_ctx.label),
|
|
31481
|
+
1
|
|
31482
|
+
/* TEXT */
|
|
31483
|
+
)
|
|
31484
|
+
],
|
|
31485
|
+
64
|
|
31486
|
+
/* STABLE_FRAGMENT */
|
|
31487
|
+
))
|
|
31488
|
+
]),
|
|
31489
|
+
vue.createCommentVNode(" \u6392\u5E8F\u56FE\u6807 "),
|
|
31490
|
+
vue.createElementVNode("span", _hoisted_1$6, [
|
|
31491
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), {
|
|
31492
|
+
size: 12,
|
|
31493
|
+
color: isAscActive.value ? "var(--el-color-primary)" : "var(--el-text-color-secondary)",
|
|
31494
|
+
style: { cursor: "pointer" },
|
|
31495
|
+
onClick: vue.withModifiers(toggleAsc, ["stop"])
|
|
31496
|
+
}, {
|
|
31497
|
+
default: vue.withCtx(() => [
|
|
31498
|
+
vue.createVNode(vue.unref(caret_top_default))
|
|
31499
|
+
]),
|
|
31500
|
+
_: 1
|
|
31501
|
+
/* STABLE */
|
|
31502
|
+
}, 8, ["color"]),
|
|
31503
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), {
|
|
31504
|
+
size: 12,
|
|
31505
|
+
color: isDescActive.value ? "var(--el-color-primary)" : "var(--el-text-color-secondary)",
|
|
31506
|
+
style: { cursor: "pointer", marginTop: "-5px" },
|
|
31507
|
+
onClick: vue.withModifiers(toggleDesc, ["stop"])
|
|
31508
|
+
}, {
|
|
31509
|
+
default: vue.withCtx(() => [
|
|
31510
|
+
vue.createVNode(vue.unref(caret_bottom_default))
|
|
31511
|
+
]),
|
|
31512
|
+
_: 1
|
|
31513
|
+
/* STABLE */
|
|
31514
|
+
}, 8, ["color"])
|
|
31515
|
+
]),
|
|
31516
|
+
vue.createCommentVNode(" \u7B5B\u9009\u56FE\u6807\u548C\u5F39\u7A97 "),
|
|
31517
|
+
!_ctx.disableFilter ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPopover), {
|
|
31518
|
+
key: 0,
|
|
31519
|
+
trigger: "click",
|
|
31520
|
+
placement: "bottom-start",
|
|
31521
|
+
width: 220,
|
|
31522
|
+
visible: popVisible.value,
|
|
31523
|
+
"popper-class": "yc-header-filter-pop",
|
|
31524
|
+
"popper-style": { zIndex: 4e3 }
|
|
31525
|
+
}, {
|
|
31526
|
+
reference: vue.withCtx(() => [
|
|
31527
|
+
vue.createVNode(vue.unref(elementPlus.ElIcon), {
|
|
31528
|
+
size: 16,
|
|
31529
|
+
color: isActive.value ? "var(--el-color-primary)" : "var(--el-text-color-secondary)",
|
|
31530
|
+
style: { cursor: "pointer" },
|
|
31531
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => popVisible.value = !popVisible.value, ["stop"]))
|
|
31532
|
+
}, {
|
|
31533
|
+
default: vue.withCtx(() => [
|
|
31534
|
+
vue.createVNode(vue.unref(filter_default))
|
|
31535
|
+
]),
|
|
31536
|
+
_: 1
|
|
31537
|
+
/* STABLE */
|
|
31538
|
+
}, 8, ["color"])
|
|
31539
|
+
]),
|
|
31540
|
+
default: vue.withCtx(() => [
|
|
31541
|
+
vue.createElementVNode("div", _hoisted_2$6, [
|
|
31542
|
+
vue.createCommentVNode(" \u64CD\u4F5C\u7B26\u5217\u8868 "),
|
|
31543
|
+
vue.createElementVNode("div", _hoisted_3$6, [
|
|
31544
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
31545
|
+
vue.Fragment,
|
|
31546
|
+
null,
|
|
31547
|
+
vue.renderList(operatorsList.value, (op) => {
|
|
31548
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
31549
|
+
key: op.code,
|
|
31550
|
+
class: "yc-header-filter-cell__operator-item",
|
|
31551
|
+
style: vue.normalizeStyle({
|
|
31552
|
+
display: "flex",
|
|
31553
|
+
justifyContent: "space-between",
|
|
31554
|
+
alignItems: "center",
|
|
31555
|
+
padding: "6px 8px",
|
|
31556
|
+
borderRadius: "4px",
|
|
31557
|
+
background: state.selectedOp === op.code ? "var(--el-color-primary-light-9)" : "transparent",
|
|
31558
|
+
color: state.selectedOp === op.code ? "var(--el-color-primary)" : "inherit",
|
|
31559
|
+
cursor: "pointer"
|
|
31560
|
+
}),
|
|
31561
|
+
onClick: ($event) => handleSelect(op)
|
|
31562
|
+
}, [
|
|
31563
|
+
vue.createElementVNode(
|
|
31564
|
+
"span",
|
|
31565
|
+
null,
|
|
31566
|
+
vue.toDisplayString(op.label),
|
|
31567
|
+
1
|
|
31568
|
+
/* TEXT */
|
|
31569
|
+
),
|
|
31570
|
+
state.selectedOp === op.code ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$4, "\u2713")) : vue.createCommentVNode("v-if", true)
|
|
31571
|
+
], 12, _hoisted_4$4);
|
|
31572
|
+
}),
|
|
31573
|
+
128
|
|
31574
|
+
/* KEYED_FRAGMENT */
|
|
31575
|
+
))
|
|
31576
|
+
]),
|
|
31577
|
+
vue.createCommentVNode(" \u503C\u8F93\u5165 "),
|
|
31578
|
+
needValueInput.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(renderValueField), { key: 0 })) : vue.createCommentVNode("v-if", true),
|
|
31579
|
+
vue.createCommentVNode(" \u64CD\u4F5C\u6309\u94AE "),
|
|
31580
|
+
vue.createElementVNode("div", _hoisted_6$3, [
|
|
31581
|
+
vue.createVNode(vue.unref(elementPlus.ElButton), { onClick: handleReset }, {
|
|
31582
|
+
default: vue.withCtx(() => [
|
|
31583
|
+
vue.createTextVNode("\u91CD\u7F6E")
|
|
31584
|
+
]),
|
|
31585
|
+
_: 1
|
|
31586
|
+
/* STABLE */
|
|
31587
|
+
}),
|
|
31588
|
+
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
31589
|
+
type: "primary",
|
|
31590
|
+
onClick: handleConfirm
|
|
31591
|
+
}, {
|
|
31592
|
+
default: vue.withCtx(() => [
|
|
31593
|
+
vue.createTextVNode("\u786E\u5B9A")
|
|
31594
|
+
]),
|
|
31595
|
+
_: 1
|
|
31596
|
+
/* STABLE */
|
|
31597
|
+
})
|
|
31598
|
+
])
|
|
31599
|
+
])
|
|
31600
|
+
]),
|
|
31601
|
+
_: 1
|
|
31602
|
+
/* STABLE */
|
|
31603
|
+
}, 8, ["visible"])) : vue.createCommentVNode("v-if", true)
|
|
31604
|
+
],
|
|
31605
|
+
512
|
|
31606
|
+
/* NEED_PATCH */
|
|
31607
|
+
);
|
|
31608
|
+
};
|
|
31609
|
+
}
|
|
31610
|
+
});
|
|
31611
|
+
|
|
31612
|
+
var YcTableHeaderFilterCellComponent = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-87ce6807"], ["__file", "header-filter-cell.vue"]]);
|
|
31052
31613
|
|
|
31053
31614
|
const DEFAULT_PAGE_SIZE = 20;
|
|
31054
31615
|
var _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -31071,10 +31632,14 @@
|
|
|
31071
31632
|
defaultPageSize: 20
|
|
31072
31633
|
}) },
|
|
31073
31634
|
hideColumnSettingsIcon: { type: Boolean, default: false },
|
|
31074
|
-
showSearch: { type: Boolean, default: void 0 }
|
|
31635
|
+
showSearch: { type: Boolean, default: void 0 },
|
|
31636
|
+
headerFilter: { type: [Object, Boolean], default: false },
|
|
31637
|
+
hideHeaderFilter: { type: Boolean, default: true }
|
|
31075
31638
|
},
|
|
31076
|
-
|
|
31639
|
+
emits: ["header-filter-confirm", "header-filter-reset"],
|
|
31640
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
31077
31641
|
const props = __props;
|
|
31642
|
+
const emit = __emit;
|
|
31078
31643
|
const globalShowPageSearch = useYcShowPageSearch();
|
|
31079
31644
|
const { getCdnUrl } = useYcCdnUrl();
|
|
31080
31645
|
const plusPageConfig = useYcComponentConfig("plusPage");
|
|
@@ -31100,6 +31665,102 @@
|
|
|
31100
31665
|
});
|
|
31101
31666
|
});
|
|
31102
31667
|
};
|
|
31668
|
+
const {
|
|
31669
|
+
isEnabled: isHeaderFilterEnabled,
|
|
31670
|
+
headerFiltersState,
|
|
31671
|
+
orderByState,
|
|
31672
|
+
operatorCatalogState,
|
|
31673
|
+
fieldCatalogState,
|
|
31674
|
+
upsertHeaderFilter,
|
|
31675
|
+
removeHeaderFilter,
|
|
31676
|
+
setOrderBy,
|
|
31677
|
+
getOpsByProp,
|
|
31678
|
+
getMergedQuery,
|
|
31679
|
+
updateCatalogs,
|
|
31680
|
+
isFieldFilterable
|
|
31681
|
+
// isFieldVisible 已在 enhancedColumns 中直接使用 fieldCatalogState 实现
|
|
31682
|
+
} = useHeaderFilter({
|
|
31683
|
+
headerFilterConfig: () => props.headerFilter,
|
|
31684
|
+
hideHeaderFilter: () => props.hideHeaderFilter,
|
|
31685
|
+
onRefresh: () => {
|
|
31686
|
+
var _a, _b;
|
|
31687
|
+
(_b = (_a = plusPageRef.value) == null ? void 0 : _a.getList) == null ? void 0 : _b.call(_a);
|
|
31688
|
+
}
|
|
31689
|
+
});
|
|
31690
|
+
const refreshList = () => {
|
|
31691
|
+
var _a, _b;
|
|
31692
|
+
(_b = (_a = plusPageRef.value) == null ? void 0 : _a.getList) == null ? void 0 : _b.call(_a);
|
|
31693
|
+
};
|
|
31694
|
+
const handleFilterConfirm = (payload) => {
|
|
31695
|
+
var _a;
|
|
31696
|
+
const field = String(((_a = payload.column) == null ? void 0 : _a.prop) || "");
|
|
31697
|
+
upsertHeaderFilter(field, payload.op, payload.value);
|
|
31698
|
+
refreshList();
|
|
31699
|
+
emit("header-filter-confirm", payload);
|
|
31700
|
+
};
|
|
31701
|
+
const handleFilterReset = (payload) => {
|
|
31702
|
+
var _a;
|
|
31703
|
+
const field = String(((_a = payload.column) == null ? void 0 : _a.prop) || "");
|
|
31704
|
+
removeHeaderFilter(field);
|
|
31705
|
+
refreshList();
|
|
31706
|
+
emit("header-filter-reset", payload);
|
|
31707
|
+
};
|
|
31708
|
+
const handleSortChange = (payload) => {
|
|
31709
|
+
setOrderBy(payload.field, payload.direction);
|
|
31710
|
+
refreshList();
|
|
31711
|
+
};
|
|
31712
|
+
const enhancedColumns = vue.computed(() => {
|
|
31713
|
+
const cols = props.columns || [];
|
|
31714
|
+
if (!cols.length) return cols;
|
|
31715
|
+
const isEnabled = isHeaderFilterEnabled.value;
|
|
31716
|
+
const catalog = fieldCatalogState.value;
|
|
31717
|
+
const visibleCols = isEnabled && catalog && Object.keys(catalog).length > 0 ? cols.filter((col) => {
|
|
31718
|
+
const prop = String(col.prop || "");
|
|
31719
|
+
const fieldConfig = Object.values(catalog).find(
|
|
31720
|
+
(val) => String((val == null ? void 0 : val.allowedField) || "") === prop
|
|
31721
|
+
);
|
|
31722
|
+
return (fieldConfig == null ? void 0 : fieldConfig.nullable) !== false;
|
|
31723
|
+
}) : cols;
|
|
31724
|
+
if (!isEnabled) return visibleCols;
|
|
31725
|
+
return visibleCols.map((col) => {
|
|
31726
|
+
const colHideFilter = col.hideHeaderFilter === true;
|
|
31727
|
+
const fieldFilterable = isFieldFilterable(col.prop);
|
|
31728
|
+
if (colHideFilter || !fieldFilterable) {
|
|
31729
|
+
return col;
|
|
31730
|
+
}
|
|
31731
|
+
const operators = getOpsByProp(col.prop);
|
|
31732
|
+
const FILTER_ICON_WIDTH = 24;
|
|
31733
|
+
const SORT_ICON_WIDTH = 16;
|
|
31734
|
+
const EXTRA_WIDTH = FILTER_ICON_WIDTH + SORT_ICON_WIDTH;
|
|
31735
|
+
const originalWidth = col.width || col.minWidth;
|
|
31736
|
+
let adjustedWidth = originalWidth;
|
|
31737
|
+
if (typeof originalWidth === "number") {
|
|
31738
|
+
adjustedWidth = originalWidth + EXTRA_WIDTH;
|
|
31739
|
+
} else if (typeof originalWidth === "string") {
|
|
31740
|
+
const numWidth = parseInt(originalWidth, 10);
|
|
31741
|
+
if (!isNaN(numWidth)) {
|
|
31742
|
+
adjustedWidth = numWidth + EXTRA_WIDTH;
|
|
31743
|
+
}
|
|
31744
|
+
}
|
|
31745
|
+
return {
|
|
31746
|
+
...col,
|
|
31747
|
+
// 如果有原始宽度,增加图标宽度;否则设置最小宽度
|
|
31748
|
+
...originalWidth ? { width: adjustedWidth } : { minWidth: 120 },
|
|
31749
|
+
renderHeader: (label) => {
|
|
31750
|
+
return vue.h(YcTableHeaderFilterCellComponent, {
|
|
31751
|
+
label,
|
|
31752
|
+
column: col,
|
|
31753
|
+
operators,
|
|
31754
|
+
filters: headerFiltersState.filters,
|
|
31755
|
+
orderBy: orderByState,
|
|
31756
|
+
onConfirm: handleFilterConfirm,
|
|
31757
|
+
onReset: handleFilterReset,
|
|
31758
|
+
onSortChange: handleSortChange
|
|
31759
|
+
});
|
|
31760
|
+
}
|
|
31761
|
+
};
|
|
31762
|
+
});
|
|
31763
|
+
});
|
|
31103
31764
|
const showSearch = vue.computed(() => {
|
|
31104
31765
|
if (props.showSearch !== void 0) {
|
|
31105
31766
|
return props.showSearch;
|
|
@@ -31261,13 +31922,16 @@
|
|
|
31261
31922
|
return async (query) => {
|
|
31262
31923
|
var _a;
|
|
31263
31924
|
const finalPageSize = (query == null ? void 0 : query.pageSize) && query.pageSize > 0 ? query.pageSize : DEFAULT_PAGE_SIZE;
|
|
31264
|
-
const
|
|
31925
|
+
const baseQuery = {
|
|
31265
31926
|
...query,
|
|
31266
31927
|
page: (query == null ? void 0 : query.page) || 1,
|
|
31267
|
-
// 确保 pageSize 使用我们计算的值
|
|
31268
31928
|
pageSize: finalPageSize
|
|
31269
31929
|
};
|
|
31270
|
-
const
|
|
31930
|
+
const queryWithFilters = isHeaderFilterEnabled.value ? getMergedQuery(baseQuery) : baseQuery;
|
|
31931
|
+
const result = await props.request(queryWithFilters);
|
|
31932
|
+
if (isHeaderFilterEnabled.value) {
|
|
31933
|
+
updateCatalogs(result.operator_catalog, result.field_catalog);
|
|
31934
|
+
}
|
|
31271
31935
|
return {
|
|
31272
31936
|
data: result.data,
|
|
31273
31937
|
total: (_a = result.total) != null ? _a : 0
|
|
@@ -31284,7 +31948,19 @@
|
|
|
31284
31948
|
plusPageRef,
|
|
31285
31949
|
plusTableInstance,
|
|
31286
31950
|
tableInstance,
|
|
31287
|
-
formRefs
|
|
31951
|
+
formRefs,
|
|
31952
|
+
// 表头筛选相关
|
|
31953
|
+
headerFiltersState,
|
|
31954
|
+
orderByState,
|
|
31955
|
+
operatorCatalogState,
|
|
31956
|
+
fieldCatalogState,
|
|
31957
|
+
upsertHeaderFilter,
|
|
31958
|
+
removeHeaderFilter,
|
|
31959
|
+
setOrderBy,
|
|
31960
|
+
getList: () => {
|
|
31961
|
+
var _a, _b;
|
|
31962
|
+
return (_b = (_a = plusPageRef.value) == null ? void 0 : _a.getList) == null ? void 0 : _b.call(_a);
|
|
31963
|
+
}
|
|
31288
31964
|
});
|
|
31289
31965
|
return (_ctx, _cache) => {
|
|
31290
31966
|
return vue.openBlock(), vue.createElementBlock(
|
|
@@ -31299,6 +31975,7 @@
|
|
|
31299
31975
|
ref_key: "plusPageRef",
|
|
31300
31976
|
ref: plusPageRef
|
|
31301
31977
|
}, props, {
|
|
31978
|
+
columns: enhancedColumns.value,
|
|
31302
31979
|
"is-card": _ctx.isCard,
|
|
31303
31980
|
request: wrappedRequest.value,
|
|
31304
31981
|
search: mergedSearch.value,
|
|
@@ -31341,7 +32018,7 @@
|
|
|
31341
32018
|
])
|
|
31342
32019
|
};
|
|
31343
32020
|
})
|
|
31344
|
-
]), 1040, ["is-card", "request", "search", "search-card-props", "table-card-props", "table", "pagination", "default-page-info"])
|
|
32021
|
+
]), 1040, ["columns", "is-card", "request", "search", "search-card-props", "table-card-props", "table", "pagination", "default-page-info"])
|
|
31345
32022
|
],
|
|
31346
32023
|
512
|
|
31347
32024
|
/* NEED_PATCH */
|
|
@@ -31350,9 +32027,10 @@
|
|
|
31350
32027
|
}
|
|
31351
32028
|
});
|
|
31352
32029
|
|
|
31353
|
-
var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
32030
|
+
var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-a59fd3d9"], ["__file", "index.vue"]]);
|
|
31354
32031
|
|
|
31355
32032
|
const YcPlusPage = YcPlusPageComponent;
|
|
32033
|
+
const YcTableHeaderFilterCell = YcTableHeaderFilterCellComponent;
|
|
31356
32034
|
const RePlusPage = YcPlusPageComponent;
|
|
31357
32035
|
|
|
31358
32036
|
const loadMoreDirective = {
|
|
@@ -58141,6 +58819,7 @@
|
|
|
58141
58819
|
isSubmitting.value = true;
|
|
58142
58820
|
emit("confirm");
|
|
58143
58821
|
dialogVisible.value = false;
|
|
58822
|
+
isSubmitting.value = false;
|
|
58144
58823
|
};
|
|
58145
58824
|
const debouncedConfirm = debounce(doConfirm, 300, {
|
|
58146
58825
|
leading: true,
|
|
@@ -58245,7 +58924,7 @@
|
|
|
58245
58924
|
}
|
|
58246
58925
|
});
|
|
58247
58926
|
|
|
58248
|
-
var YcStatusDialog = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
58927
|
+
var YcStatusDialog = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-b63180c4"], ["__file", "index.vue"]]);
|
|
58249
58928
|
|
|
58250
58929
|
var _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
58251
58930
|
...{
|
|
@@ -59926,11 +60605,15 @@
|
|
|
59926
60605
|
const install = installer.install;
|
|
59927
60606
|
|
|
59928
60607
|
exports.DEFAULT_CDN_CONFIG = DEFAULT_CDN_CONFIG;
|
|
60608
|
+
exports.DEFAULT_OPERATORS = DEFAULT_OPERATORS;
|
|
59929
60609
|
exports.DEFAULT_YC_CONFIG = DEFAULT_YC_CONFIG;
|
|
59930
60610
|
exports.DatePickerValueIsArrayList = DatePickerValueIsArrayList;
|
|
59931
60611
|
exports.DefaultPageInfo = DefaultPageInfo;
|
|
59932
60612
|
exports.DefaultPageSizeList = DefaultPageSizeList;
|
|
59933
60613
|
exports.DictStoreInjectionKey = DictStoreInjectionKey;
|
|
60614
|
+
exports.NO_VALUE_OPERATORS = NO_VALUE_OPERATORS;
|
|
60615
|
+
exports.OPERATOR_CATALOG = OPERATOR_CATALOG;
|
|
60616
|
+
exports.OPERATOR_LABELS = OPERATOR_LABELS;
|
|
59934
60617
|
exports.PlusBreadcrumb = PlusBreadcrumb;
|
|
59935
60618
|
exports.PlusCheckCard = PlusCheckCard;
|
|
59936
60619
|
exports.PlusCheckCardGroup = PlusCheckCardGroup;
|
|
@@ -60015,6 +60698,7 @@
|
|
|
60015
60698
|
exports.YcSelectV2 = YcSelectV2;
|
|
60016
60699
|
exports.YcStatusDialog = YcStatusDialog;
|
|
60017
60700
|
exports.YcSvgIcon = YcSvgIcon;
|
|
60701
|
+
exports.YcTableHeaderFilterCell = YcTableHeaderFilterCell;
|
|
60018
60702
|
exports.YcTabsWithFilter = YcTabsWithFilter;
|
|
60019
60703
|
exports.YcTabsWithFilterWithInstall = YcTabsWithFilterWithInstall;
|
|
60020
60704
|
exports.YcText = YcText;
|
|
@@ -60042,6 +60726,7 @@
|
|
|
60042
60726
|
exports.useDictInjection = useDictInjection;
|
|
60043
60727
|
exports.useDrawerFormConfig = useDrawerFormConfig;
|
|
60044
60728
|
exports.useGetOptions = useGetOptions;
|
|
60729
|
+
exports.useHeaderFilter = useHeaderFilter;
|
|
60045
60730
|
exports.useLocale = useLocale;
|
|
60046
60731
|
exports.usePlusFormReset = usePlusFormReset;
|
|
60047
60732
|
exports.usePlusProConfig = usePlusProConfig;
|