@nhdropshipping/y-components 1.0.0

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 (43) hide show
  1. package/README.md +102 -0
  2. package/dist/components/QueryEncapsulation.vue.d.ts +76 -0
  3. package/dist/components/QueryEncapsulation.vue.d.ts.map +1 -0
  4. package/dist/components/ybadge.vue.d.ts +83 -0
  5. package/dist/components/ybadge.vue.d.ts.map +1 -0
  6. package/dist/components/ybutton.vue.d.ts +130 -0
  7. package/dist/components/ybutton.vue.d.ts.map +1 -0
  8. package/dist/components/ydialog.vue.d.ts +89 -0
  9. package/dist/components/ydialog.vue.d.ts.map +1 -0
  10. package/dist/components/ydrawer.vue.d.ts +88 -0
  11. package/dist/components/ydrawer.vue.d.ts.map +1 -0
  12. package/dist/components/ydropdown.vue.d.ts +47 -0
  13. package/dist/components/ydropdown.vue.d.ts.map +1 -0
  14. package/dist/components/yimage.vue.d.ts +64 -0
  15. package/dist/components/yimage.vue.d.ts.map +1 -0
  16. package/dist/components/yinput.vue.d.ts +89 -0
  17. package/dist/components/yinput.vue.d.ts.map +1 -0
  18. package/dist/components/ymessage/ymessage.d.ts +20 -0
  19. package/dist/components/ymessage/ymessage.d.ts.map +1 -0
  20. package/dist/components/ymessage/ymessageToast.vue.d.ts +50 -0
  21. package/dist/components/ymessage/ymessageToast.vue.d.ts.map +1 -0
  22. package/dist/components/ypagination.vue.d.ts +57 -0
  23. package/dist/components/ypagination.vue.d.ts.map +1 -0
  24. package/dist/components/ypopover.vue.d.ts +110 -0
  25. package/dist/components/ypopover.vue.d.ts.map +1 -0
  26. package/dist/components/yselect.vue.d.ts +106 -0
  27. package/dist/components/yselect.vue.d.ts.map +1 -0
  28. package/dist/components/yswitch.vue.d.ts +79 -0
  29. package/dist/components/yswitch.vue.d.ts.map +1 -0
  30. package/dist/components/ytable.vue.d.ts +124 -0
  31. package/dist/components/ytable.vue.d.ts.map +1 -0
  32. package/dist/components/ytime.vue.d.ts +103 -0
  33. package/dist/components/ytime.vue.d.ts.map +1 -0
  34. package/dist/components/ytree.vue.d.ts +223 -0
  35. package/dist/components/ytree.vue.d.ts.map +1 -0
  36. package/dist/index.cjs.js +2 -0
  37. package/dist/index.cjs.js.map +1 -0
  38. package/dist/index.d.ts +26 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.esm.js +3646 -0
  41. package/dist/index.esm.js.map +1 -0
  42. package/dist/style.css +1 -0
  43. package/package.json +44 -0
