@pungfe/element 0.0.1-alpha.10

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 pengfeng
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # @pungfe/element
@@ -0,0 +1,26 @@
1
+ import { ButtonProps } from 'element-plus';
2
+ export interface XButtonProps extends Partial<ButtonProps> {
3
+ }
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<XButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ click: (e: MouseEvent) => any;
15
+ }, string, import('vue').PublicProps, Readonly<XButtonProps> & Readonly<{
16
+ onClick?: ((e: MouseEvent) => any) | undefined;
17
+ }>, {
18
+ readonly disabled: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,26 @@
1
+ import { CascaderProps } from 'element-plus';
2
+ export interface XCascaderProps {
3
+ clearable?: boolean;
4
+ placeholder?: string;
5
+ disabled?: boolean;
6
+ props?: CascaderProps;
7
+ }
8
+ declare const _default: <D, 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<{
9
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
10
+ readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
11
+ readonly onBlur?: (() => any) | undefined;
12
+ readonly onChange?: ((value: V) => any) | undefined;
13
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onBlur" | "onChange"> & ({
14
+ modelValue?: V;
15
+ } & XCascaderProps) & Partial<{}>> & import('vue').PublicProps;
16
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
17
+ attrs: any;
18
+ slots: {};
19
+ emit: (((evt: "blur") => void) & ((evt: "change", value: V) => void)) & ((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
+ } & {};
@@ -0,0 +1,28 @@
1
+ import { CheckboxProps } from 'element-plus';
2
+ export interface XCheckboxOptionProps<V> {
3
+ disabled?: boolean;
4
+ label?: number | string;
5
+ value: V;
6
+ }
7
+ export interface XCheckboxProps<D, V> extends Partial<Omit<CheckboxProps, 'options' | 'modelValue'>> {
8
+ data: D[];
9
+ factory: (option: D) => XCheckboxOptionProps<V>;
10
+ identify?: (value: V) => number | string;
11
+ }
12
+ declare const _default: <D, V, MV extends 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<{
13
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
14
+ readonly "onUpdate:modelValue"?: ((value: MV[]) => any) | undefined;
15
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
16
+ modelValue?: MV[];
17
+ } & XCheckboxProps<D, V>) & Partial<{}>> & import('vue').PublicProps;
18
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
19
+ attrs: any;
20
+ slots: {};
21
+ emit: (evt: "update:modelValue", value: MV[]) => void;
22
+ }>) => import('vue').VNode & {
23
+ __ctx?: Awaited<typeof __VLS_setup>;
24
+ };
25
+ export default _default;
26
+ type __VLS_PrettifyLocal<T> = {
27
+ [K in keyof T]: T[K];
28
+ } & {};
@@ -0,0 +1,21 @@
1
+ export interface XColorPickerProps {
2
+ clearable?: boolean;
3
+ disabled?: boolean;
4
+ }
5
+ declare const _default: <D, 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<{
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
7
+ readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
8
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
9
+ modelValue?: V;
10
+ } & XColorPickerProps) & Partial<{}>> & import('vue').PublicProps;
11
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
12
+ attrs: any;
13
+ slots: {};
14
+ emit: (evt: "update:modelValue", value: V) => void;
15
+ }>) => import('vue').VNode & {
16
+ __ctx?: Awaited<typeof __VLS_setup>;
17
+ };
18
+ export default _default;
19
+ type __VLS_PrettifyLocal<T> = {
20
+ [K in keyof T]: T[K];
21
+ } & {};
@@ -0,0 +1,36 @@
1
+ import { Component } from 'vue';
2
+ export interface XDialogProps {
3
+ title?: string;
4
+ bodyClass?: string;
5
+ }
6
+ type __VLS_Props = XDialogProps;
7
+ type __VLS_PublicProps = {
8
+ modelValue?: boolean;
9
+ } & __VLS_Props;
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: Readonly<{
13
+ default?: () => Component;
14
+ header?: () => Component;
15
+ footer?: () => Component;
16
+ }> & {
17
+ default?: () => Component;
18
+ header?: () => Component;
19
+ footer?: () => Component;
20
+ };
21
+ refs: {};
22
+ rootEl: any;
23
+ };
24
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ "update:modelValue": (value: boolean) => any;
27
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
29
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,20 @@
1
+ import { DividerProps } from 'element-plus';
2
+ export interface XDividerProps extends Partial<DividerProps> {
3
+ }
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<XDividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XDividerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,54 @@
1
+ import { VNodeChild } from 'vue';
2
+ export interface XFormItemConfig<D> extends Omit<XFormItemProps, 'content' | 'label'> {
3
+ content?: (scope: {
4
+ data: D;
5
+ }) => VNodeChild;
6
+ label: string;
7
+ }
8
+ export interface XFormProps<D> {
9
+ content?: (scope: {
10
+ data: D;
11
+ }) => VNodeChild;
12
+ data?: D;
13
+ disabled?: boolean;
14
+ inline?: boolean;
15
+ labelWidth?: number | string;
16
+ labelPosition?: 'left' | 'right' | 'top';
17
+ statusIcon?: boolean;
18
+ }
19
+ export interface XFormItemProps {
20
+ content?: () => VNodeChild;
21
+ label?: string;
22
+ labelPosition?: '' | 'left' | 'right' | 'top';
23
+ labelWidth?: number | string;
24
+ required?: boolean;
25
+ tooltip?: {
26
+ type?: 'success' | 'warning';
27
+ content?: string;
28
+ };
29
+ }
30
+ export interface XFormItemValidation {
31
+ label: string;
32
+ required: boolean;
33
+ clearValidate: () => void;
34
+ validate: () => boolean;
35
+ validator?: () => string | void;
36
+ }
37
+ export declare const XFormItem: import('vue').DefineSetupFnComponent<XFormItemProps, {}, {}, XFormItemProps & {}, import('vue').PublicProps>;
38
+ 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<{
39
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & XFormProps<D> & Partial<{}>> & import('vue').PublicProps;
40
+ expose(exposed: import('vue').ShallowUnwrapRef<{
41
+ data: D | (() => void);
42
+ validate: () => boolean;
43
+ resetFields: () => void;
44
+ }>): void;
45
+ attrs: any;
46
+ slots: {};
47
+ emit: {};
48
+ }>) => import('vue').VNode & {
49
+ __ctx?: Awaited<typeof __VLS_setup>;
50
+ };
51
+ export default _default;
52
+ type __VLS_PrettifyLocal<T> = {
53
+ [K in keyof T]: T[K];
54
+ } & {};
@@ -0,0 +1,5 @@
1
+ import { ImageProps } from 'element-plus';
2
+ export interface XImageProps extends Partial<ImageProps> {
3
+ }
4
+ declare const _default: import('vue').DefineComponent<XImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XImageProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { InputProps } from 'element-plus';
2
+ export interface XInputProps {
3
+ clearable?: boolean;
4
+ placeholder?: string;
5
+ disabled?: boolean;
6
+ size?: InputProps['size'];
7
+ type?: InputProps['type'];
8
+ showPassword?: boolean;
9
+ autosize?: InputProps['autosize'];
10
+ }
11
+ 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<{
12
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
13
+ readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
14
+ readonly onBlur?: (() => any) | undefined;
15
+ readonly onChange?: ((value: V) => any) | undefined;
16
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onBlur" | "onChange"> & ({
17
+ modelValue?: V;
18
+ } & XInputProps) & Partial<{}>> & import('vue').PublicProps;
19
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
20
+ attrs: any;
21
+ slots: {};
22
+ emit: (((evt: "blur") => void) & ((evt: "change", value: V) => void)) & ((evt: "update:modelValue", value: V) => void);
23
+ }>) => import('vue').VNode & {
24
+ __ctx?: Awaited<typeof __VLS_setup>;
25
+ };
26
+ export default _default;
27
+ type __VLS_PrettifyLocal<T> = {
28
+ [K in keyof T]: T[K];
29
+ } & {};
@@ -0,0 +1,31 @@
1
+ import { InputNumberProps } from 'element-plus';
2
+ export interface XInputNumberProps {
3
+ placeholder?: string;
4
+ disabled?: boolean;
5
+ align?: InputNumberProps['align'];
6
+ size?: InputNumberProps['size'];
7
+ step?: number;
8
+ max?: number;
9
+ min?: number;
10
+ controls?: boolean;
11
+ precision?: number;
12
+ stepStrictly?: boolean;
13
+ }
14
+ declare const _default: <V extends 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<{
15
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
16
+ readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
17
+ readonly onBlur?: (() => any) | undefined;
18
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onBlur"> & ({
19
+ modelValue?: V;
20
+ } & XInputNumberProps) & Partial<{}>> & import('vue').PublicProps;
21
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
22
+ attrs: any;
23
+ slots: {};
24
+ emit: ((evt: "blur") => void) & ((evt: "update:modelValue", value: V) => void);
25
+ }>) => import('vue').VNode & {
26
+ __ctx?: Awaited<typeof __VLS_setup>;
27
+ };
28
+ export default _default;
29
+ type __VLS_PrettifyLocal<T> = {
30
+ [K in keyof T]: T[K];
31
+ } & {};
@@ -0,0 +1,21 @@
1
+ import { PaginationProps } from 'element-plus';
2
+ export interface XPaginationProps extends Partial<Omit<PaginationProps, 'pageSizes'>> {
3
+ sizes?: number[];
4
+ }
5
+ type __VLS_Props = XPaginationProps;
6
+ type __VLS_PublicProps = {
7
+ 'size'?: number;
8
+ 'current'?: number;
9
+ } & __VLS_Props;
10
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ sizeChange: (size: number) => any;
12
+ currentChange: (current: number) => any;
13
+ "update:size": (value: number) => any;
14
+ "update:current": (value: number) => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ onSizeChange?: ((size: number) => any) | undefined;
17
+ onCurrentChange?: ((current: number) => any) | undefined;
18
+ "onUpdate:size"?: ((value: number) => any) | undefined;
19
+ "onUpdate:current"?: ((value: number) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { RateProps } from 'element-plus';
2
+ export interface XRateProps extends Partial<Omit<RateProps, 'modelValue'>> {
3
+ }
4
+ declare const _default: <V extends 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<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
8
+ modelValue?: V;
9
+ } & XRateProps) & Partial<{}>> & import('vue').PublicProps;
10
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
11
+ attrs: any;
12
+ slots: {};
13
+ emit: (evt: "update:modelValue", value: V) => void;
14
+ }>) => import('vue').VNode & {
15
+ __ctx?: Awaited<typeof __VLS_setup>;
16
+ };
17
+ export default _default;
18
+ type __VLS_PrettifyLocal<T> = {
19
+ [K in keyof T]: T[K];
20
+ } & {};
@@ -0,0 +1,26 @@
1
+ export interface XReconfirmProps {
2
+ title?: string;
3
+ }
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<XReconfirmProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ cancel: () => any;
15
+ confirm: () => any;
16
+ }, string, import('vue').PublicProps, Readonly<XReconfirmProps> & Readonly<{
17
+ onCancel?: (() => any) | undefined;
18
+ onConfirm?: (() => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };