@pungfe/element 0.0.1-alpha.21 → 0.0.1-alpha.22
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/dist/cjs/ButtonPopconfirm.cjs +1 -1
- package/dist/cjs/{FormItem-Dr0G-5Q4.cjs → FormItem-DT2H_f3C.cjs} +2 -2
- package/dist/cjs/FormItem-DT2H_f3C.cjs.map +1 -0
- package/dist/cjs/FormItem.cjs +1 -1
- package/dist/cjs/Input-DuZALrON.cjs.map +1 -1
- package/dist/cjs/Select-DbiBYKYx.cjs +2 -0
- package/dist/cjs/Select-DbiBYKYx.cjs.map +1 -0
- package/dist/cjs/Select.cjs +1 -1
- package/dist/cjs/{components-Xete52W-.cjs → components-DyNGpunH.cjs} +2 -2
- package/dist/cjs/{components-Xete52W-.cjs.map → components-DyNGpunH.cjs.map} +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/es/ButtonPopconfirm.js +3 -3
- package/dist/es/FormItem-DFIl76qa.js +41 -0
- package/dist/es/FormItem-DFIl76qa.js.map +1 -0
- package/dist/es/FormItem.js +1 -1
- package/dist/es/Input-JT0g3gkf.js.map +1 -1
- package/dist/es/{Select-BKdDBeJC.js → Select-DNpw-ydO.js} +4 -2
- package/dist/es/Select-DNpw-ydO.js.map +1 -0
- package/dist/es/Select.js +1 -1
- package/dist/es/{components-DKoUIsFy.js → components-CEMhBZ0B.js} +3 -3
- package/dist/es/{components-DKoUIsFy.js.map → components-CEMhBZ0B.js.map} +1 -1
- package/dist/es/index.js +3 -3
- package/dist/types/components/Select.vue.d.ts +1 -0
- package/package.json +5 -5
- package/dist/cjs/FormItem-Dr0G-5Q4.cjs.map +0 -1
- package/dist/cjs/Select-C-b-Biw3.cjs +0 -2
- package/dist/cjs/Select-C-b-Biw3.cjs.map +0 -1
- package/dist/es/FormItem--C1bP0wY.js +0 -37
- package/dist/es/FormItem--C1bP0wY.js.map +0 -1
- package/dist/es/Select-BKdDBeJC.js.map +0 -1
- package/dist/types/src/components/Button.vue.d.ts +0 -31
- package/dist/types/src/components/ButtonPopconfirm.vue.d.ts +0 -27
- package/dist/types/src/components/ConfigProvider.vue.d.ts +0 -21
- package/dist/types/src/components/DatePicker.vue.d.ts +0 -34
- package/dist/types/src/components/Dialog.vue.d.ts +0 -44
- package/dist/types/src/components/Form.vue.d.ts +0 -36
- package/dist/types/src/components/FormItem.vue.d.ts +0 -33
- package/dist/types/src/components/Input.vue.d.ts +0 -44
- package/dist/types/src/components/InputNumber.vue.d.ts +0 -48
- package/dist/types/src/components/Pagination.vue.d.ts +0 -40
- package/dist/types/src/components/Select.vue.d.ts +0 -45
- package/dist/types/src/components/TabPane.vue.d.ts +0 -32
- package/dist/types/src/components/Table.vue.d.ts +0 -89
- package/dist/types/src/components/Tabs.vue.d.ts +0 -26
- package/dist/types/src/components/Upload.vue.d.ts +0 -27
- package/dist/types/src/components/index.d.ts +0 -15
- package/dist/types/src/constants/index.d.ts +0 -15
- package/dist/types/src/index.d.ts +0 -2
- package/dist/types/src/locales/en.d.ts +0 -2
- package/dist/types/src/locales/index.d.ts +0 -2
- package/dist/types/src/locales/zh-cn.d.ts +0 -2
- package/dist/types/src/resolver.d.ts +0 -3
- package/dist/types/test/table.test.d.ts +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Select-BKdDBeJC.js","names":[],"sources":["../../src/components/Select.vue","../../src/components/Select.vue"],"sourcesContent":["<script setup lang=\"tsx\" generic=\"D, V, MV extends V | V[]\">\r\nimport type { SelectProps } from 'element-plus'\r\nimport type { Ref } from 'vue'\r\n\r\nimport { useArrayMap } from '@vueuse/core'\r\nimport { ElOption, ElSelect, useLocale } from 'element-plus'\r\nimport { computed, inject, ref, watch } from 'vue'\r\n\r\nimport { X_FORM_ITEM_VALIDATION, X_LOCALE_CONFIG } from '../constants'\r\n\r\nexport interface XSelectOptionProps<V> {\r\n disabled?: boolean\r\n label?: number | string\r\n value: V\r\n}\r\n\r\nexport interface XSelectProps<D, V> {\r\n collapseTagsTooltip?: SelectProps['collapseTagsTooltip']\r\n clearable?: SelectProps['clearable']\r\n allowCreate?: SelectProps['allowCreate']\r\n collapseTags?: SelectProps['collapseTags']\r\n data?: D[]\r\n disabled?: SelectProps['disabled']\r\n factory: (option: D) => XSelectOptionProps<V>\r\n\r\n filterable?: SelectProps['filterable']\r\n identify?: (value: V) => number | string\r\n loading?: SelectProps['loading']\r\n multiple?: SelectProps['multiple']\r\n remote?: SelectProps['remote']\r\n\r\n remoteMethod?: (query: string) => void\r\n size?: SelectProps['size']\r\n\r\n supplement?: (lacks: V[]) => D[] | PromiseLike<D[]>\r\n placeholder?: SelectProps['placeholder']\r\n noDataText?: SelectProps['noDataText']\r\n}\r\n\r\nconst {\r\n allowCreate,\r\n data,\r\n disabled = undefined,\r\n factory,\r\n identify,\r\n supplement\r\n} = defineProps<XSelectProps<D, V>>()\r\n\r\nconst emit = defineEmits<{\r\n blur: [e: FocusEvent]\r\n change: [value: V]\r\n focus: []\r\n}>()\r\n\r\nconst model = defineModel<MV>()\r\n\r\nconst locale = inject(X_LOCALE_CONFIG)\r\nconst { t } = useLocale(locale)\r\n\r\nconst supplements = ref([]) as Ref<D[]>\r\nconst init = useArrayMap(() => data ?? [], factory)\r\nconst options = computed(() => [...useArrayMap(supplements, factory).value, ...init.value])\r\n\r\nconst forward = (value: V) => {\r\n if (typeof value === 'object') {\r\n if (identify) {\r\n return identify(value)\r\n }\r\n else {\r\n throw new Error('`identify` is required when value\\'s type extends `object` or `object[]`')\r\n }\r\n }\r\n else {\r\n return value as number | string\r\n }\r\n}\r\nconst backward = (key: number | string) =>\r\n options.value.map(item => item.value).find(item => forward(item) === key)\r\n\r\nlet no = 0\r\nwatch(\r\n [model, init],\r\n async () => {\r\n no++\r\n if (model.value) {\r\n const lacks = [...[] as V[], ...Array.isArray(model.value) ? model.value : [model.value]]\r\n .filter(item => !init.value.map(it => forward(it.value)).includes(forward(item)))\r\n const _no = no\r\n const _data = await supplement?.(lacks)\r\n if (_no === no && _data) {\r\n supplements.value = _data\r\n }\r\n }\r\n else {\r\n supplements.value = []\r\n }\r\n },\r\n { immediate: true }\r\n)\r\n\r\nconst localOptions = computed(() =>\r\n options.value.map((item) => {\r\n const key = forward(item.value)\r\n return { disabled: item.disabled, key, label: item.label, value: key }\r\n })\r\n)\r\n\r\nconst localModel = computed({\r\n get: () =>\r\n model.value\r\n && (Array.isArray(model.value) ? model.value.map(forward) : forward(model.value as V)),\r\n set: (value) => {\r\n if (Array.isArray(value)) {\r\n model.value = value.map(item => backward(item)!) as MV\r\n }\r\n else {\r\n model.value\r\n = value === undefined\r\n ? undefined\r\n : ((backward(value) ?? (allowCreate ? value : undefined)) as MV)\r\n }\r\n }\r\n})\r\n\r\nconst formItemValidation = inject(X_FORM_ITEM_VALIDATION, undefined)\r\nif (formItemValidation?.required) {\r\n const { label, validator } = formItemValidation\r\n formItemValidation.validator = () => {\r\n if (!model.value || (Array.isArray(model.value) && model.value.length === 0)) {\r\n return `请选择${label}`\r\n }\r\n return validator?.()\r\n }\r\n}\r\n</script>\r\n\r\n<template>\r\n <ElSelect\r\n v-bind=\"{\r\n placeholder: placeholder ?? t('el.select.placeholder'),\r\n noDataText: noDataText ?? t('el.select.noDataText'),\r\n disabled,\r\n allowCreate,\r\n remote,\r\n filterable: filterable || remote,\r\n clearable,\r\n remoteMethod,\r\n multiple,\r\n loading,\r\n size,\r\n collapseTags,\r\n collapseTagsTooltip,\r\n }\"\r\n v-model=\"localModel\"\r\n @blur=\"emit('blur', $event)\"\r\n @change=\"value => emit('change', value)\"\r\n >\r\n <ElOption\r\n v-for=\"option of localOptions\"\r\n :key=\"option.key\"\r\n :label=\"option.label\"\r\n :value=\"option.value\"\r\n :disabled=\"option.disabled\"\r\n >\r\n {{ option.label }}\r\n </ElOption>\r\n </ElSelect>\r\n</template>\r\n","<script setup lang=\"tsx\" generic=\"D, V, MV extends V | V[]\">\r\nimport type { SelectProps } from 'element-plus'\r\nimport type { Ref } from 'vue'\r\n\r\nimport { useArrayMap } from '@vueuse/core'\r\nimport { ElOption, ElSelect, useLocale } from 'element-plus'\r\nimport { computed, inject, ref, watch } from 'vue'\r\n\r\nimport { X_FORM_ITEM_VALIDATION, X_LOCALE_CONFIG } from '../constants'\r\n\r\nexport interface XSelectOptionProps<V> {\r\n disabled?: boolean\r\n label?: number | string\r\n value: V\r\n}\r\n\r\nexport interface XSelectProps<D, V> {\r\n collapseTagsTooltip?: SelectProps['collapseTagsTooltip']\r\n clearable?: SelectProps['clearable']\r\n allowCreate?: SelectProps['allowCreate']\r\n collapseTags?: SelectProps['collapseTags']\r\n data?: D[]\r\n disabled?: SelectProps['disabled']\r\n factory: (option: D) => XSelectOptionProps<V>\r\n\r\n filterable?: SelectProps['filterable']\r\n identify?: (value: V) => number | string\r\n loading?: SelectProps['loading']\r\n multiple?: SelectProps['multiple']\r\n remote?: SelectProps['remote']\r\n\r\n remoteMethod?: (query: string) => void\r\n size?: SelectProps['size']\r\n\r\n supplement?: (lacks: V[]) => D[] | PromiseLike<D[]>\r\n placeholder?: SelectProps['placeholder']\r\n noDataText?: SelectProps['noDataText']\r\n}\r\n\r\nconst {\r\n allowCreate,\r\n data,\r\n disabled = undefined,\r\n factory,\r\n identify,\r\n supplement\r\n} = defineProps<XSelectProps<D, V>>()\r\n\r\nconst emit = defineEmits<{\r\n blur: [e: FocusEvent]\r\n change: [value: V]\r\n focus: []\r\n}>()\r\n\r\nconst model = defineModel<MV>()\r\n\r\nconst locale = inject(X_LOCALE_CONFIG)\r\nconst { t } = useLocale(locale)\r\n\r\nconst supplements = ref([]) as Ref<D[]>\r\nconst init = useArrayMap(() => data ?? [], factory)\r\nconst options = computed(() => [...useArrayMap(supplements, factory).value, ...init.value])\r\n\r\nconst forward = (value: V) => {\r\n if (typeof value === 'object') {\r\n if (identify) {\r\n return identify(value)\r\n }\r\n else {\r\n throw new Error('`identify` is required when value\\'s type extends `object` or `object[]`')\r\n }\r\n }\r\n else {\r\n return value as number | string\r\n }\r\n}\r\nconst backward = (key: number | string) =>\r\n options.value.map(item => item.value).find(item => forward(item) === key)\r\n\r\nlet no = 0\r\nwatch(\r\n [model, init],\r\n async () => {\r\n no++\r\n if (model.value) {\r\n const lacks = [...[] as V[], ...Array.isArray(model.value) ? model.value : [model.value]]\r\n .filter(item => !init.value.map(it => forward(it.value)).includes(forward(item)))\r\n const _no = no\r\n const _data = await supplement?.(lacks)\r\n if (_no === no && _data) {\r\n supplements.value = _data\r\n }\r\n }\r\n else {\r\n supplements.value = []\r\n }\r\n },\r\n { immediate: true }\r\n)\r\n\r\nconst localOptions = computed(() =>\r\n options.value.map((item) => {\r\n const key = forward(item.value)\r\n return { disabled: item.disabled, key, label: item.label, value: key }\r\n })\r\n)\r\n\r\nconst localModel = computed({\r\n get: () =>\r\n model.value\r\n && (Array.isArray(model.value) ? model.value.map(forward) : forward(model.value as V)),\r\n set: (value) => {\r\n if (Array.isArray(value)) {\r\n model.value = value.map(item => backward(item)!) as MV\r\n }\r\n else {\r\n model.value\r\n = value === undefined\r\n ? undefined\r\n : ((backward(value) ?? (allowCreate ? value : undefined)) as MV)\r\n }\r\n }\r\n})\r\n\r\nconst formItemValidation = inject(X_FORM_ITEM_VALIDATION, undefined)\r\nif (formItemValidation?.required) {\r\n const { label, validator } = formItemValidation\r\n formItemValidation.validator = () => {\r\n if (!model.value || (Array.isArray(model.value) && model.value.length === 0)) {\r\n return `请选择${label}`\r\n }\r\n return validator?.()\r\n }\r\n}\r\n</script>\r\n\r\n<template>\r\n <ElSelect\r\n v-bind=\"{\r\n placeholder: placeholder ?? t('el.select.placeholder'),\r\n noDataText: noDataText ?? t('el.select.noDataText'),\r\n disabled,\r\n allowCreate,\r\n remote,\r\n filterable: filterable || remote,\r\n clearable,\r\n remoteMethod,\r\n multiple,\r\n loading,\r\n size,\r\n collapseTags,\r\n collapseTagsTooltip,\r\n }\"\r\n v-model=\"localModel\"\r\n @blur=\"emit('blur', $event)\"\r\n @change=\"value => emit('change', value)\"\r\n >\r\n <ElOption\r\n v-for=\"option of localOptions\"\r\n :key=\"option.key\"\r\n :label=\"option.label\"\r\n :value=\"option.value\"\r\n :disabled=\"option.disabled\"\r\n >\r\n {{ option.label }}\r\n </ElOption>\r\n </ElSelect>\r\n</template>\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ECgDA,IAAM,IAAO,GAMP,IAAQ,EAAe,GAAA,aAAE,EAGzB,EAAE,SAAM,EADC,EAAO,EAAgB,CACP,EAEzB,IAAc,EAAI,EAAE,CAAa,EACjC,IAAO,QAAkB,EAAA,QAAQ,EAAE,EAAE,EAAA,QAAQ,EAC7C,IAAU,QAAe,CAAC,GAAG,EAAY,GAAa,EAAA,QAAQ,CAAC,OAAO,GAAG,EAAK,MAAM,CAAC,EAErF,KAAW,MAAa;AAC5B,OAAI,OAAO,KAAU,UACnB;QAAI,EAAA,SACF,QAAO,EAAA,SAAS,EAAM;AAGtB,UAAU,MAAM,0EAA2E;SAI7F,QAAO;KAGL,KAAY,MAChB,EAAQ,MAAM,KAAI,MAAQ,EAAK,MAAM,CAAC,MAAK,MAAQ,EAAQ,EAAK,KAAK,EAAI,EAEvE,IAAK;AACT,IACE,CAAC,GAAO,EAAK,EACb,YAAY;AAEV,OADA,KACI,EAAM,OAAO;IACf,IAAM,IAAQ,CAAC,GAAG,EAAS,EAAE,GAAG,MAAM,QAAQ,EAAM,MAAM,GAAG,EAAM,QAAQ,CAAC,EAAM,MAAM,CAAC,CACtF,QAAO,MAAQ,CAAC,EAAK,MAAM,KAAI,MAAM,EAAQ,EAAG,MAAM,CAAC,CAAC,SAAS,EAAQ,EAAK,CAAC,CAAC,EAC7E,IAAM,GACN,IAAQ,MAAM,EAAA,aAAa,EAAM;AACvC,IAAI,MAAQ,KAAM,MAChB,EAAY,QAAQ;SAItB,GAAY,QAAQ,EAAE;KAG1B,EAAE,WAAW,IACf,CAAC;EAED,IAAM,IAAe,QACnB,EAAQ,MAAM,KAAK,MAAS;GAC1B,IAAM,IAAM,EAAQ,EAAK,MAAM;AAC/B,UAAO;IAAE,UAAU,EAAK;IAAU;IAAK,OAAO,EAAK;IAAO,OAAO;IAAK;IAE1E,CAAC,EAEK,IAAa,EAAS;GAC1B,WACE,EAAM,UACF,MAAM,QAAQ,EAAM,MAAM,GAAG,EAAM,MAAM,IAAI,EAAQ,GAAG,EAAQ,EAAM,MAAW;GACvF,MAAM,MAAU;AACd,IAAI,MAAM,QAAQ,EAAM,GACtB,EAAM,QAAQ,EAAM,KAAI,MAAQ,EAAS,EAAM,CAAO,GAGtD,EAAM,QACF,MAAU,KAAA,IACR,KAAA,IACE,EAAS,EAAM,KAAK,EAAA,cAAc,IAAQ,KAAA;;GAGvD,CAAC,EAEI,IAAqB,EAAO,GAAwB,KAAA,EAAU;AACpE,MAAI,GAAoB,UAAU;GAChC,IAAM,EAAE,UAAO,iBAAc;AAC7B,KAAmB,kBACb,CAAC,EAAM,SAAU,MAAM,QAAQ,EAAM,MAAM,IAAI,EAAM,MAAM,WAAW,IACjE,MAAM,MAER,KAAa;;yBAMtB,EA6BW,EAAA,EAAA,EA7BX,EA6BW;gBA5BqB,EAAA,eAAe,EAAA,EAAC,CAAA,wBAAA;eAA8C,EAAA,cAAc,EAAA,EAAC,CAAA,uBAAA;aAAiC,EAAA;gBAAiB,EAAA;WAAoB,EAAA;eAA2B,EAAA,cAAc,EAAA;cAAe,EAAA;iBAAkB,EAAA;aAAqB,EAAA;YAAiB,EAAA;SAAgB,EAAA;iBAAa,EAAA;wBAAqB,EAAA;;eAe1U,EAAA;0CAAA,EAAU,QAAA;GAClB,QAAI,AAAA,EAAA,QAAA,MAAE,EAAI,QAAS,EAAM;GACzB,UAAM,AAAA,EAAA,QAAE,MAAS,EAAI,UAAW,EAAK;;oBAGN,EAAA,EAAA,GAAA,EADhC,EAQW,GAAA,MAAA,EAPQ,EAAA,QAAV,YADT,EAQW,EAAA,EAAA,EAAA;IANR,KAAK,EAAO;IACZ,OAAO,EAAO;IACd,OAAO,EAAO;IACd,UAAU,EAAO;;qBAEA,CAAA,EAAA,EAAf,EAAO,MAAK,EAAA,EAAA,CAAA,CAAA"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ButtonProps, ButtonType } from 'element-plus';
|
|
2
|
-
export interface XButtonProps {
|
|
3
|
-
disabled?: ButtonProps['disabled'];
|
|
4
|
-
link?: ButtonProps['link'];
|
|
5
|
-
size?: ButtonProps['size'];
|
|
6
|
-
text?: ButtonProps['text'];
|
|
7
|
-
type?: ButtonProps['type'];
|
|
8
|
-
icon?: ButtonProps['icon'];
|
|
9
|
-
}
|
|
10
|
-
export type XButtonType = ButtonType;
|
|
11
|
-
declare function __VLS_template(): {
|
|
12
|
-
attrs: Partial<{}>;
|
|
13
|
-
slots: {
|
|
14
|
-
default?(_: {}): any;
|
|
15
|
-
};
|
|
16
|
-
refs: {};
|
|
17
|
-
rootEl: any;
|
|
18
|
-
};
|
|
19
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
-
declare const __VLS_component: import('vue').DefineComponent<XButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
-
click: (e: MouseEvent) => any;
|
|
22
|
-
}, string, import('vue').PublicProps, Readonly<XButtonProps> & Readonly<{
|
|
23
|
-
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
24
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
|
-
export default _default;
|
|
27
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
-
new (): {
|
|
29
|
-
$slots: S;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { XButtonProps } from './Button.vue';
|
|
2
|
-
export interface XButtonPopconfirmProps extends XButtonProps {
|
|
3
|
-
title?: string;
|
|
4
|
-
}
|
|
5
|
-
declare function __VLS_template(): {
|
|
6
|
-
attrs: Partial<{}>;
|
|
7
|
-
slots: {
|
|
8
|
-
default?(_: {}): any;
|
|
9
|
-
};
|
|
10
|
-
refs: {};
|
|
11
|
-
rootEl: any;
|
|
12
|
-
};
|
|
13
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
-
declare const __VLS_component: import('vue').DefineComponent<XButtonPopconfirmProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
-
cancel: () => any;
|
|
16
|
-
confirm: () => any;
|
|
17
|
-
}, string, import('vue').PublicProps, Readonly<XButtonPopconfirmProps> & Readonly<{
|
|
18
|
-
onCancel?: (() => any) | undefined;
|
|
19
|
-
onConfirm?: (() => any) | undefined;
|
|
20
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
-
export default _default;
|
|
23
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
-
new (): {
|
|
25
|
-
$slots: S;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ConfigProviderProps } from 'element-plus';
|
|
2
|
-
export interface XConfigProviderProps {
|
|
3
|
-
locale?: ConfigProviderProps['locale'];
|
|
4
|
-
}
|
|
5
|
-
declare function __VLS_template(): {
|
|
6
|
-
attrs: Partial<{}>;
|
|
7
|
-
slots: {
|
|
8
|
-
default?(_: {}): any;
|
|
9
|
-
};
|
|
10
|
-
refs: {};
|
|
11
|
-
rootEl: any;
|
|
12
|
-
};
|
|
13
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
-
declare const __VLS_component: import('vue').DefineComponent<XConfigProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
-
export default _default;
|
|
17
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
-
new (): {
|
|
19
|
-
$slots: S;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { DatePickerProps } from 'element-plus';
|
|
2
|
-
export interface XDatePickerProps {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
disabledDate?: DatePickerProps['disabledDate'];
|
|
5
|
-
endPlaceholder?: DatePickerProps['endPlaceholder'];
|
|
6
|
-
placeholder?: DatePickerProps['placeholder'];
|
|
7
|
-
shortcuts?: DatePickerProps['shortcuts'];
|
|
8
|
-
startPlaceholder?: DatePickerProps['startPlaceholder'];
|
|
9
|
-
type?: DatePickerProps['type'];
|
|
10
|
-
valueFormat?: DatePickerProps['valueFormat'];
|
|
11
|
-
}
|
|
12
|
-
declare const _default: <V extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
13
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
14
|
-
readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
|
|
15
|
-
readonly "onUpdate:start"?: ((value: V) => any) | undefined;
|
|
16
|
-
readonly "onUpdate:end"?: ((value: V) => any) | undefined;
|
|
17
|
-
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
18
|
-
readonly onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
19
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onUpdate:modelValue" | "onUpdate:start" | "onUpdate:end"> & ({
|
|
20
|
-
modelValue?: V;
|
|
21
|
-
start?: V;
|
|
22
|
-
end?: V;
|
|
23
|
-
} & XDatePickerProps) & Partial<{}>> & import('vue').PublicProps;
|
|
24
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
25
|
-
attrs: any;
|
|
26
|
-
slots: {};
|
|
27
|
-
emit: (((evt: "blur", e: FocusEvent) => void) & ((evt: "focus", e: FocusEvent) => void)) & (((evt: "update:modelValue", value: V) => void) & ((evt: "update:start", value: V) => void) & ((evt: "update:end", value: V) => void));
|
|
28
|
-
}>) => import('vue').VNode & {
|
|
29
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
|
-
};
|
|
31
|
-
export default _default;
|
|
32
|
-
type __VLS_PrettifyLocal<T> = {
|
|
33
|
-
[K in keyof T]: T[K];
|
|
34
|
-
} & {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { DialogProps } from 'element-plus';
|
|
2
|
-
import { VNodeChild } from 'vue';
|
|
3
|
-
export interface XDialogProps {
|
|
4
|
-
bodyClass?: DialogProps['bodyClass'];
|
|
5
|
-
width?: DialogProps['width'];
|
|
6
|
-
showClose?: DialogProps['showClose'];
|
|
7
|
-
title?: DialogProps['title'];
|
|
8
|
-
center?: DialogProps['center'];
|
|
9
|
-
alignCenter?: DialogProps['alignCenter'];
|
|
10
|
-
draggable?: DialogProps['draggable'];
|
|
11
|
-
closeOnClickModal?: DialogProps['closeOnClickModal'];
|
|
12
|
-
closeOnPressEscape?: DialogProps['closeOnPressEscape'];
|
|
13
|
-
}
|
|
14
|
-
type __VLS_Props = XDialogProps;
|
|
15
|
-
type __VLS_PublicProps = {
|
|
16
|
-
modelValue?: boolean;
|
|
17
|
-
} & __VLS_Props;
|
|
18
|
-
declare function __VLS_template(): {
|
|
19
|
-
attrs: Partial<{}>;
|
|
20
|
-
slots: Readonly<{
|
|
21
|
-
default?: () => VNodeChild;
|
|
22
|
-
header?: () => VNodeChild;
|
|
23
|
-
footer?: () => VNodeChild;
|
|
24
|
-
}> & {
|
|
25
|
-
default?: () => VNodeChild;
|
|
26
|
-
header?: () => VNodeChild;
|
|
27
|
-
footer?: () => VNodeChild;
|
|
28
|
-
};
|
|
29
|
-
refs: {};
|
|
30
|
-
rootEl: any;
|
|
31
|
-
};
|
|
32
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
33
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
-
"update:modelValue": (value: boolean) => any;
|
|
35
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
37
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
38
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
39
|
-
export default _default;
|
|
40
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
-
new (): {
|
|
42
|
-
$slots: S;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { VNodeChild } from 'vue';
|
|
2
|
-
export interface XFormItemProps {
|
|
3
|
-
content?: () => VNodeChild;
|
|
4
|
-
label?: string;
|
|
5
|
-
labelPosition?: '' | 'left' | 'right' | 'top';
|
|
6
|
-
labelWidth?: number | string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface XFormProps<D> {
|
|
10
|
-
content?: (scope: {
|
|
11
|
-
data: D;
|
|
12
|
-
}) => VNodeChild;
|
|
13
|
-
data?: D;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
inline?: boolean;
|
|
16
|
-
labelPosition?: 'left' | 'right' | 'top';
|
|
17
|
-
labelSuffix?: string;
|
|
18
|
-
labelWidth?: number | string;
|
|
19
|
-
}
|
|
20
|
-
declare const _default: <D extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
21
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & XFormProps<D> & Partial<{}>> & import('vue').PublicProps;
|
|
22
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
23
|
-
clearValidate: () => void;
|
|
24
|
-
data: D | undefined;
|
|
25
|
-
validate: () => boolean;
|
|
26
|
-
}>): void;
|
|
27
|
-
attrs: any;
|
|
28
|
-
slots: {};
|
|
29
|
-
emit: {};
|
|
30
|
-
}>) => import('vue').VNode & {
|
|
31
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
32
|
-
};
|
|
33
|
-
export default _default;
|
|
34
|
-
type __VLS_PrettifyLocal<T> = {
|
|
35
|
-
[K in keyof T]: T[K];
|
|
36
|
-
} & {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { VNodeChild } from 'vue';
|
|
2
|
-
export interface XFormItemProps {
|
|
3
|
-
content?: () => VNodeChild;
|
|
4
|
-
label?: string;
|
|
5
|
-
required?: boolean;
|
|
6
|
-
validator?: () => string | void;
|
|
7
|
-
}
|
|
8
|
-
export interface XFormItemValidation {
|
|
9
|
-
clearValidate: () => void;
|
|
10
|
-
label?: string;
|
|
11
|
-
required?: boolean;
|
|
12
|
-
validate: () => boolean;
|
|
13
|
-
validator?: () => string | void;
|
|
14
|
-
}
|
|
15
|
-
declare const _default: <D extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
16
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & XFormItemProps & Partial<{}>> & import('vue').PublicProps;
|
|
17
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
18
|
-
attrs: any;
|
|
19
|
-
slots: Readonly<{
|
|
20
|
-
default: () => VNodeChild;
|
|
21
|
-
label: () => VNodeChild;
|
|
22
|
-
}> & {
|
|
23
|
-
default: () => VNodeChild;
|
|
24
|
-
label: () => VNodeChild;
|
|
25
|
-
};
|
|
26
|
-
emit: {};
|
|
27
|
-
}>) => import('vue').VNode & {
|
|
28
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
29
|
-
};
|
|
30
|
-
export default _default;
|
|
31
|
-
type __VLS_PrettifyLocal<T> = {
|
|
32
|
-
[K in keyof T]: T[K];
|
|
33
|
-
} & {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { InputProps } from 'element-plus';
|
|
2
|
-
import { VNode } from 'vue';
|
|
3
|
-
export interface XInputProps {
|
|
4
|
-
clearable?: InputProps['clearable'];
|
|
5
|
-
disabled?: InputProps['disabled'];
|
|
6
|
-
size?: InputProps['size'];
|
|
7
|
-
type?: InputProps['type'];
|
|
8
|
-
showPassword?: InputProps['showPassword'];
|
|
9
|
-
autocomplete?: InputProps['autocomplete'];
|
|
10
|
-
autosize?: InputProps['autosize'];
|
|
11
|
-
placeholder?: InputProps['placeholder'];
|
|
12
|
-
prefixIcon?: InputProps['prefixIcon'];
|
|
13
|
-
suffixIcon?: InputProps['suffixIcon'];
|
|
14
|
-
}
|
|
15
|
-
declare const _default: <MV extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
16
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
17
|
-
readonly "onUpdate:modelValue"?: ((value: MV) => any) | undefined;
|
|
18
|
-
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
19
|
-
readonly onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
20
|
-
readonly onChange?: ((e: MV) => any) | undefined;
|
|
21
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:modelValue"> & ({
|
|
22
|
-
modelValue?: MV;
|
|
23
|
-
} & XInputProps) & Partial<{}>> & import('vue').PublicProps;
|
|
24
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
25
|
-
attrs: any;
|
|
26
|
-
slots: Readonly<{
|
|
27
|
-
append: () => VNode;
|
|
28
|
-
prefix: () => VNode;
|
|
29
|
-
prepend: () => VNode;
|
|
30
|
-
suffix: () => VNode;
|
|
31
|
-
}> & {
|
|
32
|
-
append: () => VNode;
|
|
33
|
-
prefix: () => VNode;
|
|
34
|
-
prepend: () => VNode;
|
|
35
|
-
suffix: () => VNode;
|
|
36
|
-
};
|
|
37
|
-
emit: (((evt: "blur", e: FocusEvent) => void) & ((evt: "focus", e: FocusEvent) => void) & ((evt: "change", e: MV) => void)) & ((evt: "update:modelValue", value: MV) => void);
|
|
38
|
-
}>) => import('vue').VNode & {
|
|
39
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
40
|
-
};
|
|
41
|
-
export default _default;
|
|
42
|
-
type __VLS_PrettifyLocal<T> = {
|
|
43
|
-
[K in keyof T]: T[K];
|
|
44
|
-
} & {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { InputNumberProps } from 'element-plus';
|
|
2
|
-
import { VNode } from 'vue';
|
|
3
|
-
export interface XInputNumberProps {
|
|
4
|
-
align?: InputNumberProps['align'];
|
|
5
|
-
controls?: InputNumberProps['controls'];
|
|
6
|
-
disabled?: InputNumberProps['disabled'];
|
|
7
|
-
inputmode?: InputNumberProps['inputmode'];
|
|
8
|
-
max?: InputNumberProps['max'];
|
|
9
|
-
min?: InputNumberProps['min'];
|
|
10
|
-
placeholder?: InputNumberProps['placeholder'];
|
|
11
|
-
precision?: InputNumberProps['precision'];
|
|
12
|
-
size?: InputNumberProps['size'];
|
|
13
|
-
step?: InputNumberProps['step'];
|
|
14
|
-
stepStrictly?: InputNumberProps['stepStrictly'];
|
|
15
|
-
}
|
|
16
|
-
type __VLS_Props = XInputNumberProps;
|
|
17
|
-
type __VLS_PublicProps = {
|
|
18
|
-
modelValue?: number;
|
|
19
|
-
} & __VLS_Props;
|
|
20
|
-
declare function __VLS_template(): {
|
|
21
|
-
attrs: Partial<{}>;
|
|
22
|
-
slots: Readonly<{
|
|
23
|
-
prefix: () => VNode;
|
|
24
|
-
suffix: () => VNode;
|
|
25
|
-
}> & {
|
|
26
|
-
prefix: () => VNode;
|
|
27
|
-
suffix: () => VNode;
|
|
28
|
-
};
|
|
29
|
-
refs: {};
|
|
30
|
-
rootEl: any;
|
|
31
|
-
};
|
|
32
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
33
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
-
"update:modelValue": (value: number) => any;
|
|
35
|
-
blur: (e: FocusEvent) => any;
|
|
36
|
-
focus: (e: FocusEvent) => any;
|
|
37
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
38
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
39
|
-
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
40
|
-
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
41
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
42
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
|
-
export default _default;
|
|
44
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
-
new (): {
|
|
46
|
-
$slots: S;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { PaginationProps } from 'element-plus';
|
|
2
|
-
export interface XPaginationProps {
|
|
3
|
-
pageSizes?: PaginationProps['pageSizes'];
|
|
4
|
-
background?: PaginationProps['background'];
|
|
5
|
-
size?: PaginationProps['size'];
|
|
6
|
-
layout?: PaginationProps['layout'];
|
|
7
|
-
total?: PaginationProps['total'];
|
|
8
|
-
}
|
|
9
|
-
type __VLS_Props = XPaginationProps;
|
|
10
|
-
type __VLS_PublicProps = {
|
|
11
|
-
'currentPage'?: number;
|
|
12
|
-
'pageSize'?: number;
|
|
13
|
-
} & __VLS_Props;
|
|
14
|
-
declare function __VLS_template(): {
|
|
15
|
-
attrs: Partial<{}>;
|
|
16
|
-
slots: {
|
|
17
|
-
default?(_: {}): any;
|
|
18
|
-
};
|
|
19
|
-
refs: {};
|
|
20
|
-
rootEl: any;
|
|
21
|
-
};
|
|
22
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
-
sizeChange: (size: number) => any;
|
|
25
|
-
currentChange: (current: number) => any;
|
|
26
|
-
"update:currentPage": (value: number) => any;
|
|
27
|
-
"update:pageSize": (value: number) => any;
|
|
28
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
-
onSizeChange?: ((size: number) => any) | undefined;
|
|
30
|
-
onCurrentChange?: ((current: number) => any) | undefined;
|
|
31
|
-
"onUpdate:currentPage"?: ((value: number) => any) | undefined;
|
|
32
|
-
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
33
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
|
-
export default _default;
|
|
36
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
-
new (): {
|
|
38
|
-
$slots: S;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { SelectProps } from 'element-plus';
|
|
2
|
-
export interface XSelectOptionProps<V> {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
label?: number | string;
|
|
5
|
-
value: V;
|
|
6
|
-
}
|
|
7
|
-
export interface XSelectProps<D, V> {
|
|
8
|
-
collapseTagsTooltip?: SelectProps['collapseTagsTooltip'];
|
|
9
|
-
clearable?: SelectProps['clearable'];
|
|
10
|
-
allowCreate?: SelectProps['allowCreate'];
|
|
11
|
-
collapseTags?: SelectProps['collapseTags'];
|
|
12
|
-
data?: D[];
|
|
13
|
-
disabled?: SelectProps['disabled'];
|
|
14
|
-
factory: (option: D) => XSelectOptionProps<V>;
|
|
15
|
-
filterable?: SelectProps['filterable'];
|
|
16
|
-
identify?: (value: V) => number | string;
|
|
17
|
-
loading?: SelectProps['loading'];
|
|
18
|
-
multiple?: SelectProps['multiple'];
|
|
19
|
-
remote?: SelectProps['remote'];
|
|
20
|
-
remoteMethod?: (query: string) => void;
|
|
21
|
-
size?: SelectProps['size'];
|
|
22
|
-
supplement?: (lacks: V[]) => D[] | PromiseLike<D[]>;
|
|
23
|
-
placeholder?: SelectProps['placeholder'];
|
|
24
|
-
noDataText?: SelectProps['noDataText'];
|
|
25
|
-
}
|
|
26
|
-
declare const _default: <D, V, MV extends V | V[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
27
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
28
|
-
readonly "onUpdate:modelValue"?: ((value: MV) => any) | undefined;
|
|
29
|
-
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
30
|
-
readonly onFocus?: (() => any) | undefined;
|
|
31
|
-
readonly onChange?: ((value: MV) => any) | undefined;
|
|
32
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:modelValue"> & ({
|
|
33
|
-
modelValue?: MV;
|
|
34
|
-
} & XSelectProps<D, V>) & Partial<{}>> & import('vue').PublicProps;
|
|
35
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
36
|
-
attrs: any;
|
|
37
|
-
slots: {};
|
|
38
|
-
emit: (((evt: "blur", e: FocusEvent) => void) & ((evt: "focus") => void) & ((evt: "change", value: MV) => void)) & ((evt: "update:modelValue", value: MV) => void);
|
|
39
|
-
}>) => import('vue').VNode & {
|
|
40
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
41
|
-
};
|
|
42
|
-
export default _default;
|
|
43
|
-
type __VLS_PrettifyLocal<T> = {
|
|
44
|
-
[K in keyof T]: T[K];
|
|
45
|
-
} & {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { TabPaneProps } from 'element-plus';
|
|
2
|
-
export interface XTabPaneConfig {
|
|
3
|
-
label?: string;
|
|
4
|
-
name?: number | string;
|
|
5
|
-
}
|
|
6
|
-
export interface XTabPaneProps {
|
|
7
|
-
closable?: TabPaneProps['closable'];
|
|
8
|
-
disabled?: TabPaneProps['disabled'];
|
|
9
|
-
label?: TabPaneProps['label'];
|
|
10
|
-
lazy?: TabPaneProps['lazy'];
|
|
11
|
-
name?: TabPaneProps['name'];
|
|
12
|
-
}
|
|
13
|
-
declare function __VLS_template(): {
|
|
14
|
-
attrs: Partial<{}>;
|
|
15
|
-
slots: {
|
|
16
|
-
default?(_: {}): any;
|
|
17
|
-
};
|
|
18
|
-
refs: {};
|
|
19
|
-
rootEl: any;
|
|
20
|
-
};
|
|
21
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
-
declare const __VLS_component: import('vue').DefineComponent<XTabPaneProps, {
|
|
23
|
-
label: string | undefined;
|
|
24
|
-
name: string | number | undefined;
|
|
25
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XTabPaneProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
-
export default _default;
|
|
28
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
-
new (): {
|
|
30
|
-
$slots: S;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { TableColumnCtx, TableProps } from 'element-plus';
|
|
2
|
-
import { CSSProperties, VNode, VNodeChild } from 'vue';
|
|
3
|
-
export interface XTableColumnProps<D> {
|
|
4
|
-
content?: (scope: {
|
|
5
|
-
index: number;
|
|
6
|
-
row: D;
|
|
7
|
-
}) => VNodeChild;
|
|
8
|
-
fixed?: 'left' | 'right';
|
|
9
|
-
header?: (scope: {
|
|
10
|
-
column: XTableColumnProps<D>;
|
|
11
|
-
}) => VNodeChild;
|
|
12
|
-
label?: string;
|
|
13
|
-
prop?: string;
|
|
14
|
-
selectable?: (row: D, index: number) => boolean;
|
|
15
|
-
type?: 'index' | 'selection';
|
|
16
|
-
width?: number;
|
|
17
|
-
}
|
|
18
|
-
export interface XTableProps<D> {
|
|
19
|
-
border?: TableProps<any>['border'];
|
|
20
|
-
cellClassName?: ((scope: {
|
|
21
|
-
column: TableColumnCtx;
|
|
22
|
-
columnIndex: number;
|
|
23
|
-
row: D;
|
|
24
|
-
rowIndex: number;
|
|
25
|
-
}) => string) | string;
|
|
26
|
-
cellStyle?: ((scope: {
|
|
27
|
-
column: TableColumnCtx;
|
|
28
|
-
columnIndex: number;
|
|
29
|
-
row: D;
|
|
30
|
-
rowIndex: number;
|
|
31
|
-
}) => CSSProperties) | CSSProperties;
|
|
32
|
-
columns?: XTableColumnProps<D>[];
|
|
33
|
-
data?: D[];
|
|
34
|
-
height?: TableProps<any>['height'];
|
|
35
|
-
emptyText?: TableProps<any>['emptyText'];
|
|
36
|
-
rowClassName?: ((scope: {
|
|
37
|
-
row: D;
|
|
38
|
-
rowIndex: number;
|
|
39
|
-
}) => string) | string;
|
|
40
|
-
rowKey?: (scope: {
|
|
41
|
-
row: D;
|
|
42
|
-
}) => string;
|
|
43
|
-
rowStyle?: ((scope: {
|
|
44
|
-
row: D;
|
|
45
|
-
rowIndex: number;
|
|
46
|
-
}) => CSSProperties) | CSSProperties;
|
|
47
|
-
showOverflowTooltip?: TableProps<any>['showOverflowTooltip'];
|
|
48
|
-
showSummary?: TableProps<any>['showSummary'];
|
|
49
|
-
size?: TableProps<any>['size'];
|
|
50
|
-
spanMethod?: (scope: {
|
|
51
|
-
column: TableColumnCtx;
|
|
52
|
-
columnIndex: number;
|
|
53
|
-
row: D;
|
|
54
|
-
rowIndex: number;
|
|
55
|
-
}) => number[] | undefined | {
|
|
56
|
-
colspan: number;
|
|
57
|
-
rowspan: number;
|
|
58
|
-
};
|
|
59
|
-
summaryMethod?: (scope: {
|
|
60
|
-
columns: TableColumnCtx[];
|
|
61
|
-
data: D[];
|
|
62
|
-
}) => (string | VNode)[];
|
|
63
|
-
}
|
|
64
|
-
declare const _default: <D>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
65
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
66
|
-
readonly onHeaderDragend?: ((newWidth: number, oldWidth: number, column: TableColumnCtx) => any) | undefined;
|
|
67
|
-
readonly onRowClick?: ((row: D) => any) | undefined;
|
|
68
|
-
readonly onRowDbClick?: ((row: D) => any) | undefined;
|
|
69
|
-
readonly onSelectionChange?: ((rows: D[]) => any) | undefined;
|
|
70
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onHeaderDragend" | "onRowClick" | "onRowDbClick" | "onSelectionChange"> & XTableProps<D> & Partial<{}>> & import('vue').PublicProps;
|
|
71
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
72
|
-
clearSelection: () => void | undefined;
|
|
73
|
-
getSelectionRows: () => any[] | undefined;
|
|
74
|
-
scrollTo: (options: number | ScrollToOptions, yCoord?: number) => void | undefined;
|
|
75
|
-
setCurrentRow: (row: D) => void | undefined;
|
|
76
|
-
setScrollLeft: (left: number) => void | undefined;
|
|
77
|
-
setScrollTop: (top: number) => void | undefined;
|
|
78
|
-
toggleRowSelection: (row: D, selected?: boolean, ignoreSelectable?: boolean) => void | undefined;
|
|
79
|
-
}>): void;
|
|
80
|
-
attrs: any;
|
|
81
|
-
slots: {};
|
|
82
|
-
emit: ((evt: "headerDragend", newWidth: number, oldWidth: number, column: TableColumnCtx) => void) & ((evt: "rowClick", row: D) => void) & ((evt: "rowDbClick", row: D) => void) & ((evt: "selectionChange", rows: D[]) => void);
|
|
83
|
-
}>) => import('vue').VNode & {
|
|
84
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
85
|
-
};
|
|
86
|
-
export default _default;
|
|
87
|
-
type __VLS_PrettifyLocal<T> = {
|
|
88
|
-
[K in keyof T]: T[K];
|
|
89
|
-
} & {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { TabsProps } from 'element-plus';
|
|
2
|
-
export interface XTabsProps {
|
|
3
|
-
addable?: TabsProps['addable'];
|
|
4
|
-
editable?: TabsProps['editable'];
|
|
5
|
-
tabPosition?: TabsProps['tabPosition'];
|
|
6
|
-
type?: TabsProps['type'];
|
|
7
|
-
}
|
|
8
|
-
declare const _default: <V extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
9
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
10
|
-
readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
|
|
11
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
12
|
-
modelValue?: V;
|
|
13
|
-
} & XTabsProps) & Partial<{}>> & import('vue').PublicProps;
|
|
14
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
15
|
-
attrs: any;
|
|
16
|
-
slots: {
|
|
17
|
-
default?(_: {}): any;
|
|
18
|
-
};
|
|
19
|
-
emit: (evt: "update:modelValue", value: V) => void;
|
|
20
|
-
}>) => import('vue').VNode & {
|
|
21
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_PrettifyLocal<T> = {
|
|
25
|
-
[K in keyof T]: T[K];
|
|
26
|
-
} & {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { UploadProps } from 'element-plus';
|
|
2
|
-
export interface XUploadProps {
|
|
3
|
-
accept?: UploadProps['accept'];
|
|
4
|
-
data?: UploadProps['data'];
|
|
5
|
-
disabled?: UploadProps['disabled'];
|
|
6
|
-
limit?: UploadProps['limit'];
|
|
7
|
-
showFileList?: UploadProps['showFileList'];
|
|
8
|
-
}
|
|
9
|
-
declare const _default: <MV extends string | string[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
10
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
11
|
-
readonly "onUpdate:modelValue"?: ((value: MV) => any) | undefined;
|
|
12
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
13
|
-
modelValue?: MV;
|
|
14
|
-
} & XUploadProps) & Partial<{}>> & import('vue').PublicProps;
|
|
15
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
16
|
-
attrs: any;
|
|
17
|
-
slots: {
|
|
18
|
-
default?(_: {}): any;
|
|
19
|
-
};
|
|
20
|
-
emit: (evt: "update:modelValue", value: MV) => void;
|
|
21
|
-
}>) => import('vue').VNode & {
|
|
22
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
25
|
-
type __VLS_PrettifyLocal<T> = {
|
|
26
|
-
[K in keyof T]: T[K];
|
|
27
|
-
} & {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export { default as XButton, type XButtonProps } from './Button.vue';
|
|
2
|
-
export { default as XButtonPopconfirm, type XButtonPopconfirmProps } from './ButtonPopconfirm.vue';
|
|
3
|
-
export { default as XConfigProvider } from './ConfigProvider.vue';
|
|
4
|
-
export { default as XDatePicker, type XDatePickerProps } from './DatePicker.vue';
|
|
5
|
-
export { default as XDialog, type XDialogProps } from './Dialog.vue';
|
|
6
|
-
export { default as XForm, type XFormProps } from './Form.vue';
|
|
7
|
-
export { default as XFormItem, type XFormItemProps } from './FormItem.vue';
|
|
8
|
-
export { default as XInput, type XInputProps } from './Input.vue';
|
|
9
|
-
export { default as XInputNumber, type XInputNumberProps } from './InputNumber.vue';
|
|
10
|
-
export { default as XPagination, type XPaginationProps } from './Pagination.vue';
|
|
11
|
-
export { default as XSelect, type XSelectProps } from './Select.vue';
|
|
12
|
-
export { default as XTable, type XTableColumnProps, type XTableProps } from './Table.vue';
|
|
13
|
-
export { default as XTabPane, type XTabPaneProps } from './TabPane.vue';
|
|
14
|
-
export { default as XTabs, type XTabsProps } from './Tabs.vue';
|
|
15
|
-
export { default as XUpload, type XUploadProps } from './Upload.vue';
|