package/README.md ADDED
@@ -0,0 +1,102 @@
1
+ # @nhdropshipping/y-components
2
+
3
+ Vue 3 组件库,包含常用的 UI 组件。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ npm install @nhdropshipping/y-components
9
+ # 或
10
+ yarn add @nhdropshipping/y-components
11
+ # 或
12
+ pnpm add @nhdropshipping/y-components
13
+ ```
14
+
15
+ ## 使用
16
+
17
+ ### 全量引入
18
+
19
+ ```typescript
20
+ import { createApp } from 'vue'
21
+ import YComponents from '@nhdropshipping/y-components'
22
+ import '@nhdropshipping/y-components/dist/style.css' // 如果有样式文件
23
+
24
+ const app = createApp(App)
25
+ app.use(YComponents)
26
+ ```
27
+
28
+ ### 按需引入
29
+
30
+ ```vue
31
+ <template>
32
+ <YButton variant="primary" size="medium">点击我</YButton>
33
+ <YInput v-model="inputValue" placeholder="请输入" />
34
+ </template>
35
+
36
+ <script setup lang="ts">
37
+ import { YButton, YInput } from '@nhdropshipping/y-components'
38
+ import { ref } from 'vue'
39
+
40
+ const inputValue = ref('')
41
+ </script>
42
+ ```
43
+
44
+ ### 使用 YMessage
45
+
46
+ ```typescript
47
+ import { YMessage } from '@nhdropshipping/y-components'
48
+
49
+ // 成功提示
50
+ YMessage.success('操作成功')
51
+
52
+ // 警告提示
53
+ YMessage.warning('请注意')
54
+
55
+ // 错误提示
56
+ YMessage.error('操作失败')
57
+ ```
58
+
59
+ ## 组件列表
60
+
61
+ - **YButton** - 按钮组件
62
+ - **YInput** - 输入框组件
63
+ - **YSelect** - 选择器组件
64
+ - **YTable** - 表格组件
65
+ - **YPagination** - 分页组件
66
+ - **YBadge** - 徽章组件
67
+ - **YDialog** - 对话框组件
68
+ - **YDrawer** - 抽屉组件
69
+ - **YPopover** - 弹出框组件
70
+ - **YSwitch** - 开关组件
71
+ - **YImage** - 图片组件
72
+ - **YDropdown** - 下拉菜单组件
73
+ - **YTree** - 树形组件
74
+ - **YTime** - 时间选择器组件
75
+ - **QueryEncapsulation** - 查询封装组件
76
+ - **YMessage** - 消息提示(函数式调用)
77
+
78
+ ## 开发
79
+
80
+ ```bash
81
+ # 安装依赖
82
+ npm install
83
+
84
+ # 构建
85
+ npm run build
86
+
87
+ # 开发模式(监听模式)
88
+ npm run dev
89
+ ```
90
+
91
+ ## 发布
92
+
93
+ ```bash
94
+ # 构建后发布
95
+ npm run build
96
+ npm publish
97
+ ```
98
+
99
+ ## License
100
+
101
+ MIT
102
+
@@ -0,0 +1,76 @@
1
+ import { SelectOption } from './yselect.vue';
2
+
3
+ export interface QueryField {
4
+ key: string;
5
+ label: string;
6
+ type: "input" | "select" | "date" | "daterange";
7
+ placeholder?: string;
8
+ options?: SelectOption[];
9
+ clearable?: boolean;
10
+ size?: "mini" | "small" | "medium" | "large";
11
+ width?: string;
12
+ required?: boolean;
13
+ hidden?: boolean;
14
+ format?: "timestamp" | "string" | "date";
15
+ includeTime?: boolean;
16
+ startKey?: string;
17
+ endKey?: string;
18
+ filterable?: boolean;
19
+ }
20
+ export interface QueryEncapsulationProps {
21
+ fields: QueryField[];
22
+ maxVisibleFields?: number;
23
+ loading?: boolean;
24
+ modelValue?: Record<string, any>;
25
+ }
26
+ declare function __VLS_template(): {
27
+ "extra-actions"?(_: {}): any;
28
+ };
29
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QueryEncapsulationProps>, {
30
+ maxVisibleFields: number;
31
+ loading: boolean;
32
+ modelValue: () => {};
33
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
+ reset: () => void;
35
+ search: (params: Record<string, any>) => void;
36
+ "update:modelValue": (value: Record<string, any>) => void;
37
+ "field-change": (field: QueryField, value: any) => void;
38
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QueryEncapsulationProps>, {
39
+ maxVisibleFields: number;
40
+ loading: boolean;
41
+ modelValue: () => {};
42
+ }>>> & Readonly<{
43
+ onReset?: (() => any) | undefined;
44
+ onSearch?: ((params: Record<string, any>) => any) | undefined;
45
+ "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
46
+ "onField-change"?: ((field: QueryField, value: any) => any) | undefined;
47
+ }>, {
48
+ modelValue: Record<string, any>;
49
+ loading: boolean;
50
+ maxVisibleFields: number;
51
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
52
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
53
+ export default _default;
54
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
55
+ type __VLS_TypePropsToRuntimeProps<T> = {
56
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
57
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
58
+ } : {
59
+ type: import('vue').PropType<T[K]>;
60
+ required: true;
61
+ };
62
+ };
63
+ type __VLS_WithDefaults<P, D> = {
64
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
65
+ default: D[K];
66
+ }> : P[K];
67
+ };
68
+ type __VLS_Prettify<T> = {
69
+ [K in keyof T]: T[K];
70
+ } & {};
71
+ type __VLS_WithTemplateSlots<T, S> = T & {
72
+ new (): {
73
+ $slots: S;
74
+ };
75
+ };
76
+ //# sourceMappingURL=QueryEncapsulation.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Query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cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,83 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ /** 视觉语气 */
6
+ tone?: "default" | "informational" | "success" | "attention" | "warning" | "critical";
7
+ /** 尺寸 */
8
+ size?: "small" | "medium";
9
+ /** 进度状态(与 icon 互斥,优先级更高) */
10
+ progress?: "incomplete" | "partiallyComplete" | "complete";
11
+ /** 内置图标:dot | check | alert | placeholder(string 亦以 dot 代替) */
12
+ icon?: "dot" | "check" | "alert" | "placeholder" | string | undefined;
13
+ /** 是否圆角胶囊 */
14
+ pill?: boolean;
15
+ /** 描边样式(浅背景 + 边框) */
16
+ outline?: boolean;
17
+ /** 文本标签(未提供 slot 时兜底) */
18
+ label?: string;
19
+ }>, {
20
+ tone: string;
21
+ size: string;
22
+ progress: undefined;
23
+ icon: undefined;
24
+ pill: boolean;
25
+ outline: boolean;
26
+ label: string;
27
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
28
+ /** 视觉语气 */
29
+ tone?: "default" | "informational" | "success" | "attention" | "warning" | "critical";
30
+ /** 尺寸 */
31
+ size?: "small" | "medium";
32
+ /** 进度状态(与 icon 互斥,优先级更高) */
33
+ progress?: "incomplete" | "partiallyComplete" | "complete";
34
+ /** 内置图标:dot | check | alert | placeholder(string 亦以 dot 代替) */
35
+ icon?: "dot" | "check" | "alert" | "placeholder" | string | undefined;
36
+ /** 是否圆角胶囊 */
37
+ pill?: boolean;
38
+ /** 描边样式(浅背景 + 边框) */
39
+ outline?: boolean;
40
+ /** 文本标签(未提供 slot 时兜底) */
41
+ label?: string;
42
+ }>, {
43
+ tone: string;
44
+ size: string;
45
+ progress: undefined;
46
+ icon: undefined;
47
+ pill: boolean;
48
+ outline: boolean;
49
+ label: string;
50
+ }>>> & Readonly<{}>, {
51
+ progress: "incomplete" | "partiallyComplete" | "complete";
52
+ size: "small" | "medium";
53
+ label: string;
54
+ icon: string;
55
+ tone: "default" | "informational" | "success" | "attention" | "warning" | "critical";
56
+ pill: boolean;
57
+ outline: boolean;
58
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
59
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
60
+ export default _default;
61
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
62
+ type __VLS_TypePropsToRuntimeProps<T> = {
63
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
64
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
65
+ } : {
66
+ type: import('vue').PropType<T[K]>;
67
+ required: true;
68
+ };
69
+ };
70
+ type __VLS_WithDefaults<P, D> = {
71
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
72
+ default: D[K];
73
+ }> : P[K];
74
+ };
75
+ type __VLS_Prettify<T> = {
76
+ [K in keyof T]: T[K];
77
+ } & {};
78
+ type __VLS_WithTemplateSlots<T, S> = T & {
79
+ new (): {
80
+ $slots: S;
81
+ };
82
+ };
83
+ //# sourceMappingURL=ybadge.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ybadge.vue.d.ts","sourceRoot":"","sources":["../../src/components/ybadge.vue"],"names":[],"mappings":"AAsCA;AAuEA,iBAAS,cAAc;qBA2TQ,GAAG;EAKjC;AAyBD,QAAA,MAAM,eAAe;IAMnB,WAAW;WACJ,SAAS,GAAG,eAAe,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU;IACrF,SAAS;WACF,OAAO,GAAG,QAAQ;IACzB,4BAA4B;eACjB,YAAY,GAAG,mBAAmB,GAAG,UAAU;IAC1D,+DAA+D;WACxD,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS;IACrE,aAAa;WACN,OAAO;IACd,qBAAqB;cACX,OAAO;IACjB,yBAAyB;YACjB,MAAM;;;;;;;;;;IAbd,WAAW;WACJ,SAAS,GAAG,eAA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AAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,130 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ htmlType?: "button" | "submit" | "reset";
6
+ variant?: "primary" | "secondary" | "danger" | "success";
7
+ size?: "mini" | "small" | "medium" | "large";
8
+ disabled?: boolean;
9
+ loading?: boolean;
10
+ block?: boolean;
11
+ /**
12
+ * 组合按钮位置:
13
+ * - single: 非组合(默认)
14
+ * - start: 组合按钮的第一个
15
+ * - middle: 组合按钮中间
16
+ * - end: 组合按钮最后一个
17
+ */
18
+ groupPosition?: "single" | "start" | "middle" | "end";
19
+ /**
20
+ * 若提供,则此组件内部渲染为按钮组
21
+ */
22
+ groupItems?: Array<{
23
+ label: string;
24
+ value?: string | number;
25
+ disabled?: boolean;
26
+ loading?: boolean;
27
+ variant?: "primary" | "secondary" | "danger" | "success";
28
+ size?: "mini" | "small" | "medium" | "large";
29
+ icon?: "chevron-left" | "chevron-right";
30
+ onlyIcon?: boolean;
31
+ ariaLabel?: string;
32
+ }>;
33
+ }>, {
34
+ htmlType: string;
35
+ variant: string;
36
+ size: string;
37
+ disabled: boolean;
38
+ loading: boolean;
39
+ block: boolean;
40
+ groupPosition: string;
41
+ groupItems: undefined;
42
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
43
+ click: (ev: MouseEvent) => void;
44
+ "group-click": (value: string | number | undefined, ev: MouseEvent) => void;
45
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
46
+ htmlType?: "button" | "submit" | "reset";
47
+ variant?: "primary" | "secondary" | "danger" | "success";
48
+ size?: "mini" | "small" | "medium" | "large";
49
+ disabled?: boolean;
50
+ loading?: boolean;
51
+ block?: boolean;
52
+ /**
53
+ * 组合按钮位置:
54
+ * - single: 非组合(默认)
55
+ * - start: 组合按钮的第一个
56
+ * - middle: 组合按钮中间
57
+ * - end: 组合按钮最后一个
58
+ */
59
+ groupPosition?: "single" | "start" | "middle" | "end";
60
+ /**
61
+ * 若提供,则此组件内部渲染为按钮组
62
+ */
63
+ groupItems?: Array<{
64
+ label: string;
65
+ value?: string | number;
66
+ disabled?: boolean;
67
+ loading?: boolean;
68
+ variant?: "primary" | "secondary" | "danger" | "success";
69
+ size?: "mini" | "small" | "medium" | "large";
70
+ icon?: "chevron-left" | "chevron-right";
71
+ onlyIcon?: boolean;
72
+ ariaLabel?: string;
73
+ }>;
74
+ }>, {
75
+ htmlType: string;
76
+ variant: string;
77
+ size: string;
78
+ disabled: boolean;
79
+ loading: boolean;
80
+ block: boolean;
81
+ groupPosition: string;
82
+ groupItems: undefined;
83
+ }>>> & Readonly<{
84
+ onClick?: ((ev: MouseEvent) => any) | undefined;
85
+ "onGroup-click"?: ((value: string | number | undefined, ev: MouseEvent) => any) | undefined;
86
+ }>, {
87
+ disabled: boolean;
88
+ block: boolean;
89
+ size: "mini" | "small" | "medium" | "large";
90
+ htmlType: "button" | "submit" | "reset";
91
+ variant: "primary" | "secondary" | "danger" | "success";
92
+ loading: boolean;
93
+ groupPosition: "single" | "start" | "middle" | "end";
94
+ groupItems: Array<{
95
+ label: string;
96
+ value?: string | number;
97
+ disabled?: boolean;
98
+ loading?: boolean;
99
+ variant?: "primary" | "secondary" | "danger" | "success";
100
+ size?: "mini" | "small" | "medium" | "large";
101
+ icon?: "chevron-left" | "chevron-right";
102
+ onlyIcon?: boolean;
103
+ ariaLabel?: string;
104
+ }>;
105
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
106
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
107
+ export default _default;
108
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
109
+ type __VLS_TypePropsToRuntimeProps<T> = {
110
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
111
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
112
+ } : {
113
+ type: import('vue').PropType<T[K]>;
114
+ required: true;
115
+ };
116
+ };
117
+ type __VLS_WithDefaults<P, D> = {
118
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
119
+ default: D[K];
120
+ }> : P[K];
121
+ };
122
+ type __VLS_Prettify<T> = {
123
+ [K in keyof T]: T[K];
124
+ } & {};
125
+ type __VLS_WithTemplateSlots<T, S> = T & {
126
+ new (): {
127
+ $slots: S;
128
+ };
129
+ };
130
+ //# sourceMappingURL=ybutton.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ybutton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ybutton.vue"],"names":[],"mappings":"AAqDA;AAgGA,iBAAS,cAAc;qBA+OO,GAAG;EAGhC;AA0CD,QAAA,MAAM,eAAe;eAMR,QAAQ,GAAG,QAAQ,GAAG,OAAO;cAC9B,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS;WACjD,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO;eACjC,OAAO;cACR,OAAO;YACT,OAAO;IACf;;;;;;OAMG;oBACa,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK;IACrD;;OAEG;iBACU,KAA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AAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,89 @@
1
+ declare function __VLS_template(): {
2
+ header?(_: {}): any;
3
+ default?(_: {}): any;
4
+ footer?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
+ modelValue?: boolean;
8
+ title?: string;
9
+ width?: string | number;
10
+ top?: string;
11
+ closable?: boolean;
12
+ maskClosable?: boolean;
13
+ zIndex?: number;
14
+ showHeader?: boolean;
15
+ center?: boolean;
16
+ }>, {
17
+ modelValue: boolean;
18
+ title: string;
19
+ width: string;
20
+ top: string;
21
+ closable: boolean;
22
+ maskClosable: boolean;
23
+ zIndex: number;
24
+ showHeader: boolean;
25
+ center: boolean;
26
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ "update:modelValue": (value: boolean) => void;
28
+ open: () => void;
29
+ close: () => void;
30
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
31
+ modelValue?: boolean;
32
+ title?: string;
33
+ width?: string | number;
34
+ top?: string;
35
+ closable?: boolean;
36
+ maskClosable?: boolean;
37
+ zIndex?: number;
38
+ showHeader?: boolean;
39
+ center?: boolean;
40
+ }>, {
41
+ modelValue: boolean;
42
+ title: string;
43
+ width: string;
44
+ top: string;
45
+ closable: boolean;
46
+ maskClosable: boolean;
47
+ zIndex: number;
48
+ showHeader: boolean;
49
+ center: boolean;
50
+ }>>> & Readonly<{
51
+ onClose?: (() => any) | undefined;
52
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
53
+ onOpen?: (() => any) | undefined;
54
+ }>, {
55
+ modelValue: boolean;
56
+ width: string | number;
57
+ title: string;
58
+ center: boolean;
59
+ zIndex: number;
60
+ top: string;
61
+ closable: boolean;
62
+ maskClosable: boolean;
63
+ showHeader: boolean;
64
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
65
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
66
+ export default _default;
67
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
68
+ type __VLS_TypePropsToRuntimeProps<T> = {
69
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
70
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
71
+ } : {
72
+ type: import('vue').PropType<T[K]>;
73
+ required: true;
74
+ };
75
+ };
76
+ type __VLS_WithDefaults<P, D> = {
77
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
78
+ default: D[K];
79
+ }> : P[K];
80
+ };
81
+ type __VLS_Prettify<T> = {
82
+ [K in keyof T]: T[K];
83
+ } & {};
84
+ type __VLS_WithTemplateSlots<T, S> = T & {
85
+ new (): {
86
+ $slots: S;
87
+ };
88
+ };
89
+ //# sourceMappingURL=ydialog.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ydialog.vue.d.ts","sourceRoot":"","sources":["../../src/components/ydialog.vue"],"names":[],"mappings":"AAoD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AC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,88 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ footer?(_: {}): any;
4
+ };
5
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
+ modelValue?: boolean;
7
+ placement?: "right" | "bottom";
8
+ width?: string | number;
9
+ height?: string | number;
10
+ title?: string;
11
+ closable?: boolean;
12
+ maskClosable?: boolean;
13
+ zIndex?: number;
14
+ showHeader?: boolean;
15
+ }>, {
16
+ modelValue: boolean;
17
+ placement: string;
18
+ width: string;
19
+ height: string;
20
+ title: string;
21
+ closable: boolean;
22
+ maskClosable: boolean;
23
+ zIndex: number;
24
+ showHeader: boolean;
25
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ "update:modelValue": (value: boolean) => void;
27
+ open: () => void;
28
+ close: () => void;
29
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
30
+ modelValue?: boolean;
31
+ placement?: "right" | "bottom";
32
+ width?: string | number;
33
+ height?: string | number;
34
+ title?: string;
35
+ closable?: boolean;
36
+ maskClosable?: boolean;
37
+ zIndex?: number;
38
+ showHeader?: boolean;
39
+ }>, {
40
+ modelValue: boolean;
41
+ placement: string;
42
+ width: string;
43
+ height: string;
44
+ title: string;
45
+ closable: boolean;
46
+ maskClosable: boolean;
47
+ zIndex: number;
48
+ showHeader: boolean;
49
+ }>>> & Readonly<{
50
+ onClose?: (() => any) | undefined;
51
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
52
+ onOpen?: (() => any) | undefined;
53
+ }>, {
54
+ modelValue: boolean;
55
+ width: string | number;
56
+ title: string;
57
+ height: string | number;
58
+ zIndex: number;
59
+ closable: boolean;
60
+ maskClosable: boolean;
61
+ showHeader: boolean;
62
+ placement: "right" | "bottom";
63
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
64
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
65
+ export default _default;
66
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
67
+ type __VLS_TypePropsToRuntimeProps<T> = {
68
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
69
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
70
+ } : {
71
+ type: import('vue').PropType<T[K]>;
72
+ required: true;
73
+ };
74
+ };
75
+ type __VLS_WithDefaults<P, D> = {
76
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
77
+ default: D[K];
78
+ }> : P[K];
79
+ };
80
+ type __VLS_Prettify<T> = {
81
+ [K in keyof T]: T[K];
82
+ } & {};
83
+ type __VLS_WithTemplateSlots<T, S> = T & {
84
+ new (): {
85
+ $slots: S;
86
+ };
87
+ };
88
+ //# sourceMappingURL=ydrawer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ydrawer.vue.d.ts","sourceRoot":"","sources":["../../src/components/ydrawer.vue"],"names":[],"mappings":"AAqDA;AAuHA,iBAAS,cAAc;qBAuMO,GAAG;oBACJ,GAAG;EAG/B;AA2BD,QAAA,MAAM,eAAe;iBAMN,OAAO;gBACR,OAAO,GAAG,QAAQ;YACtB,M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AC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,47 @@
1
+ interface Props {
2
+ trigger?: 'hover' | 'click';
3
+ placement?: 'bottom' | 'top' | 'left' | 'right';
4
+ disabled?: boolean;
5
+ }
6
+ declare function __VLS_template(): {
7
+ trigger?(_: {}): any;
8
+ default?(_: {}): any;
9
+ };
10
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ trigger: string;
12
+ placement: string;
13
+ disabled: boolean;
14
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
15
+ trigger: string;
16
+ placement: string;
17
+ disabled: boolean;
18
+ }>>> & Readonly<{}>, {
19
+ disabled: boolean;
20
+ trigger: "hover" | "click";
21
+ placement: "bottom" | "top" | "left" | "right";
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
24
+ export default _default;
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToRuntimeProps<T> = {
27
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
28
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
29
+ } : {
30
+ type: import('vue').PropType<T[K]>;
31
+ required: true;
32
+ };
33
+ };
34
+ type __VLS_WithDefaults<P, D> = {
35
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
36
+ default: D[K];
37
+ }> : P[K];
38
+ };
39
+ type __VLS_Prettify<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
42
+ type __VLS_WithTemplateSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
47
+ //# sourceMappingURL=ydropdown.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ydropdown.vue.d.ts","sourceRoot":"","sources":["../../src/components/ydropdown.vue"],"names":[],"mappings":"AAiCA;AAMA,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;IAC3B,SAAS,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAA;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAmLD,iBAAS,cAAc;qBAgJO,GAAG;qBACH,GAAG;EAKhC;AAaD,QAAA,MAAM,eAAe;;;;;;;;;cAvVR,OAAO;aAFR,OAAO,GAAG,OAAO;eACf,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO;4EA8V/C,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;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