@pungfe/element 0.0.1-alpha.21 → 0.0.1-alpha.23

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.
Files changed (83) hide show
  1. package/dist/cjs/ButtonPopconfirm.cjs +1 -1
  2. package/dist/cjs/DatePicker-Bs1ylK57.cjs +2 -0
  3. package/dist/cjs/DatePicker-Bs1ylK57.cjs.map +1 -0
  4. package/dist/cjs/DatePicker.cjs +1 -1
  5. package/dist/cjs/Dialog-CSSTtlWY.cjs +2 -0
  6. package/dist/cjs/Dialog-CSSTtlWY.cjs.map +1 -0
  7. package/dist/cjs/Dialog.cjs +1 -1
  8. package/dist/cjs/{FormItem-Dr0G-5Q4.cjs → FormItem-DT2H_f3C.cjs} +2 -2
  9. package/dist/cjs/FormItem-DT2H_f3C.cjs.map +1 -0
  10. package/dist/cjs/FormItem.cjs +1 -1
  11. package/dist/cjs/Input-DuZALrON.cjs.map +1 -1
  12. package/dist/cjs/Select-DbiBYKYx.cjs +2 -0
  13. package/dist/cjs/Select-DbiBYKYx.cjs.map +1 -0
  14. package/dist/cjs/Select.cjs +1 -1
  15. package/dist/cjs/Upload-DxAM_SRp.cjs +2 -0
  16. package/dist/cjs/Upload-DxAM_SRp.cjs.map +1 -0
  17. package/dist/cjs/Upload.cjs +1 -1
  18. package/dist/cjs/{components-Xete52W-.cjs → components-H3u1l6SK.cjs} +2 -2
  19. package/dist/cjs/{components-Xete52W-.cjs.map → components-H3u1l6SK.cjs.map} +1 -1
  20. package/dist/cjs/index.cjs +1 -1
  21. package/dist/es/ButtonPopconfirm.js +6 -6
  22. package/dist/es/DatePicker-DEQxQ4xR.js +70 -0
  23. package/dist/es/DatePicker-DEQxQ4xR.js.map +1 -0
  24. package/dist/es/DatePicker.js +1 -1
  25. package/dist/es/{Dialog-BahbAebJ.js → Dialog-BKSJCB-R.js} +13 -4
  26. package/dist/es/Dialog-BKSJCB-R.js.map +1 -0
  27. package/dist/es/Dialog.js +1 -1
  28. package/dist/es/FormItem-DFIl76qa.js +41 -0
  29. package/dist/es/FormItem-DFIl76qa.js.map +1 -0
  30. package/dist/es/FormItem.js +1 -1
  31. package/dist/es/Input-JT0g3gkf.js.map +1 -1
  32. package/dist/es/{Select-BKdDBeJC.js → Select-DNpw-ydO.js} +4 -2
  33. package/dist/es/Select-DNpw-ydO.js.map +1 -0
  34. package/dist/es/Select.js +1 -1
  35. package/dist/es/Upload-BPg4xGOl.js +61 -0
  36. package/dist/es/Upload-BPg4xGOl.js.map +1 -0
  37. package/dist/es/Upload.js +1 -1
  38. package/dist/es/{components-DKoUIsFy.js → components-CTV9E5y1.js} +6 -6
  39. package/dist/es/{components-DKoUIsFy.js.map → components-CTV9E5y1.js.map} +1 -1
  40. package/dist/es/index.js +6 -6
  41. package/dist/types/components/Select.vue.d.ts +1 -0
  42. package/dist/types/components/Upload.vue.d.ts +5 -2
  43. package/package.json +5 -5
  44. package/dist/cjs/DatePicker-DvW11A5y.cjs +0 -2
  45. package/dist/cjs/DatePicker-DvW11A5y.cjs.map +0 -1
  46. package/dist/cjs/Dialog-C3uo50Lk.cjs +0 -2
  47. package/dist/cjs/Dialog-C3uo50Lk.cjs.map +0 -1
  48. package/dist/cjs/FormItem-Dr0G-5Q4.cjs.map +0 -1
  49. package/dist/cjs/Select-C-b-Biw3.cjs +0 -2
  50. package/dist/cjs/Select-C-b-Biw3.cjs.map +0 -1
  51. package/dist/cjs/Upload-CXRSAOCS.cjs +0 -2
  52. package/dist/cjs/Upload-CXRSAOCS.cjs.map +0 -1
  53. package/dist/es/DatePicker-BDjnMA3B.js +0 -69
  54. package/dist/es/DatePicker-BDjnMA3B.js.map +0 -1
  55. package/dist/es/Dialog-BahbAebJ.js.map +0 -1
  56. package/dist/es/FormItem--C1bP0wY.js +0 -37
  57. package/dist/es/FormItem--C1bP0wY.js.map +0 -1
  58. package/dist/es/Select-BKdDBeJC.js.map +0 -1
  59. package/dist/es/Upload-DCnEcRkL.js +0 -52
  60. package/dist/es/Upload-DCnEcRkL.js.map +0 -1
  61. package/dist/types/src/components/Button.vue.d.ts +0 -31
  62. package/dist/types/src/components/ButtonPopconfirm.vue.d.ts +0 -27
  63. package/dist/types/src/components/ConfigProvider.vue.d.ts +0 -21
  64. package/dist/types/src/components/DatePicker.vue.d.ts +0 -34
  65. package/dist/types/src/components/Dialog.vue.d.ts +0 -44
  66. package/dist/types/src/components/Form.vue.d.ts +0 -36
  67. package/dist/types/src/components/FormItem.vue.d.ts +0 -33
  68. package/dist/types/src/components/Input.vue.d.ts +0 -44
  69. package/dist/types/src/components/InputNumber.vue.d.ts +0 -48
  70. package/dist/types/src/components/Pagination.vue.d.ts +0 -40
  71. package/dist/types/src/components/Select.vue.d.ts +0 -45
  72. package/dist/types/src/components/TabPane.vue.d.ts +0 -32
  73. package/dist/types/src/components/Table.vue.d.ts +0 -89
  74. package/dist/types/src/components/Tabs.vue.d.ts +0 -26
  75. package/dist/types/src/components/Upload.vue.d.ts +0 -27
  76. package/dist/types/src/components/index.d.ts +0 -15
  77. package/dist/types/src/constants/index.d.ts +0 -15
  78. package/dist/types/src/index.d.ts +0 -2
  79. package/dist/types/src/locales/en.d.ts +0 -2
  80. package/dist/types/src/locales/index.d.ts +0 -2
  81. package/dist/types/src/locales/zh-cn.d.ts +0 -2
  82. package/dist/types/src/resolver.d.ts +0 -3
  83. package/dist/types/test/table.test.d.ts +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"Upload-DCnEcRkL.js","names":["$slots"],"sources":["../../src/components/Upload.vue","../../src/components/Upload.vue"],"sourcesContent":["<script setup lang=\"tsx\" generic=\"MV extends string | string[]\">\r\nimport type { UploadFile, UploadProps } from 'element-plus'\r\n\r\nimport type { VNodeChild } from 'vue'\r\nimport { ElUpload } from 'element-plus'\r\nimport { computed, inject } from 'vue'\r\n\r\nimport { X_FORM_ITEM_VALIDATION } from '../constants'\r\n\r\nexport interface XUploadProps {\r\n accept?: UploadProps['accept']\r\n data?: UploadProps['data']\r\n disabled?: UploadProps['disabled']\r\n limit?: UploadProps['limit']\r\n showFileList?: UploadProps['showFileList']\r\n}\r\n\r\ndefineProps<XUploadProps>()\r\n\r\ndefineSlots<{\r\n default: () => VNodeChild\r\n file: (scope: { file: UploadFile, index: number }) => VNodeChild\r\n tips: () => VNodeChild\r\n}>()\r\n\r\nconst model = defineModel<MV>()\r\n\r\nconst fileList = computed(() => [...[] as string[], ...model.value || []].reverse().map(item => ({ name: item.split('/').findLast(() => true)!, url: item })))\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 <ElUpload v-bind=\"{ disabled, accept, data, limit, fileList, showFileList }\">\r\n <slot />\r\n\r\n <template v-if=\"'file' in $slots\" #file>\r\n <slot name=\"file\" />\r\n </template>\r\n <template v-if=\"'tips' in $slots\" #tips>\r\n <slot name=\"tips\" />\r\n </template>\r\n </ElUpload>\r\n</template>\r\n","<script setup lang=\"tsx\" generic=\"MV extends string | string[]\">\r\nimport type { UploadFile, UploadProps } from 'element-plus'\r\n\r\nimport type { VNodeChild } from 'vue'\r\nimport { ElUpload } from 'element-plus'\r\nimport { computed, inject } from 'vue'\r\n\r\nimport { X_FORM_ITEM_VALIDATION } from '../constants'\r\n\r\nexport interface XUploadProps {\r\n accept?: UploadProps['accept']\r\n data?: UploadProps['data']\r\n disabled?: UploadProps['disabled']\r\n limit?: UploadProps['limit']\r\n showFileList?: UploadProps['showFileList']\r\n}\r\n\r\ndefineProps<XUploadProps>()\r\n\r\ndefineSlots<{\r\n default: () => VNodeChild\r\n file: (scope: { file: UploadFile, index: number }) => VNodeChild\r\n tips: () => VNodeChild\r\n}>()\r\n\r\nconst model = defineModel<MV>()\r\n\r\nconst fileList = computed(() => [...[] as string[], ...model.value || []].reverse().map(item => ({ name: item.split('/').findLast(() => true)!, url: item })))\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 <ElUpload v-bind=\"{ disabled, accept, data, limit, fileList, showFileList }\">\r\n <slot />\r\n\r\n <template v-if=\"'file' in $slots\" #file>\r\n <slot name=\"file\" />\r\n </template>\r\n <template v-if=\"'tips' in $slots\" #tips>\r\n <slot name=\"tips\" />\r\n </template>\r\n </ElUpload>\r\n</template>\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;ECyBA,IAAM,IAAQ,EAAe,GAAA,aAAE,EAEzB,IAAW,QAAe,CAAC,GAAG,EAAc,EAAE,GAAG,EAAM,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,KAAI,OAAS;GAAE,MAAM,EAAK,MAAM,IAAI,CAAC,eAAe,GAAM;GAAE,KAAK;GAAM,EAAE,CAAC,EAExJ,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,EASW,EAAA,EAAA,EAAA,EAAA,EAAA;GAAA,UATS,EAAA;GAAQ,QAAE,EAAA;GAAM,MAAE,EAAA;GAAI,OAAE,EAAA;GAAK,UAAE,EAAA;GAAQ,cAAE,EAAA;GAAY,CAAA,CAAA,EAAA,EAAA;oBAC/D,CAAR,EAAQ,EAAA,QAAA,UAAA,CAAA,CAAA;;gBAEkBA,EAAAA,SAAAA;SAAS;eACb,CAApB,EAAoB,EAAA,QAAA,OAAA,CAAA,CAAA;;wBAEIA,EAAAA,SAAAA;SAAS;eACb,CAApB,EAAoB,EAAA,QAAA,OAAA,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';
@@ -1,15 +0,0 @@
1
- import { EventHook } from '@vueuse/core';
2
- import { Language } from 'element-plus/es/locale';
3
- import { InjectionKey, Ref } from 'vue';
4
- import { XFormItemValidation } from '../components/FormItem.vue';
5
- export declare const X_LOCALE_CONFIG: InjectionKey<Ref<Language>>;
6
- export declare const X_ELEMENT_IN_TABLE: InjectionKey<boolean>;
7
- export declare const X_ELEMENT_IN_TABLE_COLUMN: InjectionKey<boolean>;
8
- export declare const X_ELEMENT_IN_FORM: InjectionKey<boolean>;
9
- export declare const X_ELEMENT_IN_FORM_ITEM: InjectionKey<boolean>;
10
- export declare const X_ELEMENT_IN_TABS: InjectionKey<boolean>;
11
- export declare const X_ELEMENT_IN_TAB_PANE: InjectionKey<boolean>;
12
- export declare const X_FORM_VALIDATIONS: InjectionKey<XFormItemValidation[]>;
13
- export declare const X_FORM_ITEM_VALIDATION: InjectionKey<XFormItemValidation>;
14
- export declare const X_TAB_PANE_NAME: InjectionKey<string | number | undefined>;
15
- export declare const X_TABS_MODEL_UPDATE_HOOK: InjectionKey<EventHook>;
@@ -1,2 +0,0 @@
1
- export * from './components';
2
- export * from './locales';
@@ -1,2 +0,0 @@
1
- import { default as en } from 'element-plus/es/locale/lang/en';
2
- export { en };