yc-pro-components 0.0.17 → 0.0.18
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 +38 -38
- package/es/components/check-card/src/index.vue.d.ts +2 -2
- package/es/components/check-card-group/index.d.ts +19 -19
- package/es/components/check-card-group/src/index.vue.d.ts +1 -1
- package/es/components/dialog/src/index.vue2.mjs +6 -3
- package/es/components/dialog-form/index.d.ts +1154 -0
- package/es/components/dialog-form/src/index.vue.d.ts +493 -0
- package/es/components/dialog-form/src/index.vue2.mjs +7 -4
- 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 +3467 -0
- package/es/components/drawer-form/src/index.vue.d.ts +1254 -0
- package/es/components/drawer-form/src/index.vue2.mjs +7 -4
- package/es/components/form/index.d.ts +1665 -1
- package/es/components/form/src/form-content.vue.d.ts +20 -20
- package/es/components/form/src/index.vue.d.ts +652 -0
- package/es/components/form/src/index.vue2.mjs +7 -4
- package/es/components/form-item/index.d.ts +32 -32
- package/es/components/form-item/src/index.vue.d.ts +12 -12
- package/es/components/header/index.d.ts +19 -19
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/input-tag/index.d.ts +9 -9
- package/es/components/input-tag/src/index.vue.d.ts +1 -1
- package/es/components/page/index.d.ts +15386 -0
- package/es/components/page/src/index.vue.d.ts +5306 -0
- package/es/components/popover/src/index.vue2.mjs +6 -3
- package/es/components/radio/index.d.ts +25 -25
- package/es/components/radio/src/index.vue.d.ts +25 -25
- package/es/components/render/index.d.ts +6 -6
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +4514 -0
- package/es/components/search/src/index.vue.d.ts +1539 -0
- package/es/components/table/index.d.ts +54 -54
- package/es/components/table/src/index.vue.d.ts +18 -18
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/es/components/table/src/table-column.vue.d.ts +37 -37
- package/es/components/yc-count-to/index.d.ts +1 -1
- package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/es/components/yc-dialog/index.d.ts +24 -24
- 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/src/index.vue.d.ts +12804 -0
- package/es/components/yc-select-v2/src/index.vue.d.ts +2 -2
- package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-status-dialog/src/index.vue.mjs +1 -1
- package/es/components/yc-status-dialog/src/index.vue2.mjs +6 -3
- package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/es/components/yc-text/src/index.vue.d.ts +2 -2
- package/es/hooks/usePlusFormReset.d.ts +9833 -5
- package/es/index.css +1 -1
- package/index.css +7 -7
- package/index.js +41 -23
- package/index.min.css +1 -1
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +41 -23
- package/lib/components/check-card/index.d.ts +38 -38
- package/lib/components/check-card/src/index.vue.d.ts +2 -2
- package/lib/components/check-card-group/index.d.ts +19 -19
- package/lib/components/check-card-group/src/index.vue.d.ts +1 -1
- package/lib/components/dialog/src/index.vue2.js +6 -3
- package/lib/components/dialog-form/index.d.ts +1154 -0
- package/lib/components/dialog-form/src/index.vue.d.ts +493 -0
- package/lib/components/dialog-form/src/index.vue2.js +7 -4
- 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 +3467 -0
- package/lib/components/drawer-form/src/index.vue.d.ts +1254 -0
- package/lib/components/drawer-form/src/index.vue2.js +7 -4
- package/lib/components/form/index.d.ts +1665 -1
- package/lib/components/form/src/form-content.vue.d.ts +20 -20
- package/lib/components/form/src/index.vue.d.ts +652 -0
- package/lib/components/form/src/index.vue2.js +7 -4
- package/lib/components/form-item/index.d.ts +32 -32
- package/lib/components/form-item/src/index.vue.d.ts +12 -12
- package/lib/components/header/index.d.ts +19 -19
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/input-tag/index.d.ts +9 -9
- package/lib/components/input-tag/src/index.vue.d.ts +1 -1
- package/lib/components/page/index.d.ts +15386 -0
- package/lib/components/page/src/index.vue.d.ts +5306 -0
- package/lib/components/popover/src/index.vue2.js +6 -3
- package/lib/components/radio/index.d.ts +25 -25
- package/lib/components/radio/src/index.vue.d.ts +25 -25
- package/lib/components/render/index.d.ts +6 -6
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +4514 -0
- package/lib/components/search/src/index.vue.d.ts +1539 -0
- package/lib/components/table/index.d.ts +54 -54
- package/lib/components/table/src/index.vue.d.ts +18 -18
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/lib/components/table/src/table-column.vue.d.ts +37 -37
- package/lib/components/yc-count-to/index.d.ts +1 -1
- package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/lib/components/yc-dialog/index.d.ts +24 -24
- 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/src/index.vue.d.ts +12804 -0
- package/lib/components/yc-select-v2/src/index.vue.d.ts +2 -2
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-status-dialog/src/index.vue.js +1 -1
- package/lib/components/yc-status-dialog/src/index.vue2.js +6 -3
- package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/lib/components/yc-text/src/index.vue.d.ts +2 -2
- package/lib/hooks/usePlusFormReset.d.ts +9833 -5
- package/lib/index.css +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 +3 -3
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.18 */
|
|
2
2
|
import { unref, isRef, ref, inject, isReactive, watch, computed, shallowRef, provide, onMounted, nextTick, onBeforeUnmount, defineComponent, watchEffect, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeStyle, createVNode, createTextVNode, toDisplayString, createElementBlock, normalizeClass, createCommentVNode, reactive, useAttrs, Fragment, renderList, resolveDynamicComponent, normalizeProps, guardReactiveProps, h, withDirectives, isVNode, withKeys, withModifiers, TransitionGroup, toHandlers, getCurrentInstance, resolveComponent, toRefs, useSlots, onUnmounted, resolveDirective, pushScopeId, popScopeId, onBeforeMount, getCurrentScope, onScopeDispose, toRef, mergeModels, useModel, vShow } 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, ElSteps, ElStep, ElBreadcrumb, ElBreadcrumbItem, ElMenuItem, ElSubMenu, ElMenu, ElScrollbar, ElHeader, ElContainer, ElMain, ElBacktop } from 'element-plus';
|
|
4
4
|
|
|
@@ -8624,12 +8624,15 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
8624
8624
|
isSubmitting.value = false;
|
|
8625
8625
|
}, 300);
|
|
8626
8626
|
};
|
|
8627
|
-
const
|
|
8627
|
+
const debouncedConfirm = debounce(doConfirm, 300, {
|
|
8628
8628
|
leading: true,
|
|
8629
8629
|
// 立即执行第一次
|
|
8630
8630
|
trailing: false
|
|
8631
8631
|
// 不执行最后一次
|
|
8632
8632
|
});
|
|
8633
|
+
const handleConfirm = () => {
|
|
8634
|
+
debouncedConfirm();
|
|
8635
|
+
};
|
|
8633
8636
|
const handleCancel = () => {
|
|
8634
8637
|
emit("update:modelValue", false);
|
|
8635
8638
|
emit("cancel");
|
|
@@ -8687,7 +8690,7 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
8687
8690
|
createVNode(unref(ElButton), {
|
|
8688
8691
|
type: "primary",
|
|
8689
8692
|
loading: computedLoading.value,
|
|
8690
|
-
onClick:
|
|
8693
|
+
onClick: handleConfirm
|
|
8691
8694
|
}, {
|
|
8692
8695
|
default: withCtx(() => [
|
|
8693
8696
|
createTextVNode(
|
|
@@ -8698,7 +8701,7 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
8698
8701
|
]),
|
|
8699
8702
|
_: 1
|
|
8700
8703
|
/* STABLE */
|
|
8701
|
-
}, 8, ["loading"
|
|
8704
|
+
}, 8, ["loading"])
|
|
8702
8705
|
])
|
|
8703
8706
|
],
|
|
8704
8707
|
4
|
|
@@ -16816,12 +16819,15 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
16816
16819
|
}
|
|
16817
16820
|
return false;
|
|
16818
16821
|
};
|
|
16819
|
-
const
|
|
16822
|
+
const debouncedSubmit = debounce(doSubmit, 300, {
|
|
16820
16823
|
leading: true,
|
|
16821
16824
|
// 立即执行第一次
|
|
16822
16825
|
trailing: false
|
|
16823
16826
|
// 不执行最后一次
|
|
16824
16827
|
});
|
|
16828
|
+
const handleSubmit = () => {
|
|
16829
|
+
debouncedSubmit();
|
|
16830
|
+
};
|
|
16825
16831
|
const handleReset = () => {
|
|
16826
16832
|
clearValidate();
|
|
16827
16833
|
values.value = { ...props.defaultValues };
|
|
@@ -16970,7 +16976,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
16970
16976
|
style: normalizeStyle(style.value)
|
|
16971
16977
|
},
|
|
16972
16978
|
[
|
|
16973
|
-
renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps({ handleReset, handleSubmit
|
|
16979
|
+
renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps({ handleReset, handleSubmit })), () => [
|
|
16974
16980
|
_ctx.hasReset ? (openBlock(), createBlock(unref(ElButton), {
|
|
16975
16981
|
key: 0,
|
|
16976
16982
|
onClick: handleReset
|
|
@@ -16989,7 +16995,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
16989
16995
|
createVNode(unref(ElButton), {
|
|
16990
16996
|
type: "primary",
|
|
16991
16997
|
loading: computedLoading.value,
|
|
16992
|
-
onClick:
|
|
16998
|
+
onClick: handleSubmit
|
|
16993
16999
|
}, {
|
|
16994
17000
|
default: withCtx(() => [
|
|
16995
17001
|
createCommentVNode(" \u63D0\u4EA4 "),
|
|
@@ -17001,7 +17007,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
17001
17007
|
]),
|
|
17002
17008
|
_: 1
|
|
17003
17009
|
/* STABLE */
|
|
17004
|
-
}, 8, ["loading"
|
|
17010
|
+
}, 8, ["loading"])
|
|
17005
17011
|
])
|
|
17006
17012
|
],
|
|
17007
17013
|
4
|
|
@@ -18112,12 +18118,15 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
18112
18118
|
subVisible.value = false;
|
|
18113
18119
|
emit("confirm");
|
|
18114
18120
|
};
|
|
18115
|
-
const
|
|
18121
|
+
const debouncedConfirm = debounce(doConfirm, 300, {
|
|
18116
18122
|
leading: true,
|
|
18117
18123
|
// 立即执行第一次
|
|
18118
18124
|
trailing: false
|
|
18119
18125
|
// 不执行最后一次
|
|
18120
18126
|
});
|
|
18127
|
+
const handleConfirmPopover = () => {
|
|
18128
|
+
debouncedConfirm();
|
|
18129
|
+
};
|
|
18121
18130
|
return (_ctx, _cache) => {
|
|
18122
18131
|
return openBlock(), createBlock(unref(ElPopover), mergeProps({
|
|
18123
18132
|
visible: subVisible.value,
|
|
@@ -18150,7 +18159,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
18150
18159
|
size: "small",
|
|
18151
18160
|
type: "primary",
|
|
18152
18161
|
loading: computedLoading.value,
|
|
18153
|
-
onClick:
|
|
18162
|
+
onClick: handleConfirmPopover
|
|
18154
18163
|
}, {
|
|
18155
18164
|
default: withCtx(() => [
|
|
18156
18165
|
createTextVNode(
|
|
@@ -18161,7 +18170,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
18161
18170
|
]),
|
|
18162
18171
|
_: 1
|
|
18163
18172
|
/* STABLE */
|
|
18164
|
-
}, 8, ["loading"
|
|
18173
|
+
}, 8, ["loading"])
|
|
18165
18174
|
])) : createCommentVNode("v-if", true)
|
|
18166
18175
|
]),
|
|
18167
18176
|
_: 3
|
|
@@ -19621,12 +19630,15 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
19621
19630
|
}, 300);
|
|
19622
19631
|
}
|
|
19623
19632
|
};
|
|
19624
|
-
const
|
|
19633
|
+
const debouncedConfirm = debounce(doConfirm, 300, {
|
|
19625
19634
|
leading: true,
|
|
19626
19635
|
// 立即执行第一次
|
|
19627
19636
|
trailing: false
|
|
19628
19637
|
// 不执行最后一次
|
|
19629
19638
|
});
|
|
19639
|
+
const handleConfirm = () => {
|
|
19640
|
+
debouncedConfirm();
|
|
19641
|
+
};
|
|
19630
19642
|
const handleCancel = () => {
|
|
19631
19643
|
subVisible.value = false;
|
|
19632
19644
|
emit("update:visible", subVisible.value);
|
|
@@ -19653,7 +19665,7 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
19653
19665
|
}, _ctx.dialog, {
|
|
19654
19666
|
onClose: handleClose,
|
|
19655
19667
|
onCancel: handleCancel,
|
|
19656
|
-
onConfirm:
|
|
19668
|
+
onConfirm: handleConfirm
|
|
19657
19669
|
}), createSlots({
|
|
19658
19670
|
default: withCtx(() => [
|
|
19659
19671
|
createVNode(unref(PlusForm), mergeProps({
|
|
@@ -19704,11 +19716,11 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
19704
19716
|
_ctx.$slots["dialog-footer"] ? {
|
|
19705
19717
|
name: "footer",
|
|
19706
19718
|
fn: withCtx(() => [
|
|
19707
|
-
renderSlot(_ctx.$slots, "dialog-footer", normalizeProps(guardReactiveProps({ handleConfirm
|
|
19719
|
+
renderSlot(_ctx.$slots, "dialog-footer", normalizeProps(guardReactiveProps({ handleConfirm, handleCancel })))
|
|
19708
19720
|
]),
|
|
19709
19721
|
key: "1"
|
|
19710
19722
|
} : void 0
|
|
19711
|
-
]), 1040, ["modelValue", "title", "confirm-loading"
|
|
19723
|
+
]), 1040, ["modelValue", "title", "confirm-loading"]);
|
|
19712
19724
|
};
|
|
19713
19725
|
}
|
|
19714
19726
|
});
|
|
@@ -19790,12 +19802,15 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
19790
19802
|
emit("confirmError", errors);
|
|
19791
19803
|
}
|
|
19792
19804
|
};
|
|
19793
|
-
const
|
|
19805
|
+
const debouncedConfirm = debounce(doConfirm, 300, {
|
|
19794
19806
|
leading: true,
|
|
19795
19807
|
// 立即执行第一次
|
|
19796
19808
|
trailing: false
|
|
19797
19809
|
// 不执行最后一次
|
|
19798
19810
|
});
|
|
19811
|
+
const handleConfirm = () => {
|
|
19812
|
+
debouncedConfirm();
|
|
19813
|
+
};
|
|
19799
19814
|
const handleClose = () => {
|
|
19800
19815
|
handleCancel();
|
|
19801
19816
|
emit("update:visible", subVisible.value);
|
|
@@ -19869,7 +19884,7 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
19869
19884
|
name: "footer",
|
|
19870
19885
|
fn: withCtx(() => [
|
|
19871
19886
|
createElementVNode("div", _hoisted_1$d, [
|
|
19872
|
-
renderSlot(_ctx.$slots, "drawer-footer", normalizeProps(guardReactiveProps({ handleConfirm
|
|
19887
|
+
renderSlot(_ctx.$slots, "drawer-footer", normalizeProps(guardReactiveProps({ handleConfirm, handleCancel })), () => [
|
|
19873
19888
|
createVNode(unref(ElButton), { onClick: handleCancel }, {
|
|
19874
19889
|
default: withCtx(() => [
|
|
19875
19890
|
createTextVNode(
|
|
@@ -19884,7 +19899,7 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
19884
19899
|
createVNode(unref(ElButton), {
|
|
19885
19900
|
type: "primary",
|
|
19886
19901
|
loading: computedLoading.value,
|
|
19887
|
-
onClick:
|
|
19902
|
+
onClick: handleConfirm
|
|
19888
19903
|
}, {
|
|
19889
19904
|
default: withCtx(() => [
|
|
19890
19905
|
createTextVNode(
|
|
@@ -19895,7 +19910,7 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
19895
19910
|
]),
|
|
19896
19911
|
_: 1
|
|
19897
19912
|
/* STABLE */
|
|
19898
|
-
}, 8, ["loading"
|
|
19913
|
+
}, 8, ["loading"])
|
|
19899
19914
|
])
|
|
19900
19915
|
])
|
|
19901
19916
|
]),
|
|
@@ -58039,12 +58054,15 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
58039
58054
|
emit("confirm");
|
|
58040
58055
|
dialogVisible.value = false;
|
|
58041
58056
|
};
|
|
58042
|
-
const
|
|
58057
|
+
const debouncedConfirm = debounce(doConfirm, 300, {
|
|
58043
58058
|
leading: true,
|
|
58044
58059
|
// 立即执行第一次
|
|
58045
58060
|
trailing: false
|
|
58046
58061
|
// 不执行最后一次
|
|
58047
58062
|
});
|
|
58063
|
+
const handleConfirm = () => {
|
|
58064
|
+
debouncedConfirm();
|
|
58065
|
+
};
|
|
58048
58066
|
const handleCancel = () => {
|
|
58049
58067
|
emit("cancel");
|
|
58050
58068
|
dialogVisible.value = false;
|
|
@@ -58104,7 +58122,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
58104
58122
|
createVNode(unref(ElButton), {
|
|
58105
58123
|
type: currentStatusConfig.value.confirmButtonType,
|
|
58106
58124
|
loading: isSubmitting.value,
|
|
58107
|
-
onClick:
|
|
58125
|
+
onClick: handleConfirm
|
|
58108
58126
|
}, {
|
|
58109
58127
|
default: withCtx(() => [
|
|
58110
58128
|
createTextVNode(
|
|
@@ -58115,7 +58133,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
58115
58133
|
]),
|
|
58116
58134
|
_: 1
|
|
58117
58135
|
/* STABLE */
|
|
58118
|
-
}, 8, ["type", "loading"
|
|
58136
|
+
}, 8, ["type", "loading"])
|
|
58119
58137
|
], true)
|
|
58120
58138
|
])
|
|
58121
58139
|
]),
|
|
@@ -58139,7 +58157,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
58139
58157
|
}
|
|
58140
58158
|
});
|
|
58141
58159
|
|
|
58142
|
-
var YcStatusDialog = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
58160
|
+
var YcStatusDialog = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-7a078f73"], ["__file", "index.vue"]]);
|
|
58143
58161
|
|
|
58144
58162
|
var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
58145
58163
|
...{
|
|
@@ -4,26 +4,26 @@ 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
|
-
size: {
|
|
8
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
7
|
title: {
|
|
12
8
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
13
9
|
default: undefined;
|
|
14
10
|
};
|
|
15
|
-
avatar: {
|
|
16
|
-
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
17
|
-
default: undefined;
|
|
18
|
-
};
|
|
19
11
|
disabled: {
|
|
20
12
|
type: PropType<boolean>;
|
|
21
13
|
default: boolean;
|
|
22
14
|
};
|
|
15
|
+
avatar: {
|
|
16
|
+
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
23
19
|
extra: {
|
|
24
20
|
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
25
21
|
default: undefined;
|
|
26
22
|
};
|
|
23
|
+
size: {
|
|
24
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
27
|
modelValue: {
|
|
28
28
|
type: PropType<boolean>;
|
|
29
29
|
default: boolean;
|
|
@@ -45,26 +45,26 @@ export declare const PlusCheckCard: {
|
|
|
45
45
|
change: (checked: boolean) => void;
|
|
46
46
|
extra: () => void;
|
|
47
47
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
48
|
-
size: {
|
|
49
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
50
|
-
default: string;
|
|
51
|
-
};
|
|
52
48
|
title: {
|
|
53
49
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
54
50
|
default: undefined;
|
|
55
51
|
};
|
|
56
|
-
avatar: {
|
|
57
|
-
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
58
|
-
default: undefined;
|
|
59
|
-
};
|
|
60
52
|
disabled: {
|
|
61
53
|
type: PropType<boolean>;
|
|
62
54
|
default: boolean;
|
|
63
55
|
};
|
|
56
|
+
avatar: {
|
|
57
|
+
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
64
60
|
extra: {
|
|
65
61
|
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
66
62
|
default: undefined;
|
|
67
63
|
};
|
|
64
|
+
size: {
|
|
65
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
68
|
modelValue: {
|
|
69
69
|
type: PropType<boolean>;
|
|
70
70
|
default: boolean;
|
|
@@ -82,11 +82,11 @@ export declare const PlusCheckCard: {
|
|
|
82
82
|
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
83
83
|
onExtra?: (() => any) | undefined;
|
|
84
84
|
}, {
|
|
85
|
-
size: "" | "default" | "small" | "large";
|
|
86
85
|
title: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
87
|
-
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
88
86
|
disabled: boolean;
|
|
87
|
+
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
89
88
|
extra: (data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes;
|
|
89
|
+
size: "" | "default" | "small" | "large";
|
|
90
90
|
modelValue: boolean;
|
|
91
91
|
description: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
92
92
|
avatarProps: RecordType;
|
|
@@ -98,26 +98,26 @@ export declare const PlusCheckCard: {
|
|
|
98
98
|
M: {};
|
|
99
99
|
Defaults: {};
|
|
100
100
|
}, Readonly< ExtractPropTypes<{
|
|
101
|
-
size: {
|
|
102
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
103
|
-
default: string;
|
|
104
|
-
};
|
|
105
101
|
title: {
|
|
106
102
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
107
103
|
default: undefined;
|
|
108
104
|
};
|
|
109
|
-
avatar: {
|
|
110
|
-
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
111
|
-
default: undefined;
|
|
112
|
-
};
|
|
113
105
|
disabled: {
|
|
114
106
|
type: PropType<boolean>;
|
|
115
107
|
default: boolean;
|
|
116
108
|
};
|
|
109
|
+
avatar: {
|
|
110
|
+
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
111
|
+
default: undefined;
|
|
112
|
+
};
|
|
117
113
|
extra: {
|
|
118
114
|
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
119
115
|
default: undefined;
|
|
120
116
|
};
|
|
117
|
+
size: {
|
|
118
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
121
|
modelValue: {
|
|
122
122
|
type: PropType<boolean>;
|
|
123
123
|
default: boolean;
|
|
@@ -135,11 +135,11 @@ export declare const PlusCheckCard: {
|
|
|
135
135
|
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
136
136
|
onExtra?: (() => any) | undefined;
|
|
137
137
|
}, {}, {}, {}, {}, {
|
|
138
|
-
size: "" | "default" | "small" | "large";
|
|
139
138
|
title: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
140
|
-
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
141
139
|
disabled: boolean;
|
|
140
|
+
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
142
141
|
extra: (data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes;
|
|
142
|
+
size: "" | "default" | "small" | "large";
|
|
143
143
|
modelValue: boolean;
|
|
144
144
|
description: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
145
145
|
avatarProps: RecordType;
|
|
@@ -148,26 +148,26 @@ export declare const PlusCheckCard: {
|
|
|
148
148
|
__isTeleport?: undefined;
|
|
149
149
|
__isSuspense?: undefined;
|
|
150
150
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
151
|
-
size: {
|
|
152
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
153
|
-
default: string;
|
|
154
|
-
};
|
|
155
151
|
title: {
|
|
156
152
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
157
153
|
default: undefined;
|
|
158
154
|
};
|
|
159
|
-
avatar: {
|
|
160
|
-
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
161
|
-
default: undefined;
|
|
162
|
-
};
|
|
163
155
|
disabled: {
|
|
164
156
|
type: PropType<boolean>;
|
|
165
157
|
default: boolean;
|
|
166
158
|
};
|
|
159
|
+
avatar: {
|
|
160
|
+
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
161
|
+
default: undefined;
|
|
162
|
+
};
|
|
167
163
|
extra: {
|
|
168
164
|
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
169
165
|
default: undefined;
|
|
170
166
|
};
|
|
167
|
+
size: {
|
|
168
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
169
|
+
default: string;
|
|
170
|
+
};
|
|
171
171
|
modelValue: {
|
|
172
172
|
type: PropType<boolean>;
|
|
173
173
|
default: boolean;
|
|
@@ -189,11 +189,11 @@ export declare const PlusCheckCard: {
|
|
|
189
189
|
change: (checked: boolean) => void;
|
|
190
190
|
extra: () => void;
|
|
191
191
|
}, string, {
|
|
192
|
-
size: "" | "default" | "small" | "large";
|
|
193
192
|
title: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
194
|
-
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
195
193
|
disabled: boolean;
|
|
194
|
+
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
196
195
|
extra: (data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes;
|
|
196
|
+
size: "" | "default" | "small" | "large";
|
|
197
197
|
modelValue: boolean;
|
|
198
198
|
description: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
199
199
|
avatarProps: RecordType;
|
|
@@ -47,11 +47,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
47
47
|
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
48
48
|
onExtra?: (() => any) | undefined;
|
|
49
49
|
}, {
|
|
50
|
-
size: "" | "default" | "small" | "large";
|
|
51
50
|
title: string | ((data: Pick<PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
52
|
-
avatar: string | ((data: Pick<PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
53
51
|
disabled: boolean;
|
|
52
|
+
avatar: string | ((data: Pick<PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
54
53
|
extra: (data: Pick<PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes;
|
|
54
|
+
size: "" | "default" | "small" | "large";
|
|
55
55
|
modelValue: boolean;
|
|
56
56
|
description: string | ((data: Pick<PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
57
57
|
avatarProps: RecordType;
|
|
@@ -4,14 +4,14 @@ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOpt
|
|
|
4
4
|
export type { PlusCheckCardGroupProps } from './src/index.vue';
|
|
5
5
|
export declare const PlusCheckCardGroup: {
|
|
6
6
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
7
|
-
size: {
|
|
8
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
9
|
-
default: undefined;
|
|
10
|
-
};
|
|
11
7
|
disabled: {
|
|
12
8
|
type: PropType<boolean>;
|
|
13
9
|
default: boolean;
|
|
14
10
|
};
|
|
11
|
+
size: {
|
|
12
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
15
|
options: {
|
|
16
16
|
type: PropType<( PlusCheckCardProps & {
|
|
17
17
|
value: string | number;
|
|
@@ -39,14 +39,14 @@ export declare const PlusCheckCardGroup: {
|
|
|
39
39
|
value: string | number;
|
|
40
40
|
}) => void;
|
|
41
41
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
42
|
-
size: {
|
|
43
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
44
|
-
default: undefined;
|
|
45
|
-
};
|
|
46
42
|
disabled: {
|
|
47
43
|
type: PropType<boolean>;
|
|
48
44
|
default: boolean;
|
|
49
45
|
};
|
|
46
|
+
size: {
|
|
47
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
50
|
options: {
|
|
51
51
|
type: PropType<( PlusCheckCardProps & {
|
|
52
52
|
value: string | number;
|
|
@@ -68,8 +68,8 @@ export declare const PlusCheckCardGroup: {
|
|
|
68
68
|
value: string | number;
|
|
69
69
|
}) => any) | undefined;
|
|
70
70
|
}, {
|
|
71
|
-
size: "" | "default" | "small" | "large";
|
|
72
71
|
disabled: boolean;
|
|
72
|
+
size: "" | "default" | "small" | "large";
|
|
73
73
|
options: ( PlusCheckCardProps & {
|
|
74
74
|
value: string | number;
|
|
75
75
|
})[];
|
|
@@ -83,14 +83,14 @@ export declare const PlusCheckCardGroup: {
|
|
|
83
83
|
M: {};
|
|
84
84
|
Defaults: {};
|
|
85
85
|
}, Readonly< ExtractPropTypes<{
|
|
86
|
-
size: {
|
|
87
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
88
|
-
default: undefined;
|
|
89
|
-
};
|
|
90
86
|
disabled: {
|
|
91
87
|
type: PropType<boolean>;
|
|
92
88
|
default: boolean;
|
|
93
89
|
};
|
|
90
|
+
size: {
|
|
91
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
92
|
+
default: undefined;
|
|
93
|
+
};
|
|
94
94
|
options: {
|
|
95
95
|
type: PropType<( PlusCheckCardProps & {
|
|
96
96
|
value: string | number;
|
|
@@ -112,8 +112,8 @@ export declare const PlusCheckCardGroup: {
|
|
|
112
112
|
value: string | number;
|
|
113
113
|
}) => any) | undefined;
|
|
114
114
|
}, {}, {}, {}, {}, {
|
|
115
|
-
size: "" | "default" | "small" | "large";
|
|
116
115
|
disabled: boolean;
|
|
116
|
+
size: "" | "default" | "small" | "large";
|
|
117
117
|
options: ( PlusCheckCardProps & {
|
|
118
118
|
value: string | number;
|
|
119
119
|
})[];
|
|
@@ -124,14 +124,14 @@ export declare const PlusCheckCardGroup: {
|
|
|
124
124
|
__isTeleport?: undefined;
|
|
125
125
|
__isSuspense?: undefined;
|
|
126
126
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
127
|
-
size: {
|
|
128
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
129
|
-
default: undefined;
|
|
130
|
-
};
|
|
131
127
|
disabled: {
|
|
132
128
|
type: PropType<boolean>;
|
|
133
129
|
default: boolean;
|
|
134
130
|
};
|
|
131
|
+
size: {
|
|
132
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
133
|
+
default: undefined;
|
|
134
|
+
};
|
|
135
135
|
options: {
|
|
136
136
|
type: PropType<( PlusCheckCardProps & {
|
|
137
137
|
value: string | number;
|
|
@@ -159,8 +159,8 @@ export declare const PlusCheckCardGroup: {
|
|
|
159
159
|
value: string | number;
|
|
160
160
|
}) => void;
|
|
161
161
|
}, string, {
|
|
162
|
-
size: "" | "default" | "small" | "large";
|
|
163
162
|
disabled: boolean;
|
|
163
|
+
size: "" | "default" | "small" | "large";
|
|
164
164
|
options: ( PlusCheckCardProps & {
|
|
165
165
|
value: string | number;
|
|
166
166
|
})[];
|
|
@@ -51,8 +51,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
51
51
|
value: string | number;
|
|
52
52
|
}) => any) | undefined;
|
|
53
53
|
}, {
|
|
54
|
-
size: "" | "default" | "small" | "large";
|
|
55
54
|
disabled: boolean;
|
|
55
|
+
size: "" | "default" | "small" | "large";
|
|
56
56
|
options: (PlusCheckCardProps & {
|
|
57
57
|
value: string | number;
|
|
58
58
|
})[];
|
|
@@ -47,12 +47,15 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
47
47
|
isSubmitting.value = false;
|
|
48
48
|
}, 300);
|
|
49
49
|
};
|
|
50
|
-
const
|
|
50
|
+
const debouncedConfirm = lodashEs.debounce(doConfirm, 300, {
|
|
51
51
|
leading: true,
|
|
52
52
|
// 立即执行第一次
|
|
53
53
|
trailing: false
|
|
54
54
|
// 不执行最后一次
|
|
55
55
|
});
|
|
56
|
+
const handleConfirm = () => {
|
|
57
|
+
debouncedConfirm();
|
|
58
|
+
};
|
|
56
59
|
const handleCancel = () => {
|
|
57
60
|
emit("update:modelValue", false);
|
|
58
61
|
emit("cancel");
|
|
@@ -110,7 +113,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
110
113
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
111
114
|
type: "primary",
|
|
112
115
|
loading: computedLoading.value,
|
|
113
|
-
onClick:
|
|
116
|
+
onClick: handleConfirm
|
|
114
117
|
}, {
|
|
115
118
|
default: vue.withCtx(() => [
|
|
116
119
|
vue.createTextVNode(
|
|
@@ -121,7 +124,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
121
124
|
]),
|
|
122
125
|
_: 1
|
|
123
126
|
/* STABLE */
|
|
124
|
-
}, 8, ["loading"
|
|
127
|
+
}, 8, ["loading"])
|
|
125
128
|
])
|
|
126
129
|
],
|
|
127
130
|
4
|