yc-pro-components 0.0.76 → 0.0.78
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/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-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 +10 -10
- 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 +290 -60
- package/index.min.css +1 -1
- package/index.min.js +12 -11
- package/index.min.mjs +12 -11
- package/index.mjs +290 -61
- 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/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-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 +11 -11
- 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,4 +1,4 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.78 */
|
|
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
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
|
|
|
@@ -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
|
...{
|
|
@@ -33206,7 +33404,8 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
33206
33404
|
hideHeaderFilter: { type: Boolean, default: true },
|
|
33207
33405
|
columnCacheKey: { default: void 0 },
|
|
33208
33406
|
disableColumnCache: { type: Boolean, default: false },
|
|
33209
|
-
columnSettingsText: { default: void 0 }
|
|
33407
|
+
columnSettingsText: { default: void 0 },
|
|
33408
|
+
dragScroll: { type: [Boolean, Object], default: false }
|
|
33210
33409
|
},
|
|
33211
33410
|
emits: ["header-filter-confirm", "header-filter-reset"],
|
|
33212
33411
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -33217,6 +33416,21 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
33217
33416
|
const plusPageConfig = useYcComponentConfig("plusPage");
|
|
33218
33417
|
const plusPageRef = ref();
|
|
33219
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
|
+
);
|
|
33220
33434
|
const plusTableInstance = computed(() => {
|
|
33221
33435
|
var _a;
|
|
33222
33436
|
return (_a = plusPageRef.value) == null ? void 0 : _a.plusTableInstance;
|
|
@@ -33634,6 +33848,7 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
33634
33848
|
void resolvedColumnSettingsText.value;
|
|
33635
33849
|
void hasRequest.value;
|
|
33636
33850
|
void showDefaultColumnSettingsIcon.value;
|
|
33851
|
+
void dragScrollEnabled.value;
|
|
33637
33852
|
__expose({
|
|
33638
33853
|
plusPageRef,
|
|
33639
33854
|
plusTableInstance,
|
|
@@ -33691,62 +33906,76 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
33691
33906
|
class: normalizeClass(["yc-plus-page", { "yc-plus-page--borderless": isBorderless.value }])
|
|
33692
33907
|
},
|
|
33693
33908
|
[
|
|
33694
|
-
|
|
33695
|
-
|
|
33696
|
-
|
|
33697
|
-
|
|
33698
|
-
|
|
33699
|
-
|
|
33700
|
-
|
|
33701
|
-
|
|
33702
|
-
|
|
33703
|
-
|
|
33704
|
-
|
|
33705
|
-
|
|
33706
|
-
|
|
33707
|
-
|
|
33708
|
-
|
|
33709
|
-
|
|
33710
|
-
|
|
33711
|
-
|
|
33712
|
-
|
|
33713
|
-
|
|
33714
|
-
|
|
33715
|
-
|
|
33716
|
-
|
|
33717
|
-
|
|
33718
|
-
|
|
33719
|
-
|
|
33720
|
-
|
|
33721
|
-
|
|
33722
|
-
|
|
33723
|
-
|
|
33724
|
-
|
|
33725
|
-
|
|
33726
|
-
|
|
33727
|
-
|
|
33728
|
-
|
|
33729
|
-
|
|
33730
|
-
|
|
33731
|
-
|
|
33732
|
-
|
|
33733
|
-
|
|
33734
|
-
|
|
33735
|
-
|
|
33736
|
-
|
|
33737
|
-
|
|
33738
|
-
|
|
33739
|
-
|
|
33740
|
-
|
|
33741
|
-
|
|
33742
|
-
|
|
33743
|
-
|
|
33744
|
-
|
|
33745
|
-
|
|
33746
|
-
|
|
33747
|
-
|
|
33748
|
-
|
|
33749
|
-
|
|
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
|
+
)
|
|
33750
33979
|
],
|
|
33751
33980
|
2
|
|
33752
33981
|
/* CLASS */
|
|
@@ -33755,7 +33984,7 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
33755
33984
|
}
|
|
33756
33985
|
});
|
|
33757
33986
|
|
|
33758
|
-
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"]]);
|
|
33759
33988
|
|
|
33760
33989
|
function compareValues(a, b) {
|
|
33761
33990
|
if (a == null && b == null) return 0;
|
|
@@ -64300,8 +64529,8 @@ function createDictStore(config) {
|
|
|
64300
64529
|
});
|
|
64301
64530
|
}
|
|
64302
64531
|
|
|
64303
|
-
const version = "0.0.
|
|
64532
|
+
const version = "0.0.78";
|
|
64304
64533
|
|
|
64305
64534
|
const install = installer.install;
|
|
64306
64535
|
|
|
64307
|
-
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 };
|
|
@@ -4,30 +4,30 @@ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOpt
|
|
|
4
4
|
export type { PlusCheckCardProps } from './src/index.vue';
|
|
5
5
|
export declare const PlusCheckCard: {
|
|
6
6
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
7
|
-
|
|
8
|
-
type: PropType<
|
|
9
|
-
default:
|
|
7
|
+
size: {
|
|
8
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
9
|
+
default: string;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
modelValue: {
|
|
12
12
|
type: PropType<boolean>;
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
title: {
|
|
16
16
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
17
17
|
default: undefined;
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
19
|
+
avatar: {
|
|
20
|
+
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
21
21
|
default: undefined;
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
modelValue: {
|
|
23
|
+
disabled: {
|
|
28
24
|
type: PropType<boolean>;
|
|
29
25
|
default: boolean;
|
|
30
26
|
};
|
|
27
|
+
extra: {
|
|
28
|
+
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
29
|
+
default: undefined;
|
|
30
|
+
};
|
|
31
31
|
description: {
|
|
32
32
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
33
33
|
default: undefined;
|
|
@@ -37,38 +37,38 @@ export declare const PlusCheckCard: {
|
|
|
37
37
|
default: () => {};
|
|
38
38
|
};
|
|
39
39
|
}>> & {
|
|
40
|
-
onChange?: ((checked: boolean) => any) | undefined;
|
|
41
40
|
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
41
|
+
onChange?: ((checked: boolean) => any) | undefined;
|
|
42
42
|
onExtra?: (() => any) | undefined;
|
|
43
43
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
44
44
|
"update:modelValue": (checked: boolean) => void;
|
|
45
45
|
change: (checked: boolean) => void;
|
|
46
46
|
extra: () => void;
|
|
47
47
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
48
|
-
|
|
49
|
-
type: PropType<
|
|
50
|
-
default:
|
|
48
|
+
size: {
|
|
49
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
50
|
+
default: string;
|
|
51
51
|
};
|
|
52
|
-
|
|
52
|
+
modelValue: {
|
|
53
53
|
type: PropType<boolean>;
|
|
54
54
|
default: boolean;
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
title: {
|
|
57
57
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
58
58
|
default: undefined;
|
|
59
59
|
};
|
|
60
|
-
|
|
61
|
-
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
60
|
+
avatar: {
|
|
61
|
+
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
62
62
|
default: undefined;
|
|
63
63
|
};
|
|
64
|
-
|
|
65
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
66
|
-
default: string;
|
|
67
|
-
};
|
|
68
|
-
modelValue: {
|
|
64
|
+
disabled: {
|
|
69
65
|
type: PropType<boolean>;
|
|
70
66
|
default: boolean;
|
|
71
67
|
};
|
|
68
|
+
extra: {
|
|
69
|
+
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
72
|
description: {
|
|
73
73
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
74
74
|
default: undefined;
|
|
@@ -78,16 +78,16 @@ export declare const PlusCheckCard: {
|
|
|
78
78
|
default: () => {};
|
|
79
79
|
};
|
|
80
80
|
}>> & {
|
|
81
|
-
onChange?: ((checked: boolean) => any) | undefined;
|
|
82
81
|
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
82
|
+
onChange?: ((checked: boolean) => any) | undefined;
|
|
83
83
|
onExtra?: (() => any) | undefined;
|
|
84
84
|
}, {
|
|
85
|
+
size: "" | "default" | "small" | "large";
|
|
86
|
+
modelValue: boolean;
|
|
85
87
|
title: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
86
|
-
disabled: boolean;
|
|
87
88
|
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
89
|
+
disabled: boolean;
|
|
88
90
|
extra: (data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes;
|
|
89
|
-
size: "" | "default" | "small" | "large";
|
|
90
|
-
modelValue: boolean;
|
|
91
91
|
description: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
92
92
|
avatarProps: RecordType;
|
|
93
93
|
}, true, {}, {}, {
|
|
@@ -98,30 +98,30 @@ export declare const PlusCheckCard: {
|
|
|
98
98
|
M: {};
|
|
99
99
|
Defaults: {};
|
|
100
100
|
}, Readonly< ExtractPropTypes<{
|
|
101
|
-
|
|
102
|
-
type: PropType<
|
|
103
|
-
default:
|
|
101
|
+
size: {
|
|
102
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
103
|
+
default: string;
|
|
104
104
|
};
|
|
105
|
-
|
|
105
|
+
modelValue: {
|
|
106
106
|
type: PropType<boolean>;
|
|
107
107
|
default: boolean;
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
title: {
|
|
110
110
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
111
111
|
default: undefined;
|
|
112
112
|
};
|
|
113
|
-
|
|
114
|
-
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
113
|
+
avatar: {
|
|
114
|
+
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
115
115
|
default: undefined;
|
|
116
116
|
};
|
|
117
|
-
|
|
118
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
119
|
-
default: string;
|
|
120
|
-
};
|
|
121
|
-
modelValue: {
|
|
117
|
+
disabled: {
|
|
122
118
|
type: PropType<boolean>;
|
|
123
119
|
default: boolean;
|
|
124
120
|
};
|
|
121
|
+
extra: {
|
|
122
|
+
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
123
|
+
default: undefined;
|
|
124
|
+
};
|
|
125
125
|
description: {
|
|
126
126
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
127
127
|
default: undefined;
|
|
@@ -131,16 +131,16 @@ export declare const PlusCheckCard: {
|
|
|
131
131
|
default: () => {};
|
|
132
132
|
};
|
|
133
133
|
}>> & {
|
|
134
|
-
onChange?: ((checked: boolean) => any) | undefined;
|
|
135
134
|
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
135
|
+
onChange?: ((checked: boolean) => any) | undefined;
|
|
136
136
|
onExtra?: (() => any) | undefined;
|
|
137
137
|
}, {}, {}, {}, {}, {
|
|
138
|
+
size: "" | "default" | "small" | "large";
|
|
139
|
+
modelValue: boolean;
|
|
138
140
|
title: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
139
|
-
disabled: boolean;
|
|
140
141
|
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
142
|
+
disabled: boolean;
|
|
141
143
|
extra: (data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes;
|
|
142
|
-
size: "" | "default" | "small" | "large";
|
|
143
|
-
modelValue: boolean;
|
|
144
144
|
description: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
145
145
|
avatarProps: RecordType;
|
|
146
146
|
}>;
|
|
@@ -148,30 +148,30 @@ export declare const PlusCheckCard: {
|
|
|
148
148
|
__isTeleport?: undefined;
|
|
149
149
|
__isSuspense?: undefined;
|
|
150
150
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
151
|
-
|
|
152
|
-
type: PropType<
|
|
153
|
-
default:
|
|
151
|
+
size: {
|
|
152
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
153
|
+
default: string;
|
|
154
154
|
};
|
|
155
|
-
|
|
155
|
+
modelValue: {
|
|
156
156
|
type: PropType<boolean>;
|
|
157
157
|
default: boolean;
|
|
158
158
|
};
|
|
159
|
-
|
|
159
|
+
title: {
|
|
160
160
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
161
161
|
default: undefined;
|
|
162
162
|
};
|
|
163
|
-
|
|
164
|
-
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
163
|
+
avatar: {
|
|
164
|
+
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
165
165
|
default: undefined;
|
|
166
166
|
};
|
|
167
|
-
|
|
168
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
169
|
-
default: string;
|
|
170
|
-
};
|
|
171
|
-
modelValue: {
|
|
167
|
+
disabled: {
|
|
172
168
|
type: PropType<boolean>;
|
|
173
169
|
default: boolean;
|
|
174
170
|
};
|
|
171
|
+
extra: {
|
|
172
|
+
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
173
|
+
default: undefined;
|
|
174
|
+
};
|
|
175
175
|
description: {
|
|
176
176
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
177
177
|
default: undefined;
|
|
@@ -181,20 +181,20 @@ export declare const PlusCheckCard: {
|
|
|
181
181
|
default: () => {};
|
|
182
182
|
};
|
|
183
183
|
}>> & {
|
|
184
|
-
onChange?: ((checked: boolean) => any) | undefined;
|
|
185
184
|
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
185
|
+
onChange?: ((checked: boolean) => any) | undefined;
|
|
186
186
|
onExtra?: (() => any) | undefined;
|
|
187
187
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
188
188
|
"update:modelValue": (checked: boolean) => void;
|
|
189
189
|
change: (checked: boolean) => void;
|
|
190
190
|
extra: () => void;
|
|
191
191
|
}, string, {
|
|
192
|
+
size: "" | "default" | "small" | "large";
|
|
193
|
+
modelValue: boolean;
|
|
192
194
|
title: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
193
|
-
disabled: boolean;
|
|
194
195
|
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
196
|
+
disabled: boolean;
|
|
195
197
|
extra: (data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes;
|
|
196
|
-
size: "" | "default" | "small" | "large";
|
|
197
|
-
modelValue: boolean;
|
|
198
198
|
description: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
199
199
|
avatarProps: RecordType;
|
|
200
200
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|