yc-pro-components 0.0.85 → 1.0.0
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/index.d.ts +1 -0
- package/es/components/index.mjs +1 -0
- package/es/components/page/src/index.vue2.mjs +31 -13
- package/es/components/search/src/index.vue2.mjs +1 -0
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +24 -13
- package/es/components/yc-plus-page/src/type.d.ts +5 -0
- package/es/components/yc-query-filter/index.d.ts +7 -0
- package/es/components/yc-query-filter/index.mjs +6 -0
- package/es/components/yc-query-filter/src/index.vue.d.ts +32 -0
- package/es/components/yc-query-filter/src/index.vue.mjs +6 -0
- package/es/components/yc-query-filter/src/index.vue2.mjs +662 -0
- package/es/components/yc-query-filter/src/serialize.d.ts +4 -0
- package/es/components/yc-query-filter/src/serialize.mjs +17 -0
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.mjs +1 -0
- package/es/constants/query-filter.d.ts +69 -0
- package/es/constants/query-filter.mjs +3 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useQueryFilterConfig.d.ts +11 -0
- package/es/hooks/useQueryFilterConfig.mjs +38 -0
- package/es/index.css +12 -12
- package/es/index.d.ts +1 -1
- package/es/index.mjs +3 -0
- package/es/locale/lang/en.d.ts +33 -0
- package/es/locale/lang/en.mjs +33 -0
- package/es/locale/lang/ja.d.ts +33 -0
- package/es/locale/lang/ja.mjs +33 -0
- package/es/locale/lang/ko.d.ts +33 -0
- package/es/locale/lang/ko.mjs +33 -0
- package/es/locale/lang/zh-cn.d.ts +33 -0
- package/es/locale/lang/zh-cn.mjs +33 -0
- package/es/locale/lang/zh-tw.d.ts +33 -0
- package/es/locale/lang/zh-tw.mjs +33 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/yc-components/index.d.ts +1 -1
- package/es/yc-components/version.d.ts +1 -1
- package/index.css +1 -1
- package/index.js +1069 -213
- package/index.min.css +1 -1
- package/index.min.js +16 -12
- package/index.min.mjs +16 -12
- package/index.mjs +1065 -215
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +3 -0
- package/lib/components/page/src/index.vue2.js +31 -13
- package/lib/components/search/src/index.vue2.js +1 -0
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +26 -15
- package/lib/components/yc-plus-page/src/type.d.ts +5 -0
- package/lib/components/yc-query-filter/index.d.ts +7 -0
- package/lib/components/yc-query-filter/index.js +9 -0
- package/lib/components/yc-query-filter/src/index.vue.d.ts +32 -0
- package/lib/components/yc-query-filter/src/index.vue.js +10 -0
- package/lib/components/yc-query-filter/src/index.vue2.js +666 -0
- package/lib/components/yc-query-filter/src/serialize.d.ts +4 -0
- package/lib/components/yc-query-filter/src/serialize.js +20 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +2 -0
- package/lib/constants/query-filter.d.ts +69 -0
- package/lib/constants/query-filter.js +5 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +4 -0
- package/lib/hooks/useQueryFilterConfig.d.ts +11 -0
- package/lib/hooks/useQueryFilterConfig.js +42 -0
- package/lib/index.css +9 -9
- package/lib/index.d.ts +1 -1
- package/lib/index.js +9 -0
- package/lib/locale/lang/en.d.ts +33 -0
- package/lib/locale/lang/en.js +33 -0
- package/lib/locale/lang/ja.d.ts +33 -0
- package/lib/locale/lang/ja.js +33 -0
- package/lib/locale/lang/ko.d.ts +33 -0
- package/lib/locale/lang/ko.js +33 -0
- package/lib/locale/lang/zh-cn.d.ts +33 -0
- package/lib/locale/lang/zh-cn.js +33 -0
- package/lib/locale/lang/zh-tw.d.ts +33 -0
- package/lib/locale/lang/zh-tw.js +33 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/yc-components/index.d.ts +1 -1
- package/lib/yc-components/version.d.ts +1 -1
- package/locale/en.d.ts +33 -0
- package/locale/en.js +34 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +34 -1
- package/locale/ja.d.ts +33 -0
- package/locale/ja.js +34 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +34 -1
- package/locale/ko.d.ts +33 -0
- package/locale/ko.js +34 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +34 -1
- package/locale/zh-cn.d.ts +33 -0
- package/locale/zh-cn.js +34 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +34 -1
- package/locale/zh-tw.d.ts +33 -0
- package/locale/zh-tw.js +34 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +34 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-yc-query-filter.css +1 -0
- package/theme-chalk/src/index.scss +1 -0
- package/theme-chalk/src/yc-query-filter.scss +163 -0
- package/es/components/breadcrumb/index.d.ts +0 -6985
- package/es/components/breadcrumb/src/index.vue.d.ts +0 -6947
- package/es/components/dialog-form/index.d.ts +0 -314
- package/es/components/dialog-form/src/index.vue.d.ts +0 -214
- package/es/components/display-item/index.d.ts +0 -580
- package/es/components/display-item/src/index.vue.d.ts +0 -446
- package/es/components/drawer-form/index.d.ts +0 -1592
- package/es/components/drawer-form/src/index.vue.d.ts +0 -630
- package/es/components/form/index.d.ts +0 -870
- package/es/components/form/src/form-content.vue.d.ts +0 -598
- package/es/components/form/src/index.vue.d.ts +0 -382
- package/es/components/form-item/index.d.ts +0 -1492
- package/es/components/form-item/src/index.vue.d.ts +0 -550
- package/es/components/page/index.d.ts +0 -10746
- package/es/components/page/src/index.vue.d.ts +0 -3775
- package/es/components/search/index.d.ts +0 -2977
- package/es/components/search/src/index.vue.d.ts +0 -1021
- package/es/components/table/src/table-column.vue.d.ts +0 -624
- package/es/components/yc-drawer/store.d.ts +0 -2359
- package/es/components/yc-plus-page/src/index.vue.d.ts +0 -8250
- package/es/hooks/usePlusFormReset.d.ts +0 -4501
- package/lib/components/breadcrumb/index.d.ts +0 -6985
- package/lib/components/breadcrumb/src/index.vue.d.ts +0 -6947
- package/lib/components/dialog-form/index.d.ts +0 -314
- package/lib/components/dialog-form/src/index.vue.d.ts +0 -214
- package/lib/components/display-item/index.d.ts +0 -580
- package/lib/components/display-item/src/index.vue.d.ts +0 -446
- package/lib/components/drawer-form/index.d.ts +0 -1592
- package/lib/components/drawer-form/src/index.vue.d.ts +0 -630
- package/lib/components/form/index.d.ts +0 -870
- package/lib/components/form/src/form-content.vue.d.ts +0 -598
- package/lib/components/form/src/index.vue.d.ts +0 -382
- package/lib/components/form-item/index.d.ts +0 -1492
- package/lib/components/form-item/src/index.vue.d.ts +0 -550
- package/lib/components/page/index.d.ts +0 -10746
- package/lib/components/page/src/index.vue.d.ts +0 -3775
- package/lib/components/search/index.d.ts +0 -2977
- package/lib/components/search/src/index.vue.d.ts +0 -1021
- package/lib/components/table/src/table-column.vue.d.ts +0 -624
- package/lib/components/yc-drawer/store.d.ts +0 -2359
- package/lib/components/yc-plus-page/src/index.vue.d.ts +0 -8250
- package/lib/hooks/usePlusFormReset.d.ts +0 -4501
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! yc-pro-components
|
|
1
|
+
/*! yc-pro-components v1.0.0 */
|
|
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, pushScopeId, popScopeId, toRefs, useSlots, onUnmounted, resolveDirective, onBeforeMount, getCurrentScope, onScopeDispose, toRef, mergeModels, useModel, vShow, createStaticVNode, hasInjectionContext, markRaw, effectScope, toRaw } from 'vue';
|
|
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';
|
|
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, ElEmpty, ElUpload } from 'element-plus';
|
|
4
4
|
|
|
5
5
|
const makeInstaller = (components = [], directives = {}) => {
|
|
6
6
|
const install = (app) => {
|
|
@@ -4803,6 +4803,8 @@ const selectValueTypeList = [
|
|
|
4803
4803
|
|
|
4804
4804
|
const DictStoreInjectionKey = Symbol("DictStore");
|
|
4805
4805
|
|
|
4806
|
+
const QueryFilterConfigKey = Symbol("QueryFilterConfig");
|
|
4807
|
+
|
|
4806
4808
|
const throwError = (data) => {
|
|
4807
4809
|
if (!isArray(data)) {
|
|
4808
4810
|
console.error("Uncaught TypeError: ", `options expected Array but got ${toRawType(data)}`);
|
|
@@ -5024,6 +5026,39 @@ var English = {
|
|
|
5024
5026
|
expand: "Expand",
|
|
5025
5027
|
retract: "Retract"
|
|
5026
5028
|
},
|
|
5029
|
+
queryFilter: {
|
|
5030
|
+
saveAs: "Save as",
|
|
5031
|
+
saved: "Saved filters",
|
|
5032
|
+
savedTitle: "Saved filters",
|
|
5033
|
+
panelTitle: "Filters",
|
|
5034
|
+
received: "Received filters",
|
|
5035
|
+
shared: "Shared filters",
|
|
5036
|
+
nameTitle: "Filter name",
|
|
5037
|
+
namePlaceholder: "Name this filter",
|
|
5038
|
+
emptyMine: "No saved filters",
|
|
5039
|
+
emptyReceived: "No received filters",
|
|
5040
|
+
emptyShared: "No shared filters",
|
|
5041
|
+
shareTitle: "Share filter",
|
|
5042
|
+
sharePlaceholder: "Search employees in this tenant",
|
|
5043
|
+
recipients: "Recipients",
|
|
5044
|
+
revoke: "Revoke",
|
|
5045
|
+
edit: "Edit",
|
|
5046
|
+
remove: "Delete",
|
|
5047
|
+
share: "Share",
|
|
5048
|
+
confirmDelete: "Delete this filter?",
|
|
5049
|
+
confirmRevoke: "Revoke this share?",
|
|
5050
|
+
saveSuccess: "Saved",
|
|
5051
|
+
deleteSuccess: "Deleted",
|
|
5052
|
+
shareSuccess: "Shared",
|
|
5053
|
+
revokeSuccess: "Revoked",
|
|
5054
|
+
applied: "Filled into the search form. Click Search to query.",
|
|
5055
|
+
schemaMismatch: "This filter schema is outdated. Review it before searching.",
|
|
5056
|
+
noSelector: "Employee selector is not configured",
|
|
5057
|
+
sharedBy: "{time} [{sender}] shared [{name}]",
|
|
5058
|
+
sharedTo: "{time} I shared [{name}] with [{recipient}] and others",
|
|
5059
|
+
sharedByPrefix: "{time} [{sender}] shared",
|
|
5060
|
+
sharedToPrefix: "{time} I shared with [{recipient}] and others"
|
|
5061
|
+
},
|
|
5027
5062
|
table: {
|
|
5028
5063
|
title: "Table",
|
|
5029
5064
|
density: "Density",
|
|
@@ -8613,6 +8648,40 @@ function useDictInjection(dictStore) {
|
|
|
8613
8648
|
provide(DictStoreInjectionKey, dictStore);
|
|
8614
8649
|
}
|
|
8615
8650
|
|
|
8651
|
+
function unwrapResponse(res) {
|
|
8652
|
+
var _a;
|
|
8653
|
+
const payload = (res == null ? void 0 : res.data) !== void 0 && (res == null ? void 0 : res.code) !== void 0 ? res : (_a = res == null ? void 0 : res.data) != null ? _a : res;
|
|
8654
|
+
const code = payload == null ? void 0 : payload.code;
|
|
8655
|
+
if (code !== void 0 && code !== "00000" && code !== "0" && code !== 0) {
|
|
8656
|
+
throw new Error((payload == null ? void 0 : payload.message) || "\u8BF7\u6C42\u5931\u8D25");
|
|
8657
|
+
}
|
|
8658
|
+
if (payload && typeof payload === "object" && "data" in payload && payload.code !== void 0) {
|
|
8659
|
+
return payload.data;
|
|
8660
|
+
}
|
|
8661
|
+
return payload;
|
|
8662
|
+
}
|
|
8663
|
+
function provideQueryFilterConfig(config) {
|
|
8664
|
+
provide(QueryFilterConfigKey, config);
|
|
8665
|
+
}
|
|
8666
|
+
function useQueryFilterConfig() {
|
|
8667
|
+
return inject(QueryFilterConfigKey, void 0);
|
|
8668
|
+
}
|
|
8669
|
+
function createQueryFilterApi(options) {
|
|
8670
|
+
var _a;
|
|
8671
|
+
const prefix = (_a = options.prefix) != null ? _a : "/opa/api/query-filter";
|
|
8672
|
+
const request = async (path, body) => {
|
|
8673
|
+
return unwrapResponse(await options.post(`${prefix}${path}`, body));
|
|
8674
|
+
};
|
|
8675
|
+
return {
|
|
8676
|
+
saveAs: (body) => request("/save-as", body),
|
|
8677
|
+
update: (body) => request("/update", body),
|
|
8678
|
+
delete: (body) => request("/delete", body),
|
|
8679
|
+
list: (body) => request("/list", body),
|
|
8680
|
+
share: (body) => request("/share", body),
|
|
8681
|
+
revoke: (body) => request("/revoke", body)
|
|
8682
|
+
};
|
|
8683
|
+
}
|
|
8684
|
+
|
|
8616
8685
|
const DEFAULT_RESIZE_AREA_WIDTH = 12;
|
|
8617
8686
|
const DEFAULT_BORDER_COLOR = "var(--theme-color)";
|
|
8618
8687
|
const DEFAULT_SCROLL_SELECTOR = ".el-scrollbar__wrap";
|
|
@@ -8930,8 +8999,8 @@ function useTableScrollbarTooltip(tableRef, options = {}) {
|
|
|
8930
8999
|
};
|
|
8931
9000
|
}
|
|
8932
9001
|
|
|
8933
|
-
const _hoisted_1$
|
|
8934
|
-
var _sfc_main$
|
|
9002
|
+
const _hoisted_1$w = { class: "plus-dialog-body" };
|
|
9003
|
+
var _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
8935
9004
|
...{
|
|
8936
9005
|
name: "PlusDialog",
|
|
8937
9006
|
inheritAttrs: false
|
|
@@ -9014,7 +9083,7 @@ var _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9014
9083
|
style: mergedDialogStyle.value
|
|
9015
9084
|
}, filteredAttrs.value), createSlots({
|
|
9016
9085
|
default: withCtx(() => [
|
|
9017
|
-
createElementVNode("div", _hoisted_1$
|
|
9086
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
9018
9087
|
renderSlot(_ctx.$slots, "default")
|
|
9019
9088
|
])
|
|
9020
9089
|
]),
|
|
@@ -9086,25 +9155,25 @@ var _export_sfc = (sfc, props) => {
|
|
|
9086
9155
|
return target;
|
|
9087
9156
|
};
|
|
9088
9157
|
|
|
9089
|
-
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9158
|
+
var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__file", "index.vue"]]);
|
|
9090
9159
|
|
|
9091
9160
|
const PlusDialog = Dialog;
|
|
9092
9161
|
|
|
9093
|
-
const _hoisted_1$
|
|
9162
|
+
const _hoisted_1$v = /* @__PURE__ */ createElementVNode(
|
|
9094
9163
|
"span",
|
|
9095
9164
|
null,
|
|
9096
9165
|
null,
|
|
9097
9166
|
-1
|
|
9098
9167
|
/* HOISTED */
|
|
9099
9168
|
);
|
|
9100
|
-
const _hoisted_2$
|
|
9169
|
+
const _hoisted_2$l = /* @__PURE__ */ createElementVNode(
|
|
9101
9170
|
"span",
|
|
9102
9171
|
null,
|
|
9103
9172
|
null,
|
|
9104
9173
|
-1
|
|
9105
9174
|
/* HOISTED */
|
|
9106
9175
|
);
|
|
9107
|
-
var _sfc_main$
|
|
9176
|
+
var _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
9108
9177
|
...{
|
|
9109
9178
|
name: "PlusPagination"
|
|
9110
9179
|
},
|
|
@@ -9146,7 +9215,7 @@ var _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9146
9215
|
},
|
|
9147
9216
|
[
|
|
9148
9217
|
_ctx.align === "right" || _ctx.align === "center" ? renderSlot(_ctx.$slots, "pagination-left", { key: 0 }, () => [
|
|
9149
|
-
_hoisted_1$
|
|
9218
|
+
_hoisted_1$v
|
|
9150
9219
|
]) : createCommentVNode("v-if", true),
|
|
9151
9220
|
createVNode(unref(ElPagination), mergeProps({
|
|
9152
9221
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
@@ -9160,7 +9229,7 @@ var _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9160
9229
|
onCurrentChange: handleCurrentChange
|
|
9161
9230
|
}), null, 16, ["current-page", "page-size", "total", "page-sizes"]),
|
|
9162
9231
|
_ctx.align === "left" || _ctx.align === "center" ? renderSlot(_ctx.$slots, "pagination-right", { key: 1 }, () => [
|
|
9163
|
-
_hoisted_2$
|
|
9232
|
+
_hoisted_2$l
|
|
9164
9233
|
]) : createCommentVNode("v-if", true)
|
|
9165
9234
|
],
|
|
9166
9235
|
2
|
|
@@ -9170,11 +9239,11 @@ var _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9170
9239
|
}
|
|
9171
9240
|
});
|
|
9172
9241
|
|
|
9173
|
-
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9242
|
+
var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__file", "index.vue"]]);
|
|
9174
9243
|
|
|
9175
9244
|
const PlusPagination = Pagination;
|
|
9176
9245
|
|
|
9177
|
-
var _sfc_main$
|
|
9246
|
+
var _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
9178
9247
|
...{
|
|
9179
9248
|
name: "PlusRadio"
|
|
9180
9249
|
},
|
|
@@ -9359,7 +9428,7 @@ var _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
9359
9428
|
}
|
|
9360
9429
|
});
|
|
9361
9430
|
|
|
9362
|
-
var Radio = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9431
|
+
var Radio = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__file", "index.vue"]]);
|
|
9363
9432
|
|
|
9364
9433
|
const PlusRadio = Radio;
|
|
9365
9434
|
|
|
@@ -15421,13 +15490,13 @@ var ElementPlusIconsVue = /*#__PURE__*/Object.freeze({
|
|
|
15421
15490
|
ZoomOut: zoom_out_default
|
|
15422
15491
|
});
|
|
15423
15492
|
|
|
15424
|
-
const _hoisted_1$
|
|
15493
|
+
const _hoisted_1$u = {
|
|
15425
15494
|
key: 0,
|
|
15426
15495
|
class: "plus-table-action-bar__dropdown__link"
|
|
15427
15496
|
};
|
|
15428
|
-
const _hoisted_2$
|
|
15429
|
-
const _hoisted_3$
|
|
15430
|
-
var _sfc_main$
|
|
15497
|
+
const _hoisted_2$k = { class: "plus-table-action-bar__dropdown__link" };
|
|
15498
|
+
const _hoisted_3$g = { class: "plus-table-action-bar__more-text" };
|
|
15499
|
+
var _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
15431
15500
|
...{
|
|
15432
15501
|
name: "PlusTableActionBar"
|
|
15433
15502
|
},
|
|
@@ -15743,7 +15812,7 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
15743
15812
|
)
|
|
15744
15813
|
]),
|
|
15745
15814
|
default: withCtx(() => [
|
|
15746
|
-
_ctx.moreType === "icon" ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
15815
|
+
_ctx.moreType === "icon" ? (openBlock(), createElementBlock("span", _hoisted_1$u, [
|
|
15747
15816
|
renderSlot(_ctx.$slots, "action-bar-more-icon", {}, () => [
|
|
15748
15817
|
createVNode(unref(ElIcon), null, {
|
|
15749
15818
|
default: withCtx(() => [
|
|
@@ -15758,10 +15827,10 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
15758
15827
|
{ key: 1 },
|
|
15759
15828
|
[
|
|
15760
15829
|
createCommentVNode(" \u9ED8\u8BA4 "),
|
|
15761
|
-
createElementVNode("span", _hoisted_2$
|
|
15830
|
+
createElementVNode("span", _hoisted_2$k, [
|
|
15762
15831
|
createElementVNode(
|
|
15763
15832
|
"span",
|
|
15764
|
-
_hoisted_3$
|
|
15833
|
+
_hoisted_3$g,
|
|
15765
15834
|
toDisplayString(unref(t)("plus.table.more")),
|
|
15766
15835
|
1
|
|
15767
15836
|
/* TEXT */
|
|
@@ -15792,9 +15861,9 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
15792
15861
|
}
|
|
15793
15862
|
});
|
|
15794
15863
|
|
|
15795
|
-
var PlusTableActionBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15864
|
+
var PlusTableActionBar = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__file", "table-action-bar.vue"]]);
|
|
15796
15865
|
|
|
15797
|
-
var _sfc_main$
|
|
15866
|
+
var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
15798
15867
|
...{
|
|
15799
15868
|
name: "PlusRender"
|
|
15800
15869
|
},
|
|
@@ -15862,12 +15931,12 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
15862
15931
|
}
|
|
15863
15932
|
});
|
|
15864
15933
|
|
|
15865
|
-
var Render = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15934
|
+
var Render = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__file", "index.vue"]]);
|
|
15866
15935
|
|
|
15867
15936
|
const PlusRender = Render;
|
|
15868
15937
|
|
|
15869
|
-
const _hoisted_1$
|
|
15870
|
-
var _sfc_main$
|
|
15938
|
+
const _hoisted_1$t = { class: "plus-date-picker__middle" };
|
|
15939
|
+
var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
15871
15940
|
...{
|
|
15872
15941
|
name: "PlusDatePicker"
|
|
15873
15942
|
},
|
|
@@ -15972,7 +16041,7 @@ var _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15972
16041
|
}), null, 16, ["modelValue", "type", "value-format", "placeholder", "disabled"]),
|
|
15973
16042
|
createElementVNode(
|
|
15974
16043
|
"span",
|
|
15975
|
-
_hoisted_1$
|
|
16044
|
+
_hoisted_1$t,
|
|
15976
16045
|
toDisplayString(_ctx.rangeSeparator),
|
|
15977
16046
|
1
|
|
15978
16047
|
/* TEXT */
|
|
@@ -16003,11 +16072,11 @@ var _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
16003
16072
|
}
|
|
16004
16073
|
});
|
|
16005
16074
|
|
|
16006
|
-
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16075
|
+
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__file", "index.vue"]]);
|
|
16007
16076
|
|
|
16008
16077
|
const PlusDatePicker = DatePicker;
|
|
16009
16078
|
|
|
16010
|
-
var _sfc_main$
|
|
16079
|
+
var _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
16011
16080
|
...{
|
|
16012
16081
|
name: "PlusInputTag"
|
|
16013
16082
|
},
|
|
@@ -16144,7 +16213,7 @@ var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
16144
16213
|
}
|
|
16145
16214
|
});
|
|
16146
16215
|
|
|
16147
|
-
var InputTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16216
|
+
var InputTag = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__file", "index.vue"]]);
|
|
16148
16217
|
|
|
16149
16218
|
const PlusInputTag = InputTag;
|
|
16150
16219
|
|
|
@@ -16304,18 +16373,18 @@ const findPlaceholderOverflow = (root, target, point, measure = measureTextWidth
|
|
|
16304
16373
|
return hovered ? hitFromInput(hovered, measure) : null;
|
|
16305
16374
|
};
|
|
16306
16375
|
|
|
16307
|
-
const _hoisted_1$
|
|
16308
|
-
const _hoisted_2$
|
|
16309
|
-
const _hoisted_3$
|
|
16376
|
+
const _hoisted_1$s = { class: "el-form-item__error" };
|
|
16377
|
+
const _hoisted_2$j = { class: "plus-form-item__label" };
|
|
16378
|
+
const _hoisted_3$f = {
|
|
16310
16379
|
key: 0,
|
|
16311
16380
|
class: "plus-form-item-field"
|
|
16312
16381
|
};
|
|
16313
|
-
const _hoisted_4$
|
|
16382
|
+
const _hoisted_4$c = {
|
|
16314
16383
|
key: 1,
|
|
16315
16384
|
class: "plus-form-item-field"
|
|
16316
16385
|
};
|
|
16317
16386
|
const TOOLTIP_SHOW_DELAY = 300;
|
|
16318
|
-
var _sfc_main$
|
|
16387
|
+
var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
16319
16388
|
...{
|
|
16320
16389
|
name: "PlusFormItem"
|
|
16321
16390
|
},
|
|
@@ -16622,7 +16691,7 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
16622
16691
|
onMouseleave: hidePlaceholderTooltip
|
|
16623
16692
|
},
|
|
16624
16693
|
[
|
|
16625
|
-
_ctx.renderField && unref(isFunction)(_ctx.renderField) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
16694
|
+
_ctx.renderField && unref(isFunction)(_ctx.renderField) ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
16626
16695
|
valueIsReady.value ? (openBlock(), createBlock(unref(PlusRender), {
|
|
16627
16696
|
key: 0,
|
|
16628
16697
|
render: _ctx.renderField,
|
|
@@ -16632,7 +16701,7 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
16632
16701
|
"render-type": "form",
|
|
16633
16702
|
"handle-change": handleChange
|
|
16634
16703
|
}, null, 8, ["render", "params", "callback-value", "custom-field-props"])) : createCommentVNode("v-if", true)
|
|
16635
|
-
])) : _ctx.$slots[unref(getFieldSlotName)(_ctx.prop)] ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
16704
|
+
])) : _ctx.$slots[unref(getFieldSlotName)(_ctx.prop)] ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
16636
16705
|
renderSlot(_ctx.$slots, unref(getFieldSlotName)(_ctx.prop), mergeProps(params.value, { column: props }))
|
|
16637
16706
|
])) : _ctx.valueType === "select" && customFieldProps.value.multiple === true ? (openBlock(), createBlock(unref(ElSelect$1), mergeProps({
|
|
16638
16707
|
key: 2,
|
|
@@ -16972,7 +17041,7 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
16972
17041
|
unref(isFunction)(_ctx.renderErrorMessage) ? {
|
|
16973
17042
|
name: "error",
|
|
16974
17043
|
fn: withCtx(({ error }) => [
|
|
16975
|
-
createElementVNode("div", _hoisted_1$
|
|
17044
|
+
createElementVNode("div", _hoisted_1$s, [
|
|
16976
17045
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderErrorMessage), mergeProps(props, {
|
|
16977
17046
|
value: state.value,
|
|
16978
17047
|
error,
|
|
@@ -16985,7 +17054,7 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
16985
17054
|
_ctx.hasLabel ? {
|
|
16986
17055
|
name: "label",
|
|
16987
17056
|
fn: withCtx(({ label: currentLabel }) => [
|
|
16988
|
-
createElementVNode("span", _hoisted_2$
|
|
17057
|
+
createElementVNode("span", _hoisted_2$j, [
|
|
16989
17058
|
createVNode(unref(ElTooltip$1), {
|
|
16990
17059
|
visible: labelTooltipVisible.value,
|
|
16991
17060
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => labelTooltipVisible.value = $event),
|
|
@@ -17069,11 +17138,11 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
17069
17138
|
}
|
|
17070
17139
|
});
|
|
17071
17140
|
|
|
17072
|
-
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17141
|
+
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__file", "index.vue"]]);
|
|
17073
17142
|
|
|
17074
17143
|
const PlusFormItem = FormItem;
|
|
17075
17144
|
|
|
17076
|
-
var _sfc_main$
|
|
17145
|
+
var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
17077
17146
|
...{
|
|
17078
17147
|
name: "PlusCollapseTransition"
|
|
17079
17148
|
},
|
|
@@ -17124,17 +17193,17 @@ var _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
17124
17193
|
}
|
|
17125
17194
|
});
|
|
17126
17195
|
|
|
17127
|
-
var PlusCollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17196
|
+
var PlusCollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__file", "collapse-transition.vue"]]);
|
|
17128
17197
|
|
|
17129
|
-
const _hoisted_1$
|
|
17198
|
+
const _hoisted_1$r = {
|
|
17130
17199
|
key: 0,
|
|
17131
17200
|
class: "plus-form-item-previous"
|
|
17132
17201
|
};
|
|
17133
|
-
const _hoisted_2$
|
|
17202
|
+
const _hoisted_2$i = {
|
|
17134
17203
|
key: 1,
|
|
17135
17204
|
class: "plus-form-item-extra"
|
|
17136
17205
|
};
|
|
17137
|
-
var _sfc_main$
|
|
17206
|
+
var _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
17138
17207
|
...{
|
|
17139
17208
|
name: "PlusFormContent"
|
|
17140
17209
|
},
|
|
@@ -17223,7 +17292,7 @@ var _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
17223
17292
|
}), {
|
|
17224
17293
|
default: withCtx(() => [
|
|
17225
17294
|
createCommentVNode(" el-form-item\u4E0A\u4E00\u884C\u7684\u5185\u5BB9 "),
|
|
17226
|
-
item.renderPrevious || _ctx.$slots[unref(getPreviousSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
17295
|
+
item.renderPrevious || _ctx.$slots[unref(getPreviousSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
17227
17296
|
unref(isFunction)(item.renderPrevious) ? (openBlock(), createBlock(
|
|
17228
17297
|
resolveDynamicComponent(item.renderPrevious),
|
|
17229
17298
|
normalizeProps(mergeProps({ key: 0 }, item)),
|
|
@@ -17266,7 +17335,7 @@ var _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
17266
17335
|
} : void 0
|
|
17267
17336
|
]), 1040, ["model-value", "clearable", "has-label", "ellipsis", "onChange"]),
|
|
17268
17337
|
createCommentVNode(" el-form-item \u4E0B\u4E00\u884C\u989D\u5916\u7684\u5185\u5BB9 "),
|
|
17269
|
-
item.renderExtra || _ctx.$slots[unref(getExtraSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
17338
|
+
item.renderExtra || _ctx.$slots[unref(getExtraSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_2$i, [
|
|
17270
17339
|
item.renderExtra && unref(isFunction)(item.renderExtra) ? (openBlock(), createBlock(
|
|
17271
17340
|
resolveDynamicComponent(item.renderExtra),
|
|
17272
17341
|
normalizeProps(mergeProps({ key: 0 }, item)),
|
|
@@ -17297,10 +17366,10 @@ var _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
17297
17366
|
}
|
|
17298
17367
|
});
|
|
17299
17368
|
|
|
17300
|
-
var PlusFormContent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17369
|
+
var PlusFormContent = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__file", "form-content.vue"]]);
|
|
17301
17370
|
|
|
17302
|
-
const _hoisted_1$
|
|
17303
|
-
var _sfc_main$
|
|
17371
|
+
const _hoisted_1$q = { class: "plus-form__group__item__icon" };
|
|
17372
|
+
var _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
17304
17373
|
...{
|
|
17305
17374
|
name: "PlusForm",
|
|
17306
17375
|
inheritAttrs: false
|
|
@@ -17466,7 +17535,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
17466
17535
|
icon: groupItem.icon,
|
|
17467
17536
|
index
|
|
17468
17537
|
}, () => [
|
|
17469
|
-
createElementVNode("div", _hoisted_1$
|
|
17538
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
17470
17539
|
groupItem.icon ? (openBlock(), createBlock(
|
|
17471
17540
|
unref(ElIcon),
|
|
17472
17541
|
{ key: 0 },
|
|
@@ -17615,7 +17684,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
17615
17684
|
}
|
|
17616
17685
|
});
|
|
17617
17686
|
|
|
17618
|
-
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17687
|
+
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__file", "index.vue"]]);
|
|
17619
17688
|
|
|
17620
17689
|
const PlusForm = Form;
|
|
17621
17690
|
|
|
@@ -17658,9 +17727,9 @@ const DisplayComponentMap = {
|
|
|
17658
17727
|
const hasDisplayComponent = (valueType) => Object.keys(DisplayComponentMap).includes(valueType);
|
|
17659
17728
|
const getDisplayComponent = (valueType) => Reflect.get(DisplayComponentMap, valueType) || {};
|
|
17660
17729
|
|
|
17661
|
-
const _hoisted_1$
|
|
17662
|
-
const _hoisted_2$
|
|
17663
|
-
const _hoisted_3$
|
|
17730
|
+
const _hoisted_1$p = ["innerHTML"];
|
|
17731
|
+
const _hoisted_2$h = { class: "plus-display-item" };
|
|
17732
|
+
const _hoisted_3$e = /* @__PURE__ */ createElementVNode(
|
|
17664
17733
|
"svg",
|
|
17665
17734
|
{
|
|
17666
17735
|
fill: "none",
|
|
@@ -17679,7 +17748,7 @@ const _hoisted_3$d = /* @__PURE__ */ createElementVNode(
|
|
|
17679
17748
|
-1
|
|
17680
17749
|
/* HOISTED */
|
|
17681
17750
|
);
|
|
17682
|
-
var _sfc_main$
|
|
17751
|
+
var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
17683
17752
|
...{
|
|
17684
17753
|
name: "PlusDisplayItem"
|
|
17685
17754
|
},
|
|
@@ -18069,7 +18138,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
18069
18138
|
createElementVNode("span", {
|
|
18070
18139
|
class: "plus-display-item",
|
|
18071
18140
|
innerHTML: _ctx.column.renderHTML(displayValue.value, renderParams.value)
|
|
18072
|
-
}, null, 8, _hoisted_1$
|
|
18141
|
+
}, null, 8, _hoisted_1$p)
|
|
18073
18142
|
],
|
|
18074
18143
|
2112
|
|
18075
18144
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
@@ -18188,7 +18257,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
18188
18257
|
{ key: 5 },
|
|
18189
18258
|
[
|
|
18190
18259
|
createCommentVNode(" \u590D\u5236 "),
|
|
18191
|
-
createElementVNode("span", _hoisted_2$
|
|
18260
|
+
createElementVNode("span", _hoisted_2$h, [
|
|
18192
18261
|
createTextVNode(
|
|
18193
18262
|
toDisplayString(formatterValue.value) + " ",
|
|
18194
18263
|
1
|
|
@@ -18314,7 +18383,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
18314
18383
|
"pointer-events": "none"
|
|
18315
18384
|
}, {
|
|
18316
18385
|
default: withCtx(() => [
|
|
18317
|
-
_hoisted_3$
|
|
18386
|
+
_hoisted_3$e
|
|
18318
18387
|
]),
|
|
18319
18388
|
_: 1
|
|
18320
18389
|
/* STABLE */
|
|
@@ -18328,13 +18397,13 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
18328
18397
|
}
|
|
18329
18398
|
});
|
|
18330
18399
|
|
|
18331
|
-
var DisplayItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18400
|
+
var DisplayItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__file", "index.vue"]]);
|
|
18332
18401
|
|
|
18333
18402
|
const PlusDisplayItem = DisplayItem;
|
|
18334
18403
|
|
|
18335
|
-
const _hoisted_1$
|
|
18336
|
-
const _hoisted_2$
|
|
18337
|
-
var _sfc_main$
|
|
18404
|
+
const _hoisted_1$o = { class: "plus-table-column__header-text" };
|
|
18405
|
+
const _hoisted_2$g = { class: "plus-table-column__header-text" };
|
|
18406
|
+
var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
18338
18407
|
...{
|
|
18339
18408
|
name: "PlusTableColumn"
|
|
18340
18409
|
},
|
|
@@ -18468,7 +18537,7 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
18468
18537
|
default: withCtx(() => [
|
|
18469
18538
|
createElementVNode(
|
|
18470
18539
|
"span",
|
|
18471
|
-
_hoisted_1$
|
|
18540
|
+
_hoisted_1$o,
|
|
18472
18541
|
toDisplayString(unref(getLabel$1)(item.label)),
|
|
18473
18542
|
1
|
|
18474
18543
|
/* TEXT */
|
|
@@ -18483,7 +18552,7 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
18483
18552
|
createCommentVNode(" \u542F\u7528\u7701\u7565\u4F46\u7981\u7528 tooltip \u65F6 "),
|
|
18484
18553
|
createElementVNode(
|
|
18485
18554
|
"span",
|
|
18486
|
-
_hoisted_2$
|
|
18555
|
+
_hoisted_2$g,
|
|
18487
18556
|
toDisplayString(unref(getLabel$1)(item.label)),
|
|
18488
18557
|
1
|
|
18489
18558
|
/* TEXT */
|
|
@@ -18612,9 +18681,9 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
18612
18681
|
}
|
|
18613
18682
|
});
|
|
18614
18683
|
|
|
18615
|
-
var PlusTableColumn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18684
|
+
var PlusTableColumn = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__file", "table-column.vue"]]);
|
|
18616
18685
|
|
|
18617
|
-
var _sfc_main$
|
|
18686
|
+
var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
18618
18687
|
...{
|
|
18619
18688
|
name: "PlusTableTableColumnIndex"
|
|
18620
18689
|
},
|
|
@@ -18688,10 +18757,10 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
18688
18757
|
}
|
|
18689
18758
|
});
|
|
18690
18759
|
|
|
18691
|
-
var PlusTableTableColumnIndex = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18760
|
+
var PlusTableTableColumnIndex = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__file", "table-column-index.vue"]]);
|
|
18692
18761
|
|
|
18693
|
-
const _hoisted_1$
|
|
18694
|
-
var _sfc_main$
|
|
18762
|
+
const _hoisted_1$n = { class: "plus-table-column-drag-icon" };
|
|
18763
|
+
var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
18695
18764
|
...{
|
|
18696
18765
|
name: "PlusTableColumnDragSort"
|
|
18697
18766
|
},
|
|
@@ -18742,7 +18811,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
18742
18811
|
"class-name": "plus-table-column-drag-sort"
|
|
18743
18812
|
}, _ctx.dragSortableTableColumnProps), {
|
|
18744
18813
|
default: withCtx(() => [
|
|
18745
|
-
createElementVNode("span", _hoisted_1$
|
|
18814
|
+
createElementVNode("span", _hoisted_1$n, [
|
|
18746
18815
|
renderSlot(_ctx.$slots, "drag-sort-icon", {}, () => [
|
|
18747
18816
|
createTextVNode("\u2637")
|
|
18748
18817
|
])
|
|
@@ -18755,13 +18824,13 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
18755
18824
|
}
|
|
18756
18825
|
});
|
|
18757
18826
|
|
|
18758
|
-
var PlusTableColumnDragSort = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18827
|
+
var PlusTableColumnDragSort = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__file", "table-column-drag-sort.vue"]]);
|
|
18759
18828
|
|
|
18760
|
-
const _hoisted_1$
|
|
18829
|
+
const _hoisted_1$m = {
|
|
18761
18830
|
key: 0,
|
|
18762
18831
|
style: { "padding-top": "12px" }
|
|
18763
18832
|
};
|
|
18764
|
-
var _sfc_main$
|
|
18833
|
+
var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
18765
18834
|
...{
|
|
18766
18835
|
name: "PlusPopover"
|
|
18767
18836
|
},
|
|
@@ -18820,7 +18889,7 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
18820
18889
|
]),
|
|
18821
18890
|
default: withCtx(() => [
|
|
18822
18891
|
renderSlot(_ctx.$slots, "default"),
|
|
18823
|
-
_ctx.hasShowBottomButton ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
18892
|
+
_ctx.hasShowBottomButton ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
18824
18893
|
createVNode(unref(ElButton), {
|
|
18825
18894
|
size: "small",
|
|
18826
18895
|
plain: "",
|
|
@@ -18861,16 +18930,16 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
18861
18930
|
}
|
|
18862
18931
|
});
|
|
18863
18932
|
|
|
18864
|
-
var Popover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18933
|
+
var Popover = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__file", "index.vue"]]);
|
|
18865
18934
|
|
|
18866
18935
|
const PlusPopover = Popover;
|
|
18867
18936
|
|
|
18868
18937
|
const _withScopeId$4 = (n) => (pushScopeId("data-v-d1506155"), n = n(), popScopeId(), n);
|
|
18869
|
-
const _hoisted_1$
|
|
18870
|
-
const _hoisted_2$
|
|
18871
|
-
const _hoisted_3$
|
|
18872
|
-
const _hoisted_4$
|
|
18873
|
-
const _hoisted_5$
|
|
18938
|
+
const _hoisted_1$l = { class: "plus-table-title-bar" };
|
|
18939
|
+
const _hoisted_2$f = { class: "plus-table-title-bar__title" };
|
|
18940
|
+
const _hoisted_3$d = { class: "plus-table-title-bar__toolbar" };
|
|
18941
|
+
const _hoisted_4$b = { class: "plus-table-title-bar__toolbar__density" };
|
|
18942
|
+
const _hoisted_5$a = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode(
|
|
18874
18943
|
"svg",
|
|
18875
18944
|
{
|
|
18876
18945
|
viewBox: "0 0 1024 1024",
|
|
@@ -18885,15 +18954,15 @@ const _hoisted_5$9 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ create
|
|
|
18885
18954
|
-1
|
|
18886
18955
|
/* HOISTED */
|
|
18887
18956
|
));
|
|
18888
|
-
const _hoisted_6$
|
|
18889
|
-
const _hoisted_7$
|
|
18890
|
-
const _hoisted_8$
|
|
18957
|
+
const _hoisted_6$8 = { class: "plus-table-checkbox-checkAll" };
|
|
18958
|
+
const _hoisted_7$6 = { class: "plus-table-checkbox-actions" };
|
|
18959
|
+
const _hoisted_8$5 = {
|
|
18891
18960
|
key: 0,
|
|
18892
18961
|
class: "plus-table-checkbox-handle"
|
|
18893
18962
|
};
|
|
18894
|
-
const _hoisted_9$
|
|
18895
|
-
const _hoisted_10$
|
|
18896
|
-
var _sfc_main$
|
|
18963
|
+
const _hoisted_9$5 = { key: 1 };
|
|
18964
|
+
const _hoisted_10$4 = { key: 1 };
|
|
18965
|
+
var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
18897
18966
|
...{
|
|
18898
18967
|
name: "PlusTableToolbar"
|
|
18899
18968
|
},
|
|
@@ -19062,8 +19131,8 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
19062
19131
|
});
|
|
19063
19132
|
return (_ctx, _cache) => {
|
|
19064
19133
|
var _a, _b, _c;
|
|
19065
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19066
|
-
createElementVNode("div", _hoisted_2$
|
|
19134
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
19135
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
19067
19136
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
19068
19137
|
createTextVNode(
|
|
19069
19138
|
toDisplayString(titleBarConfig.value.title),
|
|
@@ -19072,7 +19141,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
19072
19141
|
)
|
|
19073
19142
|
], true)
|
|
19074
19143
|
]),
|
|
19075
|
-
createElementVNode("div", _hoisted_3$
|
|
19144
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
19076
19145
|
renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
|
|
19077
19146
|
((_a = titleBarConfig.value) == null ? void 0 : _a.refresh) === true ? (openBlock(), createElementBlock("span", {
|
|
19078
19147
|
key: 0,
|
|
@@ -19125,7 +19194,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
19125
19194
|
class: "plus-table-title-bar__toolbar__icon"
|
|
19126
19195
|
}, {
|
|
19127
19196
|
default: withCtx(() => [
|
|
19128
|
-
_hoisted_5$
|
|
19197
|
+
_hoisted_5$a
|
|
19129
19198
|
]),
|
|
19130
19199
|
_: 1
|
|
19131
19200
|
/* STABLE */
|
|
@@ -19137,7 +19206,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
19137
19206
|
}, 8, ["content"])
|
|
19138
19207
|
]),
|
|
19139
19208
|
default: withCtx(() => [
|
|
19140
|
-
createElementVNode("div", _hoisted_4$
|
|
19209
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
19141
19210
|
(openBlock(), createElementBlock(
|
|
19142
19211
|
Fragment,
|
|
19143
19212
|
null,
|
|
@@ -19204,7 +19273,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
19204
19273
|
default: withCtx(() => {
|
|
19205
19274
|
var _a2, _b2, _c2, _d;
|
|
19206
19275
|
return [
|
|
19207
|
-
createElementVNode("div", _hoisted_6$
|
|
19276
|
+
createElementVNode("div", _hoisted_6$8, [
|
|
19208
19277
|
createVNode(unref(ElCheckbox), {
|
|
19209
19278
|
modelValue: state.checkAll,
|
|
19210
19279
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.checkAll = $event),
|
|
@@ -19221,7 +19290,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
19221
19290
|
_: 1
|
|
19222
19291
|
/* STABLE */
|
|
19223
19292
|
}, 8, ["modelValue", "indeterminate"]),
|
|
19224
|
-
createElementVNode("div", _hoisted_7$
|
|
19293
|
+
createElementVNode("div", _hoisted_7$6, [
|
|
19225
19294
|
((_a2 = columnSetting.value) == null ? void 0 : _a2.confirm) ? (openBlock(), createBlock(unref(ElLink), {
|
|
19226
19295
|
key: 0,
|
|
19227
19296
|
type: "primary",
|
|
@@ -19282,7 +19351,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
19282
19351
|
key: item.prop,
|
|
19283
19352
|
class: "plus-table-checkbox-item"
|
|
19284
19353
|
}, [
|
|
19285
|
-
((_a3 = columnSetting.value) == null ? void 0 : _a3.dragSort) !== false ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
19354
|
+
((_a3 = columnSetting.value) == null ? void 0 : _a3.dragSort) !== false ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
19286
19355
|
renderSlot(_ctx.$slots, "drag-sort-icon", {}, () => [
|
|
19287
19356
|
createTextVNode("\u2637")
|
|
19288
19357
|
], true)
|
|
@@ -19311,7 +19380,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
19311
19380
|
/* DYNAMIC */
|
|
19312
19381
|
}, 1032, ["content"])) : (openBlock(), createElementBlock(
|
|
19313
19382
|
"span",
|
|
19314
|
-
_hoisted_9$
|
|
19383
|
+
_hoisted_9$5,
|
|
19315
19384
|
toDisplayString(item.label ? getLabelValue(item.label) : ""),
|
|
19316
19385
|
1
|
|
19317
19386
|
/* TEXT */
|
|
@@ -19346,7 +19415,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
19346
19415
|
/* DYNAMIC */
|
|
19347
19416
|
}, 1032, ["content"])) : (openBlock(), createElementBlock(
|
|
19348
19417
|
"span",
|
|
19349
|
-
_hoisted_10$
|
|
19418
|
+
_hoisted_10$4,
|
|
19350
19419
|
toDisplayString(item.label ? getLabelValue(item.label) : ""),
|
|
19351
19420
|
1
|
|
19352
19421
|
/* TEXT */
|
|
@@ -19383,7 +19452,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
19383
19452
|
}
|
|
19384
19453
|
});
|
|
19385
19454
|
|
|
19386
|
-
var PlusTableTitleBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19455
|
+
var PlusTableTitleBar = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-d1506155"], ["__file", "table-title-bar.vue"]]);
|
|
19387
19456
|
|
|
19388
19457
|
const TABLE_DENSITY_STORAGE_KEY = "yc-table-density";
|
|
19389
19458
|
const VALID_TABLE_DENSITY = ["default", "large", "small"];
|
|
@@ -19406,8 +19475,8 @@ const applyTableDensity = (nextSize) => {
|
|
|
19406
19475
|
}
|
|
19407
19476
|
};
|
|
19408
19477
|
|
|
19409
|
-
const _hoisted_1$
|
|
19410
|
-
var _sfc_main$
|
|
19478
|
+
const _hoisted_1$k = { class: "plus-table-expand-col" };
|
|
19479
|
+
var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
19411
19480
|
...{
|
|
19412
19481
|
name: "PlusTable",
|
|
19413
19482
|
inheritAttrs: false
|
|
@@ -19799,7 +19868,7 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
19799
19868
|
}, _ctx.expandTableColumnProps),
|
|
19800
19869
|
{
|
|
19801
19870
|
default: withCtx((scoped) => [
|
|
19802
|
-
createElementVNode("div", _hoisted_1$
|
|
19871
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
19803
19872
|
renderSlot(_ctx.$slots, "expand", mergeProps({
|
|
19804
19873
|
index: scoped.$index
|
|
19805
19874
|
}, scoped))
|
|
@@ -19913,11 +19982,11 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
19913
19982
|
}
|
|
19914
19983
|
});
|
|
19915
19984
|
|
|
19916
|
-
var _Table = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19985
|
+
var _Table = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__file", "index.vue"]]);
|
|
19917
19986
|
|
|
19918
19987
|
const PlusTable = _Table;
|
|
19919
19988
|
|
|
19920
|
-
var _sfc_main$
|
|
19989
|
+
var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
19921
19990
|
...{
|
|
19922
19991
|
name: "PlusDescriptions"
|
|
19923
19992
|
},
|
|
@@ -20125,7 +20194,7 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
20125
20194
|
}
|
|
20126
20195
|
});
|
|
20127
20196
|
|
|
20128
|
-
var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20197
|
+
var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__file", "index.vue"]]);
|
|
20129
20198
|
|
|
20130
20199
|
const PlusDescriptions = Descriptions;
|
|
20131
20200
|
|
|
@@ -29396,7 +29465,7 @@ const DEFAULT_YC_CONFIG = {
|
|
|
29396
29465
|
}
|
|
29397
29466
|
};
|
|
29398
29467
|
|
|
29399
|
-
var _sfc_main$
|
|
29468
|
+
var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
29400
29469
|
...{
|
|
29401
29470
|
name: "YcConfigProvider"
|
|
29402
29471
|
},
|
|
@@ -29446,7 +29515,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
29446
29515
|
}
|
|
29447
29516
|
});
|
|
29448
29517
|
|
|
29449
|
-
var ConfigProvider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
29518
|
+
var ConfigProvider = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__file", "index.vue"]]);
|
|
29450
29519
|
|
|
29451
29520
|
function useYcConfig() {
|
|
29452
29521
|
const config = inject(YC_CONFIG_KEY, DEFAULT_YC_CONFIG);
|
|
@@ -29498,7 +29567,7 @@ function useYcComponentConfig(componentName) {
|
|
|
29498
29567
|
|
|
29499
29568
|
const YcConfigProvider = l(ConfigProvider);
|
|
29500
29569
|
|
|
29501
|
-
var _sfc_main$
|
|
29570
|
+
var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
29502
29571
|
...{
|
|
29503
29572
|
name: "PlusSearch"
|
|
29504
29573
|
},
|
|
@@ -29644,6 +29713,7 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
29644
29713
|
handleUnfold,
|
|
29645
29714
|
searchLoading: _ctx.searchLoading
|
|
29646
29715
|
}, () => [
|
|
29716
|
+
renderSlot(_ctx.$slots, "search-actions-after"),
|
|
29647
29717
|
createCommentVNode(' :icon="computedResetIcon" '),
|
|
29648
29718
|
_ctx.hasReset ? (openBlock(), createBlock(unref(ElButton), {
|
|
29649
29719
|
key: 0,
|
|
@@ -29722,11 +29792,11 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
29722
29792
|
}
|
|
29723
29793
|
});
|
|
29724
29794
|
|
|
29725
|
-
var Search = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
29795
|
+
var Search = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__file", "index.vue"]]);
|
|
29726
29796
|
|
|
29727
29797
|
const PlusSearch = Search;
|
|
29728
29798
|
|
|
29729
|
-
var _sfc_main$
|
|
29799
|
+
var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
29730
29800
|
...{
|
|
29731
29801
|
name: "PlusDialogForm"
|
|
29732
29802
|
},
|
|
@@ -29888,12 +29958,12 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
29888
29958
|
}
|
|
29889
29959
|
});
|
|
29890
29960
|
|
|
29891
|
-
var DialogForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
29961
|
+
var DialogForm = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__file", "index.vue"]]);
|
|
29892
29962
|
|
|
29893
29963
|
const PlusDialogForm = DialogForm;
|
|
29894
29964
|
|
|
29895
|
-
const _hoisted_1$
|
|
29896
|
-
var _sfc_main$
|
|
29965
|
+
const _hoisted_1$j = { class: "plus-drawer-form__footer" };
|
|
29966
|
+
var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
29897
29967
|
...{
|
|
29898
29968
|
name: "PlusDrawerForm"
|
|
29899
29969
|
},
|
|
@@ -30048,7 +30118,7 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
30048
30118
|
_ctx.hasFooter ? {
|
|
30049
30119
|
name: "footer",
|
|
30050
30120
|
fn: withCtx(() => [
|
|
30051
|
-
createElementVNode("div", _hoisted_1$
|
|
30121
|
+
createElementVNode("div", _hoisted_1$j, [
|
|
30052
30122
|
renderSlot(_ctx.$slots, "drawer-footer", normalizeProps(guardReactiveProps({ handleConfirm, handleCancel })), () => [
|
|
30053
30123
|
createVNode(unref(ElButton), { onClick: handleCancel }, {
|
|
30054
30124
|
default: withCtx(() => [
|
|
@@ -30086,7 +30156,7 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
30086
30156
|
}
|
|
30087
30157
|
});
|
|
30088
30158
|
|
|
30089
|
-
var DrawerForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30159
|
+
var DrawerForm = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__file", "index.vue"]]);
|
|
30090
30160
|
|
|
30091
30161
|
const PlusDrawerForm = DrawerForm;
|
|
30092
30162
|
|
|
@@ -30668,17 +30738,17 @@ function useVirtualScroll(options = {}) {
|
|
|
30668
30738
|
};
|
|
30669
30739
|
}
|
|
30670
30740
|
|
|
30671
|
-
const _hoisted_1$
|
|
30741
|
+
const _hoisted_1$i = {
|
|
30672
30742
|
key: 0,
|
|
30673
30743
|
class: "plus-virtual-table__title-bar"
|
|
30674
30744
|
};
|
|
30675
|
-
const _hoisted_2$
|
|
30676
|
-
const _hoisted_3$
|
|
30745
|
+
const _hoisted_2$e = { class: "plus-virtual-table__title-bar__left" };
|
|
30746
|
+
const _hoisted_3$c = {
|
|
30677
30747
|
key: 0,
|
|
30678
30748
|
class: "plus-virtual-table__title-bar__text"
|
|
30679
30749
|
};
|
|
30680
|
-
const _hoisted_4$
|
|
30681
|
-
var _sfc_main$
|
|
30750
|
+
const _hoisted_4$a = { class: "plus-virtual-table__title-bar__right" };
|
|
30751
|
+
var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
30682
30752
|
...{
|
|
30683
30753
|
name: "PlusVirtualTable",
|
|
30684
30754
|
inheritAttrs: false
|
|
@@ -30861,19 +30931,19 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
30861
30931
|
},
|
|
30862
30932
|
[
|
|
30863
30933
|
createCommentVNode(" \u6807\u9898\u680F\uFF08\u7B80\u5316\u7248\uFF09 "),
|
|
30864
|
-
showTitleBar.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30865
|
-
createElementVNode("div", _hoisted_2$
|
|
30934
|
+
showTitleBar.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
30935
|
+
createElementVNode("div", _hoisted_2$e, [
|
|
30866
30936
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
30867
30937
|
titleBarConfig.value.title ? (openBlock(), createElementBlock(
|
|
30868
30938
|
"span",
|
|
30869
|
-
_hoisted_3$
|
|
30939
|
+
_hoisted_3$c,
|
|
30870
30940
|
toDisplayString(titleBarConfig.value.title),
|
|
30871
30941
|
1
|
|
30872
30942
|
/* TEXT */
|
|
30873
30943
|
)) : createCommentVNode("v-if", true)
|
|
30874
30944
|
])
|
|
30875
30945
|
]),
|
|
30876
|
-
createElementVNode("div", _hoisted_4$
|
|
30946
|
+
createElementVNode("div", _hoisted_4$a, [
|
|
30877
30947
|
renderSlot(_ctx.$slots, "toolbar"),
|
|
30878
30948
|
titleBarConfig.value.refresh ? (openBlock(), createBlock(unref(ElIcon), {
|
|
30879
30949
|
key: 0,
|
|
@@ -30985,12 +31055,12 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
30985
31055
|
}
|
|
30986
31056
|
});
|
|
30987
31057
|
|
|
30988
|
-
var _VirtualTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31058
|
+
var _VirtualTable = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__file", "index.vue"]]);
|
|
30989
31059
|
|
|
30990
31060
|
const PlusVirtualTable = _VirtualTable;
|
|
30991
31061
|
|
|
30992
|
-
const _hoisted_1$
|
|
30993
|
-
var _sfc_main$
|
|
31062
|
+
const _hoisted_1$h = { class: "plus-page" };
|
|
31063
|
+
var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
30994
31064
|
...{
|
|
30995
31065
|
name: "PlusPage"
|
|
30996
31066
|
},
|
|
@@ -31051,14 +31121,19 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
31051
31121
|
const plusSearchInstance = ref(null);
|
|
31052
31122
|
const plusTableInstance = ref(null);
|
|
31053
31123
|
const plusVirtualTableInstance = ref(null);
|
|
31054
|
-
const
|
|
31124
|
+
const defaultSearchValues = {
|
|
31125
|
+
...(_a = props.search) == null ? void 0 : _a.defaultValues
|
|
31126
|
+
};
|
|
31127
|
+
const searchFormValues = ref({ ...defaultSearchValues });
|
|
31128
|
+
const submittedSearchValues = ref({ ...defaultSearchValues });
|
|
31055
31129
|
const isVirtualMode = computed(() => {
|
|
31056
31130
|
var _a2;
|
|
31057
31131
|
return !!((_a2 = props.table) == null ? void 0 : _a2.useVirtual);
|
|
31058
31132
|
});
|
|
31059
31133
|
const virtualTableProps = computed(() => {
|
|
31060
31134
|
if (!isVirtualMode.value) return {};
|
|
31061
|
-
const
|
|
31135
|
+
const rest = { ...props.table || {} };
|
|
31136
|
+
delete rest.useVirtual;
|
|
31062
31137
|
return rest;
|
|
31063
31138
|
});
|
|
31064
31139
|
const virtualColumns = computed(() => {
|
|
@@ -31094,7 +31169,7 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
31094
31169
|
try {
|
|
31095
31170
|
loadingStatus.value = true;
|
|
31096
31171
|
const payload = {
|
|
31097
|
-
...
|
|
31172
|
+
...submittedSearchValues.value,
|
|
31098
31173
|
// eslint-disabled no-useless-spread
|
|
31099
31174
|
...{
|
|
31100
31175
|
[((_a2 = props.pageInfoMap) == null ? void 0 : _a2.page) || "page"]: pageInfo.value.page,
|
|
@@ -31122,16 +31197,18 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
31122
31197
|
};
|
|
31123
31198
|
const handleSearch = (val) => {
|
|
31124
31199
|
const data = props.beforeSearchSubmit && props.beforeSearchSubmit(val) || val;
|
|
31125
|
-
|
|
31200
|
+
searchFormValues.value = data;
|
|
31201
|
+
submittedSearchValues.value = { ...data };
|
|
31126
31202
|
pageInfo.value.page = 1;
|
|
31127
31203
|
getList();
|
|
31128
|
-
emit("search",
|
|
31204
|
+
emit("search", submittedSearchValues.value);
|
|
31129
31205
|
};
|
|
31130
31206
|
const handleReset = (val) => {
|
|
31131
|
-
|
|
31207
|
+
searchFormValues.value = { ...val };
|
|
31208
|
+
submittedSearchValues.value = { ...val };
|
|
31132
31209
|
pageInfo.value.page = 1;
|
|
31133
31210
|
getList();
|
|
31134
|
-
emit("reset",
|
|
31211
|
+
emit("reset", submittedSearchValues.value);
|
|
31135
31212
|
};
|
|
31136
31213
|
const handleRefresh = () => {
|
|
31137
31214
|
getList();
|
|
@@ -31139,19 +31216,22 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
31139
31216
|
const setSearchFieldsValue = (val) => {
|
|
31140
31217
|
if (isPlainObject$1(val)) {
|
|
31141
31218
|
Object.keys(val).forEach((key) => {
|
|
31142
|
-
Reflect.set(
|
|
31219
|
+
Reflect.set(searchFormValues.value, key, val[key]);
|
|
31143
31220
|
});
|
|
31144
31221
|
}
|
|
31145
31222
|
};
|
|
31223
|
+
const replaceSearchFormValues = (val) => {
|
|
31224
|
+
searchFormValues.value = isPlainObject$1(val) ? { ...val } : {};
|
|
31225
|
+
};
|
|
31146
31226
|
const getSearchFieldsValue = (key) => {
|
|
31147
31227
|
if (key !== void 0 && key !== null) {
|
|
31148
|
-
return Reflect.get(
|
|
31228
|
+
return Reflect.get(searchFormValues.value, key);
|
|
31149
31229
|
} else {
|
|
31150
|
-
return { ...
|
|
31230
|
+
return { ...searchFormValues.value };
|
|
31151
31231
|
}
|
|
31152
31232
|
};
|
|
31153
31233
|
const clearSearchFieldsValue = () => {
|
|
31154
|
-
|
|
31234
|
+
searchFormValues.value = {};
|
|
31155
31235
|
};
|
|
31156
31236
|
const setTableData = (data, _total) => {
|
|
31157
31237
|
tableData.value = data || [];
|
|
@@ -31168,6 +31248,7 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
31168
31248
|
*/
|
|
31169
31249
|
handleRest: handleReset,
|
|
31170
31250
|
setSearchFieldsValue,
|
|
31251
|
+
replaceSearchFormValues,
|
|
31171
31252
|
getSearchFieldsValue,
|
|
31172
31253
|
clearSearchFieldsValue,
|
|
31173
31254
|
/**
|
|
@@ -31176,15 +31257,15 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
31176
31257
|
setTableData
|
|
31177
31258
|
});
|
|
31178
31259
|
return (_ctx, _cache) => {
|
|
31179
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31260
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
31180
31261
|
_ctx.search ? (openBlock(), createBlock(resolveDynamicComponent(renderWrapper().search), { key: 0 }, {
|
|
31181
31262
|
default: withCtx(() => [
|
|
31182
31263
|
createVNode(unref(PlusSearch), mergeProps({
|
|
31183
31264
|
ref_key: "plusSearchInstance",
|
|
31184
31265
|
ref: plusSearchInstance
|
|
31185
31266
|
}, _ctx.search, {
|
|
31186
|
-
modelValue:
|
|
31187
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
31267
|
+
modelValue: searchFormValues.value,
|
|
31268
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchFormValues.value = $event),
|
|
31188
31269
|
columns: _ctx.columns,
|
|
31189
31270
|
"search-loading": unref(loadingStatus),
|
|
31190
31271
|
onSearch: handleSearch,
|
|
@@ -31200,6 +31281,13 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
31200
31281
|
]),
|
|
31201
31282
|
key: "0"
|
|
31202
31283
|
} : void 0,
|
|
31284
|
+
_ctx.$slots["search-actions-after"] ? {
|
|
31285
|
+
name: "search-actions-after",
|
|
31286
|
+
fn: withCtx(() => [
|
|
31287
|
+
renderSlot(_ctx.$slots, "search-actions-after")
|
|
31288
|
+
]),
|
|
31289
|
+
key: "1"
|
|
31290
|
+
} : void 0,
|
|
31203
31291
|
renderList(searchSlots.value, (_, key) => {
|
|
31204
31292
|
return {
|
|
31205
31293
|
name: key,
|
|
@@ -31359,11 +31447,11 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
31359
31447
|
}
|
|
31360
31448
|
});
|
|
31361
31449
|
|
|
31362
|
-
var Page = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31450
|
+
var Page = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__file", "index.vue"]]);
|
|
31363
31451
|
|
|
31364
31452
|
const PlusPage = Page;
|
|
31365
31453
|
|
|
31366
|
-
var _sfc_main$
|
|
31454
|
+
var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
31367
31455
|
...{
|
|
31368
31456
|
name: "PlusStepsForm"
|
|
31369
31457
|
},
|
|
@@ -31504,11 +31592,11 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
31504
31592
|
}
|
|
31505
31593
|
});
|
|
31506
31594
|
|
|
31507
|
-
var StepsForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31595
|
+
var StepsForm = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__file", "index.vue"]]);
|
|
31508
31596
|
|
|
31509
31597
|
const PlusStepsForm = StepsForm;
|
|
31510
31598
|
|
|
31511
|
-
var _sfc_main$
|
|
31599
|
+
var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
31512
31600
|
...{
|
|
31513
31601
|
name: "PlusBreadcrumb"
|
|
31514
31602
|
},
|
|
@@ -31598,13 +31686,13 @@ var _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
31598
31686
|
}
|
|
31599
31687
|
});
|
|
31600
31688
|
|
|
31601
|
-
var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31689
|
+
var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__file", "index.vue"]]);
|
|
31602
31690
|
|
|
31603
31691
|
const PlusBreadcrumb = Breadcrumb;
|
|
31604
31692
|
|
|
31605
|
-
const _hoisted_1$
|
|
31606
|
-
const _hoisted_2$
|
|
31607
|
-
var _sfc_main$
|
|
31693
|
+
const _hoisted_1$g = { class: "plus-sidebar__item-title" };
|
|
31694
|
+
const _hoisted_2$d = { class: "plus-sidebar__item-title" };
|
|
31695
|
+
var _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
31608
31696
|
...{
|
|
31609
31697
|
name: "PlusSidebarItem",
|
|
31610
31698
|
inheritAttrs: false
|
|
@@ -31669,7 +31757,7 @@ var _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
31669
31757
|
title: withCtx(() => {
|
|
31670
31758
|
var _a2;
|
|
31671
31759
|
return [
|
|
31672
|
-
createElementVNode("span", _hoisted_1$
|
|
31760
|
+
createElementVNode("span", _hoisted_1$g, [
|
|
31673
31761
|
_ctx.renderTitle && unref(isFunction)(_ctx.renderTitle) ? (openBlock(), createBlock(
|
|
31674
31762
|
resolveDynamicComponent(_ctx.renderTitle),
|
|
31675
31763
|
normalizeProps(mergeProps({ key: 0 }, unref(removeChildrenField)(_ctx.item))),
|
|
@@ -31784,7 +31872,7 @@ var _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
31784
31872
|
_: 1
|
|
31785
31873
|
/* STABLE */
|
|
31786
31874
|
})) : createCommentVNode("v-if", true),
|
|
31787
|
-
createElementVNode("span", _hoisted_2$
|
|
31875
|
+
createElementVNode("span", _hoisted_2$d, [
|
|
31788
31876
|
_ctx.renderTitle && unref(isFunction)(_ctx.renderTitle) ? (openBlock(), createBlock(
|
|
31789
31877
|
resolveDynamicComponent(_ctx.renderTitle),
|
|
31790
31878
|
normalizeProps(mergeProps({ key: 0 }, unref(removeChildrenField)(_ctx.item))),
|
|
@@ -31876,9 +31964,9 @@ var _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
31876
31964
|
}
|
|
31877
31965
|
});
|
|
31878
31966
|
|
|
31879
|
-
var SidebarItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31967
|
+
var SidebarItem = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__file", "sidebar-item.vue"]]);
|
|
31880
31968
|
|
|
31881
|
-
var _sfc_main$
|
|
31969
|
+
var _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
31882
31970
|
...{
|
|
31883
31971
|
name: "PlusSidebar"
|
|
31884
31972
|
},
|
|
@@ -32044,33 +32132,33 @@ var _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
32044
32132
|
}
|
|
32045
32133
|
});
|
|
32046
32134
|
|
|
32047
|
-
var Sidebar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32135
|
+
var Sidebar = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__file", "index.vue"]]);
|
|
32048
32136
|
|
|
32049
32137
|
const PlusSidebar = Sidebar;
|
|
32050
32138
|
const PlusSidebarItem = SidebarItem;
|
|
32051
32139
|
|
|
32052
|
-
const _hoisted_1$
|
|
32053
|
-
const _hoisted_2$
|
|
32054
|
-
const _hoisted_3$
|
|
32140
|
+
const _hoisted_1$f = { class: "plus-header__left" };
|
|
32141
|
+
const _hoisted_2$c = ["src"];
|
|
32142
|
+
const _hoisted_3$b = {
|
|
32055
32143
|
key: 1,
|
|
32056
32144
|
class: "plus-header__title"
|
|
32057
32145
|
};
|
|
32058
|
-
const _hoisted_4$
|
|
32146
|
+
const _hoisted_4$9 = /* @__PURE__ */ createElementVNode(
|
|
32059
32147
|
"div",
|
|
32060
32148
|
{ class: "plus-header__placeholder" },
|
|
32061
32149
|
null,
|
|
32062
32150
|
-1
|
|
32063
32151
|
/* HOISTED */
|
|
32064
32152
|
);
|
|
32065
|
-
const _hoisted_5$
|
|
32066
|
-
const _hoisted_6$
|
|
32067
|
-
const _hoisted_7$
|
|
32068
|
-
const _hoisted_8$
|
|
32069
|
-
const _hoisted_9$
|
|
32153
|
+
const _hoisted_5$9 = { class: "plus-header__right" };
|
|
32154
|
+
const _hoisted_6$7 = { class: "plus-header__dropdown-area" };
|
|
32155
|
+
const _hoisted_7$5 = ["src"];
|
|
32156
|
+
const _hoisted_8$4 = { class: "plus-header__username" };
|
|
32157
|
+
const _hoisted_9$4 = {
|
|
32070
32158
|
key: 0,
|
|
32071
32159
|
class: "plus-header-placeholder"
|
|
32072
32160
|
};
|
|
32073
|
-
var _sfc_main$
|
|
32161
|
+
var _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
32074
32162
|
...{
|
|
32075
32163
|
name: "PlusHeader"
|
|
32076
32164
|
},
|
|
@@ -32108,7 +32196,7 @@ var _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
32108
32196
|
class: normalizeClass(["plus-header", { "is-fixed": _ctx.fixed }])
|
|
32109
32197
|
}, {
|
|
32110
32198
|
default: withCtx(() => [
|
|
32111
|
-
createElementVNode("div", _hoisted_1$
|
|
32199
|
+
createElementVNode("div", _hoisted_1$f, [
|
|
32112
32200
|
_ctx.renderHeaderLeft && unref(isFunction)(_ctx.renderHeaderLeft) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderHeaderLeft), {
|
|
32113
32201
|
key: 0,
|
|
32114
32202
|
logo: _ctx.logo,
|
|
@@ -32126,10 +32214,10 @@ var _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
32126
32214
|
src: _ctx.logo,
|
|
32127
32215
|
alt: "",
|
|
32128
32216
|
class: "plus-header__logo"
|
|
32129
|
-
}, null, 8, _hoisted_2$
|
|
32217
|
+
}, null, 8, _hoisted_2$c)) : createCommentVNode("v-if", true),
|
|
32130
32218
|
_ctx.title ? (openBlock(), createElementBlock(
|
|
32131
32219
|
"h2",
|
|
32132
|
-
_hoisted_3$
|
|
32220
|
+
_hoisted_3$b,
|
|
32133
32221
|
toDisplayString(_ctx.title),
|
|
32134
32222
|
1
|
|
32135
32223
|
/* TEXT */
|
|
@@ -32139,8 +32227,8 @@ var _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
32139
32227
|
/* STABLE_FRAGMENT */
|
|
32140
32228
|
))
|
|
32141
32229
|
]),
|
|
32142
|
-
_hoisted_4$
|
|
32143
|
-
createElementVNode("div", _hoisted_5$
|
|
32230
|
+
_hoisted_4$9,
|
|
32231
|
+
createElementVNode("div", _hoisted_5$9, [
|
|
32144
32232
|
_ctx.renderHeaderRight && unref(isFunction)(_ctx.renderHeaderRight) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderHeaderRight), {
|
|
32145
32233
|
key: 0,
|
|
32146
32234
|
"user-info": _ctx.userInfo,
|
|
@@ -32199,14 +32287,14 @@ var _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
32199
32287
|
})
|
|
32200
32288
|
]),
|
|
32201
32289
|
default: withCtx(() => [
|
|
32202
|
-
createElementVNode("span", _hoisted_6$
|
|
32290
|
+
createElementVNode("span", _hoisted_6$7, [
|
|
32203
32291
|
createCommentVNode(" avatar "),
|
|
32204
32292
|
_ctx.userInfo.avatar ? (openBlock(), createElementBlock("img", {
|
|
32205
32293
|
key: 0,
|
|
32206
32294
|
src: _ctx.userInfo.avatar,
|
|
32207
32295
|
alt: "",
|
|
32208
32296
|
class: "plus-header__avatar"
|
|
32209
|
-
}, null, 8, _hoisted_7$
|
|
32297
|
+
}, null, 8, _hoisted_7$5)) : (openBlock(), createBlock(unref(ElIcon), {
|
|
32210
32298
|
key: 1,
|
|
32211
32299
|
size: 20,
|
|
32212
32300
|
class: "plus-header__avatar"
|
|
@@ -32220,7 +32308,7 @@ var _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
32220
32308
|
createCommentVNode(" username "),
|
|
32221
32309
|
createElementVNode(
|
|
32222
32310
|
"p",
|
|
32223
|
-
_hoisted_8$
|
|
32311
|
+
_hoisted_8$4,
|
|
32224
32312
|
toDisplayString(_ctx.userInfo.username || "admin"),
|
|
32225
32313
|
1
|
|
32226
32314
|
/* TEXT */
|
|
@@ -32242,7 +32330,7 @@ var _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
32242
32330
|
_: 3
|
|
32243
32331
|
/* FORWARDED */
|
|
32244
32332
|
}, 8, ["class"]),
|
|
32245
|
-
_ctx.fixed ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
32333
|
+
_ctx.fixed ? (openBlock(), createElementBlock("div", _hoisted_9$4)) : createCommentVNode("v-if", true)
|
|
32246
32334
|
],
|
|
32247
32335
|
64
|
|
32248
32336
|
/* STABLE_FRAGMENT */
|
|
@@ -32251,16 +32339,16 @@ var _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
32251
32339
|
}
|
|
32252
32340
|
});
|
|
32253
32341
|
|
|
32254
|
-
var Header = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32342
|
+
var Header = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__file", "index.vue"]]);
|
|
32255
32343
|
|
|
32256
32344
|
const PlusHeader = Header;
|
|
32257
32345
|
|
|
32258
|
-
const _hoisted_1$
|
|
32259
|
-
const _hoisted_2$
|
|
32346
|
+
const _hoisted_1$e = { class: "plus-layout-main" };
|
|
32347
|
+
const _hoisted_2$b = {
|
|
32260
32348
|
key: 0,
|
|
32261
32349
|
class: "plus-layout-extra"
|
|
32262
32350
|
};
|
|
32263
|
-
var _sfc_main$
|
|
32351
|
+
var _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
32264
32352
|
...{
|
|
32265
32353
|
name: "PlusLayout"
|
|
32266
32354
|
},
|
|
@@ -32379,9 +32467,9 @@ var _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
32379
32467
|
} : void 0
|
|
32380
32468
|
]), 1040, ["collapse"])) : createCommentVNode("v-if", true),
|
|
32381
32469
|
createCommentVNode(" \u4E3B\u5185\u5BB9 "),
|
|
32382
|
-
createElementVNode("main", _hoisted_1$
|
|
32470
|
+
createElementVNode("main", _hoisted_1$e, [
|
|
32383
32471
|
createCommentVNode(" \u9762\u5305\u5C51\u4E0A\u65B9 "),
|
|
32384
|
-
_ctx.$slots["layout-extra"] ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
32472
|
+
_ctx.$slots["layout-extra"] ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
|
|
32385
32473
|
renderSlot(_ctx.$slots, "layout-extra")
|
|
32386
32474
|
])) : createCommentVNode("v-if", true),
|
|
32387
32475
|
createCommentVNode(" \u9762\u5305\u5C51 "),
|
|
@@ -32454,22 +32542,22 @@ var _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
32454
32542
|
}
|
|
32455
32543
|
});
|
|
32456
32544
|
|
|
32457
|
-
var Layout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32545
|
+
var Layout = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__file", "index.vue"]]);
|
|
32458
32546
|
|
|
32459
32547
|
const PlusLayout = Layout;
|
|
32460
32548
|
|
|
32461
|
-
const _hoisted_1$
|
|
32462
|
-
const _hoisted_2$
|
|
32463
|
-
const _hoisted_3$
|
|
32549
|
+
const _hoisted_1$d = { class: "plus-check-card__avatar-wrapper" };
|
|
32550
|
+
const _hoisted_2$a = { class: "plus-check-card__right-content" };
|
|
32551
|
+
const _hoisted_3$a = {
|
|
32464
32552
|
key: 0,
|
|
32465
32553
|
class: "plus-check-card__title"
|
|
32466
32554
|
};
|
|
32467
|
-
const _hoisted_4$
|
|
32468
|
-
const _hoisted_5$
|
|
32555
|
+
const _hoisted_4$8 = { class: "plus-check-card__title-left" };
|
|
32556
|
+
const _hoisted_5$8 = {
|
|
32469
32557
|
key: 1,
|
|
32470
32558
|
class: "plus-check-card__description"
|
|
32471
32559
|
};
|
|
32472
|
-
var _sfc_main$
|
|
32560
|
+
var _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
32473
32561
|
...{
|
|
32474
32562
|
name: "PlusCheckCard"
|
|
32475
32563
|
},
|
|
@@ -32524,7 +32612,7 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
32524
32612
|
onClick: handleClick
|
|
32525
32613
|
},
|
|
32526
32614
|
[
|
|
32527
|
-
createElementVNode("div", _hoisted_1$
|
|
32615
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
32528
32616
|
unref(isFunction)(_ctx.avatar) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.avatar), {
|
|
32529
32617
|
key: 0,
|
|
32530
32618
|
avatar: _ctx.avatar,
|
|
@@ -32540,9 +32628,9 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
32540
32628
|
src: _ctx.avatar
|
|
32541
32629
|
}, _ctx.avatarProps), null, 16, ["src"])) : createCommentVNode("v-if", true)
|
|
32542
32630
|
]),
|
|
32543
|
-
createElementVNode("div", _hoisted_2$
|
|
32544
|
-
_ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
32545
|
-
createElementVNode("div", _hoisted_4$
|
|
32631
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
32632
|
+
_ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
32633
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
32546
32634
|
unref(isFunction)(_ctx.title) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.title), {
|
|
32547
32635
|
key: 0,
|
|
32548
32636
|
avatar: _ctx.avatar,
|
|
@@ -32584,7 +32672,7 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
32584
32672
|
}) : createCommentVNode("v-if", true)
|
|
32585
32673
|
])
|
|
32586
32674
|
])) : createCommentVNode("v-if", true),
|
|
32587
|
-
_ctx.description || _ctx.$slots.description ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
32675
|
+
_ctx.description || _ctx.$slots.description ? (openBlock(), createElementBlock("div", _hoisted_5$8, [
|
|
32588
32676
|
unref(isFunction)(_ctx.description) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.description), {
|
|
32589
32677
|
key: 0,
|
|
32590
32678
|
title: _ctx.title,
|
|
@@ -32618,12 +32706,12 @@ var _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
32618
32706
|
}
|
|
32619
32707
|
});
|
|
32620
32708
|
|
|
32621
|
-
var CheckCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32709
|
+
var CheckCard = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__file", "index.vue"]]);
|
|
32622
32710
|
|
|
32623
32711
|
const PlusCheckCard = CheckCard;
|
|
32624
32712
|
|
|
32625
|
-
const _hoisted_1$
|
|
32626
|
-
var _sfc_main$
|
|
32713
|
+
const _hoisted_1$c = { class: "plus-check-card-group" };
|
|
32714
|
+
var _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
32627
32715
|
...{
|
|
32628
32716
|
name: "PlusCheckCardGroup"
|
|
32629
32717
|
},
|
|
@@ -32677,7 +32765,7 @@ var _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
32677
32765
|
emit("extra", item);
|
|
32678
32766
|
};
|
|
32679
32767
|
return (_ctx, _cache) => {
|
|
32680
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
32768
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
32681
32769
|
(openBlock(true), createElementBlock(
|
|
32682
32770
|
Fragment,
|
|
32683
32771
|
null,
|
|
@@ -32736,12 +32824,12 @@ var _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
32736
32824
|
}
|
|
32737
32825
|
});
|
|
32738
32826
|
|
|
32739
|
-
var CheckCardGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32827
|
+
var CheckCardGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__file", "index.vue"]]);
|
|
32740
32828
|
|
|
32741
32829
|
const PlusCheckCardGroup = CheckCardGroup;
|
|
32742
32830
|
|
|
32743
|
-
const _hoisted_1$
|
|
32744
|
-
var _sfc_main$
|
|
32831
|
+
const _hoisted_1$b = ["src"];
|
|
32832
|
+
var _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
32745
32833
|
...{
|
|
32746
32834
|
name: "YcSvgIcon",
|
|
32747
32835
|
inheritAttrs: false
|
|
@@ -32788,7 +32876,7 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
32788
32876
|
opacity: _ctx.opacity
|
|
32789
32877
|
},
|
|
32790
32878
|
alt: ""
|
|
32791
|
-
}), null, 16, _hoisted_1$
|
|
32879
|
+
}), null, 16, _hoisted_1$b)) : (openBlock(), createElementBlock(
|
|
32792
32880
|
Fragment,
|
|
32793
32881
|
{ key: 1 },
|
|
32794
32882
|
[
|
|
@@ -32822,7 +32910,759 @@ var _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
32822
32910
|
}
|
|
32823
32911
|
});
|
|
32824
32912
|
|
|
32825
|
-
var YcSvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32913
|
+
var YcSvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-34e1f2f7"], ["__file", "index.vue"]]);
|
|
32914
|
+
|
|
32915
|
+
/*!
|
|
32916
|
+
* vue-router v4.2.0
|
|
32917
|
+
* (c) 2023 Eduardo San Martin Morote
|
|
32918
|
+
* @license MIT
|
|
32919
|
+
*/
|
|
32920
|
+
|
|
32921
|
+
var NavigationType;
|
|
32922
|
+
(function (NavigationType) {
|
|
32923
|
+
NavigationType["pop"] = "pop";
|
|
32924
|
+
NavigationType["push"] = "push";
|
|
32925
|
+
})(NavigationType || (NavigationType = {}));
|
|
32926
|
+
var NavigationDirection;
|
|
32927
|
+
(function (NavigationDirection) {
|
|
32928
|
+
NavigationDirection["back"] = "back";
|
|
32929
|
+
NavigationDirection["forward"] = "forward";
|
|
32930
|
+
NavigationDirection["unknown"] = "";
|
|
32931
|
+
})(NavigationDirection || (NavigationDirection = {}));
|
|
32932
|
+
|
|
32933
|
+
Symbol((process.env.NODE_ENV !== 'production') ? 'navigation failure' : '');
|
|
32934
|
+
/**
|
|
32935
|
+
* Enumeration with all possible types for navigation failures. Can be passed to
|
|
32936
|
+
* {@link isNavigationFailure} to check for specific failures.
|
|
32937
|
+
*/
|
|
32938
|
+
var NavigationFailureType;
|
|
32939
|
+
(function (NavigationFailureType) {
|
|
32940
|
+
/**
|
|
32941
|
+
* An aborted navigation is a navigation that failed because a navigation
|
|
32942
|
+
* guard returned `false` or called `next(false)`
|
|
32943
|
+
*/
|
|
32944
|
+
NavigationFailureType[NavigationFailureType["aborted"] = 4] = "aborted";
|
|
32945
|
+
/**
|
|
32946
|
+
* A cancelled navigation is a navigation that failed because a more recent
|
|
32947
|
+
* navigation finished started (not necessarily finished).
|
|
32948
|
+
*/
|
|
32949
|
+
NavigationFailureType[NavigationFailureType["cancelled"] = 8] = "cancelled";
|
|
32950
|
+
/**
|
|
32951
|
+
* A duplicated navigation is a navigation that failed because it was
|
|
32952
|
+
* initiated while already being at the exact same location.
|
|
32953
|
+
*/
|
|
32954
|
+
NavigationFailureType[NavigationFailureType["duplicated"] = 16] = "duplicated";
|
|
32955
|
+
})(NavigationFailureType || (NavigationFailureType = {}));
|
|
32956
|
+
|
|
32957
|
+
/**
|
|
32958
|
+
* RouteRecord being rendered by the closest ancestor Router View. Used for
|
|
32959
|
+
* `onBeforeRouteUpdate` and `onBeforeRouteLeave`. rvlm stands for Router View
|
|
32960
|
+
* Location Matched
|
|
32961
|
+
*
|
|
32962
|
+
* @internal
|
|
32963
|
+
*/
|
|
32964
|
+
Symbol((process.env.NODE_ENV !== 'production') ? 'router view location matched' : '');
|
|
32965
|
+
/**
|
|
32966
|
+
* Allows overriding the router view depth to control which component in
|
|
32967
|
+
* `matched` is rendered. rvd stands for Router View Depth
|
|
32968
|
+
*
|
|
32969
|
+
* @internal
|
|
32970
|
+
*/
|
|
32971
|
+
Symbol((process.env.NODE_ENV !== 'production') ? 'router view depth' : '');
|
|
32972
|
+
/**
|
|
32973
|
+
* Allows overriding the router instance returned by `useRouter` in tests. r
|
|
32974
|
+
* stands for router
|
|
32975
|
+
*
|
|
32976
|
+
* @internal
|
|
32977
|
+
*/
|
|
32978
|
+
Symbol((process.env.NODE_ENV !== 'production') ? 'router' : '');
|
|
32979
|
+
/**
|
|
32980
|
+
* Allows overriding the current route returned by `useRoute` in tests. rl
|
|
32981
|
+
* stands for route location
|
|
32982
|
+
*
|
|
32983
|
+
* @internal
|
|
32984
|
+
*/
|
|
32985
|
+
const routeLocationKey = Symbol((process.env.NODE_ENV !== 'production') ? 'route location' : '');
|
|
32986
|
+
/**
|
|
32987
|
+
* Allows overriding the current route used by router-view. Internally this is
|
|
32988
|
+
* used when the `route` prop is passed.
|
|
32989
|
+
*
|
|
32990
|
+
* @internal
|
|
32991
|
+
*/
|
|
32992
|
+
Symbol((process.env.NODE_ENV !== 'production') ? 'router view location' : '');
|
|
32993
|
+
|
|
32994
|
+
function serializeQueryFilter(fields, schemaVersion) {
|
|
32995
|
+
return {
|
|
32996
|
+
schemaVersion,
|
|
32997
|
+
fields: { ...fields || {} }
|
|
32998
|
+
};
|
|
32999
|
+
}
|
|
33000
|
+
function extractQueryFilterFields(conditions) {
|
|
33001
|
+
if (!conditions || typeof conditions !== "object") return {};
|
|
33002
|
+
if (conditions.fields && typeof conditions.fields === "object") {
|
|
33003
|
+
return { ...conditions.fields };
|
|
33004
|
+
}
|
|
33005
|
+
const rest = { ...conditions };
|
|
33006
|
+
delete rest.schemaVersion;
|
|
33007
|
+
return rest;
|
|
33008
|
+
}
|
|
33009
|
+
|
|
33010
|
+
const _hoisted_1$a = {
|
|
33011
|
+
key: 0,
|
|
33012
|
+
class: "yc-query-filter"
|
|
33013
|
+
};
|
|
33014
|
+
const _hoisted_2$9 = { class: "yc-query-filter__panel" };
|
|
33015
|
+
const _hoisted_3$9 = {
|
|
33016
|
+
key: 0,
|
|
33017
|
+
class: "yc-query-filter__loading"
|
|
33018
|
+
};
|
|
33019
|
+
const _hoisted_4$7 = { class: "yc-query-filter__col" };
|
|
33020
|
+
const _hoisted_5$7 = { class: "yc-query-filter__title" };
|
|
33021
|
+
const _hoisted_6$6 = {
|
|
33022
|
+
key: 0,
|
|
33023
|
+
class: "yc-query-filter__empty"
|
|
33024
|
+
};
|
|
33025
|
+
const _hoisted_7$4 = {
|
|
33026
|
+
key: 1,
|
|
33027
|
+
class: "yc-query-filter__list"
|
|
33028
|
+
};
|
|
33029
|
+
const _hoisted_8$3 = ["onClick"];
|
|
33030
|
+
const _hoisted_9$3 = { class: "yc-query-filter__ops" };
|
|
33031
|
+
const _hoisted_10$3 = { class: "yc-query-filter__col yc-query-filter__col--right" };
|
|
33032
|
+
const _hoisted_11$3 = { class: "yc-query-filter__title" };
|
|
33033
|
+
const _hoisted_12$3 = { class: "yc-query-filter__tabs" };
|
|
33034
|
+
const _hoisted_13$3 = {
|
|
33035
|
+
key: 1,
|
|
33036
|
+
class: "yc-query-filter__list"
|
|
33037
|
+
};
|
|
33038
|
+
const _hoisted_14$3 = ["onClick"];
|
|
33039
|
+
const _hoisted_15$1 = { class: "yc-query-filter__meta" };
|
|
33040
|
+
const _hoisted_16$1 = { class: "yc-query-filter__highlight" };
|
|
33041
|
+
const _hoisted_17$1 = { class: "yc-query-filter__ops" };
|
|
33042
|
+
const _hoisted_18$1 = {
|
|
33043
|
+
key: 1,
|
|
33044
|
+
class: "yc-query-filter__list"
|
|
33045
|
+
};
|
|
33046
|
+
const _hoisted_19$1 = ["onClick"];
|
|
33047
|
+
const _hoisted_20$1 = { class: "yc-query-filter__meta" };
|
|
33048
|
+
const _hoisted_21$1 = { class: "yc-query-filter__highlight" };
|
|
33049
|
+
const _hoisted_22$1 = { class: "yc-query-filter__ops" };
|
|
33050
|
+
var _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
33051
|
+
...{
|
|
33052
|
+
name: "YcQueryFilterManager"
|
|
33053
|
+
},
|
|
33054
|
+
__name: "index",
|
|
33055
|
+
props: {
|
|
33056
|
+
pageInstance: {},
|
|
33057
|
+
queryFilterKey: { default: "main" }
|
|
33058
|
+
},
|
|
33059
|
+
setup(__props) {
|
|
33060
|
+
const props = __props;
|
|
33061
|
+
const { t } = useLocale();
|
|
33062
|
+
const config = useQueryFilterConfig();
|
|
33063
|
+
const enabled = computed(
|
|
33064
|
+
() => !!((config == null ? void 0 : config.enabled) && config.api && config.appCode && pageEnabled.value)
|
|
33065
|
+
);
|
|
33066
|
+
const route = inject(routeLocationKey, null);
|
|
33067
|
+
const pageCode = computed(() => {
|
|
33068
|
+
const custom = config == null ? void 0 : config.pageCode;
|
|
33069
|
+
if (typeof custom === "function") return custom();
|
|
33070
|
+
if (custom) return custom;
|
|
33071
|
+
const routeName = String((route == null ? void 0 : route.name) || (route == null ? void 0 : route.path) || "unnamed");
|
|
33072
|
+
return `${config == null ? void 0 : config.appCode}:${routeName}:${props.queryFilterKey}`;
|
|
33073
|
+
});
|
|
33074
|
+
const schemaVersion = ref(1);
|
|
33075
|
+
const pageEnabled = ref(true);
|
|
33076
|
+
const mine = ref([]);
|
|
33077
|
+
const received = ref([]);
|
|
33078
|
+
const shared = ref([]);
|
|
33079
|
+
const rightTab = ref("received");
|
|
33080
|
+
const panelVisible = ref(false);
|
|
33081
|
+
const loading = ref(false);
|
|
33082
|
+
const saveVisible = ref(false);
|
|
33083
|
+
const saveName = ref("");
|
|
33084
|
+
const editingId = ref(null);
|
|
33085
|
+
const editingItem = ref(null);
|
|
33086
|
+
const saving = ref(false);
|
|
33087
|
+
const shareVisible = ref(false);
|
|
33088
|
+
const sharingId = ref(null);
|
|
33089
|
+
const shareUserIds = ref([]);
|
|
33090
|
+
const userOptions = ref([]);
|
|
33091
|
+
function getPage() {
|
|
33092
|
+
return unref(props.pageInstance);
|
|
33093
|
+
}
|
|
33094
|
+
function getFormValues() {
|
|
33095
|
+
var _a;
|
|
33096
|
+
const page = getPage();
|
|
33097
|
+
const values = (_a = page == null ? void 0 : page.getSearchFieldsValue) == null ? void 0 : _a.call(page);
|
|
33098
|
+
return values && typeof values === "object" ? { ...values } : {};
|
|
33099
|
+
}
|
|
33100
|
+
function displayTime(value) {
|
|
33101
|
+
if (!value) return "";
|
|
33102
|
+
const matched = value.match(/^(\d{4}-\d{2}-\d{2} \d{2}:\d{2})/);
|
|
33103
|
+
return matched ? matched[1] : value;
|
|
33104
|
+
}
|
|
33105
|
+
function applyItem(item) {
|
|
33106
|
+
var _a, _b;
|
|
33107
|
+
const fields = extractQueryFilterFields(item.conditions);
|
|
33108
|
+
const page = getPage();
|
|
33109
|
+
if (page == null ? void 0 : page.replaceSearchFormValues) {
|
|
33110
|
+
page.replaceSearchFormValues(fields);
|
|
33111
|
+
} else {
|
|
33112
|
+
(_a = page == null ? void 0 : page.clearSearchFieldsValue) == null ? void 0 : _a.call(page);
|
|
33113
|
+
(_b = page == null ? void 0 : page.setSearchFieldsValue) == null ? void 0 : _b.call(page, fields);
|
|
33114
|
+
}
|
|
33115
|
+
if (schemaVersion.value && item.schemaVersion && item.schemaVersion !== schemaVersion.value) {
|
|
33116
|
+
ElMessage.warning(t("plus.queryFilter.schemaMismatch"));
|
|
33117
|
+
} else {
|
|
33118
|
+
ElMessage.success(t("plus.queryFilter.applied"));
|
|
33119
|
+
}
|
|
33120
|
+
panelVisible.value = false;
|
|
33121
|
+
}
|
|
33122
|
+
async function refreshList() {
|
|
33123
|
+
if (!(config == null ? void 0 : config.api)) return;
|
|
33124
|
+
loading.value = true;
|
|
33125
|
+
try {
|
|
33126
|
+
const data = await config.api.list({
|
|
33127
|
+
appCode: config.appCode,
|
|
33128
|
+
pageCode: pageCode.value
|
|
33129
|
+
});
|
|
33130
|
+
schemaVersion.value = (data == null ? void 0 : data.schemaVersion) || 1;
|
|
33131
|
+
pageEnabled.value = (data == null ? void 0 : data.enabled) !== false;
|
|
33132
|
+
mine.value = (data == null ? void 0 : data.mine) || [];
|
|
33133
|
+
received.value = (data == null ? void 0 : data.received) || [];
|
|
33134
|
+
shared.value = (data == null ? void 0 : data.shared) || [];
|
|
33135
|
+
} finally {
|
|
33136
|
+
loading.value = false;
|
|
33137
|
+
}
|
|
33138
|
+
}
|
|
33139
|
+
function openSaveAs() {
|
|
33140
|
+
editingId.value = null;
|
|
33141
|
+
editingItem.value = null;
|
|
33142
|
+
saveName.value = "";
|
|
33143
|
+
saveVisible.value = true;
|
|
33144
|
+
}
|
|
33145
|
+
function openEdit(item) {
|
|
33146
|
+
editingId.value = item.id;
|
|
33147
|
+
editingItem.value = item;
|
|
33148
|
+
saveName.value = item.name;
|
|
33149
|
+
saveVisible.value = true;
|
|
33150
|
+
}
|
|
33151
|
+
async function confirmSave() {
|
|
33152
|
+
const name = saveName.value.trim();
|
|
33153
|
+
if (!name) {
|
|
33154
|
+
ElMessage.warning(t("plus.queryFilter.namePlaceholder"));
|
|
33155
|
+
return;
|
|
33156
|
+
}
|
|
33157
|
+
if (!(config == null ? void 0 : config.api)) return;
|
|
33158
|
+
saving.value = true;
|
|
33159
|
+
try {
|
|
33160
|
+
const owned = mine.value.some((item) => item.id === editingId.value);
|
|
33161
|
+
if (editingId.value && owned) {
|
|
33162
|
+
await config.api.update({ id: editingId.value, name });
|
|
33163
|
+
} else {
|
|
33164
|
+
const fields = editingItem.value ? extractQueryFilterFields(editingItem.value.conditions) : getFormValues();
|
|
33165
|
+
await config.api.saveAs({
|
|
33166
|
+
appCode: config.appCode,
|
|
33167
|
+
pageCode: pageCode.value,
|
|
33168
|
+
name,
|
|
33169
|
+
conditions: serializeQueryFilter(fields, schemaVersion.value)
|
|
33170
|
+
});
|
|
33171
|
+
}
|
|
33172
|
+
ElMessage.success(t("plus.queryFilter.saveSuccess"));
|
|
33173
|
+
saveVisible.value = false;
|
|
33174
|
+
await refreshList();
|
|
33175
|
+
} catch (error) {
|
|
33176
|
+
ElMessage.error(error instanceof Error ? error.message : t("plus.queryFilter.saveSuccess"));
|
|
33177
|
+
} finally {
|
|
33178
|
+
saving.value = false;
|
|
33179
|
+
}
|
|
33180
|
+
}
|
|
33181
|
+
function confirmOptions() {
|
|
33182
|
+
return {
|
|
33183
|
+
type: "warning",
|
|
33184
|
+
confirmButtonText: t("plus.dialog.confirmText"),
|
|
33185
|
+
cancelButtonText: t("plus.dialog.cancelText")
|
|
33186
|
+
};
|
|
33187
|
+
}
|
|
33188
|
+
async function removeItem(item) {
|
|
33189
|
+
if (!(config == null ? void 0 : config.api)) return;
|
|
33190
|
+
try {
|
|
33191
|
+
await ElMessageBox.confirm(
|
|
33192
|
+
t("plus.queryFilter.confirmDelete"),
|
|
33193
|
+
t("plus.table.prompt"),
|
|
33194
|
+
confirmOptions()
|
|
33195
|
+
);
|
|
33196
|
+
await config.api.delete({ id: item.id });
|
|
33197
|
+
ElMessage.success(t("plus.queryFilter.deleteSuccess"));
|
|
33198
|
+
await refreshList();
|
|
33199
|
+
} catch (e) {
|
|
33200
|
+
}
|
|
33201
|
+
}
|
|
33202
|
+
async function openShare(item) {
|
|
33203
|
+
sharingId.value = item.id;
|
|
33204
|
+
shareUserIds.value = [...item.recipientUserIds || []];
|
|
33205
|
+
if (config == null ? void 0 : config.openUserSelector) {
|
|
33206
|
+
try {
|
|
33207
|
+
const ids = await config.openUserSelector();
|
|
33208
|
+
if (ids == null ? void 0 : ids.length) {
|
|
33209
|
+
await config.api.share({ id: item.id, recipientUserIds: ids });
|
|
33210
|
+
ElMessage.success(t("plus.queryFilter.shareSuccess"));
|
|
33211
|
+
await refreshList();
|
|
33212
|
+
}
|
|
33213
|
+
} catch (error) {
|
|
33214
|
+
if (error instanceof Error && error.message) ElMessage.error(error.message);
|
|
33215
|
+
}
|
|
33216
|
+
return;
|
|
33217
|
+
}
|
|
33218
|
+
if (!(config == null ? void 0 : config.searchUsers)) {
|
|
33219
|
+
ElMessage.warning(t("plus.queryFilter.noSelector"));
|
|
33220
|
+
return;
|
|
33221
|
+
}
|
|
33222
|
+
userOptions.value = await config.searchUsers("");
|
|
33223
|
+
shareVisible.value = true;
|
|
33224
|
+
}
|
|
33225
|
+
async function remoteSearchUsers(keyword) {
|
|
33226
|
+
if (!(config == null ? void 0 : config.searchUsers)) return;
|
|
33227
|
+
userOptions.value = await config.searchUsers(keyword);
|
|
33228
|
+
}
|
|
33229
|
+
async function confirmShare() {
|
|
33230
|
+
if (!(config == null ? void 0 : config.api) || !sharingId.value) return;
|
|
33231
|
+
if (!shareUserIds.value.length) {
|
|
33232
|
+
ElMessage.warning(t("plus.queryFilter.sharePlaceholder"));
|
|
33233
|
+
return;
|
|
33234
|
+
}
|
|
33235
|
+
try {
|
|
33236
|
+
await config.api.share({ id: sharingId.value, recipientUserIds: shareUserIds.value });
|
|
33237
|
+
ElMessage.success(t("plus.queryFilter.shareSuccess"));
|
|
33238
|
+
shareVisible.value = false;
|
|
33239
|
+
await refreshList();
|
|
33240
|
+
} catch (error) {
|
|
33241
|
+
ElMessage.error(error instanceof Error ? error.message : t("plus.queryFilter.shareSuccess"));
|
|
33242
|
+
}
|
|
33243
|
+
}
|
|
33244
|
+
async function revokeShare(item, recipientUserIds) {
|
|
33245
|
+
if (!(config == null ? void 0 : config.api)) return;
|
|
33246
|
+
try {
|
|
33247
|
+
await ElMessageBox.confirm(
|
|
33248
|
+
t("plus.queryFilter.confirmRevoke"),
|
|
33249
|
+
t("plus.table.prompt"),
|
|
33250
|
+
confirmOptions()
|
|
33251
|
+
);
|
|
33252
|
+
await config.api.revoke({ id: item.id, recipientUserIds });
|
|
33253
|
+
ElMessage.success(t("plus.queryFilter.revokeSuccess"));
|
|
33254
|
+
await refreshList();
|
|
33255
|
+
} catch (e) {
|
|
33256
|
+
}
|
|
33257
|
+
}
|
|
33258
|
+
function receivedPrefix(item) {
|
|
33259
|
+
return t("plus.queryFilter.sharedByPrefix", {
|
|
33260
|
+
time: displayTime(item.sharedTime || item.createdTime),
|
|
33261
|
+
sender: item.ownerUserName || item.ownerUserId
|
|
33262
|
+
});
|
|
33263
|
+
}
|
|
33264
|
+
function sharedPrefix(item) {
|
|
33265
|
+
var _a, _b;
|
|
33266
|
+
const recipient = ((_a = item.recipientNames) == null ? void 0 : _a[0]) || (((_b = item.recipientUserIds) == null ? void 0 : _b.length) ? `${item.recipientUserIds.length}` : "");
|
|
33267
|
+
return t("plus.queryFilter.sharedToPrefix", {
|
|
33268
|
+
time: displayTime(item.sharedTime || item.updatedTime || item.createdTime),
|
|
33269
|
+
recipient
|
|
33270
|
+
});
|
|
33271
|
+
}
|
|
33272
|
+
return (_ctx, _cache) => {
|
|
33273
|
+
return enabled.value ? (openBlock(), createElementBlock("span", _hoisted_1$a, [
|
|
33274
|
+
createVNode(unref(ElButton), { onClick: openSaveAs }, {
|
|
33275
|
+
default: withCtx(() => [
|
|
33276
|
+
createTextVNode(
|
|
33277
|
+
toDisplayString(unref(t)("plus.queryFilter.saveAs")),
|
|
33278
|
+
1
|
|
33279
|
+
/* TEXT */
|
|
33280
|
+
)
|
|
33281
|
+
]),
|
|
33282
|
+
_: 1
|
|
33283
|
+
/* STABLE */
|
|
33284
|
+
}),
|
|
33285
|
+
createVNode(unref(ElPopover), {
|
|
33286
|
+
visible: panelVisible.value,
|
|
33287
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => panelVisible.value = $event),
|
|
33288
|
+
placement: "bottom-end",
|
|
33289
|
+
width: 720,
|
|
33290
|
+
trigger: "click",
|
|
33291
|
+
teleported: "",
|
|
33292
|
+
onShow: refreshList
|
|
33293
|
+
}, {
|
|
33294
|
+
reference: withCtx(() => [
|
|
33295
|
+
createVNode(unref(ElButton), null, {
|
|
33296
|
+
default: withCtx(() => [
|
|
33297
|
+
createTextVNode(
|
|
33298
|
+
toDisplayString(unref(t)("plus.queryFilter.saved")),
|
|
33299
|
+
1
|
|
33300
|
+
/* TEXT */
|
|
33301
|
+
)
|
|
33302
|
+
]),
|
|
33303
|
+
_: 1
|
|
33304
|
+
/* STABLE */
|
|
33305
|
+
})
|
|
33306
|
+
]),
|
|
33307
|
+
default: withCtx(() => [
|
|
33308
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
33309
|
+
loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$9, "...")) : createCommentVNode("v-if", true),
|
|
33310
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
33311
|
+
createElementVNode(
|
|
33312
|
+
"div",
|
|
33313
|
+
_hoisted_5$7,
|
|
33314
|
+
toDisplayString(unref(t)("plus.queryFilter.savedTitle")),
|
|
33315
|
+
1
|
|
33316
|
+
/* TEXT */
|
|
33317
|
+
),
|
|
33318
|
+
!mine.value.length ? (openBlock(), createElementBlock(
|
|
33319
|
+
"div",
|
|
33320
|
+
_hoisted_6$6,
|
|
33321
|
+
toDisplayString(unref(t)("plus.queryFilter.emptyMine")),
|
|
33322
|
+
1
|
|
33323
|
+
/* TEXT */
|
|
33324
|
+
)) : (openBlock(), createElementBlock("ul", _hoisted_7$4, [
|
|
33325
|
+
(openBlock(true), createElementBlock(
|
|
33326
|
+
Fragment,
|
|
33327
|
+
null,
|
|
33328
|
+
renderList(mine.value, (item) => {
|
|
33329
|
+
return openBlock(), createElementBlock("li", {
|
|
33330
|
+
key: item.id,
|
|
33331
|
+
class: "yc-query-filter__item"
|
|
33332
|
+
}, [
|
|
33333
|
+
createElementVNode("button", {
|
|
33334
|
+
type: "button",
|
|
33335
|
+
class: "yc-query-filter__name",
|
|
33336
|
+
onClick: ($event) => applyItem(item)
|
|
33337
|
+
}, toDisplayString(item.name), 9, _hoisted_8$3),
|
|
33338
|
+
createElementVNode("span", _hoisted_9$3, [
|
|
33339
|
+
createVNode(unref(ElButton), {
|
|
33340
|
+
link: "",
|
|
33341
|
+
type: "danger",
|
|
33342
|
+
icon: unref(delete_default),
|
|
33343
|
+
title: unref(t)("plus.queryFilter.remove"),
|
|
33344
|
+
onClick: withModifiers(($event) => removeItem(item), ["stop"])
|
|
33345
|
+
}, null, 8, ["icon", "title", "onClick"]),
|
|
33346
|
+
createVNode(unref(ElButton), {
|
|
33347
|
+
link: "",
|
|
33348
|
+
icon: unref(edit_pen_default),
|
|
33349
|
+
title: unref(t)("plus.queryFilter.edit"),
|
|
33350
|
+
onClick: withModifiers(($event) => openEdit(item), ["stop"])
|
|
33351
|
+
}, null, 8, ["icon", "title", "onClick"]),
|
|
33352
|
+
createVNode(unref(ElButton), {
|
|
33353
|
+
link: "",
|
|
33354
|
+
icon: unref(share_default),
|
|
33355
|
+
title: unref(t)("plus.queryFilter.share"),
|
|
33356
|
+
onClick: withModifiers(($event) => openShare(item), ["stop"])
|
|
33357
|
+
}, null, 8, ["icon", "title", "onClick"])
|
|
33358
|
+
])
|
|
33359
|
+
]);
|
|
33360
|
+
}),
|
|
33361
|
+
128
|
|
33362
|
+
/* KEYED_FRAGMENT */
|
|
33363
|
+
))
|
|
33364
|
+
]))
|
|
33365
|
+
]),
|
|
33366
|
+
createElementVNode("div", _hoisted_10$3, [
|
|
33367
|
+
createElementVNode(
|
|
33368
|
+
"div",
|
|
33369
|
+
_hoisted_11$3,
|
|
33370
|
+
toDisplayString(unref(t)("plus.queryFilter.panelTitle")),
|
|
33371
|
+
1
|
|
33372
|
+
/* TEXT */
|
|
33373
|
+
),
|
|
33374
|
+
createElementVNode("div", _hoisted_12$3, [
|
|
33375
|
+
createElementVNode(
|
|
33376
|
+
"button",
|
|
33377
|
+
{
|
|
33378
|
+
type: "button",
|
|
33379
|
+
class: normalizeClass({ "is-active": rightTab.value === "received" }),
|
|
33380
|
+
onClick: _cache[0] || (_cache[0] = ($event) => rightTab.value = "received")
|
|
33381
|
+
},
|
|
33382
|
+
toDisplayString(unref(t)("plus.queryFilter.received")),
|
|
33383
|
+
3
|
|
33384
|
+
/* TEXT, CLASS */
|
|
33385
|
+
),
|
|
33386
|
+
createElementVNode(
|
|
33387
|
+
"button",
|
|
33388
|
+
{
|
|
33389
|
+
type: "button",
|
|
33390
|
+
class: normalizeClass({ "is-active": rightTab.value === "shared" }),
|
|
33391
|
+
onClick: _cache[1] || (_cache[1] = ($event) => rightTab.value = "shared")
|
|
33392
|
+
},
|
|
33393
|
+
toDisplayString(unref(t)("plus.queryFilter.shared")),
|
|
33394
|
+
3
|
|
33395
|
+
/* TEXT, CLASS */
|
|
33396
|
+
)
|
|
33397
|
+
]),
|
|
33398
|
+
rightTab.value === "received" ? (openBlock(), createElementBlock(
|
|
33399
|
+
Fragment,
|
|
33400
|
+
{ key: 0 },
|
|
33401
|
+
[
|
|
33402
|
+
!received.value.length ? (openBlock(), createBlock(unref(ElEmpty), {
|
|
33403
|
+
key: 0,
|
|
33404
|
+
description: unref(t)("plus.queryFilter.emptyReceived"),
|
|
33405
|
+
"image-size": 48
|
|
33406
|
+
}, null, 8, ["description"])) : (openBlock(), createElementBlock("ul", _hoisted_13$3, [
|
|
33407
|
+
(openBlock(true), createElementBlock(
|
|
33408
|
+
Fragment,
|
|
33409
|
+
null,
|
|
33410
|
+
renderList(received.value, (item) => {
|
|
33411
|
+
return openBlock(), createElementBlock("li", {
|
|
33412
|
+
key: item.id,
|
|
33413
|
+
class: "yc-query-filter__item"
|
|
33414
|
+
}, [
|
|
33415
|
+
createElementVNode("button", {
|
|
33416
|
+
type: "button",
|
|
33417
|
+
class: "yc-query-filter__line",
|
|
33418
|
+
onClick: ($event) => applyItem(item)
|
|
33419
|
+
}, [
|
|
33420
|
+
createElementVNode(
|
|
33421
|
+
"span",
|
|
33422
|
+
_hoisted_15$1,
|
|
33423
|
+
toDisplayString(receivedPrefix(item)),
|
|
33424
|
+
1
|
|
33425
|
+
/* TEXT */
|
|
33426
|
+
),
|
|
33427
|
+
createElementVNode(
|
|
33428
|
+
"span",
|
|
33429
|
+
_hoisted_16$1,
|
|
33430
|
+
"\u3010" + toDisplayString(item.name) + "\u3011",
|
|
33431
|
+
1
|
|
33432
|
+
/* TEXT */
|
|
33433
|
+
)
|
|
33434
|
+
], 8, _hoisted_14$3),
|
|
33435
|
+
createElementVNode("span", _hoisted_17$1, [
|
|
33436
|
+
createVNode(unref(ElButton), {
|
|
33437
|
+
link: "",
|
|
33438
|
+
type: "danger",
|
|
33439
|
+
icon: unref(delete_default),
|
|
33440
|
+
title: unref(t)("plus.queryFilter.remove"),
|
|
33441
|
+
onClick: withModifiers(($event) => removeItem(item), ["stop"])
|
|
33442
|
+
}, null, 8, ["icon", "title", "onClick"]),
|
|
33443
|
+
createVNode(unref(ElButton), {
|
|
33444
|
+
link: "",
|
|
33445
|
+
icon: unref(edit_pen_default),
|
|
33446
|
+
title: unref(t)("plus.queryFilter.edit"),
|
|
33447
|
+
onClick: withModifiers(($event) => openEdit(item), ["stop"])
|
|
33448
|
+
}, null, 8, ["icon", "title", "onClick"])
|
|
33449
|
+
])
|
|
33450
|
+
]);
|
|
33451
|
+
}),
|
|
33452
|
+
128
|
|
33453
|
+
/* KEYED_FRAGMENT */
|
|
33454
|
+
))
|
|
33455
|
+
]))
|
|
33456
|
+
],
|
|
33457
|
+
64
|
|
33458
|
+
/* STABLE_FRAGMENT */
|
|
33459
|
+
)) : (openBlock(), createElementBlock(
|
|
33460
|
+
Fragment,
|
|
33461
|
+
{ key: 1 },
|
|
33462
|
+
[
|
|
33463
|
+
!shared.value.length ? (openBlock(), createBlock(unref(ElEmpty), {
|
|
33464
|
+
key: 0,
|
|
33465
|
+
description: unref(t)("plus.queryFilter.emptyShared"),
|
|
33466
|
+
"image-size": 48
|
|
33467
|
+
}, null, 8, ["description"])) : (openBlock(), createElementBlock("ul", _hoisted_18$1, [
|
|
33468
|
+
(openBlock(true), createElementBlock(
|
|
33469
|
+
Fragment,
|
|
33470
|
+
null,
|
|
33471
|
+
renderList(shared.value, (item) => {
|
|
33472
|
+
return openBlock(), createElementBlock("li", {
|
|
33473
|
+
key: item.id,
|
|
33474
|
+
class: "yc-query-filter__item"
|
|
33475
|
+
}, [
|
|
33476
|
+
createElementVNode("button", {
|
|
33477
|
+
type: "button",
|
|
33478
|
+
class: "yc-query-filter__line",
|
|
33479
|
+
onClick: ($event) => applyItem(item)
|
|
33480
|
+
}, [
|
|
33481
|
+
createElementVNode(
|
|
33482
|
+
"span",
|
|
33483
|
+
_hoisted_20$1,
|
|
33484
|
+
toDisplayString(sharedPrefix(item)),
|
|
33485
|
+
1
|
|
33486
|
+
/* TEXT */
|
|
33487
|
+
),
|
|
33488
|
+
createElementVNode(
|
|
33489
|
+
"span",
|
|
33490
|
+
_hoisted_21$1,
|
|
33491
|
+
"\u3010" + toDisplayString(item.name) + "\u3011",
|
|
33492
|
+
1
|
|
33493
|
+
/* TEXT */
|
|
33494
|
+
)
|
|
33495
|
+
], 8, _hoisted_19$1),
|
|
33496
|
+
createElementVNode("span", _hoisted_22$1, [
|
|
33497
|
+
createVNode(unref(ElButton), {
|
|
33498
|
+
link: "",
|
|
33499
|
+
type: "danger",
|
|
33500
|
+
icon: unref(refresh_left_default),
|
|
33501
|
+
title: unref(t)("plus.queryFilter.revoke"),
|
|
33502
|
+
onClick: withModifiers(($event) => revokeShare(item), ["stop"])
|
|
33503
|
+
}, null, 8, ["icon", "title", "onClick"])
|
|
33504
|
+
])
|
|
33505
|
+
]);
|
|
33506
|
+
}),
|
|
33507
|
+
128
|
|
33508
|
+
/* KEYED_FRAGMENT */
|
|
33509
|
+
))
|
|
33510
|
+
]))
|
|
33511
|
+
],
|
|
33512
|
+
64
|
|
33513
|
+
/* STABLE_FRAGMENT */
|
|
33514
|
+
))
|
|
33515
|
+
])
|
|
33516
|
+
])
|
|
33517
|
+
]),
|
|
33518
|
+
_: 1
|
|
33519
|
+
/* STABLE */
|
|
33520
|
+
}, 8, ["visible"]),
|
|
33521
|
+
createVNode(unref(ElDialog), {
|
|
33522
|
+
modelValue: saveVisible.value,
|
|
33523
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => saveVisible.value = $event),
|
|
33524
|
+
title: unref(t)("plus.queryFilter.nameTitle"),
|
|
33525
|
+
width: "420px",
|
|
33526
|
+
"append-to-body": "",
|
|
33527
|
+
"append-to": "body"
|
|
33528
|
+
}, {
|
|
33529
|
+
footer: withCtx(() => [
|
|
33530
|
+
createVNode(unref(ElButton), {
|
|
33531
|
+
type: "primary",
|
|
33532
|
+
loading: saving.value,
|
|
33533
|
+
onClick: confirmSave
|
|
33534
|
+
}, {
|
|
33535
|
+
default: withCtx(() => [
|
|
33536
|
+
createTextVNode(
|
|
33537
|
+
toDisplayString(unref(t)("plus.dialog.confirmText")),
|
|
33538
|
+
1
|
|
33539
|
+
/* TEXT */
|
|
33540
|
+
)
|
|
33541
|
+
]),
|
|
33542
|
+
_: 1
|
|
33543
|
+
/* STABLE */
|
|
33544
|
+
}, 8, ["loading"]),
|
|
33545
|
+
createVNode(unref(ElButton), {
|
|
33546
|
+
onClick: _cache[4] || (_cache[4] = ($event) => saveVisible.value = false)
|
|
33547
|
+
}, {
|
|
33548
|
+
default: withCtx(() => [
|
|
33549
|
+
createTextVNode(
|
|
33550
|
+
toDisplayString(unref(t)("plus.dialog.cancelText")),
|
|
33551
|
+
1
|
|
33552
|
+
/* TEXT */
|
|
33553
|
+
)
|
|
33554
|
+
]),
|
|
33555
|
+
_: 1
|
|
33556
|
+
/* STABLE */
|
|
33557
|
+
})
|
|
33558
|
+
]),
|
|
33559
|
+
default: withCtx(() => [
|
|
33560
|
+
createVNode(unref(ElForm), {
|
|
33561
|
+
onSubmit: withModifiers(confirmSave, ["prevent"])
|
|
33562
|
+
}, {
|
|
33563
|
+
default: withCtx(() => [
|
|
33564
|
+
createVNode(unref(ElFormItem), {
|
|
33565
|
+
label: unref(t)("plus.queryFilter.nameTitle"),
|
|
33566
|
+
required: ""
|
|
33567
|
+
}, {
|
|
33568
|
+
default: withCtx(() => [
|
|
33569
|
+
createVNode(unref(ElInput), {
|
|
33570
|
+
modelValue: saveName.value,
|
|
33571
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => saveName.value = $event),
|
|
33572
|
+
maxlength: "30",
|
|
33573
|
+
placeholder: unref(t)("plus.queryFilter.namePlaceholder")
|
|
33574
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
33575
|
+
]),
|
|
33576
|
+
_: 1
|
|
33577
|
+
/* STABLE */
|
|
33578
|
+
}, 8, ["label"])
|
|
33579
|
+
]),
|
|
33580
|
+
_: 1
|
|
33581
|
+
/* STABLE */
|
|
33582
|
+
})
|
|
33583
|
+
]),
|
|
33584
|
+
_: 1
|
|
33585
|
+
/* STABLE */
|
|
33586
|
+
}, 8, ["modelValue", "title"]),
|
|
33587
|
+
createVNode(unref(ElDialog), {
|
|
33588
|
+
modelValue: shareVisible.value,
|
|
33589
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => shareVisible.value = $event),
|
|
33590
|
+
title: unref(t)("plus.queryFilter.shareTitle"),
|
|
33591
|
+
width: "480px",
|
|
33592
|
+
"append-to-body": "",
|
|
33593
|
+
"append-to": "body"
|
|
33594
|
+
}, {
|
|
33595
|
+
footer: withCtx(() => [
|
|
33596
|
+
createVNode(unref(ElButton), {
|
|
33597
|
+
onClick: _cache[7] || (_cache[7] = ($event) => shareVisible.value = false)
|
|
33598
|
+
}, {
|
|
33599
|
+
default: withCtx(() => [
|
|
33600
|
+
createTextVNode(
|
|
33601
|
+
toDisplayString(unref(t)("plus.dialog.cancelText")),
|
|
33602
|
+
1
|
|
33603
|
+
/* TEXT */
|
|
33604
|
+
)
|
|
33605
|
+
]),
|
|
33606
|
+
_: 1
|
|
33607
|
+
/* STABLE */
|
|
33608
|
+
}),
|
|
33609
|
+
createVNode(unref(ElButton), {
|
|
33610
|
+
type: "primary",
|
|
33611
|
+
onClick: confirmShare
|
|
33612
|
+
}, {
|
|
33613
|
+
default: withCtx(() => [
|
|
33614
|
+
createTextVNode(
|
|
33615
|
+
toDisplayString(unref(t)("plus.dialog.confirmText")),
|
|
33616
|
+
1
|
|
33617
|
+
/* TEXT */
|
|
33618
|
+
)
|
|
33619
|
+
]),
|
|
33620
|
+
_: 1
|
|
33621
|
+
/* STABLE */
|
|
33622
|
+
})
|
|
33623
|
+
]),
|
|
33624
|
+
default: withCtx(() => [
|
|
33625
|
+
createVNode(unref(ElSelect), {
|
|
33626
|
+
modelValue: shareUserIds.value,
|
|
33627
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => shareUserIds.value = $event),
|
|
33628
|
+
multiple: "",
|
|
33629
|
+
filterable: "",
|
|
33630
|
+
remote: "",
|
|
33631
|
+
"remote-method": remoteSearchUsers,
|
|
33632
|
+
placeholder: unref(t)("plus.queryFilter.sharePlaceholder"),
|
|
33633
|
+
style: { "width": "100%" }
|
|
33634
|
+
}, {
|
|
33635
|
+
default: withCtx(() => [
|
|
33636
|
+
(openBlock(true), createElementBlock(
|
|
33637
|
+
Fragment,
|
|
33638
|
+
null,
|
|
33639
|
+
renderList(userOptions.value, (user) => {
|
|
33640
|
+
return openBlock(), createBlock(unref(ElOption), {
|
|
33641
|
+
key: user.userId,
|
|
33642
|
+
label: user.name,
|
|
33643
|
+
value: user.userId
|
|
33644
|
+
}, null, 8, ["label", "value"]);
|
|
33645
|
+
}),
|
|
33646
|
+
128
|
|
33647
|
+
/* KEYED_FRAGMENT */
|
|
33648
|
+
))
|
|
33649
|
+
]),
|
|
33650
|
+
_: 1
|
|
33651
|
+
/* STABLE */
|
|
33652
|
+
}, 8, ["modelValue", "placeholder"])
|
|
33653
|
+
]),
|
|
33654
|
+
_: 1
|
|
33655
|
+
/* STABLE */
|
|
33656
|
+
}, 8, ["modelValue", "title"])
|
|
33657
|
+
])) : createCommentVNode("v-if", true);
|
|
33658
|
+
};
|
|
33659
|
+
}
|
|
33660
|
+
});
|
|
33661
|
+
|
|
33662
|
+
var QueryFilterManagerComponent = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "index.vue"]]);
|
|
33663
|
+
|
|
33664
|
+
const YcQueryFilterManager = QueryFilterManagerComponent;
|
|
33665
|
+
const ReQueryFilterManager = YcQueryFilterManager;
|
|
32826
33666
|
|
|
32827
33667
|
const OPERATOR_CATALOG = {
|
|
32828
33668
|
string: ["=", "!=", "like", "not like", "in", "not in"],
|
|
@@ -33825,7 +34665,8 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
33825
34665
|
columnCacheKey: { default: void 0 },
|
|
33826
34666
|
disableColumnCache: { type: Boolean, default: false },
|
|
33827
34667
|
columnSettingsText: { default: void 0 },
|
|
33828
|
-
dragScroll: { type: [Boolean, Object], default: false }
|
|
34668
|
+
dragScroll: { type: [Boolean, Object], default: false },
|
|
34669
|
+
queryFilterKey: { default: "main" }
|
|
33829
34670
|
},
|
|
33830
34671
|
emits: ["header-filter-confirm", "header-filter-reset"],
|
|
33831
34672
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -33837,20 +34678,18 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
33837
34678
|
const plusPageRef = ref();
|
|
33838
34679
|
const rootRef = ref();
|
|
33839
34680
|
const dragScrollWrapperRef = ref(null);
|
|
33840
|
-
const dragScrollEnabled = computed(
|
|
34681
|
+
const dragScrollEnabled = computed(
|
|
34682
|
+
() => props.dragScroll !== false && props.dragScroll !== null && props.dragScroll !== void 0
|
|
34683
|
+
);
|
|
33841
34684
|
const dragScrollOptions = computed(() => {
|
|
33842
34685
|
const value = props.dragScroll;
|
|
33843
34686
|
if (value && typeof value === "object") return value;
|
|
33844
34687
|
return {};
|
|
33845
34688
|
});
|
|
33846
|
-
const { onMouseDown: onDragScrollMouseDown } = useTableDragScroll(
|
|
33847
|
-
|
|
33848
|
-
|
|
33849
|
-
|
|
33850
|
-
...dragScrollOptions.value,
|
|
33851
|
-
enabled: dragScrollEnabled
|
|
33852
|
-
}
|
|
33853
|
-
);
|
|
34689
|
+
const { onMouseDown: onDragScrollMouseDown } = useTableDragScroll(dragScrollWrapperRef, void 0, {
|
|
34690
|
+
...dragScrollOptions.value,
|
|
34691
|
+
enabled: dragScrollEnabled
|
|
34692
|
+
});
|
|
33854
34693
|
const plusTableInstance = computed(() => {
|
|
33855
34694
|
var _a;
|
|
33856
34695
|
return (_a = plusPageRef.value) == null ? void 0 : _a.plusTableInstance;
|
|
@@ -33907,7 +34746,7 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
33907
34746
|
const handleFilterConfirm = (payload) => {
|
|
33908
34747
|
var _a;
|
|
33909
34748
|
const field = String(((_a = payload.column) == null ? void 0 : _a.prop) || "");
|
|
33910
|
-
const isEmpty = payload.value
|
|
34749
|
+
const isEmpty = payload.value === null || payload.value === void 0 || String(payload.value).trim() === "";
|
|
33911
34750
|
if (isEmpty) {
|
|
33912
34751
|
removeHeaderFilter(field);
|
|
33913
34752
|
} else {
|
|
@@ -34213,7 +35052,7 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
34213
35052
|
});
|
|
34214
35053
|
return sorted;
|
|
34215
35054
|
};
|
|
34216
|
-
const handleFilterTableHeader = (columns,
|
|
35055
|
+
const handleFilterTableHeader = (columns, _eventType) => {
|
|
34217
35056
|
const order = columns.map((col) => String(col.prop || "")).filter(Boolean);
|
|
34218
35057
|
const checked = columns.filter((col) => col.headerIsChecked !== false).map((col) => String(col.prop || "")).filter(Boolean);
|
|
34219
35058
|
const existingCache = loadColumnCache();
|
|
@@ -34315,6 +35154,10 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
34315
35154
|
clearSearchFieldsValue: () => {
|
|
34316
35155
|
var _a, _b;
|
|
34317
35156
|
return (_b = (_a = plusPageRef.value) == null ? void 0 : _a.clearSearchFieldsValue) == null ? void 0 : _b.call(_a);
|
|
35157
|
+
},
|
|
35158
|
+
replaceSearchFormValues: (values) => {
|
|
35159
|
+
var _a, _b;
|
|
35160
|
+
return (_b = (_a = plusPageRef.value) == null ? void 0 : _a.replaceSearchFormValues) == null ? void 0 : _b.call(_a, values);
|
|
34318
35161
|
}
|
|
34319
35162
|
});
|
|
34320
35163
|
return (_ctx, _cache) => {
|
|
@@ -34352,6 +35195,13 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
34352
35195
|
onFilterTableHeader: handleFilterTableHeader,
|
|
34353
35196
|
onHeaderDragend: handleHeaderDragend
|
|
34354
35197
|
}), createSlots({
|
|
35198
|
+
"search-actions-after": withCtx(() => [
|
|
35199
|
+
createVNode(unref(YcQueryFilterManager), {
|
|
35200
|
+
"page-instance": plusPageRef.value,
|
|
35201
|
+
"query-filter-key": props.queryFilterKey
|
|
35202
|
+
}, null, 8, ["page-instance", "query-filter-key"]),
|
|
35203
|
+
renderSlot(_ctx.$slots, "search-actions-after", {}, void 0, true)
|
|
35204
|
+
]),
|
|
34355
35205
|
default: withCtx(() => [
|
|
34356
35206
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
34357
35207
|
]),
|
|
@@ -34387,7 +35237,7 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
34387
35237
|
return {
|
|
34388
35238
|
name,
|
|
34389
35239
|
fn: withCtx((slotProps) => [
|
|
34390
|
-
name !== "column-settings-icon" && name !== "default" ? renderSlot(_ctx.$slots, name, normalizeProps(mergeProps({ key: 0 }, slotProps)), void 0, true) : createCommentVNode("v-if", true)
|
|
35240
|
+
name !== "column-settings-icon" && name !== "default" && name !== "search-actions-after" ? renderSlot(_ctx.$slots, name, normalizeProps(mergeProps({ key: 0 }, slotProps)), void 0, true) : createCommentVNode("v-if", true)
|
|
34391
35241
|
])
|
|
34392
35242
|
};
|
|
34393
35243
|
})
|
|
@@ -34404,7 +35254,7 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
34404
35254
|
}
|
|
34405
35255
|
});
|
|
34406
35256
|
|
|
34407
|
-
var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
35257
|
+
var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-4b8729a9"], ["__file", "index.vue"]]);
|
|
34408
35258
|
|
|
34409
35259
|
function compareValues(a, b) {
|
|
34410
35260
|
if (a == null && b == null) return 0;
|
|
@@ -64949,8 +65799,8 @@ function createDictStore(config) {
|
|
|
64949
65799
|
});
|
|
64950
65800
|
}
|
|
64951
65801
|
|
|
64952
|
-
const version = "0.0
|
|
65802
|
+
const version = "1.0.0";
|
|
64953
65803
|
|
|
64954
65804
|
const install = installer.install;
|
|
64955
65805
|
|
|
64956
|
-
export { DEFAULT_CDN_CONFIG, DEFAULT_OPERATORS, DEFAULT_YC_CONFIG, DatePickerValueIsArrayList, DefaultPageInfo, DefaultPageSizeList, DictStoreInjectionKey, NO_VALUE_OPERATORS, OPERATOR_CATALOG, OPERATOR_LABELS, PlusBreadcrumb, PlusCheckCard, PlusCheckCardGroup, PlusDatePicker, PlusDescriptions, PlusDialog, PlusDialogForm, PlusDisplayItem, PlusDrawerForm, PlusForm, PlusFormItem, PlusHeader, PlusInputTag, PlusLayout, PlusPage, PlusPagination, PlusPopover, PlusRadio, PlusSearch, PlusSidebar, PlusSidebarItem, PlusStepsForm, PlusTable, PlusVirtualTable, YcAnimateSelector as ReAnimateSelector, YcAuth as ReAuth, YcBatchImportDialog as ReBatchImportDialog, YcCard as ReCard, YcCol as ReCol, YcConfigProvider as ReConfigProvider, ReDialog, YcDownloadDialog as ReDownloadDialog, ReDrawer, ReFormContainerHeader, YcLineTree as ReLineTree, ReMoreActions, YcCountTo as ReNormalCountTo, YcPerms as RePerms, RePlusPage, RePlusTree, YcSegmented as ReSegmented, YcSelectV2 as ReSelectV2, YcStatusDialog as ReStatusDialog, YcSvgIcon as ReSvgIcon, YcTabsWithFilter as ReTabsWithFilter, YcText as ReText, YcReboundCountTo as ReboundCountTo, SIZE_MAP, STATUS_CONFIG_MAP, TableColumnsEmptyTextInjectionKey, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList, YC_CONFIG_KEY, YcAnimateSelector, YcAnimateSelectorWithInstall, YcAuth, YcAuthWithInstall, YcBatchImportDialog, YcBatchImportDialogWithInstall, YcCard, YcCardWithInstall, YcCol, YcConfigProvider, YcCountTo, YcDialog, YcDownloadDialog, YcDownloadDialogWithInstall, YcDrawer, YcFlicker, YcFormContainerHeader, YcLineTree, YcLineTreeWithInstall, YcMoreActions, YcPerms, YcPermsWithInstall, YcPlusPage, YcPlusTree, YcReboundCountTo, YcReboundCountToWithInstall, YcSegmented, YcSegmentedWithInstall, YcSelectV2, YcStatusDialog, YcSvgIcon, YcTableHeaderFilterCell, YcTabsWithFilter, YcTabsWithFilterWithInstall, YcText, YcTextWithInstall, addDrawer, animates, closeAllDrawer, closeDrawer, createDictStore, installer as default, drawerStore, findNodeById, findNodeByPath, findNodePosition, fnPerm, n as hasFunctionPermission, insertAsChild, insertAsSibling, insertNodeAtPosition, install, providePlusProConfig, removeNode, reorderNodeChildren, reorderSiblingNodes, selectValueTypeList, updateDrawer, useColumnAdapter, useDialogFormConfig, useDictInjection, useDrawerFormConfig, a as useFunctionPermission, useGetOptions, useHeaderFilter, useLocalHeaderFilter, useLocale, usePlusFormReset, usePlusProConfig, useRenderFlicker, useRenderFlicker as useRenderReFlicker, useSelectWithMapping, useSelectWithPagination, useSortableDrag$1 as useSortableDrag, useTable, useTableDragScroll, useVirtualScroll, useVirtualSelection, useYcAuth, useYcCdn, useYcCdnUrl, useYcComponentConfig, useYcConfig, useYcPerms, useYcShowPageSearch, useYcTranslate, version };
|
|
65806
|
+
export { DEFAULT_CDN_CONFIG, DEFAULT_OPERATORS, DEFAULT_YC_CONFIG, DatePickerValueIsArrayList, DefaultPageInfo, DefaultPageSizeList, DictStoreInjectionKey, NO_VALUE_OPERATORS, OPERATOR_CATALOG, OPERATOR_LABELS, PlusBreadcrumb, PlusCheckCard, PlusCheckCardGroup, PlusDatePicker, PlusDescriptions, PlusDialog, PlusDialogForm, PlusDisplayItem, PlusDrawerForm, PlusForm, PlusFormItem, PlusHeader, PlusInputTag, PlusLayout, PlusPage, PlusPagination, PlusPopover, PlusRadio, PlusSearch, PlusSidebar, PlusSidebarItem, PlusStepsForm, PlusTable, PlusVirtualTable, QueryFilterConfigKey, YcAnimateSelector as ReAnimateSelector, YcAuth as ReAuth, YcBatchImportDialog as ReBatchImportDialog, YcCard as ReCard, YcCol as ReCol, YcConfigProvider as ReConfigProvider, ReDialog, YcDownloadDialog as ReDownloadDialog, ReDrawer, ReFormContainerHeader, YcLineTree as ReLineTree, ReMoreActions, YcCountTo as ReNormalCountTo, YcPerms as RePerms, RePlusPage, RePlusTree, ReQueryFilterManager, YcSegmented as ReSegmented, YcSelectV2 as ReSelectV2, YcStatusDialog as ReStatusDialog, YcSvgIcon as ReSvgIcon, YcTabsWithFilter as ReTabsWithFilter, YcText as ReText, YcReboundCountTo as ReboundCountTo, SIZE_MAP, STATUS_CONFIG_MAP, TableColumnsEmptyTextInjectionKey, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList, YC_CONFIG_KEY, YcAnimateSelector, YcAnimateSelectorWithInstall, YcAuth, YcAuthWithInstall, YcBatchImportDialog, YcBatchImportDialogWithInstall, YcCard, YcCardWithInstall, YcCol, YcConfigProvider, YcCountTo, YcDialog, YcDownloadDialog, YcDownloadDialogWithInstall, YcDrawer, YcFlicker, YcFormContainerHeader, YcLineTree, YcLineTreeWithInstall, YcMoreActions, YcPerms, YcPermsWithInstall, YcPlusPage, YcPlusTree, YcQueryFilterManager, YcReboundCountTo, YcReboundCountToWithInstall, YcSegmented, YcSegmentedWithInstall, YcSelectV2, YcStatusDialog, YcSvgIcon, YcTableHeaderFilterCell, YcTabsWithFilter, YcTabsWithFilterWithInstall, YcText, YcTextWithInstall, addDrawer, animates, closeAllDrawer, closeDrawer, createDictStore, createQueryFilterApi, installer as default, drawerStore, findNodeById, findNodeByPath, findNodePosition, fnPerm, n as hasFunctionPermission, insertAsChild, insertAsSibling, insertNodeAtPosition, install, providePlusProConfig, provideQueryFilterConfig, removeNode, reorderNodeChildren, reorderSiblingNodes, selectValueTypeList, updateDrawer, useColumnAdapter, useDialogFormConfig, useDictInjection, useDrawerFormConfig, a as useFunctionPermission, useGetOptions, useHeaderFilter, useLocalHeaderFilter, useLocale, usePlusFormReset, usePlusProConfig, useQueryFilterConfig, useRenderFlicker, useRenderFlicker as useRenderReFlicker, useSelectWithMapping, useSelectWithPagination, useSortableDrag$1 as useSortableDrag, useTable, useTableDragScroll, useVirtualScroll, useVirtualSelection, useYcAuth, useYcCdn, useYcCdnUrl, useYcComponentConfig, useYcConfig, useYcPerms, useYcShowPageSearch, useYcTranslate, version };
|