@ug666/ui-vue 0.1.0 → 0.3.0-beta.1
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/aliases.d.ts +66 -0
- package/dist/aliases.d.ts.map +1 -0
- package/dist/blocks/feature-grid.vue.d.ts +40 -0
- package/dist/blocks/feature-grid.vue.d.ts.map +1 -0
- package/dist/blocks/index.cjs +2 -0
- package/dist/blocks/index.cjs.map +1 -0
- package/dist/blocks/index.d.ts +10 -0
- package/dist/blocks/index.d.ts.map +1 -0
- package/dist/blocks/index.js +227 -0
- package/dist/blocks/index.js.map +1 -0
- package/dist/blocks/landing-hero.vue.d.ts +61 -0
- package/dist/blocks/landing-hero.vue.d.ts.map +1 -0
- package/dist/button-CVw3ryBz.cjs +2 -0
- package/dist/button-CVw3ryBz.cjs.map +1 -0
- package/dist/button-D_ikOxrp.js +292 -0
- package/dist/button-D_ikOxrp.js.map +1 -0
- package/dist/cn-CFAiuoYh.cjs +2 -0
- package/dist/cn-CFAiuoYh.cjs.map +1 -0
- package/dist/cn-Cl2u7rTh.js +10 -0
- package/dist/cn-Cl2u7rTh.js.map +1 -0
- package/dist/components/accordion.vue.d.ts +29 -6
- package/dist/components/accordion.vue.d.ts.map +1 -1
- package/dist/components/alert.vue.d.ts +9 -8
- package/dist/components/alert.vue.d.ts.map +1 -1
- package/dist/components/avatar-group.vue.d.ts +3 -2
- package/dist/components/avatar-group.vue.d.ts.map +1 -1
- package/dist/components/avatar.vue.d.ts +6 -5
- package/dist/components/avatar.vue.d.ts.map +1 -1
- package/dist/components/badge.vue.d.ts +9 -16
- package/dist/components/badge.vue.d.ts.map +1 -1
- package/dist/components/breadcrumb.vue.d.ts +20 -11
- package/dist/components/breadcrumb.vue.d.ts.map +1 -1
- package/dist/components/button-group.vue.d.ts +92 -0
- package/dist/components/button-group.vue.d.ts.map +1 -0
- package/dist/components/button.vue.d.ts +77 -39
- package/dist/components/button.vue.d.ts.map +1 -1
- package/dist/components/card.vue.d.ts +15 -11
- package/dist/components/card.vue.d.ts.map +1 -1
- package/dist/components/checkbox-group.vue.d.ts +43 -0
- package/dist/components/checkbox-group.vue.d.ts.map +1 -0
- package/dist/components/checkbox.vue.d.ts +23 -24
- package/dist/components/checkbox.vue.d.ts.map +1 -1
- package/dist/components/config-provider.vue.d.ts +77 -0
- package/dist/components/config-provider.vue.d.ts.map +1 -0
- package/dist/components/container.vue.d.ts +141 -0
- package/dist/components/container.vue.d.ts.map +1 -0
- package/dist/components/context/accordion-context.d.ts +7 -2
- package/dist/components/context/accordion-context.d.ts.map +1 -1
- package/dist/components/context/button-group.d.ts +40 -0
- package/dist/components/context/button-group.d.ts.map +1 -0
- package/dist/components/context/checkbox-context.d.ts +14 -0
- package/dist/components/context/checkbox-context.d.ts.map +1 -0
- package/dist/components/context/context-menu-context.d.ts +4 -0
- package/dist/components/context/context-menu-context.d.ts.map +1 -1
- package/dist/components/context/drawer-context.d.ts +4 -0
- package/dist/components/context/drawer-context.d.ts.map +1 -1
- package/dist/components/context/dropdown-context.d.ts +10 -0
- package/dist/components/context/dropdown-context.d.ts.map +1 -1
- package/dist/components/context/form-context.d.ts +31 -1
- package/dist/components/context/form-context.d.ts.map +1 -1
- package/dist/components/context/popover-context.d.ts +2 -0
- package/dist/components/context/popover-context.d.ts.map +1 -1
- package/dist/components/context/radio-context.d.ts +11 -3
- package/dist/components/context/radio-context.d.ts.map +1 -1
- package/dist/components/context/tabs-context.d.ts +2 -0
- package/dist/components/context/tabs-context.d.ts.map +1 -1
- package/dist/components/context/tooltip-context.d.ts +2 -0
- package/dist/components/context/tooltip-context.d.ts.map +1 -1
- package/dist/components/context-menu.vue.d.ts +6 -5
- package/dist/components/context-menu.vue.d.ts.map +1 -1
- package/dist/components/descriptions.vue.d.ts +12 -18
- package/dist/components/descriptions.vue.d.ts.map +1 -1
- package/dist/components/dialog.vue.d.ts +5 -3
- package/dist/components/dialog.vue.d.ts.map +1 -1
- package/dist/components/drawer.vue.d.ts +9 -8
- package/dist/components/drawer.vue.d.ts.map +1 -1
- package/dist/components/dropdown.vue.d.ts +11 -10
- package/dist/components/dropdown.vue.d.ts.map +1 -1
- package/dist/components/empty-state.vue.d.ts +16 -17
- package/dist/components/empty-state.vue.d.ts.map +1 -1
- package/dist/components/form.vue.d.ts +95 -17
- package/dist/components/form.vue.d.ts.map +1 -1
- package/dist/components/icon.vue.d.ts +28 -0
- package/dist/components/icon.vue.d.ts.map +1 -0
- package/dist/components/index.cjs +1 -0
- package/dist/components/index.d.ts +65 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +5 -0
- package/dist/components/input.vue.d.ts +71 -29
- package/dist/components/input.vue.d.ts.map +1 -1
- package/dist/components/label.vue.d.ts +12 -19
- package/dist/components/label.vue.d.ts.map +1 -1
- package/dist/components/layout.d.ts +194 -0
- package/dist/components/layout.d.ts.map +1 -0
- package/dist/components/link.vue.d.ts +55 -0
- package/dist/components/link.vue.d.ts.map +1 -0
- package/dist/components/modal.vue.d.ts +15 -16
- package/dist/components/modal.vue.d.ts.map +1 -1
- package/dist/components/navigation-menu.vue.d.ts +30 -14
- package/dist/components/navigation-menu.vue.d.ts.map +1 -1
- package/dist/components/number-input.vue.d.ts +53 -25
- package/dist/components/number-input.vue.d.ts.map +1 -1
- package/dist/components/otp-input.vue.d.ts +12 -9
- package/dist/components/otp-input.vue.d.ts.map +1 -1
- package/dist/components/pagination.vue.d.ts +15 -13
- package/dist/components/pagination.vue.d.ts.map +1 -1
- package/dist/components/popover.vue.d.ts +9 -8
- package/dist/components/popover.vue.d.ts.map +1 -1
- package/dist/components/progress.vue.d.ts +7 -5
- package/dist/components/progress.vue.d.ts.map +1 -1
- package/dist/components/radio-group.vue.d.ts +23 -30
- package/dist/components/radio-group.vue.d.ts.map +1 -1
- package/dist/components/radio.vue.d.ts +28 -17
- package/dist/components/radio.vue.d.ts.map +1 -1
- package/dist/components/scrollbar.vue.d.ts +65 -0
- package/dist/components/scrollbar.vue.d.ts.map +1 -0
- package/dist/components/select.vue.d.ts +83 -33
- package/dist/components/select.vue.d.ts.map +1 -1
- package/dist/components/separator.vue.d.ts +19 -8
- package/dist/components/separator.vue.d.ts.map +1 -1
- package/dist/components/sheet.vue.d.ts +15 -16
- package/dist/components/sheet.vue.d.ts.map +1 -1
- package/dist/components/sidebar.vue.d.ts +37 -25
- package/dist/components/sidebar.vue.d.ts.map +1 -1
- package/dist/components/skeleton.vue.d.ts +3 -2
- package/dist/components/skeleton.vue.d.ts.map +1 -1
- package/dist/components/slider.vue.d.ts +56 -22
- package/dist/components/slider.vue.d.ts.map +1 -1
- package/dist/components/space.vue.d.ts +35 -0
- package/dist/components/space.vue.d.ts.map +1 -0
- package/dist/components/spinner.vue.d.ts +6 -5
- package/dist/components/spinner.vue.d.ts.map +1 -1
- package/dist/components/splitter.vue.d.ts +234 -0
- package/dist/components/splitter.vue.d.ts.map +1 -0
- package/dist/components/statistic.vue.d.ts +12 -15
- package/dist/components/statistic.vue.d.ts.map +1 -1
- package/dist/components/steps.vue.d.ts +8 -19
- package/dist/components/steps.vue.d.ts.map +1 -1
- package/dist/components/switch.vue.d.ts +50 -19
- package/dist/components/switch.vue.d.ts.map +1 -1
- package/dist/components/table.vue.d.ts +6 -5
- package/dist/components/table.vue.d.ts.map +1 -1
- package/dist/components/tabs.vue.d.ts +26 -9
- package/dist/components/tabs.vue.d.ts.map +1 -1
- package/dist/components/tag.vue.d.ts +12 -19
- package/dist/components/tag.vue.d.ts.map +1 -1
- package/dist/components/text.vue.d.ts +32 -0
- package/dist/components/text.vue.d.ts.map +1 -0
- package/dist/components/textarea.vue.d.ts +58 -26
- package/dist/components/textarea.vue.d.ts.map +1 -1
- package/dist/components/toast.vue.d.ts +3 -2
- package/dist/components/toast.vue.d.ts.map +1 -1
- package/dist/components/tooltip.vue.d.ts +7 -6
- package/dist/components/tooltip.vue.d.ts.map +1 -1
- package/dist/components/types/forms.d.ts +15 -0
- package/dist/components/types/forms.d.ts.map +1 -0
- package/dist/components/types/foundation.d.ts +5 -0
- package/dist/components/types/foundation.d.ts.map +1 -0
- package/dist/composables/index.cjs +1 -1
- package/dist/composables/index.d.ts +2 -1
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/composables/index.js +3 -2
- package/dist/composables/use-copy-to-clipboard.d.ts.map +1 -1
- package/dist/composables/use-event-listener.d.ts.map +1 -1
- package/dist/composables/use-form.d.ts +38 -26
- package/dist/composables/use-form.d.ts.map +1 -1
- package/dist/composables/use-local-storage.d.ts.map +1 -1
- package/dist/composables-C-Go-D3m.js +386 -0
- package/dist/composables-C-Go-D3m.js.map +1 -0
- package/dist/composables-CiWPyBEE.cjs +2 -0
- package/dist/composables-CiWPyBEE.cjs.map +1 -0
- package/dist/global.cjs +1 -0
- package/dist/global.d.ts +124 -0
- package/dist/global.d.ts.map +1 -0
- package/dist/global.js +0 -0
- package/dist/icon-NbssmDYT.js +1561 -0
- package/dist/icon-NbssmDYT.js.map +1 -0
- package/dist/icon-jF_XZntG.cjs +2 -0
- package/dist/icon-jF_XZntG.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +30 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +133 -2937
- package/dist/index.js.map +1 -1
- package/dist/internal/cn.d.ts +3 -0
- package/dist/internal/cn.d.ts.map +1 -0
- package/dist/internal/use-overlay-focus.d.ts +3 -0
- package/dist/internal/use-overlay-focus.d.ts.map +1 -0
- package/dist/internal/use-overlay-lifecycle.d.ts +3 -0
- package/dist/internal/use-overlay-lifecycle.d.ts.map +1 -0
- package/dist/labs/file-preview.vue.d.ts +42 -0
- package/dist/labs/file-preview.vue.d.ts.map +1 -0
- package/dist/labs/index.cjs +2 -0
- package/dist/labs/index.cjs.map +1 -0
- package/dist/labs/index.d.ts +15 -0
- package/dist/labs/index.d.ts.map +1 -0
- package/dist/labs/index.js +213 -0
- package/dist/labs/index.js.map +1 -0
- package/dist/labs/model-card.vue.d.ts +46 -0
- package/dist/labs/model-card.vue.d.ts.map +1 -0
- package/dist/patterns/admin-shell.vue.d.ts +74 -0
- package/dist/patterns/admin-shell.vue.d.ts.map +1 -0
- package/dist/patterns/confirm-dialog.vue.d.ts +60 -0
- package/dist/patterns/confirm-dialog.vue.d.ts.map +1 -0
- package/dist/patterns/copy-field.vue.d.ts +48 -0
- package/dist/patterns/copy-field.vue.d.ts.map +1 -0
- package/dist/patterns/index.cjs +2 -0
- package/dist/patterns/index.cjs.map +1 -0
- package/dist/patterns/index.d.ts +14 -0
- package/dist/patterns/index.d.ts.map +1 -0
- package/dist/patterns/index.js +394 -0
- package/dist/patterns/index.js.map +1 -0
- package/dist/patterns/page-header.vue.d.ts +48 -0
- package/dist/patterns/page-header.vue.d.ts.map +1 -0
- package/dist/plugin.d.ts +5 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/primitives/index.cjs +1 -0
- package/dist/primitives/index.d.ts +26 -0
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/index.js +3 -0
- package/dist/resolver.cjs +2 -0
- package/dist/resolver.cjs.map +1 -0
- package/dist/resolver.d.ts +20 -0
- package/dist/resolver.d.ts.map +1 -0
- package/dist/resolver.js +34 -0
- package/dist/resolver.js.map +1 -0
- package/dist/sidebar-DI7FOJiw.cjs +2 -0
- package/dist/sidebar-DI7FOJiw.cjs.map +1 -0
- package/dist/sidebar-wW1OGS5T.js +442 -0
- package/dist/sidebar-wW1OGS5T.js.map +1 -0
- package/dist/statistic-1kiSjvCX.cjs +2 -0
- package/dist/statistic-1kiSjvCX.cjs.map +1 -0
- package/dist/statistic-DBlNBT-A.js +4748 -0
- package/dist/statistic-DBlNBT-A.js.map +1 -0
- package/dist/styles.css +4343 -0
- package/dist/theme.cjs +2 -0
- package/dist/theme.cjs.map +1 -0
- package/dist/theme.d.ts +173 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +128 -0
- package/dist/theme.js.map +1 -0
- package/dist/themes/default.css +80 -0
- package/dist/themes/mecha.css +195 -0
- package/dist/themes/minimal.css +160 -0
- package/dist/toast-state-DZPoRLPw.cjs +2 -0
- package/dist/toast-state-DZPoRLPw.cjs.map +1 -0
- package/dist/toast-state-DyrVOjSJ.js +50 -0
- package/dist/toast-state-DyrVOjSJ.js.map +1 -0
- package/dist/tokens.css +1241 -9
- package/package.json +66 -14
- package/dist/composables-BwdwEG7n.js +0 -296
- package/dist/composables-BwdwEG7n.js.map +0 -1
- package/dist/composables-Cxcf-3ov.cjs +0 -2
- package/dist/composables-Cxcf-3ov.cjs.map +0 -1
|
@@ -18,28 +18,25 @@ interface Props {
|
|
|
18
18
|
/** 额外 CSS 类名 */
|
|
19
19
|
class?: string;
|
|
20
20
|
}
|
|
21
|
-
declare
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
refs: {};
|
|
28
|
-
rootEl: HTMLDivElement;
|
|
21
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
22
|
+
type __VLS_Slots = {} & {
|
|
23
|
+
prefix?: (props: typeof __VLS_1) => any;
|
|
24
|
+
} & {
|
|
25
|
+
suffix?: (props: typeof __VLS_3) => any;
|
|
29
26
|
};
|
|
30
|
-
|
|
31
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
27
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
32
28
|
size: StatisticSize;
|
|
33
|
-
class: string;
|
|
34
29
|
title: string;
|
|
35
30
|
change: string;
|
|
36
|
-
|
|
31
|
+
class: string;
|
|
37
32
|
suffix: string;
|
|
33
|
+
precision: number;
|
|
38
34
|
trend: StatisticTrend;
|
|
39
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
40
|
-
declare const
|
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
36
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
37
|
+
declare const _default: typeof __VLS_export;
|
|
41
38
|
export default _default;
|
|
42
|
-
type
|
|
39
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
43
40
|
new (): {
|
|
44
41
|
$slots: S;
|
|
45
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statistic.vue.d.ts","sourceRoot":"","sources":["../../src/components/statistic.vue"],"names":[],"mappings":"AAKA;
|
|
1
|
+
{"version":3,"file":"statistic.vue.d.ts","sourceRoot":"","sources":["../../src/components/statistic.vue"],"names":[],"mappings":"AAKA;AAkKA,KAAK,aAAa,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAA;AAC5C,KAAK,cAAc,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAA;AAE5C,UAAU,KAAK;IACb,WAAW;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW;IACX,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW;IACX,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS;IACT,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAuLD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK9C,QAAA,MAAM,UAAU;UAlMP,aAAa;WAZZ,MAAM;YAUL,MAAM;WAIP,MAAM;YARL,MAAM;eAFH,MAAM;WAIV,cAAc;6EAyMtB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,31 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* <USteps :current="1" :items="[{ title: '填写信息' }, { title: '确认订单' }, { title: '完成支付' }]" />
|
|
5
|
-
*/
|
|
6
|
-
type StepsDirection = 'horizontal' | 'vertical';
|
|
7
|
-
type StepsStatus = 'process' | 'finish' | 'error';
|
|
8
|
-
interface StepItem {
|
|
9
|
-
/** 步骤标题 */
|
|
1
|
+
export type StepsDirection = 'horizontal' | 'vertical';
|
|
2
|
+
export type StepsStatus = 'process' | 'finish' | 'error';
|
|
3
|
+
export interface StepItem {
|
|
10
4
|
title: string;
|
|
11
|
-
/** 步骤描述(可选) */
|
|
12
5
|
description?: string;
|
|
13
6
|
}
|
|
14
|
-
interface
|
|
15
|
-
/** 当前激活步骤下标(0-based) */
|
|
7
|
+
export interface StepsProps {
|
|
16
8
|
current: number;
|
|
17
|
-
/** 步骤列表 */
|
|
18
9
|
items: StepItem[];
|
|
19
|
-
/** 排列方向 */
|
|
20
10
|
direction?: StepsDirection;
|
|
21
|
-
/** 当前步骤状态 */
|
|
22
11
|
status?: StepsStatus;
|
|
23
|
-
/** 额外 CSS 类名 */
|
|
24
12
|
class?: string;
|
|
25
13
|
}
|
|
26
|
-
declare const _default:
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
declare const __VLS_export: import('vue').DefineComponent<StepsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StepsProps> & Readonly<{}>, {
|
|
27
17
|
direction: StepsDirection;
|
|
28
18
|
status: StepsStatus;
|
|
29
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
30
|
-
export default _default;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
20
|
//# sourceMappingURL=steps.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.vue.d.ts","sourceRoot":"","sources":["../../src/components/steps.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"steps.vue.d.ts","sourceRoot":"","sources":["../../src/components/steps.vue"],"names":[],"mappings":"AA0KA,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,UAAU,CAAA;AACtD,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAA;AAExD,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;eALJ,cAAc;YACjB,WAAW;6EA0LlB,CAAC"}
|
|
@@ -1,32 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { ControlSize } from './config-provider.vue';
|
|
3
|
+
export type SwitchLabelPlacement = 'left' | 'right';
|
|
4
|
+
export interface SwitchProps {
|
|
5
|
+
defaultChecked?: boolean;
|
|
4
6
|
disabled?: boolean;
|
|
5
|
-
/** 标签文本 */
|
|
6
7
|
label?: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
labelPlacement?: SwitchLabelPlacement;
|
|
9
|
+
width?: number | string;
|
|
10
|
+
inlinePrompt?: boolean;
|
|
11
|
+
activeText?: string;
|
|
12
|
+
inactiveText?: string;
|
|
13
|
+
activeIcon?: Component;
|
|
14
|
+
inactiveIcon?: Component;
|
|
15
|
+
activeAction?: Component;
|
|
16
|
+
inactiveAction?: Component;
|
|
17
|
+
size?: ControlSize;
|
|
10
18
|
id?: string;
|
|
11
|
-
/** 额外 CSS 类名 */
|
|
12
19
|
class?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
value?: string | number;
|
|
22
|
+
form?: string;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
beforeChange?: (checked: boolean) => boolean | Promise<boolean>;
|
|
13
25
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
declare const __VLS_export: import('vue').DefineComponent<SwitchProps & {
|
|
29
|
+
checked?: boolean | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
focus: () => void | undefined;
|
|
32
|
+
blur: () => void | undefined;
|
|
33
|
+
el: import('vue').Ref<HTMLButtonElement | null, HTMLButtonElement | null>;
|
|
34
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
35
|
change: (checked: boolean) => any;
|
|
20
|
-
"update:checked": (value: boolean) => any;
|
|
21
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
36
|
+
"update:checked": (value: boolean | undefined) => any;
|
|
37
|
+
}, string, import('vue').PublicProps, Readonly<SwitchProps & {
|
|
38
|
+
checked?: boolean | undefined;
|
|
39
|
+
}> & Readonly<{
|
|
22
40
|
onChange?: ((checked: boolean) => any) | undefined;
|
|
23
|
-
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
41
|
+
"onUpdate:checked"?: ((value: boolean | undefined) => any) | undefined;
|
|
24
42
|
}>, {
|
|
43
|
+
value: string | number;
|
|
25
44
|
disabled: boolean;
|
|
26
|
-
|
|
45
|
+
name: string;
|
|
46
|
+
form: string;
|
|
27
47
|
label: string;
|
|
48
|
+
class: string;
|
|
49
|
+
loading: boolean;
|
|
28
50
|
id: string;
|
|
29
|
-
|
|
51
|
+
width: number | string;
|
|
52
|
+
defaultChecked: boolean;
|
|
53
|
+
labelPlacement: SwitchLabelPlacement;
|
|
54
|
+
inlinePrompt: boolean;
|
|
55
|
+
activeText: string;
|
|
56
|
+
inactiveText: string;
|
|
57
|
+
activeIcon: Component;
|
|
58
|
+
inactiveIcon: Component;
|
|
59
|
+
activeAction: Component;
|
|
60
|
+
inactiveAction: Component;
|
|
61
|
+
beforeChange: (checked: boolean) => boolean | Promise<boolean>;
|
|
30
62
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
|
-
export default _default;
|
|
32
63
|
//# sourceMappingURL=switch.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.vue.d.ts","sourceRoot":"","sources":["../../src/components/switch.vue"],"names":[],"mappings":"AAKA;
|
|
1
|
+
{"version":3,"file":"switch.vue.d.ts","sourceRoot":"","sources":["../../src/components/switch.vue"],"names":[],"mappings":"AAKA;AA2WA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,OAAO,CAAA;AAEnD,MAAM,WAAW,WAAW;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,oBAAoB,CAAA;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAChE;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;cA4JN,OAAO,GAAG,SAAS;;;;;;;;;cAAnB,OAAO,GAAG,SAAS;;;;;WAlKrB,MAAM,GAAG,MAAM;cAfZ,OAAO;UAcX,MAAM;UAEN,MAAM;WAfL,MAAM;WAYN,MAAM;aAIJ,OAAO;QALZ,MAAM;WATH,MAAM,GAAG,MAAM;oBAJN,OAAO;oBAGP,oBAAoB;kBAEtB,OAAO;gBACT,MAAM;kBACJ,MAAM;gBACR,SAAS;kBACP,SAAS;kBACT,SAAS;oBACP,SAAS;kBAQX,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;6EAgb7D,CAAC"}
|
|
@@ -43,7 +43,9 @@ export declare const UTableCell: import('vue').DefineComponent<{
|
|
|
43
43
|
}> & Readonly<{}>, {
|
|
44
44
|
class: string;
|
|
45
45
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
46
|
-
declare const _default:
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
export default _default;
|
|
48
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
47
49
|
/** table 元素额外 CSS 类名 */
|
|
48
50
|
class?: string;
|
|
49
51
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
@@ -51,11 +53,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
51
53
|
class?: string;
|
|
52
54
|
}> & Readonly<{}>, {
|
|
53
55
|
class: string;
|
|
54
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
55
|
-
default
|
|
56
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
57
|
+
default?: (props: {}) => any;
|
|
56
58
|
}>;
|
|
57
|
-
|
|
58
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
59
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
59
60
|
new (): {
|
|
60
61
|
$slots: S;
|
|
61
62
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.vue.d.ts","sourceRoot":"","sources":["../../src/components/table.vue"],"names":[],"mappings":"AAKA;
|
|
1
|
+
{"version":3,"file":"table.vue.d.ts","sourceRoot":"","sources":["../../src/components/table.vue"],"names":[],"mappings":"AAKA;AAsGA,eAAO,MAAM,YAAY;YApBf,MAAM;;;;YAAN,MAAM;;;4EAoB0G,CAAA;AAC1H,eAAO,MAAM,UAAU;YArBb,MAAM;;;;YAAN,MAAM;;;4EAqB4F,CAAA;AAC5G,eAAO,MAAM,SAAS;YAtBZ,MAAM;;;;YAAN,MAAM;;;4EAsB4H,CAAA;AAC5I,eAAO,MAAM,UAAU;YAvBb,MAAM;;;;YAAN,MAAM;;;4EAuBsN,CAAA;AACtO,eAAO,MAAM,UAAU;YAxBb,MAAM;;;;YAAN,MAAM;;;4EAwBoM,CAAA;wBAC/L,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;IAOhB,wBAAwB;YAChB,MAAM;;IADd,wBAAwB;YAChB,MAAM;;WAAN,MAAM;;cA+CF,CAAC,KAAK,IAAgB,KAAK,GAAG;EAUxC,CAAC;AAWL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
export interface TabsProps {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
class?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface TabsListProps {
|
|
6
|
+
class?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TabsTriggerProps {
|
|
9
|
+
value: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
class?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface TabsContentProps {
|
|
14
|
+
value: string;
|
|
15
|
+
class?: string;
|
|
16
|
+
}
|
|
1
17
|
export declare const UTabsList: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
18
|
/** 额外 CSS 类名 */
|
|
3
19
|
class: {
|
|
@@ -84,29 +100,30 @@ export declare const UTabsContent: import('vue').DefineComponent<import('vue').E
|
|
|
84
100
|
}>> & Readonly<{}>, {
|
|
85
101
|
class: string;
|
|
86
102
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
87
|
-
declare const _default:
|
|
88
|
-
|
|
89
|
-
|
|
103
|
+
declare const _default: typeof __VLS_export;
|
|
104
|
+
export default _default;
|
|
105
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
90
106
|
/** 容器额外 CSS 类名 */
|
|
91
107
|
class?: string;
|
|
108
|
+
} & {
|
|
109
|
+
modelValue?: string;
|
|
92
110
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
93
111
|
"update:modelValue": (value: string) => any;
|
|
94
112
|
valueChange: (value: string) => any;
|
|
95
113
|
}, string, import('vue').PublicProps, Readonly<{
|
|
96
|
-
modelValue?: string;
|
|
97
|
-
} & {
|
|
98
114
|
/** 容器额外 CSS 类名 */
|
|
99
115
|
class?: string;
|
|
116
|
+
} & {
|
|
117
|
+
modelValue?: string;
|
|
100
118
|
}> & Readonly<{
|
|
101
119
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
102
120
|
onValueChange?: ((value: string) => any) | undefined;
|
|
103
121
|
}>, {
|
|
104
122
|
class: string;
|
|
105
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
106
|
-
default
|
|
123
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
124
|
+
default?: (props: {}) => any;
|
|
107
125
|
}>;
|
|
108
|
-
|
|
109
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
126
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
110
127
|
new (): {
|
|
111
128
|
$slots: S;
|
|
112
129
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.vue.d.ts","sourceRoot":"","sources":["../../src/components/tabs.vue"],"names":[],"mappings":"AAKA;
|
|
1
|
+
{"version":3,"file":"tabs.vue.d.ts","sourceRoot":"","sources":["../../src/components/tabs.vue"],"names":[],"mappings":"AAKA;AAgPA,MAAM,WAAW,SAAS;IACxB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAcD,eAAO,MAAM,SAAS;IAGlB,gBAAgB;;;;;;;;IAAhB,gBAAgB;;;;;;;4EAUlB,CAAA;AAEF,eAAO,MAAM,YAAY;IAGrB,kBAAkB;;;;;IAKlB,eAAe;;;;;IAKf,gBAAgB;;;;;;;;oBAOA,UAAU;;IAjB1B,kBAAkB;;;;;IAKlB,eAAe;;;;;IAKf,gBAAgB;;;;;;;;;;4EAqElB,CAAA;AAEF,eAAO,MAAM,YAAY;IAGrB,mBAAmB;;;;;IAKnB,gBAAgB;;;;;;;;IALhB,mBAAmB;;;;;IAKnB,gBAAgB;;;;;;;4EA0BlB,CAAA;wBACmB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;IAMhB,kBAAkB;YACV,MAAM;;iBAkCD,MAAM;;;;;IAnCnB,kBAAkB;YACV,MAAM;;iBAkCD,MAAM;;;;;WAlCX,MAAM;;cAyEF,CAAC,KAAK,IAAgB,KAAK,GAAG;EAWxC,CAAC;AAWL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
type TagVariant = 'default' | 'primary' | 'success' | 'warning' | 'destructive' | 'outline';
|
|
2
|
-
type TagSize = 'sm' | 'default';
|
|
3
|
-
interface
|
|
1
|
+
export type TagVariant = 'default' | 'primary' | 'success' | 'warning' | 'destructive' | 'outline';
|
|
2
|
+
export type TagSize = 'sm' | 'default';
|
|
3
|
+
export interface TagProps {
|
|
4
4
|
/** 样式变体 */
|
|
5
5
|
variant?: TagVariant;
|
|
6
6
|
/** 尺寸 */
|
|
@@ -9,23 +9,16 @@ interface Props {
|
|
|
9
9
|
closable?: boolean;
|
|
10
10
|
/** 是否禁用 */
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
/** 自定义背景色(覆盖 variant
|
|
12
|
+
/** 自定义背景色(覆盖 variant 颜色,建议传 token CSS 变量) */
|
|
13
13
|
color?: string;
|
|
14
14
|
/** 额外 CSS 类名 */
|
|
15
15
|
class?: string;
|
|
16
16
|
}
|
|
17
|
-
declare
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
default?(_: {}): any;
|
|
21
|
-
};
|
|
22
|
-
refs: {};
|
|
23
|
-
rootEl: HTMLSpanElement;
|
|
24
|
-
};
|
|
25
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<TagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
20
|
close: (event: MouseEvent) => any;
|
|
28
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<TagProps> & Readonly<{
|
|
29
22
|
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
30
23
|
}>, {
|
|
31
24
|
variant: TagVariant;
|
|
@@ -34,10 +27,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
34
27
|
class: string;
|
|
35
28
|
color: string;
|
|
36
29
|
closable: boolean;
|
|
37
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
type
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
31
|
+
default?: (props: {}) => any;
|
|
32
|
+
}>;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
34
|
new (): {
|
|
42
35
|
$slots: S;
|
|
43
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.vue.d.ts","sourceRoot":"","sources":["../../src/components/tag.vue"],"names":[],"mappings":"AAKA;
|
|
1
|
+
{"version":3,"file":"tag.vue.d.ts","sourceRoot":"","sources":["../../src/components/tag.vue"],"names":[],"mappings":"AAKA;AA0HA,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAAA;AAClG,MAAM,MAAM,OAAO,GAAG,IAAI,GAAG,SAAS,CAAA;AAEtC,MAAM,WAAW,QAAQ;IACvB,WAAW;IACX,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,SAAS;IACT,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,eAAe;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;;;;aAbN,UAAU;UAEb,OAAO;cAIH,OAAO;WAIV,MAAM;WAFN,MAAM;cAJH,OAAO;;cA0JN,CAAC,KAAK,IAAgB,KAAK,GAAG;EAWxC,CAAC;AAWL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { ControlSize } from './config-provider.vue';
|
|
3
|
+
export type TextElement = string | Component;
|
|
4
|
+
export type TextTone = 'default' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'info' | 'inherit';
|
|
5
|
+
export type TextSize = ControlSize | 'xs' | 'md';
|
|
6
|
+
export interface TextProps {
|
|
7
|
+
as?: TextElement;
|
|
8
|
+
tone?: TextTone;
|
|
9
|
+
size?: TextSize;
|
|
10
|
+
truncate?: boolean;
|
|
11
|
+
/** 最多显示的正整数行数;超出内容使用省略号裁切 */
|
|
12
|
+
lineClamp?: number | string;
|
|
13
|
+
class?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<TextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TextProps> & Readonly<{}>, {
|
|
18
|
+
tone: TextTone;
|
|
19
|
+
size: TextSize;
|
|
20
|
+
class: string;
|
|
21
|
+
as: TextElement;
|
|
22
|
+
truncate: boolean;
|
|
23
|
+
lineClamp: number | string;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
25
|
+
default?: (props: {}) => any;
|
|
26
|
+
}>;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=text.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.vue.d.ts","sourceRoot":"","sources":["../../src/components/text.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,CAAA;AAC5C,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,SAAS,GACT,WAAW,GACX,UAAU,GACV,SAAS,GACT,SAAS,GACT,QAAQ,GACR,MAAM,GACN,SAAS,CAAA;AACb,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,IAAI,GAAG,IAAI,CAAA;AAEhD,MAAM,WAAW,SAAS;IACxB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;UART,QAAQ;UACR,QAAQ;WAIP,MAAM;QANT,WAAW;cAGL,OAAO;eAEN,MAAM,GAAG,MAAM;;cAsHf,CAAC,KAAK,IAAgB,KAAK,GAAG;EAUxC,CAAC;AAWL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,54 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { TextCountFunction } from '@ug666/ui-core';
|
|
2
|
+
import { Component } from 'vue';
|
|
3
|
+
import { ControlSize } from './config-provider.vue';
|
|
4
|
+
export type TextareaResize = 'none' | 'both' | 'horizontal' | 'vertical';
|
|
5
|
+
export interface TextareaAutosizeOptions {
|
|
6
|
+
minRows?: number;
|
|
7
|
+
maxRows?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface TextareaProps {
|
|
3
10
|
label?: string;
|
|
4
|
-
/** 错误提示文本 */
|
|
5
11
|
error?: string;
|
|
6
|
-
/** 帮助说明文本 */
|
|
7
12
|
helperText?: string;
|
|
8
|
-
/** 文本域 id,不传则自动生成 */
|
|
9
13
|
id?: string;
|
|
10
|
-
/** 默认行数 */
|
|
11
14
|
rows?: number;
|
|
12
|
-
/** 是否禁用 */
|
|
13
15
|
disabled?: boolean;
|
|
14
|
-
|
|
16
|
+
readonly?: boolean;
|
|
17
|
+
size?: ControlSize;
|
|
15
18
|
placeholder?: string;
|
|
16
|
-
|
|
19
|
+
maxlength?: number;
|
|
20
|
+
resize?: TextareaResize;
|
|
21
|
+
autosize?: boolean | TextareaAutosizeOptions;
|
|
22
|
+
clearable?: boolean;
|
|
23
|
+
clearIcon?: Component;
|
|
24
|
+
showWordLimit?: boolean;
|
|
25
|
+
wordLimitPosition?: 'inside' | 'outside';
|
|
26
|
+
countCharacters?: TextCountFunction;
|
|
17
27
|
class?: string;
|
|
18
28
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
declare
|
|
22
|
-
type __VLS_PublicProps = {
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<TextareaProps & {
|
|
23
32
|
modelValue?: string | undefined;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
33
|
+
}, {
|
|
34
|
+
focus: () => void;
|
|
35
|
+
blur: () => void;
|
|
36
|
+
clear: () => void;
|
|
37
|
+
resizeTextarea: () => void;
|
|
28
38
|
el: import('vue').Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
|
|
29
39
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
40
|
input: (event: Event) => any;
|
|
31
41
|
blur: (event: FocusEvent) => any;
|
|
32
|
-
focus: (event: FocusEvent) => any;
|
|
33
42
|
change: (event: Event) => any;
|
|
43
|
+
compositionend: (event: CompositionEvent) => any;
|
|
44
|
+
compositionstart: (event: CompositionEvent) => any;
|
|
45
|
+
focus: (event: FocusEvent) => any;
|
|
46
|
+
clear: () => any;
|
|
34
47
|
"update:modelValue": (value: string | undefined) => any;
|
|
35
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
48
|
+
}, string, import('vue').PublicProps, Readonly<TextareaProps & {
|
|
49
|
+
modelValue?: string | undefined;
|
|
50
|
+
}> & Readonly<{
|
|
36
51
|
onInput?: ((event: Event) => any) | undefined;
|
|
37
52
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
38
|
-
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
39
53
|
onChange?: ((event: Event) => any) | undefined;
|
|
54
|
+
onCompositionend?: ((event: CompositionEvent) => any) | undefined;
|
|
55
|
+
onCompositionstart?: ((event: CompositionEvent) => any) | undefined;
|
|
56
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
57
|
+
onClear?: (() => any) | undefined;
|
|
40
58
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
41
59
|
}>, {
|
|
60
|
+
size: ControlSize;
|
|
42
61
|
disabled: boolean;
|
|
43
|
-
class: string;
|
|
44
62
|
label: string;
|
|
45
|
-
id: string;
|
|
46
63
|
error: string;
|
|
64
|
+
resize: TextareaResize;
|
|
65
|
+
class: string;
|
|
66
|
+
id: string;
|
|
47
67
|
helperText: string;
|
|
68
|
+
readonly: boolean;
|
|
48
69
|
placeholder: string;
|
|
70
|
+
clearIcon: Component;
|
|
71
|
+
clearable: boolean;
|
|
72
|
+
showWordLimit: boolean;
|
|
73
|
+
wordLimitPosition: "inside" | "outside";
|
|
74
|
+
countCharacters: TextCountFunction;
|
|
75
|
+
maxlength: number;
|
|
49
76
|
rows: number;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
77
|
+
autosize: boolean | TextareaAutosizeOptions;
|
|
78
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
79
|
+
clearIcon?: (props: {}) => any;
|
|
80
|
+
}>;
|
|
81
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
82
|
+
new (): {
|
|
83
|
+
$slots: S;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
54
86
|
//# sourceMappingURL=textarea.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.vue.d.ts","sourceRoot":"","sources":["../../src/components/textarea.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"textarea.vue.d.ts","sourceRoot":"","sources":["../../src/components/textarea.vue"],"names":[],"mappings":"AA4UA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAA;AAExE,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,GAAG,uBAAuB,CAAA;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,iBAAiB,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IACxC,eAAe,CAAC,EAAE,iBAAiB,CAAA;IACnC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;iBAyML,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;iBAAlB,MAAM,GAAG,SAAS;;;;;;;;;;;UAtNtB,WAAW;cAFP,OAAO;WALV,MAAM;WACN,MAAM;YASL,cAAc;WAOf,MAAM;QAdT,MAAM;gBADE,MAAM;cAIR,OAAO;iBAEJ,MAAM;eAKR,SAAS;eADT,OAAO;mBAEH,OAAO;uBACH,QAAQ,GAAG,SAAS;qBACtB,iBAAiB;eAPvB,MAAM;UALX,MAAM;cAOF,OAAO,GAAG,uBAAuB;;gBAma9B,CAAC,KAAK,IAAgB,KAAK,GAAG;EAc1C,CAAC;AAWL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { toast, useToast } from './toast-state';
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<{
|
|
3
5
|
/** 容器额外 CSS 类名 */
|
|
4
6
|
class?: string;
|
|
5
7
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
@@ -8,5 +10,4 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
8
10
|
}> & Readonly<{}>, {
|
|
9
11
|
class: string;
|
|
10
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
export default _default;
|
|
12
13
|
//# sourceMappingURL=toast.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.vue.d.ts","sourceRoot":"","sources":["../../src/components/toast.vue"],"names":[],"mappings":"AAKA;
|
|
1
|
+
{"version":3,"file":"toast.vue.d.ts","sourceRoot":"","sources":["../../src/components/toast.vue"],"names":[],"mappings":"AAKA;AA0GA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;wBAC1B,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;IAOhB,kBAAkB;YACV,MAAM;;IADd,kBAAkB;YACV,MAAM;;WAAN,MAAM;6EA2JZ,CAAC"}
|
|
@@ -41,9 +41,11 @@ export declare const UTooltipContent: import('vue').DefineComponent<import('vue'
|
|
|
41
41
|
};
|
|
42
42
|
}>> & Readonly<{}>, {
|
|
43
43
|
class: string;
|
|
44
|
-
side: "left" | "right" | "
|
|
44
|
+
side: "left" | "right" | "bottom" | "top";
|
|
45
45
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
46
|
-
declare const _default:
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
export default _default;
|
|
48
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
47
49
|
/** 根容器额外 CSS 类名 */
|
|
48
50
|
class?: string;
|
|
49
51
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
@@ -51,11 +53,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
51
53
|
class?: string;
|
|
52
54
|
}> & Readonly<{}>, {
|
|
53
55
|
class: string;
|
|
54
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
55
|
-
default
|
|
56
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
57
|
+
default?: (props: {}) => any;
|
|
56
58
|
}>;
|
|
57
|
-
|
|
58
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
59
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
59
60
|
new (): {
|
|
60
61
|
$slots: S;
|
|
61
62
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.vue.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.vue"],"names":[],"mappings":"AAKA;
|
|
1
|
+
{"version":3,"file":"tooltip.vue.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.vue"],"names":[],"mappings":"AAKA;AAoUA,eAAO,MAAM,eAAe;IAGxB,gBAAgB;;;;;;;;IAAhB,gBAAgB;;;;;;;4EAsFlB,CAAA;AAEF,eAAO,MAAM,eAAe;IAGxB,aAAa;;cAEK,MAAM,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO;;;IAG3D,gBAAgB;;;;;;;;IALhB,aAAa;;cAEK,MAAM,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO;;;IAG3D,gBAAgB;;;;;;;;4EA8FlB,CAAA;wBACmB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;IAMhB,mBAAmB;YACX,MAAM;;IADd,mBAAmB;YACX,MAAM;;WAAN,MAAM;;cAyDF,CAAC,KAAK,IAAgB,KAAK,GAAG;EAUxC,CAAC;AAWL,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type { InputProps } from '../input.vue';
|
|
2
|
+
export type { LabelProps } from '../label.vue';
|
|
3
|
+
export type { TextareaProps } from '../textarea.vue';
|
|
4
|
+
export type { SelectModelValue, SelectOption, SelectProps, SelectValue, } from '../select.vue';
|
|
5
|
+
export type { CheckboxProps, CheckboxSize } from '../checkbox.vue';
|
|
6
|
+
export type { CheckboxGroupProps, CheckboxValue, } from '../checkbox-group.vue';
|
|
7
|
+
export type { RadioProps, RadioSize } from '../radio.vue';
|
|
8
|
+
export type { RadioValue } from '../context/radio-context';
|
|
9
|
+
export type { RadioGroupOrientation, RadioGroupProps } from '../radio-group.vue';
|
|
10
|
+
export type { SwitchLabelPlacement, SwitchProps } from '../switch.vue';
|
|
11
|
+
export type { SliderMark, SliderMarkLabel, SliderMarks, SliderProps, SliderStep, SliderTooltipPlacement, SliderValue, } from '../slider.vue';
|
|
12
|
+
export type { NumberInputControlsPosition, NumberInputProps, NumberInputSize, NumberInputValue, } from '../number-input.vue';
|
|
13
|
+
export type { OTPInputProps } from '../otp-input.vue';
|
|
14
|
+
export type { FormControlProps, FormDescriptionProps, FormFieldStatus, FormFieldProps, FormItemProps, FormLabelPosition, FormLabelProps, FormLayout, FormMessageProps, FormProps, FormRequiredMarkPosition, } from '../form.vue';
|
|
15
|
+
//# sourceMappingURL=forms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../../src/components/types/forms.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACpD,YAAY,EACV,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,WAAW,GACZ,MAAM,eAAe,CAAA;AACtB,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAClE,YAAY,EACV,kBAAkB,EAClB,aAAa,GACd,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACzD,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC1D,YAAY,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAChF,YAAY,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACtE,YAAY,EACV,UAAU,EACV,eAAe,EACf,WAAW,EACX,WAAW,EACX,UAAU,EACV,sBAAsB,EACtB,WAAW,GACZ,MAAM,eAAe,CAAA;AACtB,YAAY,EACV,2BAA2B,EAC3B,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACjB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrD,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,wBAAwB,GACzB,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { ColBreakpoint, ColProps, ColSize, RowAlign, RowGutter, RowJustify, RowProps, } from '../layout';
|
|
2
|
+
export type { AsideProps, ContainerDirection, ContainerProps, ContainerRegionProps, ContainerRegionSize, FooterProps, HeaderProps, MainProps, } from '../container.vue';
|
|
3
|
+
export type { IconProps } from '../icon.vue';
|
|
4
|
+
export type { SeparatorContentPosition, SeparatorLineStyle, SeparatorOrientation, SeparatorProps, } from '../separator.vue';
|
|
5
|
+
//# sourceMappingURL=foundation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foundation.d.ts","sourceRoot":"","sources":["../../../src/components/types/foundation.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,SAAS,EACT,UAAU,EACV,QAAQ,GACT,MAAM,WAAW,CAAA;AAClB,YAAY,EACV,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,SAAS,GACV,MAAM,kBAAkB,CAAA;AACzB,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,YAAY,EACV,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,GACf,MAAM,kBAAkB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../toast-state-DZPoRLPw.cjs"),t=require("../composables-CiWPyBEE.cjs");exports.toast=e.n,exports.useClickOutside=t.d,exports.useCopyToClipboard=t.u,exports.useDebounce=t.m,exports.useEventListener=t.t,exports.useForm=t.s,exports.useHotkeys=t.n,exports.useInterval=t.i,exports.useLocalStorage=t.p,exports.useMediaQuery=t.f,exports.useMounted=t.a,exports.usePagination=t.c,exports.useTimeout=t.r,exports.useToast=t.o,exports.useToggle=t.l;
|