yc-pro-components 0.0.75 → 0.0.77
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/check-card/index.d.ts +61 -61
- package/es/components/check-card/src/index.vue.d.ts +4 -4
- package/es/components/check-card-group/index.d.ts +43 -43
- package/es/components/check-card-group/src/index.vue.d.ts +3 -3
- package/es/components/date-picker/index.d.ts +30 -30
- package/es/components/date-picker/src/index.vue.d.ts +22 -22
- package/es/components/dialog/index.d.ts +45 -45
- package/es/components/dialog/src/index.vue.d.ts +3 -3
- package/es/components/dialog-form/index.d.ts +31 -31
- package/es/components/dialog-form/src/index.vue.d.ts +9 -9
- package/es/components/display-item/index.d.ts +41 -41
- package/es/components/display-item/src/index.vue.d.ts +22 -22
- package/es/components/drawer-form/index.d.ts +68 -68
- package/es/components/drawer-form/src/index.vue.d.ts +16 -16
- package/es/components/form/index.d.ts +71 -71
- package/es/components/form/src/form-content.vue.d.ts +21 -21
- package/es/components/form/src/index.vue.d.ts +19 -19
- package/es/components/form-item/index.d.ts +69 -69
- package/es/components/form-item/src/index.vue.d.ts +21 -21
- package/es/components/header/index.d.ts +19 -19
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/index.mjs +1 -0
- package/es/components/input-tag/index.d.ts +15 -15
- package/es/components/input-tag/src/index.vue.d.ts +3 -3
- package/es/components/layout/index.d.ts +30 -30
- package/es/components/layout/src/index.vue.d.ts +10 -10
- package/es/components/page/index.d.ts +533 -533
- package/es/components/page/src/index.vue.d.ts +181 -181
- package/es/components/pagination/index.d.ts +42 -42
- package/es/components/pagination/src/index.vue.d.ts +3 -3
- package/es/components/radio/index.d.ts +35 -35
- package/es/components/radio/src/index.vue.d.ts +27 -27
- package/es/components/render/index.d.ts +3 -3
- package/es/components/render/src/index.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +243 -243
- package/es/components/search/src/index.vue.d.ts +73 -73
- package/es/components/sidebar/index.d.ts +15 -15
- package/es/components/sidebar/src/index.vue.d.ts +5 -5
- package/es/components/steps-form/index.d.ts +23 -23
- package/es/components/steps-form/src/index.vue.d.ts +2 -2
- package/es/components/table/src/table-column.vue.d.ts +37 -37
- package/es/components/table/src/table-title-bar.vue.mjs +1 -1
- package/es/components/table/src/table-title-bar.vue2.mjs +79 -40
- package/es/components/table/src/type.d.ts +17 -0
- package/es/components/utils/index.d.ts +2 -2
- package/es/components/yc-dialog/index.d.ts +24 -24
- package/es/components/yc-download-dialog/index.d.ts +19 -19
- package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-drawer/src/index.vue.mjs +1 -1
- package/es/components/yc-drawer/src/index.vue2.mjs +2 -3
- package/es/components/yc-form-container-header/index.d.ts +12 -12
- package/es/components/yc-more-actions/index.d.ts +46 -46
- package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/es/components/yc-plus-page/index.d.ts +2 -0
- package/es/components/yc-plus-page/index.mjs +1 -0
- package/es/components/yc-plus-page/src/index.vue.d.ts +436 -361
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +90 -58
- package/es/components/yc-plus-page/src/type.d.ts +9 -0
- package/es/components/yc-segmented/index.d.ts +2 -2
- package/es/components/yc-segmented/src/index.d.ts +2 -2
- package/es/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/es/components/yc-text/src/index.vue.d.ts +2 -2
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/usePlusFormReset.d.ts +244 -244
- package/es/hooks/useTableDragScroll.d.ts +35 -0
- package/es/hooks/useTableDragScroll.mjs +201 -0
- package/es/index.css +13 -12
- package/es/index.mjs +1 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/yc-components/version.d.ts +1 -1
- package/index.js +372 -104
- package/index.min.css +3 -2
- package/index.min.js +12 -11
- package/index.min.mjs +12 -11
- package/index.mjs +373 -106
- package/lib/components/check-card/index.d.ts +61 -61
- package/lib/components/check-card/src/index.vue.d.ts +4 -4
- package/lib/components/check-card-group/index.d.ts +43 -43
- package/lib/components/check-card-group/src/index.vue.d.ts +3 -3
- package/lib/components/date-picker/index.d.ts +30 -30
- package/lib/components/date-picker/src/index.vue.d.ts +22 -22
- package/lib/components/dialog/index.d.ts +45 -45
- package/lib/components/dialog/src/index.vue.d.ts +3 -3
- package/lib/components/dialog-form/index.d.ts +31 -31
- package/lib/components/dialog-form/src/index.vue.d.ts +9 -9
- package/lib/components/display-item/index.d.ts +41 -41
- package/lib/components/display-item/src/index.vue.d.ts +22 -22
- package/lib/components/drawer-form/index.d.ts +68 -68
- package/lib/components/drawer-form/src/index.vue.d.ts +16 -16
- package/lib/components/form/index.d.ts +71 -71
- package/lib/components/form/src/form-content.vue.d.ts +21 -21
- package/lib/components/form/src/index.vue.d.ts +19 -19
- package/lib/components/form-item/index.d.ts +69 -69
- package/lib/components/form-item/src/index.vue.d.ts +21 -21
- package/lib/components/header/index.d.ts +19 -19
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/index.js +2 -0
- package/lib/components/input-tag/index.d.ts +15 -15
- package/lib/components/input-tag/src/index.vue.d.ts +3 -3
- package/lib/components/layout/index.d.ts +30 -30
- package/lib/components/layout/src/index.vue.d.ts +10 -10
- package/lib/components/page/index.d.ts +533 -533
- package/lib/components/page/src/index.vue.d.ts +181 -181
- package/lib/components/pagination/index.d.ts +42 -42
- package/lib/components/pagination/src/index.vue.d.ts +3 -3
- package/lib/components/radio/index.d.ts +35 -35
- package/lib/components/radio/src/index.vue.d.ts +27 -27
- package/lib/components/render/index.d.ts +3 -3
- package/lib/components/render/src/index.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +243 -243
- package/lib/components/search/src/index.vue.d.ts +73 -73
- package/lib/components/sidebar/index.d.ts +15 -15
- package/lib/components/sidebar/src/index.vue.d.ts +5 -5
- package/lib/components/steps-form/index.d.ts +23 -23
- package/lib/components/steps-form/src/index.vue.d.ts +2 -2
- package/lib/components/table/src/table-column.vue.d.ts +37 -37
- package/lib/components/table/src/table-title-bar.vue.js +1 -1
- package/lib/components/table/src/table-title-bar.vue2.js +78 -39
- package/lib/components/table/src/type.d.ts +17 -0
- package/lib/components/utils/index.d.ts +2 -2
- package/lib/components/yc-dialog/index.d.ts +24 -24
- package/lib/components/yc-download-dialog/index.d.ts +19 -19
- package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-drawer/src/index.vue.js +1 -1
- package/lib/components/yc-drawer/src/index.vue2.js +2 -3
- package/lib/components/yc-form-container-header/index.d.ts +12 -12
- package/lib/components/yc-more-actions/index.d.ts +46 -46
- package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/lib/components/yc-plus-page/index.d.ts +2 -0
- package/lib/components/yc-plus-page/index.js +2 -0
- package/lib/components/yc-plus-page/src/index.vue.d.ts +436 -361
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +89 -57
- package/lib/components/yc-plus-page/src/type.d.ts +9 -0
- package/lib/components/yc-segmented/index.d.ts +2 -2
- package/lib/components/yc-segmented/src/index.d.ts +2 -2
- package/lib/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/lib/components/yc-text/src/index.vue.d.ts +2 -2
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/usePlusFormReset.d.ts +244 -244
- package/lib/hooks/useTableDragScroll.d.ts +35 -0
- package/lib/hooks/useTableDragScroll.js +203 -0
- package/lib/index.css +13 -12
- package/lib/index.js +2 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/yc-components/version.d.ts +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
2
|
-
import { unref, isRef, ref, inject, isReactive, watch, computed, shallowRef, provide, onMounted, nextTick, onBeforeUnmount, defineComponent, useAttrs, watchEffect, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeStyle, createVNode, createTextVNode, toDisplayString, createElementBlock, normalizeClass, createCommentVNode, reactive, Fragment, renderList, resolveDynamicComponent, normalizeProps, guardReactiveProps, h, withDirectives, isVNode, withKeys, withModifiers, TransitionGroup, toHandlers, getCurrentInstance, resolveComponent, toRefs, useSlots, onUnmounted, resolveDirective,
|
|
1
|
+
/*! yc-pro-components v0.0.77 */
|
|
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
3
|
import { dayjs, localeContextKey, ElDialog, ElButton, ElPagination, ElRadioGroup, ElRadio, ElTableColumn, ElDropdown, ElDropdownMenu, ElDropdownItem, ElIcon, ElTooltip, ElPopconfirm, ElLink, ElMessageBox, useFormDisabled, ElDatePicker, ClickOutside, ElTag, ElInput, ElAutocomplete, ElCascader, ElCheckboxGroup, ElCheckbox, ElColorPicker, ElInputNumber, ElRate, ElSelect, ElOption, ElSlider, ElSwitch, ElTimePicker, ElTimeSelect, ElTransfer, ElTreeSelect, ElSelectV2, ElText, ElDivider, ElFormItem, ElOptionGroup, ElRow, ElCol, ElForm, ElCard, ElMessage, ElImage, ElProgress, ElAvatar, ElPopover, ElTable, vLoading, ElDescriptions, ElDescriptionsItem, ElDrawer, TableV2FixedDir, ElAutoResizer, ElTableV2, ElSteps, ElStep, ElBreadcrumb, ElBreadcrumbItem, ElMenuItem, ElSubMenu, ElMenu, ElScrollbar, ElHeader, ElContainer, ElMain, ElBacktop, ElUpload } from 'element-plus';
|
|
4
4
|
|
|
5
5
|
const makeInstaller = (components = [], directives = {}) => {
|
|
@@ -8613,6 +8613,204 @@ function useDictInjection(dictStore) {
|
|
|
8613
8613
|
provide(DictStoreInjectionKey, dictStore);
|
|
8614
8614
|
}
|
|
8615
8615
|
|
|
8616
|
+
const DEFAULT_RESIZE_AREA_WIDTH = 12;
|
|
8617
|
+
const DEFAULT_BORDER_COLOR = "var(--theme-color)";
|
|
8618
|
+
const DEFAULT_SCROLL_SELECTOR = ".el-scrollbar__wrap";
|
|
8619
|
+
function useTableDragScroll(wrapperRef, tableRef, options = {}) {
|
|
8620
|
+
var _a, _b, _c;
|
|
8621
|
+
const resizeAreaWidth = (_a = options.resizeAreaWidth) != null ? _a : DEFAULT_RESIZE_AREA_WIDTH;
|
|
8622
|
+
const borderColor = (_b = options.resizeBorderColor) != null ? _b : DEFAULT_BORDER_COLOR;
|
|
8623
|
+
const scrollSelector = (_c = options.scrollContainerSelector) != null ? _c : DEFAULT_SCROLL_SELECTOR;
|
|
8624
|
+
const isDragging = ref(false);
|
|
8625
|
+
const isResizing = ref(false);
|
|
8626
|
+
const startX = ref(0);
|
|
8627
|
+
const scrollLeft = ref(0);
|
|
8628
|
+
const scrollContainer = ref(null);
|
|
8629
|
+
const isEnabled = () => {
|
|
8630
|
+
const enabled = options.enabled;
|
|
8631
|
+
if (enabled === void 0) return true;
|
|
8632
|
+
if (typeof enabled === "boolean") return enabled;
|
|
8633
|
+
return enabled.value;
|
|
8634
|
+
};
|
|
8635
|
+
const getTableEl = () => {
|
|
8636
|
+
var _a2;
|
|
8637
|
+
const fromRef = (_a2 = tableRef == null ? void 0 : tableRef.value) == null ? void 0 : _a2.$el;
|
|
8638
|
+
if (fromRef) return fromRef;
|
|
8639
|
+
const wrapper = wrapperRef.value;
|
|
8640
|
+
if (!wrapper) return null;
|
|
8641
|
+
return wrapper.querySelector(".el-table");
|
|
8642
|
+
};
|
|
8643
|
+
const refreshScrollContainer = () => {
|
|
8644
|
+
const tableEl = getTableEl();
|
|
8645
|
+
if (tableEl) {
|
|
8646
|
+
scrollContainer.value = tableEl.querySelector(scrollSelector);
|
|
8647
|
+
}
|
|
8648
|
+
};
|
|
8649
|
+
const isInsideTable = (e) => {
|
|
8650
|
+
const tableEl = getTableEl();
|
|
8651
|
+
if (!tableEl) return false;
|
|
8652
|
+
const target = e.target;
|
|
8653
|
+
return !!target && tableEl.contains(target);
|
|
8654
|
+
};
|
|
8655
|
+
const isInResizeArea = (e, th) => {
|
|
8656
|
+
const rect = th.getBoundingClientRect();
|
|
8657
|
+
const mouseX = e.clientX;
|
|
8658
|
+
return mouseX >= rect.right - resizeAreaWidth && mouseX <= rect.right + 4;
|
|
8659
|
+
};
|
|
8660
|
+
const getCurrentColumn = (e) => {
|
|
8661
|
+
var _a2;
|
|
8662
|
+
let current = e.target;
|
|
8663
|
+
while (current && ((_a2 = current.tagName) == null ? void 0 : _a2.toLowerCase()) !== "th") {
|
|
8664
|
+
current = current.parentElement;
|
|
8665
|
+
if (!current || current === wrapperRef.value) return null;
|
|
8666
|
+
}
|
|
8667
|
+
return current;
|
|
8668
|
+
};
|
|
8669
|
+
const clearAllHeaderStyles = () => {
|
|
8670
|
+
const tableEl = getTableEl();
|
|
8671
|
+
if (!tableEl) return;
|
|
8672
|
+
const headers = tableEl.querySelectorAll("th");
|
|
8673
|
+
headers.forEach((header) => {
|
|
8674
|
+
const h = header;
|
|
8675
|
+
h.style.borderRight = "";
|
|
8676
|
+
h.style.cursor = "";
|
|
8677
|
+
});
|
|
8678
|
+
};
|
|
8679
|
+
const onMouseDown = (e) => {
|
|
8680
|
+
if (!isEnabled()) return;
|
|
8681
|
+
if (!isInsideTable(e)) return;
|
|
8682
|
+
if (!scrollContainer.value) {
|
|
8683
|
+
refreshScrollContainer();
|
|
8684
|
+
if (!scrollContainer.value) return;
|
|
8685
|
+
}
|
|
8686
|
+
const target = e.target;
|
|
8687
|
+
const column = getCurrentColumn(e);
|
|
8688
|
+
if (column && isInResizeArea(e, column)) {
|
|
8689
|
+
isDragging.value = false;
|
|
8690
|
+
isResizing.value = true;
|
|
8691
|
+
return;
|
|
8692
|
+
}
|
|
8693
|
+
if (target.classList.contains("noclick")) {
|
|
8694
|
+
isDragging.value = false;
|
|
8695
|
+
isResizing.value = true;
|
|
8696
|
+
return;
|
|
8697
|
+
}
|
|
8698
|
+
isDragging.value = true;
|
|
8699
|
+
isResizing.value = false;
|
|
8700
|
+
startX.value = e.clientX;
|
|
8701
|
+
scrollLeft.value = scrollContainer.value.scrollLeft;
|
|
8702
|
+
if (wrapperRef.value) {
|
|
8703
|
+
wrapperRef.value.style.cursor = "";
|
|
8704
|
+
}
|
|
8705
|
+
target.style.cursor = "";
|
|
8706
|
+
};
|
|
8707
|
+
const onMouseMove = (e) => {
|
|
8708
|
+
var _a2, _b2, _c2;
|
|
8709
|
+
if (!isEnabled()) return;
|
|
8710
|
+
const target = e.target;
|
|
8711
|
+
const parentElement = target.parentElement;
|
|
8712
|
+
const insideTable = isInsideTable(e);
|
|
8713
|
+
if (!insideTable) {
|
|
8714
|
+
if (wrapperRef.value) {
|
|
8715
|
+
wrapperRef.value.style.cursor = "";
|
|
8716
|
+
}
|
|
8717
|
+
if (isDragging.value && scrollContainer.value) {
|
|
8718
|
+
const deltaX2 = e.clientX - startX.value;
|
|
8719
|
+
scrollContainer.value.scrollLeft = scrollLeft.value - deltaX2;
|
|
8720
|
+
}
|
|
8721
|
+
return;
|
|
8722
|
+
}
|
|
8723
|
+
if (target.classList.contains("drag-disabled")) {
|
|
8724
|
+
target.style.cursor = "pointer";
|
|
8725
|
+
return;
|
|
8726
|
+
}
|
|
8727
|
+
const column = getCurrentColumn(e);
|
|
8728
|
+
if (column) {
|
|
8729
|
+
const allHeaders = (_a2 = column.parentElement) == null ? void 0 : _a2.querySelectorAll("th");
|
|
8730
|
+
if (isInResizeArea(e, column)) {
|
|
8731
|
+
isDragging.value = false;
|
|
8732
|
+
isResizing.value = true;
|
|
8733
|
+
column.style.borderRight = `2px solid ${borderColor}`;
|
|
8734
|
+
allHeaders == null ? void 0 : allHeaders.forEach((header) => {
|
|
8735
|
+
const h = header;
|
|
8736
|
+
if (h !== column) {
|
|
8737
|
+
h.style.borderRight = "";
|
|
8738
|
+
h.style.cursor = "";
|
|
8739
|
+
}
|
|
8740
|
+
});
|
|
8741
|
+
return;
|
|
8742
|
+
} else {
|
|
8743
|
+
allHeaders == null ? void 0 : allHeaders.forEach((header) => {
|
|
8744
|
+
const h = header;
|
|
8745
|
+
h.style.borderRight = "";
|
|
8746
|
+
h.style.cursor = "";
|
|
8747
|
+
});
|
|
8748
|
+
isResizing.value = false;
|
|
8749
|
+
}
|
|
8750
|
+
}
|
|
8751
|
+
if (target.classList.contains("noclick") || target.classList.contains("el-table__column-resize-proxy")) {
|
|
8752
|
+
isDragging.value = false;
|
|
8753
|
+
isResizing.value = true;
|
|
8754
|
+
return;
|
|
8755
|
+
}
|
|
8756
|
+
if (isResizing.value || ((_b2 = parentElement == null ? void 0 : parentElement.tagName) == null ? void 0 : _b2.toLowerCase()) === "th" || ((_c2 = target.tagName) == null ? void 0 : _c2.toLowerCase()) === "th") {
|
|
8757
|
+
isDragging.value = false;
|
|
8758
|
+
return;
|
|
8759
|
+
}
|
|
8760
|
+
if (target.classList.contains("edit-icon")) {
|
|
8761
|
+
target.style.cursor = "pointer";
|
|
8762
|
+
return;
|
|
8763
|
+
}
|
|
8764
|
+
isResizing.value = false;
|
|
8765
|
+
target.style.cursor = "";
|
|
8766
|
+
if (wrapperRef.value) {
|
|
8767
|
+
wrapperRef.value.style.cursor = "grab";
|
|
8768
|
+
}
|
|
8769
|
+
if (!isDragging.value || !scrollContainer.value) return;
|
|
8770
|
+
const deltaX = e.clientX - startX.value;
|
|
8771
|
+
scrollContainer.value.scrollLeft = scrollLeft.value - deltaX;
|
|
8772
|
+
};
|
|
8773
|
+
const onMouseUp = () => {
|
|
8774
|
+
isDragging.value = false;
|
|
8775
|
+
isResizing.value = false;
|
|
8776
|
+
if (wrapperRef.value) {
|
|
8777
|
+
wrapperRef.value.style.cursor = "";
|
|
8778
|
+
}
|
|
8779
|
+
clearAllHeaderStyles();
|
|
8780
|
+
};
|
|
8781
|
+
const onTableBodyOver = () => {
|
|
8782
|
+
const ths = document.querySelectorAll(".el-table__header th");
|
|
8783
|
+
ths.forEach((th) => {
|
|
8784
|
+
const h = th;
|
|
8785
|
+
h.style.borderRight = "";
|
|
8786
|
+
h.style.cursor = "";
|
|
8787
|
+
});
|
|
8788
|
+
};
|
|
8789
|
+
let tableBodyEl = null;
|
|
8790
|
+
onMounted(() => {
|
|
8791
|
+
document.addEventListener("mousemove", onMouseMove);
|
|
8792
|
+
document.addEventListener("mouseup", onMouseUp);
|
|
8793
|
+
requestAnimationFrame(() => {
|
|
8794
|
+
var _a2;
|
|
8795
|
+
refreshScrollContainer();
|
|
8796
|
+
const tableEl = getTableEl();
|
|
8797
|
+
tableBodyEl = (_a2 = tableEl == null ? void 0 : tableEl.querySelector(".el-table__body")) != null ? _a2 : null;
|
|
8798
|
+
tableBodyEl == null ? void 0 : tableBodyEl.addEventListener("mouseover", onTableBodyOver);
|
|
8799
|
+
});
|
|
8800
|
+
});
|
|
8801
|
+
onBeforeUnmount(() => {
|
|
8802
|
+
document.removeEventListener("mousemove", onMouseMove);
|
|
8803
|
+
document.removeEventListener("mouseup", onMouseUp);
|
|
8804
|
+
tableBodyEl == null ? void 0 : tableBodyEl.removeEventListener("mouseover", onTableBodyOver);
|
|
8805
|
+
});
|
|
8806
|
+
return {
|
|
8807
|
+
onMouseDown,
|
|
8808
|
+
isDragging,
|
|
8809
|
+
isResizing,
|
|
8810
|
+
refreshScrollContainer
|
|
8811
|
+
};
|
|
8812
|
+
}
|
|
8813
|
+
|
|
8616
8814
|
const _hoisted_1$v = { class: "plus-dialog-body" };
|
|
8617
8815
|
var _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
8618
8816
|
...{
|
|
@@ -18337,11 +18535,12 @@ var Popover = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__file", "index.vue"]]
|
|
|
18337
18535
|
|
|
18338
18536
|
const PlusPopover = Popover;
|
|
18339
18537
|
|
|
18538
|
+
const _withScopeId$4 = (n) => (pushScopeId("data-v-d1506155"), n = n(), popScopeId(), n);
|
|
18340
18539
|
const _hoisted_1$k = { class: "plus-table-title-bar" };
|
|
18341
18540
|
const _hoisted_2$e = { class: "plus-table-title-bar__title" };
|
|
18342
18541
|
const _hoisted_3$c = { class: "plus-table-title-bar__toolbar" };
|
|
18343
18542
|
const _hoisted_4$a = { class: "plus-table-title-bar__toolbar__density" };
|
|
18344
|
-
const _hoisted_5$9 = /* @__PURE__ */ createElementVNode(
|
|
18543
|
+
const _hoisted_5$9 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode(
|
|
18345
18544
|
"svg",
|
|
18346
18545
|
{
|
|
18347
18546
|
viewBox: "0 0 1024 1024",
|
|
@@ -18355,14 +18554,15 @@ const _hoisted_5$9 = /* @__PURE__ */ createElementVNode(
|
|
|
18355
18554
|
],
|
|
18356
18555
|
-1
|
|
18357
18556
|
/* HOISTED */
|
|
18358
|
-
);
|
|
18557
|
+
));
|
|
18359
18558
|
const _hoisted_6$7 = { class: "plus-table-checkbox-checkAll" };
|
|
18360
|
-
const _hoisted_7$5 = {
|
|
18559
|
+
const _hoisted_7$5 = { class: "plus-table-checkbox-actions" };
|
|
18560
|
+
const _hoisted_8$4 = {
|
|
18361
18561
|
key: 0,
|
|
18362
18562
|
class: "plus-table-checkbox-handle"
|
|
18363
18563
|
};
|
|
18364
|
-
const _hoisted_8$4 = { key: 1 };
|
|
18365
18564
|
const _hoisted_9$4 = { key: 1 };
|
|
18565
|
+
const _hoisted_10$3 = { key: 1 };
|
|
18366
18566
|
var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
18367
18567
|
...{
|
|
18368
18568
|
name: "PlusTableToolbar"
|
|
@@ -18402,6 +18602,12 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
18402
18602
|
var _a;
|
|
18403
18603
|
return ((_a = columnSetting.value) == null ? void 0 : _a.overflowLabelLength) || 6;
|
|
18404
18604
|
});
|
|
18605
|
+
const confirmTextValue = computed(
|
|
18606
|
+
() => {
|
|
18607
|
+
var _a;
|
|
18608
|
+
return ((_a = columnSetting.value) == null ? void 0 : _a.confirmText) || String(t("plus.table.confirmText"));
|
|
18609
|
+
}
|
|
18610
|
+
);
|
|
18405
18611
|
const sortable = ref(null);
|
|
18406
18612
|
const buttonNameDensity = [
|
|
18407
18613
|
{
|
|
@@ -18423,6 +18629,20 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
18423
18629
|
}
|
|
18424
18630
|
return props.columns.filter((item) => unref(item.headerIsChecked) !== false).map((item) => getTableKey(item));
|
|
18425
18631
|
};
|
|
18632
|
+
const buildFilterColumns = () => {
|
|
18633
|
+
return props.columns.map((item) => {
|
|
18634
|
+
if (state.checkList.includes(getTableKey(item))) {
|
|
18635
|
+
return { ...item, headerIsChecked: true };
|
|
18636
|
+
}
|
|
18637
|
+
return { ...item, headerIsChecked: false };
|
|
18638
|
+
});
|
|
18639
|
+
};
|
|
18640
|
+
const buildConfirmPayload = () => {
|
|
18641
|
+
const columns = buildFilterColumns();
|
|
18642
|
+
const order = columns.map((item) => String(item.prop || "")).filter(Boolean);
|
|
18643
|
+
const checked = columns.filter((item) => item.headerIsChecked !== false).map((item) => String(item.prop || "")).filter(Boolean);
|
|
18644
|
+
return { columns, order, checked };
|
|
18645
|
+
};
|
|
18426
18646
|
const state = reactive({
|
|
18427
18647
|
checkAll: true,
|
|
18428
18648
|
isIndeterminate: false,
|
|
@@ -18451,13 +18671,11 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
18451
18671
|
handleFilterTableConfirm("allCheck");
|
|
18452
18672
|
};
|
|
18453
18673
|
const handleFilterTableConfirm = (type) => {
|
|
18454
|
-
|
|
18455
|
-
|
|
18456
|
-
|
|
18457
|
-
|
|
18458
|
-
|
|
18459
|
-
});
|
|
18460
|
-
emit("filterTableHeader", filterColumns, type);
|
|
18674
|
+
emit("filterTableHeader", buildFilterColumns(), type);
|
|
18675
|
+
};
|
|
18676
|
+
const handleConfirmClick = async () => {
|
|
18677
|
+
var _a, _b;
|
|
18678
|
+
await ((_b = (_a = columnSetting.value) == null ? void 0 : _a.onConfirm) == null ? void 0 : _b.call(_a, buildConfirmPayload()));
|
|
18461
18679
|
};
|
|
18462
18680
|
const handleCheckGroupChange = (value) => {
|
|
18463
18681
|
setCheckAllState(value);
|
|
@@ -18522,10 +18740,10 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
18522
18740
|
1
|
|
18523
18741
|
/* TEXT */
|
|
18524
18742
|
)
|
|
18525
|
-
])
|
|
18743
|
+
], true)
|
|
18526
18744
|
]),
|
|
18527
18745
|
createElementVNode("div", _hoisted_3$c, [
|
|
18528
|
-
renderSlot(_ctx.$slots, "toolbar"),
|
|
18746
|
+
renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
|
|
18529
18747
|
((_a = titleBarConfig.value) == null ? void 0 : _a.refresh) === true ? (openBlock(), createElementBlock("span", {
|
|
18530
18748
|
key: 0,
|
|
18531
18749
|
class: "plus-table-title-bar__toolbar__refresh",
|
|
@@ -18549,7 +18767,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
18549
18767
|
_: 1
|
|
18550
18768
|
/* STABLE */
|
|
18551
18769
|
}, 8, ["size", "color"])
|
|
18552
|
-
])
|
|
18770
|
+
], true)
|
|
18553
18771
|
]),
|
|
18554
18772
|
_: 3
|
|
18555
18773
|
/* FORWARDED */
|
|
@@ -18582,7 +18800,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
18582
18800
|
_: 1
|
|
18583
18801
|
/* STABLE */
|
|
18584
18802
|
}, 8, ["size", "color"])
|
|
18585
|
-
])
|
|
18803
|
+
], true)
|
|
18586
18804
|
]),
|
|
18587
18805
|
_: 3
|
|
18588
18806
|
/* FORWARDED */
|
|
@@ -18647,14 +18865,14 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
18647
18865
|
_: 1
|
|
18648
18866
|
/* STABLE */
|
|
18649
18867
|
}, 8, ["size", "color"])
|
|
18650
|
-
])
|
|
18868
|
+
], true)
|
|
18651
18869
|
]),
|
|
18652
18870
|
_: 3
|
|
18653
18871
|
/* FORWARDED */
|
|
18654
18872
|
}, 8, ["content"])
|
|
18655
18873
|
]),
|
|
18656
18874
|
default: withCtx(() => {
|
|
18657
|
-
var _a2, _b2, _c2;
|
|
18875
|
+
var _a2, _b2, _c2, _d;
|
|
18658
18876
|
return [
|
|
18659
18877
|
createElementVNode("div", _hoisted_6$7, [
|
|
18660
18878
|
createVNode(unref(ElCheckbox), {
|
|
@@ -18673,24 +18891,43 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
18673
18891
|
_: 1
|
|
18674
18892
|
/* STABLE */
|
|
18675
18893
|
}, 8, ["modelValue", "indeterminate"]),
|
|
18676
|
-
(
|
|
18677
|
-
|
|
18678
|
-
|
|
18679
|
-
|
|
18680
|
-
|
|
18681
|
-
|
|
18682
|
-
|
|
18683
|
-
|
|
18684
|
-
|
|
18685
|
-
|
|
18686
|
-
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18691
|
-
|
|
18692
|
-
|
|
18693
|
-
|
|
18894
|
+
createElementVNode("div", _hoisted_7$5, [
|
|
18895
|
+
((_a2 = columnSetting.value) == null ? void 0 : _a2.confirm) ? (openBlock(), createBlock(unref(ElLink), {
|
|
18896
|
+
key: 0,
|
|
18897
|
+
type: "primary",
|
|
18898
|
+
underline: unref(versionIsLessThan299) ? false : "never",
|
|
18899
|
+
href: "javaScript:;",
|
|
18900
|
+
onClick: withModifiers(handleConfirmClick, ["stop", "prevent"])
|
|
18901
|
+
}, {
|
|
18902
|
+
default: withCtx(() => [
|
|
18903
|
+
createTextVNode(
|
|
18904
|
+
toDisplayString(confirmTextValue.value),
|
|
18905
|
+
1
|
|
18906
|
+
/* TEXT */
|
|
18907
|
+
)
|
|
18908
|
+
]),
|
|
18909
|
+
_: 1
|
|
18910
|
+
/* STABLE */
|
|
18911
|
+
}, 8, ["underline"])) : createCommentVNode("v-if", true),
|
|
18912
|
+
((_b2 = columnSetting.value) == null ? void 0 : _b2.reset) !== false ? (openBlock(), createBlock(unref(ElLink), mergeProps({
|
|
18913
|
+
key: 1,
|
|
18914
|
+
type: "primary",
|
|
18915
|
+
underline: unref(versionIsLessThan299) ? false : "never",
|
|
18916
|
+
href: "javaScript:;"
|
|
18917
|
+
}, unref(isPlainObject$1)((_c2 = columnSetting.value) == null ? void 0 : _c2.reset) ? (_d = columnSetting.value) == null ? void 0 : _d.reset : {}, {
|
|
18918
|
+
onClick: withModifiers(resetCheckBoxList, ["stop", "prevent"])
|
|
18919
|
+
}), {
|
|
18920
|
+
default: withCtx(() => [
|
|
18921
|
+
createTextVNode(
|
|
18922
|
+
toDisplayString(unref(t)("plus.table.resetText")),
|
|
18923
|
+
1
|
|
18924
|
+
/* TEXT */
|
|
18925
|
+
)
|
|
18926
|
+
]),
|
|
18927
|
+
_: 1
|
|
18928
|
+
/* STABLE */
|
|
18929
|
+
}, 16, ["underline"])) : createCommentVNode("v-if", true)
|
|
18930
|
+
])
|
|
18694
18931
|
]),
|
|
18695
18932
|
createVNode(unref(ElCheckboxGroup), {
|
|
18696
18933
|
modelValue: state.checkList,
|
|
@@ -18715,10 +18952,10 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
18715
18952
|
key: item.prop,
|
|
18716
18953
|
class: "plus-table-checkbox-item"
|
|
18717
18954
|
}, [
|
|
18718
|
-
((_a3 = columnSetting.value) == null ? void 0 : _a3.dragSort) !== false ? (openBlock(), createElementBlock("div",
|
|
18955
|
+
((_a3 = columnSetting.value) == null ? void 0 : _a3.dragSort) !== false ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
|
|
18719
18956
|
renderSlot(_ctx.$slots, "drag-sort-icon", {}, () => [
|
|
18720
18957
|
createTextVNode("\u2637")
|
|
18721
|
-
])
|
|
18958
|
+
], true)
|
|
18722
18959
|
])) : createCommentVNode("v-if", true),
|
|
18723
18960
|
createCommentVNode(" element-plus \u7248\u672C\u53F7\u5C0F\u4E8E2.6.0 "),
|
|
18724
18961
|
unref(versionIsLessThan260) ? (openBlock(), createBlock(unref(ElCheckbox), {
|
|
@@ -18744,7 +18981,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
18744
18981
|
/* DYNAMIC */
|
|
18745
18982
|
}, 1032, ["content"])) : (openBlock(), createElementBlock(
|
|
18746
18983
|
"span",
|
|
18747
|
-
|
|
18984
|
+
_hoisted_9$4,
|
|
18748
18985
|
toDisplayString(item.label ? getLabelValue(item.label) : ""),
|
|
18749
18986
|
1
|
|
18750
18987
|
/* TEXT */
|
|
@@ -18779,7 +19016,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
18779
19016
|
/* DYNAMIC */
|
|
18780
19017
|
}, 1032, ["content"])) : (openBlock(), createElementBlock(
|
|
18781
19018
|
"span",
|
|
18782
|
-
|
|
19019
|
+
_hoisted_10$3,
|
|
18783
19020
|
toDisplayString(item.label ? getLabelValue(item.label) : ""),
|
|
18784
19021
|
1
|
|
18785
19022
|
/* TEXT */
|
|
@@ -18816,7 +19053,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
18816
19053
|
}
|
|
18817
19054
|
});
|
|
18818
19055
|
|
|
18819
|
-
var PlusTableTitleBar = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__file", "table-title-bar.vue"]]);
|
|
19056
|
+
var PlusTableTitleBar = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-d1506155"], ["__file", "table-title-bar.vue"]]);
|
|
18820
19057
|
|
|
18821
19058
|
const _hoisted_1$j = { class: "plus-table-expand-col" };
|
|
18822
19059
|
var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
@@ -33167,7 +33404,8 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
33167
33404
|
hideHeaderFilter: { type: Boolean, default: true },
|
|
33168
33405
|
columnCacheKey: { default: void 0 },
|
|
33169
33406
|
disableColumnCache: { type: Boolean, default: false },
|
|
33170
|
-
columnSettingsText: { default: void 0 }
|
|
33407
|
+
columnSettingsText: { default: void 0 },
|
|
33408
|
+
dragScroll: { type: [Boolean, Object], default: false }
|
|
33171
33409
|
},
|
|
33172
33410
|
emits: ["header-filter-confirm", "header-filter-reset"],
|
|
33173
33411
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -33178,6 +33416,21 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
33178
33416
|
const plusPageConfig = useYcComponentConfig("plusPage");
|
|
33179
33417
|
const plusPageRef = ref();
|
|
33180
33418
|
const rootRef = ref();
|
|
33419
|
+
const dragScrollWrapperRef = ref(null);
|
|
33420
|
+
const dragScrollEnabled = computed(() => props.dragScroll !== false && props.dragScroll != null);
|
|
33421
|
+
const dragScrollOptions = computed(() => {
|
|
33422
|
+
const value = props.dragScroll;
|
|
33423
|
+
if (value && typeof value === "object") return value;
|
|
33424
|
+
return {};
|
|
33425
|
+
});
|
|
33426
|
+
const { onMouseDown: onDragScrollMouseDown } = useTableDragScroll(
|
|
33427
|
+
dragScrollWrapperRef,
|
|
33428
|
+
void 0,
|
|
33429
|
+
{
|
|
33430
|
+
...dragScrollOptions.value,
|
|
33431
|
+
enabled: dragScrollEnabled
|
|
33432
|
+
}
|
|
33433
|
+
);
|
|
33181
33434
|
const plusTableInstance = computed(() => {
|
|
33182
33435
|
var _a;
|
|
33183
33436
|
return (_a = plusPageRef.value) == null ? void 0 : _a.plusTableInstance;
|
|
@@ -33595,6 +33848,7 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
33595
33848
|
void resolvedColumnSettingsText.value;
|
|
33596
33849
|
void hasRequest.value;
|
|
33597
33850
|
void showDefaultColumnSettingsIcon.value;
|
|
33851
|
+
void dragScrollEnabled.value;
|
|
33598
33852
|
__expose({
|
|
33599
33853
|
plusPageRef,
|
|
33600
33854
|
plusTableInstance,
|
|
@@ -33652,62 +33906,76 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
33652
33906
|
class: normalizeClass(["yc-plus-page", { "yc-plus-page--borderless": isBorderless.value }])
|
|
33653
33907
|
},
|
|
33654
33908
|
[
|
|
33655
|
-
|
|
33656
|
-
|
|
33657
|
-
|
|
33658
|
-
|
|
33659
|
-
|
|
33660
|
-
|
|
33661
|
-
|
|
33662
|
-
|
|
33663
|
-
|
|
33664
|
-
|
|
33665
|
-
|
|
33666
|
-
|
|
33667
|
-
|
|
33668
|
-
|
|
33669
|
-
|
|
33670
|
-
|
|
33671
|
-
|
|
33672
|
-
|
|
33673
|
-
|
|
33674
|
-
|
|
33675
|
-
|
|
33676
|
-
|
|
33677
|
-
|
|
33678
|
-
|
|
33679
|
-
|
|
33680
|
-
|
|
33681
|
-
|
|
33682
|
-
|
|
33683
|
-
|
|
33684
|
-
|
|
33685
|
-
|
|
33686
|
-
|
|
33687
|
-
|
|
33688
|
-
|
|
33689
|
-
|
|
33690
|
-
|
|
33691
|
-
|
|
33692
|
-
|
|
33693
|
-
|
|
33694
|
-
|
|
33695
|
-
|
|
33696
|
-
|
|
33697
|
-
|
|
33698
|
-
|
|
33699
|
-
|
|
33700
|
-
|
|
33701
|
-
|
|
33702
|
-
|
|
33703
|
-
|
|
33704
|
-
|
|
33705
|
-
|
|
33706
|
-
|
|
33707
|
-
|
|
33708
|
-
|
|
33709
|
-
|
|
33710
|
-
|
|
33909
|
+
createCommentVNode(" \u62D6\u62FD\u6EDA\u52A8\u5305\u88F9\u5C42\uFF1AdragScroll \u542F\u7528\u65F6\u4ECB\u5165\uFF0C\u4F46\u59CB\u7EC8\u4FDD\u7559 ref\uFF0C\n \u4EE5\u4FDD\u8BC1 mousedown \u900F\u4F20 + hook \u5185\u90E8 DOM \u67E5\u8BE2\u6B63\u5E38 "),
|
|
33910
|
+
createElementVNode(
|
|
33911
|
+
"div",
|
|
33912
|
+
{
|
|
33913
|
+
ref_key: "dragScrollWrapperRef",
|
|
33914
|
+
ref: dragScrollWrapperRef,
|
|
33915
|
+
class: normalizeClass(["yc-plus-page__drag-wrapper", { "yc-plus-page__drag-wrapper--enabled": dragScrollEnabled.value }]),
|
|
33916
|
+
onMousedown: _cache[0] || (_cache[0] = ($event) => dragScrollEnabled.value ? unref(onDragScrollMouseDown)($event) : void 0)
|
|
33917
|
+
},
|
|
33918
|
+
[
|
|
33919
|
+
createVNode(unref(PlusPage), mergeProps({
|
|
33920
|
+
ref_key: "plusPageRef",
|
|
33921
|
+
ref: plusPageRef
|
|
33922
|
+
}, { ...props, ..._ctx.$attrs }, {
|
|
33923
|
+
columns: enhancedColumns.value,
|
|
33924
|
+
"is-card": _ctx.isCard,
|
|
33925
|
+
request: wrappedRequest.value,
|
|
33926
|
+
search: mergedSearch.value,
|
|
33927
|
+
"search-card-props": mergedSearchCardProps.value,
|
|
33928
|
+
"table-card-props": mergedTableCardProps.value,
|
|
33929
|
+
table: mergedTable.value,
|
|
33930
|
+
pagination: mergedPagination.value,
|
|
33931
|
+
"default-page-info": { page: 1, pageSize: DEFAULT_PAGE_SIZE },
|
|
33932
|
+
onFilterTableHeader: handleFilterTableHeader,
|
|
33933
|
+
onHeaderDragend: handleHeaderDragend
|
|
33934
|
+
}), createSlots({
|
|
33935
|
+
default: withCtx(() => [
|
|
33936
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
33937
|
+
]),
|
|
33938
|
+
_: 2
|
|
33939
|
+
/* DYNAMIC */
|
|
33940
|
+
}, [
|
|
33941
|
+
_ctx.$slots["column-settings-icon"] ? {
|
|
33942
|
+
name: "column-settings-icon",
|
|
33943
|
+
fn: withCtx(() => [
|
|
33944
|
+
renderSlot(_ctx.$slots, "column-settings-icon", {}, void 0, true)
|
|
33945
|
+
]),
|
|
33946
|
+
key: "0"
|
|
33947
|
+
} : showDefaultColumnSettingsIcon.value ? {
|
|
33948
|
+
name: "column-settings-icon",
|
|
33949
|
+
fn: withCtx(() => [
|
|
33950
|
+
createElementVNode("div", { class: "column-settings-wrapper" }, [
|
|
33951
|
+
createVNode(unref(YcSvgIcon), {
|
|
33952
|
+
src: fieldSettingIconUrl.value,
|
|
33953
|
+
size: 16
|
|
33954
|
+
}, null, 8, ["src"]),
|
|
33955
|
+
createElementVNode(
|
|
33956
|
+
"span",
|
|
33957
|
+
{ class: "column-settings-text" },
|
|
33958
|
+
toDisplayString(resolvedColumnSettingsText.value),
|
|
33959
|
+
1
|
|
33960
|
+
/* TEXT */
|
|
33961
|
+
)
|
|
33962
|
+
])
|
|
33963
|
+
]),
|
|
33964
|
+
key: "1"
|
|
33965
|
+
} : void 0,
|
|
33966
|
+
renderList(_ctx.$slots, (_, name) => {
|
|
33967
|
+
return {
|
|
33968
|
+
name,
|
|
33969
|
+
fn: withCtx((slotProps) => [
|
|
33970
|
+
name !== "column-settings-icon" && name !== "default" ? renderSlot(_ctx.$slots, name, normalizeProps(mergeProps({ key: 0 }, slotProps)), void 0, true) : createCommentVNode("v-if", true)
|
|
33971
|
+
])
|
|
33972
|
+
};
|
|
33973
|
+
})
|
|
33974
|
+
]), 1040, ["columns", "is-card", "request", "search", "search-card-props", "table-card-props", "table", "pagination", "default-page-info"])
|
|
33975
|
+
],
|
|
33976
|
+
34
|
|
33977
|
+
/* CLASS, NEED_HYDRATION */
|
|
33978
|
+
)
|
|
33711
33979
|
],
|
|
33712
33980
|
2
|
|
33713
33981
|
/* CLASS */
|
|
@@ -33716,7 +33984,7 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
33716
33984
|
}
|
|
33717
33985
|
});
|
|
33718
33986
|
|
|
33719
|
-
var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
33987
|
+
var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-3ce473db"], ["__file", "index.vue"]]);
|
|
33720
33988
|
|
|
33721
33989
|
function compareValues(a, b) {
|
|
33722
33990
|
if (a == null && b == null) return 0;
|
|
@@ -60376,8 +60644,7 @@ const closeAllDrawer = () => {
|
|
|
60376
60644
|
drawerStore.value = [];
|
|
60377
60645
|
};
|
|
60378
60646
|
|
|
60379
|
-
const
|
|
60380
|
-
const _withScopeId$3 = (n) => (pushScopeId("data-v-eb9ddafc"), n = n(), popScopeId(), n);
|
|
60647
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-80cac14a"), n = n(), popScopeId(), n);
|
|
60381
60648
|
const _hoisted_1$6 = { class: "custom-drawer-header" };
|
|
60382
60649
|
const _hoisted_2$6 = { class: "header-content" };
|
|
60383
60650
|
const _hoisted_3$6 = ["id"];
|
|
@@ -60396,7 +60663,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
60396
60663
|
__name: "index",
|
|
60397
60664
|
setup(__props) {
|
|
60398
60665
|
const shouldRender = claimDrawerInstance();
|
|
60399
|
-
if (!shouldRender &&
|
|
60666
|
+
if (!shouldRender && process.env.NODE_ENV !== "production") {
|
|
60400
60667
|
console.warn(
|
|
60401
60668
|
"[YcDrawer] Multiple <YcDrawer /> instances detected. Only the first instance renders drawers. Remove duplicate <YcDrawer /> from your component \u2014 it only needs to be placed once in the root App."
|
|
60402
60669
|
);
|
|
@@ -60638,7 +60905,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
60638
60905
|
}
|
|
60639
60906
|
});
|
|
60640
60907
|
|
|
60641
|
-
var YcDrawerComponent = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
60908
|
+
var YcDrawerComponent = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-80cac14a"], ["__file", "index.vue"]]);
|
|
60642
60909
|
|
|
60643
60910
|
const YcDrawer = YcDrawerComponent;
|
|
60644
60911
|
const ReDrawer = YcDrawerComponent;
|
|
@@ -64262,8 +64529,8 @@ function createDictStore(config) {
|
|
|
64262
64529
|
});
|
|
64263
64530
|
}
|
|
64264
64531
|
|
|
64265
|
-
const version = "0.0.
|
|
64532
|
+
const version = "0.0.77";
|
|
64266
64533
|
|
|
64267
64534
|
const install = installer.install;
|
|
64268
64535
|
|
|
64269
|
-
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, useVirtualScroll, useVirtualSelection, useYcAuth, useYcCdn, useYcCdnUrl, useYcComponentConfig, useYcConfig, useYcPerms, useYcShowPageSearch, useYcTranslate, version };
|
|
64536
|
+
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 };
|