yc-pro-components 0.0.11 → 0.0.13
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 +10 -10
- package/es/components/date-picker/src/index.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +26 -26
- package/es/components/dialog/src/index.vue.d.ts +2 -2
- package/es/components/dialog-form/index.d.ts +44 -32
- package/es/components/dialog-form/src/index.vue.d.ts +22 -10
- package/es/components/display-item/index.d.ts +80 -44
- package/es/components/display-item/src/index.vue.d.ts +61 -25
- package/es/components/drawer-form/index.d.ts +63 -51
- package/es/components/drawer-form/src/index.vue.d.ts +23 -11
- package/es/components/form/index.d.ts +71 -47
- package/es/components/form/src/form-content.vue.d.ts +60 -24
- package/es/components/form/src/index.vue.d.ts +43 -19
- package/es/components/form-item/index.d.ts +129 -57
- package/es/components/form-item/src/index.vue.d.ts +46 -15
- package/es/components/form-item/src/index.vue2.mjs +1 -0
- 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 +20 -20
- package/es/components/input-tag/src/index.vue.d.ts +8 -8
- 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 +751 -469
- package/es/components/page/src/index.vue.d.ts +263 -161
- package/es/components/page/src/index.vue2.mjs +1 -1
- 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 +6 -6
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +284 -162
- package/es/components/search/src/index.vue.d.ts +95 -53
- package/es/components/search/src/index.vue2.mjs +14 -4
- package/es/components/search/src/type.d.ts +9 -0
- 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/index.d.ts +54 -54
- package/es/components/table/src/index.vue.d.ts +18 -18
- package/es/components/table/src/table-action-bar.vue2.mjs +1 -1
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/es/components/table/src/table-column.vue.d.ts +76 -40
- 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/src/index.vue.d.ts +588 -529
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +8 -2
- 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/constants/dict.d.ts +78 -0
- package/es/constants/dict.mjs +3 -0
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.mjs +1 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useDictInjection.d.ts +38 -0
- package/es/hooks/useDictInjection.mjs +18 -0
- package/es/hooks/useGetOptions.mjs +118 -30
- package/es/hooks/usePlusFormReset.d.ts +286 -214
- package/es/index.css +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +2 -0
- package/es/types/plus.d.ts +74 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/yc-components/index.d.ts +1 -1
- package/es/yc-components/version.d.ts +1 -1
- package/index.css +9 -5
- package/index.js +187 -65
- package/index.min.css +1 -1
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +187 -67
- 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 +10 -10
- package/lib/components/date-picker/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +26 -26
- package/lib/components/dialog/src/index.vue.d.ts +2 -2
- package/lib/components/dialog-form/index.d.ts +44 -32
- package/lib/components/dialog-form/src/index.vue.d.ts +22 -10
- package/lib/components/display-item/index.d.ts +80 -44
- package/lib/components/display-item/src/index.vue.d.ts +61 -25
- package/lib/components/drawer-form/index.d.ts +63 -51
- package/lib/components/drawer-form/src/index.vue.d.ts +23 -11
- package/lib/components/form/index.d.ts +71 -47
- package/lib/components/form/src/form-content.vue.d.ts +60 -24
- package/lib/components/form/src/index.vue.d.ts +43 -19
- package/lib/components/form-item/index.d.ts +129 -57
- package/lib/components/form-item/src/index.vue.d.ts +46 -15
- package/lib/components/form-item/src/index.vue2.js +1 -0
- 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 +20 -20
- package/lib/components/input-tag/src/index.vue.d.ts +8 -8
- 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 +751 -469
- package/lib/components/page/src/index.vue.d.ts +263 -161
- package/lib/components/page/src/index.vue2.js +1 -1
- 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 +6 -6
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +284 -162
- package/lib/components/search/src/index.vue.d.ts +95 -53
- package/lib/components/search/src/index.vue2.js +13 -3
- package/lib/components/search/src/type.d.ts +9 -0
- 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/index.d.ts +54 -54
- package/lib/components/table/src/index.vue.d.ts +18 -18
- package/lib/components/table/src/table-action-bar.vue2.js +1 -1
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/lib/components/table/src/table-column.vue.d.ts +76 -40
- 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/src/index.vue.d.ts +588 -529
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +8 -2
- 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/constants/dict.d.ts +78 -0
- package/lib/constants/dict.js +5 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +2 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/useDictInjection.d.ts +38 -0
- package/lib/hooks/useDictInjection.js +20 -0
- package/lib/hooks/useGetOptions.js +117 -29
- package/lib/hooks/usePlusFormReset.d.ts +286 -214
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +4 -0
- package/lib/types/plus.d.ts +74 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/yc-components/index.d.ts +1 -1
- package/lib/yc-components/version.d.ts +1 -1
- package/locale/en.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/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-page.css +1 -1
- package/theme-chalk/src/page.scss +1 -1
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
2
|
-
import { unref, isRef, ref, isReactive, watch,
|
|
1
|
+
/*! yc-pro-components v0.0.13 */
|
|
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
|
|
|
5
5
|
const makeInstaller = (components = []) => {
|
|
@@ -4767,6 +4767,36 @@ const removeChildrenField = (item) => {
|
|
|
4767
4767
|
return data;
|
|
4768
4768
|
};
|
|
4769
4769
|
|
|
4770
|
+
const DefaultPageSizeList = [10, 20, 30, 40, 50, 100, 200, 300, 400, 500];
|
|
4771
|
+
const DefaultPageInfo = {
|
|
4772
|
+
page: 1,
|
|
4773
|
+
pageSize: 10
|
|
4774
|
+
};
|
|
4775
|
+
|
|
4776
|
+
const TableFormRefInjectionKey = Symbol("tableFormRefInjectionKey");
|
|
4777
|
+
const TableFormFieldRefInjectionKey = Symbol("tableFormFieldRefInjectionKey");
|
|
4778
|
+
const TableFormRowInfoInjectionKey = Symbol("tableFormRowInfoInjectionKey");
|
|
4779
|
+
const DatePickerValueIsArrayList = ["datetimerange", "daterange", "monthrange"];
|
|
4780
|
+
const ValueIsNumberList = ["rate", "input-number", "slider"];
|
|
4781
|
+
const ValueIsBooleanList = ["switch"];
|
|
4782
|
+
const ValueIsArrayList = [
|
|
4783
|
+
"checkbox",
|
|
4784
|
+
"cascader",
|
|
4785
|
+
"plus-date-picker",
|
|
4786
|
+
"plus-input-tag",
|
|
4787
|
+
"transfer"
|
|
4788
|
+
];
|
|
4789
|
+
|
|
4790
|
+
const selectValueTypeList = [
|
|
4791
|
+
"select",
|
|
4792
|
+
"radio",
|
|
4793
|
+
"checkbox",
|
|
4794
|
+
"select-v2",
|
|
4795
|
+
"plus-radio"
|
|
4796
|
+
];
|
|
4797
|
+
|
|
4798
|
+
const DictStoreInjectionKey = Symbol("DictStore");
|
|
4799
|
+
|
|
4770
4800
|
const throwError = (data) => {
|
|
4771
4801
|
if (!isArray(data)) {
|
|
4772
4802
|
console.error("Uncaught TypeError: ", `options expected Array but got ${toRawType(data)}`);
|
|
@@ -4793,27 +4823,53 @@ const getOptionsByOptionsMap = (options, props) => {
|
|
|
4793
4823
|
const useGetOptions = (props) => {
|
|
4794
4824
|
const options = ref([]);
|
|
4795
4825
|
const optionsIsReady = ref(false);
|
|
4796
|
-
|
|
4826
|
+
const injectedDictStore = inject(DictStoreInjectionKey, null);
|
|
4827
|
+
const hasValidOptions = props.options && (!isArray(props.options) || props.options.length > 0);
|
|
4828
|
+
if (hasValidOptions) {
|
|
4829
|
+
handleOptions();
|
|
4830
|
+
} else if (props.autoDict) {
|
|
4831
|
+
handleAutoDict();
|
|
4832
|
+
} else {
|
|
4797
4833
|
options.value = [];
|
|
4798
4834
|
optionsIsReady.value = true;
|
|
4799
|
-
}
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4835
|
+
}
|
|
4836
|
+
function handleOptions() {
|
|
4837
|
+
if (!props.options) {
|
|
4838
|
+
options.value = [];
|
|
4839
|
+
optionsIsReady.value = true;
|
|
4840
|
+
return;
|
|
4841
|
+
}
|
|
4842
|
+
if (isRef(props.options) || isReactive(props.options) || isArray(props.options)) {
|
|
4843
|
+
watch(
|
|
4844
|
+
() => props.options,
|
|
4845
|
+
(val) => {
|
|
4846
|
+
const value = isRef(val) ? val.value : val;
|
|
4847
|
+
options.value = getOptionsByOptionsMap(value, props);
|
|
4848
|
+
optionsIsReady.value = true;
|
|
4849
|
+
},
|
|
4850
|
+
{
|
|
4851
|
+
immediate: true,
|
|
4852
|
+
deep: true
|
|
4853
|
+
}
|
|
4854
|
+
);
|
|
4855
|
+
} else if (isFunction(props.options)) {
|
|
4856
|
+
const getValue = props.options;
|
|
4857
|
+
const result = getValue(props);
|
|
4858
|
+
if (isPromise(result)) {
|
|
4859
|
+
result.then((value) => {
|
|
4860
|
+
options.value = getOptionsByOptionsMap(value, props);
|
|
4861
|
+
optionsIsReady.value = true;
|
|
4862
|
+
throwError(options.value);
|
|
4863
|
+
}).catch((err) => {
|
|
4864
|
+
throw err;
|
|
4865
|
+
});
|
|
4866
|
+
} else {
|
|
4867
|
+
options.value = getOptionsByOptionsMap(result, props);
|
|
4805
4868
|
optionsIsReady.value = true;
|
|
4806
|
-
},
|
|
4807
|
-
{
|
|
4808
|
-
immediate: true,
|
|
4809
|
-
deep: true
|
|
4810
4869
|
}
|
|
4811
|
-
)
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
const result = getValue(props);
|
|
4815
|
-
if (isPromise(result)) {
|
|
4816
|
-
result.then((value) => {
|
|
4870
|
+
} else if (isPromise(props.options)) {
|
|
4871
|
+
const getValue = props.options;
|
|
4872
|
+
getValue.then((value) => {
|
|
4817
4873
|
options.value = getOptionsByOptionsMap(value, props);
|
|
4818
4874
|
optionsIsReady.value = true;
|
|
4819
4875
|
throwError(options.value);
|
|
@@ -4821,21 +4877,82 @@ const useGetOptions = (props) => {
|
|
|
4821
4877
|
throw err;
|
|
4822
4878
|
});
|
|
4823
4879
|
} else {
|
|
4824
|
-
options.value = getOptionsByOptionsMap(result, props);
|
|
4825
4880
|
optionsIsReady.value = true;
|
|
4881
|
+
throwError(props.options);
|
|
4826
4882
|
}
|
|
4827
|
-
}
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4883
|
+
}
|
|
4884
|
+
function handleAutoDict() {
|
|
4885
|
+
if (isFunction(props.autoDict)) {
|
|
4886
|
+
const autoDictFn = props.autoDict;
|
|
4887
|
+
watch(
|
|
4888
|
+
() => {
|
|
4889
|
+
return autoDictFn(props);
|
|
4890
|
+
},
|
|
4891
|
+
(result) => {
|
|
4892
|
+
if (isPromise(result)) {
|
|
4893
|
+
result.then((value) => {
|
|
4894
|
+
options.value = getOptionsByOptionsMap(value, props);
|
|
4895
|
+
optionsIsReady.value = true;
|
|
4896
|
+
}).catch((err) => {
|
|
4897
|
+
console.error("[yc-components] autoDict function error:", err);
|
|
4898
|
+
options.value = [];
|
|
4899
|
+
optionsIsReady.value = true;
|
|
4900
|
+
});
|
|
4901
|
+
} else {
|
|
4902
|
+
options.value = getOptionsByOptionsMap(result, props);
|
|
4903
|
+
optionsIsReady.value = true;
|
|
4904
|
+
}
|
|
4905
|
+
},
|
|
4906
|
+
{ immediate: true }
|
|
4907
|
+
);
|
|
4908
|
+
} else if (typeof props.autoDict === "object" && props.autoDict !== null) {
|
|
4909
|
+
const { store, method = "getDictData", transform, dictCode } = props.autoDict;
|
|
4910
|
+
const dictStore = store || injectedDictStore;
|
|
4911
|
+
const fieldOrCode = dictCode || props.prop;
|
|
4912
|
+
if (dictStore && isFunction(dictStore[method])) {
|
|
4913
|
+
watch(
|
|
4914
|
+
() => dictStore[method](fieldOrCode),
|
|
4915
|
+
(val) => {
|
|
4916
|
+
try {
|
|
4917
|
+
const data = transform && isFunction(transform) ? transform(val) : val;
|
|
4918
|
+
options.value = getOptionsByOptionsMap(data, props);
|
|
4919
|
+
optionsIsReady.value = true;
|
|
4920
|
+
} catch (err) {
|
|
4921
|
+
console.error("[yc-components] autoDict transform error:", err);
|
|
4922
|
+
options.value = [];
|
|
4923
|
+
optionsIsReady.value = true;
|
|
4924
|
+
}
|
|
4925
|
+
},
|
|
4926
|
+
{ immediate: true }
|
|
4927
|
+
);
|
|
4928
|
+
} else {
|
|
4929
|
+
console.warn(
|
|
4930
|
+
`[yc-components] autoDict: DictStore or method "${method}" not found for field "${fieldOrCode}"`
|
|
4931
|
+
);
|
|
4932
|
+
options.value = [];
|
|
4933
|
+
optionsIsReady.value = true;
|
|
4934
|
+
}
|
|
4935
|
+
} else if (props.autoDict === true) {
|
|
4936
|
+
if (injectedDictStore && isFunction(injectedDictStore.getDictData)) {
|
|
4937
|
+
watch(
|
|
4938
|
+
() => injectedDictStore.getDictData(props.prop),
|
|
4939
|
+
(val) => {
|
|
4940
|
+
options.value = getOptionsByOptionsMap(val, props);
|
|
4941
|
+
optionsIsReady.value = true;
|
|
4942
|
+
},
|
|
4943
|
+
{ immediate: true }
|
|
4944
|
+
);
|
|
4945
|
+
} else {
|
|
4946
|
+
console.warn(
|
|
4947
|
+
`[yc-components] autoDict: DictStore not provided via inject for field "${props.prop}". Please use useDictInjection() in parent component.`
|
|
4948
|
+
);
|
|
4949
|
+
options.value = [];
|
|
4950
|
+
optionsIsReady.value = true;
|
|
4951
|
+
}
|
|
4952
|
+
} else {
|
|
4953
|
+
options.value = [];
|
|
4831
4954
|
optionsIsReady.value = true;
|
|
4832
|
-
|
|
4833
|
-
}).catch((err) => {
|
|
4834
|
-
throw err;
|
|
4835
|
-
});
|
|
4836
|
-
} else {
|
|
4837
|
-
optionsIsReady.value = true;
|
|
4838
|
-
throwError(props.options);
|
|
4955
|
+
}
|
|
4839
4956
|
}
|
|
4840
4957
|
return { customOptions: options, customOptionsIsReady: optionsIsReady };
|
|
4841
4958
|
};
|
|
@@ -4934,34 +5051,6 @@ const useLocale = (localeOverrides) => {
|
|
|
4934
5051
|
}));
|
|
4935
5052
|
};
|
|
4936
5053
|
|
|
4937
|
-
const DefaultPageSizeList = [10, 20, 30, 40, 50, 100, 200, 300, 400, 500];
|
|
4938
|
-
const DefaultPageInfo = {
|
|
4939
|
-
page: 1,
|
|
4940
|
-
pageSize: 10
|
|
4941
|
-
};
|
|
4942
|
-
|
|
4943
|
-
const TableFormRefInjectionKey = Symbol("tableFormRefInjectionKey");
|
|
4944
|
-
const TableFormFieldRefInjectionKey = Symbol("tableFormFieldRefInjectionKey");
|
|
4945
|
-
const TableFormRowInfoInjectionKey = Symbol("tableFormRowInfoInjectionKey");
|
|
4946
|
-
const DatePickerValueIsArrayList = ["datetimerange", "daterange", "monthrange"];
|
|
4947
|
-
const ValueIsNumberList = ["rate", "input-number", "slider"];
|
|
4948
|
-
const ValueIsBooleanList = ["switch"];
|
|
4949
|
-
const ValueIsArrayList = [
|
|
4950
|
-
"checkbox",
|
|
4951
|
-
"cascader",
|
|
4952
|
-
"plus-date-picker",
|
|
4953
|
-
"plus-input-tag",
|
|
4954
|
-
"transfer"
|
|
4955
|
-
];
|
|
4956
|
-
|
|
4957
|
-
const selectValueTypeList = [
|
|
4958
|
-
"select",
|
|
4959
|
-
"radio",
|
|
4960
|
-
"checkbox",
|
|
4961
|
-
"select-v2",
|
|
4962
|
-
"plus-radio"
|
|
4963
|
-
];
|
|
4964
|
-
|
|
4965
5054
|
function useTable(_pageInfo) {
|
|
4966
5055
|
const defaultPageInfo = unref(_pageInfo) || DefaultPageInfo;
|
|
4967
5056
|
const tableData = ref([]);
|
|
@@ -8482,6 +8571,20 @@ function useSelectWithPagination(config) {
|
|
|
8482
8571
|
};
|
|
8483
8572
|
}
|
|
8484
8573
|
|
|
8574
|
+
function useDictInjection(dictStore) {
|
|
8575
|
+
if (!dictStore) {
|
|
8576
|
+
console.warn("[yc-components] useDictInjection: dictStore is required");
|
|
8577
|
+
return;
|
|
8578
|
+
}
|
|
8579
|
+
if (typeof dictStore.getDictData !== "function") {
|
|
8580
|
+
console.error(
|
|
8581
|
+
"[yc-components] useDictInjection: dictStore must implement getDictData method. Please ensure your dictStore implements DictStoreInterface."
|
|
8582
|
+
);
|
|
8583
|
+
return;
|
|
8584
|
+
}
|
|
8585
|
+
provide(DictStoreInjectionKey, dictStore);
|
|
8586
|
+
}
|
|
8587
|
+
|
|
8485
8588
|
const _hoisted_1$q = { class: "plus-dialog-body" };
|
|
8486
8589
|
var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
8487
8590
|
...{
|
|
@@ -15779,6 +15882,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15779
15882
|
fieldChildrenSlot: { type: Function, default: void 0 },
|
|
15780
15883
|
renderErrorMessage: { type: Function, default: void 0 },
|
|
15781
15884
|
optionsMap: { default: void 0 },
|
|
15885
|
+
autoDict: { type: [Boolean, Function, Object], default: void 0 },
|
|
15782
15886
|
index: { default: 0 },
|
|
15783
15887
|
clearable: { type: Boolean, default: true }
|
|
15784
15888
|
},
|
|
@@ -19224,7 +19328,9 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
19224
19328
|
lg: 8,
|
|
19225
19329
|
xl: 6
|
|
19226
19330
|
}) },
|
|
19227
|
-
needValidate: { type: Boolean, default: false }
|
|
19331
|
+
needValidate: { type: Boolean, default: false },
|
|
19332
|
+
searchIcon: { default: void 0 },
|
|
19333
|
+
resetIcon: { default: void 0 }
|
|
19228
19334
|
},
|
|
19229
19335
|
emits: ["update:modelValue", "search", "change", "reset", "collapse"],
|
|
19230
19336
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -19242,6 +19348,14 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
19242
19348
|
const unfoldText = computed(
|
|
19243
19349
|
() => isShowUnfold.value ? props.retractText || t("plus.search.retract") : props.expandText || t("plus.search.expand")
|
|
19244
19350
|
);
|
|
19351
|
+
const computedSearchIcon = computed(() => {
|
|
19352
|
+
if (props.searchIcon === null) return void 0;
|
|
19353
|
+
return props.searchIcon !== void 0 ? props.searchIcon : search_default;
|
|
19354
|
+
});
|
|
19355
|
+
const computedResetIcon = computed(() => {
|
|
19356
|
+
if (props.resetIcon === null) return void 0;
|
|
19357
|
+
return props.resetIcon !== void 0 ? props.resetIcon : refresh_right_default;
|
|
19358
|
+
});
|
|
19245
19359
|
const originData = computed(() => {
|
|
19246
19360
|
const filterData = props.columns.filter((item) => unref(item.hideInSearch) !== true).map((item) => ({ ...item, hideInForm: false })).map((item) => ({ ...item, order: (item == null ? void 0 : item.order) ? unref(item.order) : 0 }));
|
|
19247
19361
|
return orderBy(filterData, ["order"], ["desc"]);
|
|
@@ -19328,7 +19442,7 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
19328
19442
|
}, () => [
|
|
19329
19443
|
_ctx.hasReset ? (openBlock(), createBlock(unref(ElButton), {
|
|
19330
19444
|
key: 0,
|
|
19331
|
-
icon:
|
|
19445
|
+
icon: computedResetIcon.value,
|
|
19332
19446
|
onClick: handleReset
|
|
19333
19447
|
}, {
|
|
19334
19448
|
default: withCtx(() => [
|
|
@@ -19344,7 +19458,7 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
19344
19458
|
createVNode(unref(ElButton), {
|
|
19345
19459
|
type: "primary",
|
|
19346
19460
|
loading: _ctx.searchLoading,
|
|
19347
|
-
icon:
|
|
19461
|
+
icon: computedSearchIcon.value,
|
|
19348
19462
|
onClick: handleSearch.value
|
|
19349
19463
|
}, {
|
|
19350
19464
|
default: withCtx(() => [
|
|
@@ -30990,7 +31104,10 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
30990
31104
|
hasUnfold: false,
|
|
30991
31105
|
rowProps: { gutter: 0 },
|
|
30992
31106
|
colProps: { span: getSpanByCount(searchableFieldsCount.value) },
|
|
30993
|
-
labelSuffix: ""
|
|
31107
|
+
labelSuffix: "",
|
|
31108
|
+
labelPosition: "right",
|
|
31109
|
+
searchIcon: null,
|
|
31110
|
+
resetIcon: null
|
|
30994
31111
|
};
|
|
30995
31112
|
return merge({}, defaultSearchConfig, props.search);
|
|
30996
31113
|
}
|
|
@@ -30998,7 +31115,10 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
30998
31115
|
hasUnfold: false,
|
|
30999
31116
|
rowProps: { gutter: 0 },
|
|
31000
31117
|
colProps: { span: getSpanByCount(searchableFieldsCount.value) },
|
|
31001
|
-
labelSuffix: ""
|
|
31118
|
+
labelSuffix: "",
|
|
31119
|
+
labelPosition: "right",
|
|
31120
|
+
searchIcon: null,
|
|
31121
|
+
resetIcon: null
|
|
31002
31122
|
};
|
|
31003
31123
|
});
|
|
31004
31124
|
const mergedSearchCardProps = computed(() => {
|
|
@@ -31142,7 +31262,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
31142
31262
|
}
|
|
31143
31263
|
});
|
|
31144
31264
|
|
|
31145
|
-
var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
31265
|
+
var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-7c1490fd"], ["__file", "index.vue"]]);
|
|
31146
31266
|
|
|
31147
31267
|
const YcPlusPage = YcPlusPageComponent;
|
|
31148
31268
|
const RePlusPage = YcPlusPageComponent;
|
|
@@ -59620,8 +59740,8 @@ const plugins = [
|
|
|
59620
59740
|
|
|
59621
59741
|
var installer = makeInstaller([...plugins]);
|
|
59622
59742
|
|
|
59623
|
-
const version = "0.
|
|
59743
|
+
const version = "0.0.13";
|
|
59624
59744
|
|
|
59625
59745
|
const install = installer.install;
|
|
59626
59746
|
|
|
59627
|
-
export { DEFAULT_CDN_CONFIG, DEFAULT_YC_CONFIG, DatePickerValueIsArrayList, DefaultPageInfo, DefaultPageSizeList, PlusBreadcrumb, PlusCheckCard, PlusCheckCardGroup, PlusDatePicker, PlusDescriptions, PlusDialog, PlusDialogForm, PlusDisplayItem, PlusDrawerForm, PlusForm, PlusFormItem, PlusHeader, PlusInputTag, PlusLayout, PlusPage, PlusPagination, PlusPopover, PlusRadio, PlusSearch, PlusSidebar, PlusSidebarItem, PlusStepsForm, PlusTable, YcAnimateSelector as ReAnimateSelector, YcAuth as ReAuth, 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, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList, YC_CONFIG_KEY, YcAnimateSelector, YcAnimateSelectorWithInstall, YcAuth, YcAuthWithInstall, 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, YcTabsWithFilter, YcTabsWithFilterWithInstall, YcText, YcTextWithInstall, addDrawer, animates, closeAllDrawer, closeDrawer, installer as default, drawerStore, findNodeById, findNodeByPath, findNodePosition, insertAsChild, insertAsSibling, insertNodeAtPosition, install, providePlusProConfig, removeNode, reorderNodeChildren, reorderSiblingNodes, selectValueTypeList, updateDrawer, useDialogFormConfig, useDrawerFormConfig, useGetOptions, useLocale, usePlusFormReset, usePlusProConfig, useRenderFlicker, useRenderFlicker as useRenderReFlicker, useSelectWithMapping, useSelectWithPagination, useSortableDrag$1 as useSortableDrag, useTable, useYcAuth, useYcCdn, useYcCdnUrl, useYcComponentConfig, useYcConfig, useYcPerms, useYcShowPageSearch, useYcTranslate, version };
|
|
59747
|
+
export { DEFAULT_CDN_CONFIG, DEFAULT_YC_CONFIG, DatePickerValueIsArrayList, DefaultPageInfo, DefaultPageSizeList, DictStoreInjectionKey, PlusBreadcrumb, PlusCheckCard, PlusCheckCardGroup, PlusDatePicker, PlusDescriptions, PlusDialog, PlusDialogForm, PlusDisplayItem, PlusDrawerForm, PlusForm, PlusFormItem, PlusHeader, PlusInputTag, PlusLayout, PlusPage, PlusPagination, PlusPopover, PlusRadio, PlusSearch, PlusSidebar, PlusSidebarItem, PlusStepsForm, PlusTable, YcAnimateSelector as ReAnimateSelector, YcAuth as ReAuth, 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, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList, YC_CONFIG_KEY, YcAnimateSelector, YcAnimateSelectorWithInstall, YcAuth, YcAuthWithInstall, 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, YcTabsWithFilter, YcTabsWithFilterWithInstall, YcText, YcTextWithInstall, addDrawer, animates, closeAllDrawer, closeDrawer, installer as default, drawerStore, findNodeById, findNodeByPath, findNodePosition, insertAsChild, insertAsSibling, insertNodeAtPosition, install, providePlusProConfig, removeNode, reorderNodeChildren, reorderSiblingNodes, selectValueTypeList, updateDrawer, useDialogFormConfig, useDictInjection, useDrawerFormConfig, useGetOptions, useLocale, usePlusFormReset, usePlusProConfig, useRenderFlicker, useRenderFlicker as useRenderReFlicker, useSelectWithMapping, useSelectWithPagination, useSortableDrag$1 as useSortableDrag, useTable, 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
|
-
size: {
|
|
8
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
modelValue: {
|
|
12
|
-
type: PropType<boolean>;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
7
|
title: {
|
|
16
8
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
17
9
|
default: undefined;
|
|
18
10
|
};
|
|
19
|
-
avatar: {
|
|
20
|
-
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
21
|
-
default: undefined;
|
|
22
|
-
};
|
|
23
11
|
disabled: {
|
|
24
12
|
type: PropType<boolean>;
|
|
25
13
|
default: boolean;
|
|
26
14
|
};
|
|
15
|
+
avatar: {
|
|
16
|
+
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
27
19
|
extra: {
|
|
28
20
|
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
29
21
|
default: undefined;
|
|
30
22
|
};
|
|
23
|
+
size: {
|
|
24
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
modelValue: {
|
|
28
|
+
type: PropType<boolean>;
|
|
29
|
+
default: boolean;
|
|
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
|
-
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
41
40
|
onChange?: ((checked: boolean) => any) | undefined;
|
|
41
|
+
"onUpdate:modelValue"?: ((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
|
-
size: {
|
|
49
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
50
|
-
default: string;
|
|
51
|
-
};
|
|
52
|
-
modelValue: {
|
|
53
|
-
type: PropType<boolean>;
|
|
54
|
-
default: boolean;
|
|
55
|
-
};
|
|
56
48
|
title: {
|
|
57
49
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
58
50
|
default: undefined;
|
|
59
51
|
};
|
|
60
|
-
avatar: {
|
|
61
|
-
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
62
|
-
default: undefined;
|
|
63
|
-
};
|
|
64
52
|
disabled: {
|
|
65
53
|
type: PropType<boolean>;
|
|
66
54
|
default: boolean;
|
|
67
55
|
};
|
|
56
|
+
avatar: {
|
|
57
|
+
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
68
60
|
extra: {
|
|
69
61
|
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
70
62
|
default: undefined;
|
|
71
63
|
};
|
|
64
|
+
size: {
|
|
65
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
modelValue: {
|
|
69
|
+
type: PropType<boolean>;
|
|
70
|
+
default: boolean;
|
|
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
|
-
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
82
81
|
onChange?: ((checked: boolean) => any) | undefined;
|
|
82
|
+
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
83
83
|
onExtra?: (() => any) | undefined;
|
|
84
84
|
}, {
|
|
85
|
-
size: "" | "default" | "small" | "large";
|
|
86
|
-
modelValue: boolean;
|
|
87
85
|
title: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
88
|
-
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
89
86
|
disabled: boolean;
|
|
87
|
+
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
90
88
|
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
|
-
size: {
|
|
102
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
103
|
-
default: string;
|
|
104
|
-
};
|
|
105
|
-
modelValue: {
|
|
106
|
-
type: PropType<boolean>;
|
|
107
|
-
default: boolean;
|
|
108
|
-
};
|
|
109
101
|
title: {
|
|
110
102
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
111
103
|
default: undefined;
|
|
112
104
|
};
|
|
113
|
-
avatar: {
|
|
114
|
-
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
115
|
-
default: undefined;
|
|
116
|
-
};
|
|
117
105
|
disabled: {
|
|
118
106
|
type: PropType<boolean>;
|
|
119
107
|
default: boolean;
|
|
120
108
|
};
|
|
109
|
+
avatar: {
|
|
110
|
+
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
111
|
+
default: undefined;
|
|
112
|
+
};
|
|
121
113
|
extra: {
|
|
122
114
|
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
123
115
|
default: undefined;
|
|
124
116
|
};
|
|
117
|
+
size: {
|
|
118
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
modelValue: {
|
|
122
|
+
type: PropType<boolean>;
|
|
123
|
+
default: boolean;
|
|
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
|
-
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
135
134
|
onChange?: ((checked: boolean) => any) | undefined;
|
|
135
|
+
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
136
136
|
onExtra?: (() => any) | undefined;
|
|
137
137
|
}, {}, {}, {}, {}, {
|
|
138
|
-
size: "" | "default" | "small" | "large";
|
|
139
|
-
modelValue: boolean;
|
|
140
138
|
title: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
141
|
-
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
142
139
|
disabled: boolean;
|
|
140
|
+
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
143
141
|
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
|
-
size: {
|
|
152
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
153
|
-
default: string;
|
|
154
|
-
};
|
|
155
|
-
modelValue: {
|
|
156
|
-
type: PropType<boolean>;
|
|
157
|
-
default: boolean;
|
|
158
|
-
};
|
|
159
151
|
title: {
|
|
160
152
|
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
161
153
|
default: undefined;
|
|
162
154
|
};
|
|
163
|
-
avatar: {
|
|
164
|
-
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
165
|
-
default: undefined;
|
|
166
|
-
};
|
|
167
155
|
disabled: {
|
|
168
156
|
type: PropType<boolean>;
|
|
169
157
|
default: boolean;
|
|
170
158
|
};
|
|
159
|
+
avatar: {
|
|
160
|
+
type: PropType<string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes)>;
|
|
161
|
+
default: undefined;
|
|
162
|
+
};
|
|
171
163
|
extra: {
|
|
172
164
|
type: PropType<(data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes>;
|
|
173
165
|
default: undefined;
|
|
174
166
|
};
|
|
167
|
+
size: {
|
|
168
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
169
|
+
default: string;
|
|
170
|
+
};
|
|
171
|
+
modelValue: {
|
|
172
|
+
type: PropType<boolean>;
|
|
173
|
+
default: boolean;
|
|
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
|
-
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
185
184
|
onChange?: ((checked: boolean) => any) | undefined;
|
|
185
|
+
"onUpdate:modelValue"?: ((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;
|
|
194
192
|
title: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
195
|
-
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
196
193
|
disabled: boolean;
|
|
194
|
+
avatar: string | ((data: Pick< PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
197
195
|
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 () => {
|
|
@@ -43,16 +43,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
43
43
|
extra: undefined;
|
|
44
44
|
disabled: boolean;
|
|
45
45
|
}>>> & {
|
|
46
|
-
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
47
46
|
onChange?: ((checked: boolean) => any) | undefined;
|
|
47
|
+
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
48
48
|
onExtra?: (() => any) | undefined;
|
|
49
49
|
}, {
|
|
50
|
-
size: "" | "default" | "small" | "large";
|
|
51
|
-
modelValue: boolean;
|
|
52
50
|
title: string | ((data: Pick<PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
53
|
-
avatar: string | ((data: Pick<PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
54
51
|
disabled: boolean;
|
|
52
|
+
avatar: string | ((data: Pick<PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
55
53
|
extra: (data: Pick<PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes;
|
|
54
|
+
size: "" | "default" | "small" | "large";
|
|
55
|
+
modelValue: boolean;
|
|
56
56
|
description: string | ((data: Pick<PlusCheckCardProps, "title" | "avatar" | "description">) => RenderTypes);
|
|
57
57
|
avatarProps: RecordType;
|
|
58
58
|
}, {}>, {
|