@cyberpunk-vue/components 0.1.0 → 0.1.2
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/avatar/index.d.ts +302 -0
- package/dist/avatar/index.d.ts.map +1 -0
- package/dist/avatar/src/avatar-group.d.ts +113 -0
- package/dist/avatar/src/avatar-group.d.ts.map +1 -0
- package/dist/avatar/src/avatar-group.vue.d.ts +87 -0
- package/dist/avatar/src/avatar-group.vue.d.ts.map +1 -0
- package/dist/avatar/src/avatar.d.ts +157 -0
- package/dist/avatar/src/avatar.d.ts.map +1 -0
- package/dist/avatar/src/avatar.vue.d.ts +127 -0
- package/dist/avatar/src/avatar.vue.d.ts.map +1 -0
- package/dist/avatar/src/instance.d.ts +5 -0
- package/dist/avatar/src/instance.d.ts.map +1 -0
- package/dist/button/index.d.ts +387 -0
- package/dist/button/index.d.ts.map +1 -0
- package/dist/button/src/button.d.ts +289 -0
- package/dist/button/src/button.d.ts.map +1 -0
- package/dist/button/src/button.vue.d.ts +225 -0
- package/dist/button/src/button.vue.d.ts.map +1 -0
- package/dist/button/src/instance.d.ts +3 -0
- package/dist/button/src/instance.d.ts.map +1 -0
- package/dist/card/index.d.ts +430 -0
- package/dist/card/index.d.ts.map +1 -0
- package/dist/card/src/card.d.ts +341 -0
- package/dist/card/src/card.d.ts.map +1 -0
- package/dist/card/src/card.vue.d.ts +256 -0
- package/dist/card/src/card.vue.d.ts.map +1 -0
- package/dist/card/src/instance.d.ts +3 -0
- package/dist/card/src/instance.d.ts.map +1 -0
- package/dist/checkbox/index.d.ts +230 -0
- package/dist/checkbox/index.d.ts.map +1 -0
- package/dist/checkbox/src/checkbox.d.ts +150 -0
- package/dist/checkbox/src/checkbox.d.ts.map +1 -0
- package/dist/checkbox/src/checkbox.vue.d.ts +136 -0
- package/dist/checkbox/src/checkbox.vue.d.ts.map +1 -0
- package/dist/checkbox/src/instance.d.ts +3 -0
- package/dist/checkbox/src/instance.d.ts.map +1 -0
- package/dist/checkbox-group/index.d.ts +169 -0
- package/dist/checkbox-group/index.d.ts.map +1 -0
- package/dist/checkbox-group/src/checkbox-group.d.ts +88 -0
- package/dist/checkbox-group/src/checkbox-group.d.ts.map +1 -0
- package/dist/checkbox-group/src/checkbox-group.vue.d.ts +94 -0
- package/dist/checkbox-group/src/checkbox-group.vue.d.ts.map +1 -0
- package/dist/checkbox-group/src/constants.d.ts +13 -0
- package/dist/checkbox-group/src/constants.d.ts.map +1 -0
- package/dist/checkbox-group/src/instance.d.ts +3 -0
- package/dist/checkbox-group/src/instance.d.ts.map +1 -0
- package/dist/config-provider/index.d.ts +76 -0
- package/dist/config-provider/index.d.ts.map +1 -0
- package/dist/config-provider/src/config-provider.d.ts +83 -0
- package/dist/config-provider/src/config-provider.d.ts.map +1 -0
- package/dist/config-provider/src/config-provider.vue.d.ts +39 -0
- package/dist/config-provider/src/config-provider.vue.d.ts.map +1 -0
- package/dist/config-provider/src/instance.d.ts +3 -0
- package/dist/config-provider/src/instance.d.ts.map +1 -0
- package/dist/dropdown/index.d.ts +391 -0
- package/dist/dropdown/index.d.ts.map +1 -0
- package/dist/dropdown/src/dropdown.d.ts +259 -0
- package/dist/dropdown/src/dropdown.d.ts.map +1 -0
- package/dist/dropdown/src/dropdown.vue.d.ts +232 -0
- package/dist/dropdown/src/dropdown.vue.d.ts.map +1 -0
- package/dist/dropdown/src/instance.d.ts +17 -0
- package/dist/dropdown/src/instance.d.ts.map +1 -0
- package/dist/icon/index.d.ts +132 -0
- package/dist/icon/index.d.ts.map +1 -0
- package/dist/icon/src/icon.d.ts +131 -0
- package/dist/icon/src/icon.d.ts.map +1 -0
- package/dist/icon/src/icon.vue.d.ts +75 -0
- package/dist/icon/src/icon.vue.d.ts.map +1 -0
- package/dist/image/index.d.ts +328 -0
- package/dist/image/index.d.ts.map +1 -0
- package/dist/image/src/image.d.ts +231 -0
- package/dist/image/src/image.d.ts.map +1 -0
- package/dist/image/src/image.vue.d.ts +206 -0
- package/dist/image/src/image.vue.d.ts.map +1 -0
- package/dist/image/src/instance.d.ts +3 -0
- package/dist/image/src/instance.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +7 -6
- package/dist/input/index.d.ts +350 -0
- package/dist/input/index.d.ts.map +1 -0
- package/dist/input/src/input.d.ts +280 -0
- package/dist/input/src/input.d.ts.map +1 -0
- package/dist/input/src/input.vue.d.ts +197 -0
- package/dist/input/src/input.vue.d.ts.map +1 -0
- package/dist/input/src/instance.d.ts +3 -0
- package/dist/input/src/instance.d.ts.map +1 -0
- package/dist/input-number/index.d.ts +132 -0
- package/dist/input-number/index.d.ts.map +1 -0
- package/dist/input-number/src/input-number.d.ts +81 -0
- package/dist/input-number/src/input-number.d.ts.map +1 -0
- package/dist/input-number/src/input-number.vue.d.ts +130 -0
- package/dist/input-number/src/input-number.vue.d.ts.map +1 -0
- package/dist/input-number/src/instance.d.ts +3 -0
- package/dist/input-number/src/instance.d.ts.map +1 -0
- package/dist/loading/index.d.ts +58 -0
- package/dist/loading/index.d.ts.map +1 -0
- package/dist/loading/src/instance.d.ts +3 -0
- package/dist/loading/src/instance.d.ts.map +1 -0
- package/dist/loading/src/loading.d.ts +80 -0
- package/dist/loading/src/loading.d.ts.map +1 -0
- package/dist/loading/src/loading.vue.d.ts +42 -0
- package/dist/loading/src/loading.vue.d.ts.map +1 -0
- package/dist/pattern-background/index.d.ts +115 -0
- package/dist/pattern-background/index.d.ts.map +1 -0
- package/dist/pattern-background/src/instance.d.ts +3 -0
- package/dist/pattern-background/src/instance.d.ts.map +1 -0
- package/dist/pattern-background/src/pattern-background.d.ts +122 -0
- package/dist/pattern-background/src/pattern-background.d.ts.map +1 -0
- package/dist/pattern-background/src/pattern-background.vue.d.ts +96 -0
- package/dist/pattern-background/src/pattern-background.vue.d.ts.map +1 -0
- package/dist/popover/index.d.ts +5 -0
- package/dist/popover/index.d.ts.map +1 -0
- package/dist/popover/src/instance.d.ts +3 -0
- package/dist/popover/src/instance.d.ts.map +1 -0
- package/dist/popover/src/popover.d.ts +190 -0
- package/dist/popover/src/popover.d.ts.map +1 -0
- package/dist/popover/src/popover.vue.d.ts +189 -0
- package/dist/popover/src/popover.vue.d.ts.map +1 -0
- package/dist/progress/index.d.ts +380 -0
- package/dist/progress/index.d.ts.map +1 -0
- package/dist/progress/src/instance.d.ts +3 -0
- package/dist/progress/src/instance.d.ts.map +1 -0
- package/dist/progress/src/progress.d.ts +277 -0
- package/dist/progress/src/progress.d.ts.map +1 -0
- package/dist/progress/src/progress.vue.d.ts +224 -0
- package/dist/progress/src/progress.vue.d.ts.map +1 -0
- package/dist/radio/index.d.ts +188 -0
- package/dist/radio/index.d.ts.map +1 -0
- package/dist/radio/src/instance.d.ts +3 -0
- package/dist/radio/src/instance.d.ts.map +1 -0
- package/dist/radio/src/radio.d.ts +117 -0
- package/dist/radio/src/radio.d.ts.map +1 -0
- package/dist/radio/src/radio.vue.d.ts +108 -0
- package/dist/radio/src/radio.vue.d.ts.map +1 -0
- package/dist/radio-group/index.d.ts +154 -0
- package/dist/radio-group/index.d.ts.map +1 -0
- package/dist/radio-group/src/constants.d.ts +12 -0
- package/dist/radio-group/src/constants.d.ts.map +1 -0
- package/dist/radio-group/src/instance.d.ts +3 -0
- package/dist/radio-group/src/instance.d.ts.map +1 -0
- package/dist/radio-group/src/radio-group.d.ts +81 -0
- package/dist/radio-group/src/radio-group.d.ts.map +1 -0
- package/dist/radio-group/src/radio-group.vue.d.ts +85 -0
- package/dist/radio-group/src/radio-group.vue.d.ts.map +1 -0
- package/dist/slider/index.d.ts +169 -0
- package/dist/slider/index.d.ts.map +1 -0
- package/dist/slider/src/instance.d.ts +3 -0
- package/dist/slider/src/instance.d.ts.map +1 -0
- package/dist/slider/src/slider.d.ts +205 -0
- package/dist/slider/src/slider.d.ts.map +1 -0
- package/dist/slider/src/slider.vue.d.ts +153 -0
- package/dist/slider/src/slider.vue.d.ts.map +1 -0
- package/dist/spacer/index.d.ts +18 -0
- package/dist/spacer/index.d.ts.map +1 -0
- package/dist/spacer/src/spacer.d.ts +4 -0
- package/dist/spacer/src/spacer.d.ts.map +1 -0
- package/dist/spacer/src/spacer.vue.d.ts +3 -0
- package/dist/spacer/src/spacer.vue.d.ts.map +1 -0
- package/dist/status-indicator/index.d.ts +162 -0
- package/dist/status-indicator/index.d.ts.map +1 -0
- package/dist/status-indicator/src/instance.d.ts +3 -0
- package/dist/status-indicator/src/instance.d.ts.map +1 -0
- package/dist/status-indicator/src/status-indicator.d.ts +146 -0
- package/dist/status-indicator/src/status-indicator.d.ts.map +1 -0
- package/dist/status-indicator/src/status-indicator.vue.d.ts +102 -0
- package/dist/status-indicator/src/status-indicator.vue.d.ts.map +1 -0
- package/dist/switch/index.d.ts +148 -0
- package/dist/switch/index.d.ts.map +1 -0
- package/dist/switch/src/instance.d.ts +3 -0
- package/dist/switch/src/instance.d.ts.map +1 -0
- package/dist/switch/src/switch.d.ts +184 -0
- package/dist/switch/src/switch.d.ts.map +1 -0
- package/dist/switch/src/switch.vue.d.ts +133 -0
- package/dist/switch/src/switch.vue.d.ts.map +1 -0
- package/dist/tag/index.d.ts +212 -0
- package/dist/tag/index.d.ts.map +1 -0
- package/dist/tag/src/instance.d.ts +3 -0
- package/dist/tag/src/instance.d.ts.map +1 -0
- package/dist/tag/src/tag.d.ts +177 -0
- package/dist/tag/src/tag.d.ts.map +1 -0
- package/dist/tag/src/tag.vue.d.ts +121 -0
- package/dist/tag/src/tag.vue.d.ts.map +1 -0
- package/dist/text/index.d.ts +327 -0
- package/dist/text/index.d.ts.map +1 -0
- package/dist/text/src/instance.d.ts +3 -0
- package/dist/text/src/instance.d.ts.map +1 -0
- package/dist/text/src/text.d.ts +218 -0
- package/dist/text/src/text.d.ts.map +1 -0
- package/dist/text/src/text.vue.d.ts +194 -0
- package/dist/text/src/text.vue.d.ts.map +1 -0
- package/dist/textarea/index.d.ts +143 -0
- package/dist/textarea/index.d.ts.map +1 -0
- package/dist/textarea/src/instance.d.ts +3 -0
- package/dist/textarea/src/instance.d.ts.map +1 -0
- package/dist/textarea/src/textarea.d.ts +89 -0
- package/dist/textarea/src/textarea.d.ts.map +1 -0
- package/dist/textarea/src/textarea.vue.d.ts +157 -0
- package/dist/textarea/src/textarea.vue.d.ts.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/install.d.ts +7 -0
- package/dist/utils/install.d.ts.map +1 -0
- package/dist/vite.config.d.ts +3 -0
- package/dist/vite.config.d.ts.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
readonly modelValue: {
|
|
3
|
+
readonly type: BooleanConstructor;
|
|
4
|
+
readonly default: false;
|
|
5
|
+
};
|
|
6
|
+
readonly size: {
|
|
7
|
+
readonly type: import('vue').PropType<import('./switch').SwitchSize>;
|
|
8
|
+
readonly default: "md";
|
|
9
|
+
};
|
|
10
|
+
readonly type: {
|
|
11
|
+
readonly type: import('vue').PropType<import('./switch').SwitchType>;
|
|
12
|
+
readonly default: "primary";
|
|
13
|
+
};
|
|
14
|
+
readonly disabled: {
|
|
15
|
+
readonly type: BooleanConstructor;
|
|
16
|
+
readonly default: false;
|
|
17
|
+
};
|
|
18
|
+
readonly loading: {
|
|
19
|
+
readonly type: BooleanConstructor;
|
|
20
|
+
readonly default: false;
|
|
21
|
+
};
|
|
22
|
+
readonly color: {
|
|
23
|
+
readonly type: StringConstructor;
|
|
24
|
+
readonly default: "";
|
|
25
|
+
};
|
|
26
|
+
readonly inactiveColor: {
|
|
27
|
+
readonly type: StringConstructor;
|
|
28
|
+
readonly default: "";
|
|
29
|
+
};
|
|
30
|
+
readonly width: {
|
|
31
|
+
readonly type: import('vue').PropType<string | number>;
|
|
32
|
+
readonly default: "";
|
|
33
|
+
};
|
|
34
|
+
readonly fitText: {
|
|
35
|
+
readonly type: BooleanConstructor;
|
|
36
|
+
readonly default: false;
|
|
37
|
+
};
|
|
38
|
+
readonly activeText: {
|
|
39
|
+
readonly type: StringConstructor;
|
|
40
|
+
readonly default: "";
|
|
41
|
+
};
|
|
42
|
+
readonly inactiveText: {
|
|
43
|
+
readonly type: StringConstructor;
|
|
44
|
+
readonly default: "";
|
|
45
|
+
};
|
|
46
|
+
readonly beforeChange: {
|
|
47
|
+
readonly type: import('vue').PropType<() => Promise<boolean> | boolean>;
|
|
48
|
+
readonly default: undefined;
|
|
49
|
+
};
|
|
50
|
+
readonly name: {
|
|
51
|
+
readonly type: StringConstructor;
|
|
52
|
+
readonly default: "";
|
|
53
|
+
};
|
|
54
|
+
}>, {
|
|
55
|
+
inputRef: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
56
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
57
|
+
"update:modelValue": (value: boolean) => void;
|
|
58
|
+
change: (value: boolean) => void;
|
|
59
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
60
|
+
readonly modelValue: {
|
|
61
|
+
readonly type: BooleanConstructor;
|
|
62
|
+
readonly default: false;
|
|
63
|
+
};
|
|
64
|
+
readonly size: {
|
|
65
|
+
readonly type: import('vue').PropType<import('./switch').SwitchSize>;
|
|
66
|
+
readonly default: "md";
|
|
67
|
+
};
|
|
68
|
+
readonly type: {
|
|
69
|
+
readonly type: import('vue').PropType<import('./switch').SwitchType>;
|
|
70
|
+
readonly default: "primary";
|
|
71
|
+
};
|
|
72
|
+
readonly disabled: {
|
|
73
|
+
readonly type: BooleanConstructor;
|
|
74
|
+
readonly default: false;
|
|
75
|
+
};
|
|
76
|
+
readonly loading: {
|
|
77
|
+
readonly type: BooleanConstructor;
|
|
78
|
+
readonly default: false;
|
|
79
|
+
};
|
|
80
|
+
readonly color: {
|
|
81
|
+
readonly type: StringConstructor;
|
|
82
|
+
readonly default: "";
|
|
83
|
+
};
|
|
84
|
+
readonly inactiveColor: {
|
|
85
|
+
readonly type: StringConstructor;
|
|
86
|
+
readonly default: "";
|
|
87
|
+
};
|
|
88
|
+
readonly width: {
|
|
89
|
+
readonly type: import('vue').PropType<string | number>;
|
|
90
|
+
readonly default: "";
|
|
91
|
+
};
|
|
92
|
+
readonly fitText: {
|
|
93
|
+
readonly type: BooleanConstructor;
|
|
94
|
+
readonly default: false;
|
|
95
|
+
};
|
|
96
|
+
readonly activeText: {
|
|
97
|
+
readonly type: StringConstructor;
|
|
98
|
+
readonly default: "";
|
|
99
|
+
};
|
|
100
|
+
readonly inactiveText: {
|
|
101
|
+
readonly type: StringConstructor;
|
|
102
|
+
readonly default: "";
|
|
103
|
+
};
|
|
104
|
+
readonly beforeChange: {
|
|
105
|
+
readonly type: import('vue').PropType<() => Promise<boolean> | boolean>;
|
|
106
|
+
readonly default: undefined;
|
|
107
|
+
};
|
|
108
|
+
readonly name: {
|
|
109
|
+
readonly type: StringConstructor;
|
|
110
|
+
readonly default: "";
|
|
111
|
+
};
|
|
112
|
+
}>> & Readonly<{
|
|
113
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
114
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
115
|
+
}>, {
|
|
116
|
+
readonly size: import('../../../hooks').Size;
|
|
117
|
+
readonly name: string;
|
|
118
|
+
readonly type: import('./switch').SwitchType;
|
|
119
|
+
readonly disabled: boolean;
|
|
120
|
+
readonly loading: boolean;
|
|
121
|
+
readonly color: string;
|
|
122
|
+
readonly width: string | number;
|
|
123
|
+
readonly modelValue: boolean;
|
|
124
|
+
readonly inactiveColor: string;
|
|
125
|
+
readonly fitText: boolean;
|
|
126
|
+
readonly activeText: string;
|
|
127
|
+
readonly inactiveText: string;
|
|
128
|
+
readonly beforeChange: () => Promise<boolean> | boolean;
|
|
129
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
130
|
+
inputRef: HTMLInputElement;
|
|
131
|
+
}, HTMLDivElement>;
|
|
132
|
+
export default _default;
|
|
133
|
+
//# sourceMappingURL=switch.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.vue.d.ts","sourceRoot":"","sources":["../../../switch/src/switch.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+ZA,wBAUG"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CpTag 标签组件
|
|
3
|
+
*
|
|
4
|
+
* @description 赛博朋克风格标签,用于展示标签、分类或状态。
|
|
5
|
+
* 支持多种颜色类型、变体样式、尺寸与可关闭功能。
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```vue
|
|
9
|
+
* <CpTag type="primary">主要标签</CpTag>
|
|
10
|
+
* <CpTag type="success" closable @close="onClose">成功</CpTag>
|
|
11
|
+
* <CpTag variant="outline" color="#ff00ff">自定义</CpTag>
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare const CpTag: import('../utils').SFCWithInstall<{
|
|
15
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
readonly type: {
|
|
17
|
+
readonly type: import('vue').PropType<import('.').TagType>;
|
|
18
|
+
readonly default: "default";
|
|
19
|
+
};
|
|
20
|
+
readonly size: {
|
|
21
|
+
readonly type: import('vue').PropType<import('.').TagSize>;
|
|
22
|
+
readonly default: "md";
|
|
23
|
+
};
|
|
24
|
+
readonly variant: {
|
|
25
|
+
readonly type: import('vue').PropType<import('.').TagVariant>;
|
|
26
|
+
readonly default: "solid";
|
|
27
|
+
};
|
|
28
|
+
readonly shape: {
|
|
29
|
+
readonly type: import('vue').PropType<import('.').TagShape>;
|
|
30
|
+
readonly default: "clip";
|
|
31
|
+
};
|
|
32
|
+
readonly closable: {
|
|
33
|
+
readonly type: BooleanConstructor;
|
|
34
|
+
readonly default: false;
|
|
35
|
+
};
|
|
36
|
+
readonly color: {
|
|
37
|
+
readonly type: StringConstructor;
|
|
38
|
+
readonly default: "";
|
|
39
|
+
};
|
|
40
|
+
readonly dashed: {
|
|
41
|
+
readonly type: BooleanConstructor;
|
|
42
|
+
readonly default: false;
|
|
43
|
+
};
|
|
44
|
+
readonly disabled: {
|
|
45
|
+
readonly type: BooleanConstructor;
|
|
46
|
+
readonly default: false;
|
|
47
|
+
};
|
|
48
|
+
readonly selectable: {
|
|
49
|
+
readonly type: BooleanConstructor;
|
|
50
|
+
readonly default: false;
|
|
51
|
+
};
|
|
52
|
+
readonly selected: {
|
|
53
|
+
readonly type: BooleanConstructor;
|
|
54
|
+
readonly default: false;
|
|
55
|
+
};
|
|
56
|
+
}>> & Readonly<{
|
|
57
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
58
|
+
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
59
|
+
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
60
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
61
|
+
click: (event: MouseEvent) => void;
|
|
62
|
+
close: (event: MouseEvent) => void;
|
|
63
|
+
"update:selected": (selected: boolean) => void;
|
|
64
|
+
}, import('vue').PublicProps, {
|
|
65
|
+
readonly size: import('../../cyberpunk-vue').Size;
|
|
66
|
+
readonly type: import('.').TagType;
|
|
67
|
+
readonly variant: import('.').TagVariant;
|
|
68
|
+
readonly disabled: boolean;
|
|
69
|
+
readonly color: string;
|
|
70
|
+
readonly shape: import('.').TagShape;
|
|
71
|
+
readonly dashed: boolean;
|
|
72
|
+
readonly closable: boolean;
|
|
73
|
+
readonly selectable: boolean;
|
|
74
|
+
readonly selected: boolean;
|
|
75
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
|
|
76
|
+
P: {};
|
|
77
|
+
B: {};
|
|
78
|
+
D: {};
|
|
79
|
+
C: {};
|
|
80
|
+
M: {};
|
|
81
|
+
Defaults: {};
|
|
82
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
83
|
+
readonly type: {
|
|
84
|
+
readonly type: import('vue').PropType<import('.').TagType>;
|
|
85
|
+
readonly default: "default";
|
|
86
|
+
};
|
|
87
|
+
readonly size: {
|
|
88
|
+
readonly type: import('vue').PropType<import('.').TagSize>;
|
|
89
|
+
readonly default: "md";
|
|
90
|
+
};
|
|
91
|
+
readonly variant: {
|
|
92
|
+
readonly type: import('vue').PropType<import('.').TagVariant>;
|
|
93
|
+
readonly default: "solid";
|
|
94
|
+
};
|
|
95
|
+
readonly shape: {
|
|
96
|
+
readonly type: import('vue').PropType<import('.').TagShape>;
|
|
97
|
+
readonly default: "clip";
|
|
98
|
+
};
|
|
99
|
+
readonly closable: {
|
|
100
|
+
readonly type: BooleanConstructor;
|
|
101
|
+
readonly default: false;
|
|
102
|
+
};
|
|
103
|
+
readonly color: {
|
|
104
|
+
readonly type: StringConstructor;
|
|
105
|
+
readonly default: "";
|
|
106
|
+
};
|
|
107
|
+
readonly dashed: {
|
|
108
|
+
readonly type: BooleanConstructor;
|
|
109
|
+
readonly default: false;
|
|
110
|
+
};
|
|
111
|
+
readonly disabled: {
|
|
112
|
+
readonly type: BooleanConstructor;
|
|
113
|
+
readonly default: false;
|
|
114
|
+
};
|
|
115
|
+
readonly selectable: {
|
|
116
|
+
readonly type: BooleanConstructor;
|
|
117
|
+
readonly default: false;
|
|
118
|
+
};
|
|
119
|
+
readonly selected: {
|
|
120
|
+
readonly type: BooleanConstructor;
|
|
121
|
+
readonly default: false;
|
|
122
|
+
};
|
|
123
|
+
}>> & Readonly<{
|
|
124
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
125
|
+
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
126
|
+
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
127
|
+
}>, {}, {}, {}, {}, {
|
|
128
|
+
readonly size: import('../../cyberpunk-vue').Size;
|
|
129
|
+
readonly type: import('.').TagType;
|
|
130
|
+
readonly variant: import('.').TagVariant;
|
|
131
|
+
readonly disabled: boolean;
|
|
132
|
+
readonly color: string;
|
|
133
|
+
readonly shape: import('.').TagShape;
|
|
134
|
+
readonly dashed: boolean;
|
|
135
|
+
readonly closable: boolean;
|
|
136
|
+
readonly selectable: boolean;
|
|
137
|
+
readonly selected: boolean;
|
|
138
|
+
}>;
|
|
139
|
+
__isFragment?: never;
|
|
140
|
+
__isTeleport?: never;
|
|
141
|
+
__isSuspense?: never;
|
|
142
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
143
|
+
readonly type: {
|
|
144
|
+
readonly type: import('vue').PropType<import('.').TagType>;
|
|
145
|
+
readonly default: "default";
|
|
146
|
+
};
|
|
147
|
+
readonly size: {
|
|
148
|
+
readonly type: import('vue').PropType<import('.').TagSize>;
|
|
149
|
+
readonly default: "md";
|
|
150
|
+
};
|
|
151
|
+
readonly variant: {
|
|
152
|
+
readonly type: import('vue').PropType<import('.').TagVariant>;
|
|
153
|
+
readonly default: "solid";
|
|
154
|
+
};
|
|
155
|
+
readonly shape: {
|
|
156
|
+
readonly type: import('vue').PropType<import('.').TagShape>;
|
|
157
|
+
readonly default: "clip";
|
|
158
|
+
};
|
|
159
|
+
readonly closable: {
|
|
160
|
+
readonly type: BooleanConstructor;
|
|
161
|
+
readonly default: false;
|
|
162
|
+
};
|
|
163
|
+
readonly color: {
|
|
164
|
+
readonly type: StringConstructor;
|
|
165
|
+
readonly default: "";
|
|
166
|
+
};
|
|
167
|
+
readonly dashed: {
|
|
168
|
+
readonly type: BooleanConstructor;
|
|
169
|
+
readonly default: false;
|
|
170
|
+
};
|
|
171
|
+
readonly disabled: {
|
|
172
|
+
readonly type: BooleanConstructor;
|
|
173
|
+
readonly default: false;
|
|
174
|
+
};
|
|
175
|
+
readonly selectable: {
|
|
176
|
+
readonly type: BooleanConstructor;
|
|
177
|
+
readonly default: false;
|
|
178
|
+
};
|
|
179
|
+
readonly selected: {
|
|
180
|
+
readonly type: BooleanConstructor;
|
|
181
|
+
readonly default: false;
|
|
182
|
+
};
|
|
183
|
+
}>> & Readonly<{
|
|
184
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
185
|
+
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
186
|
+
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
187
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
188
|
+
click: (event: MouseEvent) => void;
|
|
189
|
+
close: (event: MouseEvent) => void;
|
|
190
|
+
"update:selected": (selected: boolean) => void;
|
|
191
|
+
}, string, {
|
|
192
|
+
readonly size: import('../../cyberpunk-vue').Size;
|
|
193
|
+
readonly type: import('.').TagType;
|
|
194
|
+
readonly variant: import('.').TagVariant;
|
|
195
|
+
readonly disabled: boolean;
|
|
196
|
+
readonly color: string;
|
|
197
|
+
readonly shape: import('.').TagShape;
|
|
198
|
+
readonly dashed: boolean;
|
|
199
|
+
readonly closable: boolean;
|
|
200
|
+
readonly selectable: boolean;
|
|
201
|
+
readonly selected: boolean;
|
|
202
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
203
|
+
$slots: {
|
|
204
|
+
prefix?(_: {}): any;
|
|
205
|
+
default?(_: {}): any;
|
|
206
|
+
suffix?(_: {}): any;
|
|
207
|
+
};
|
|
208
|
+
})>;
|
|
209
|
+
export default CpTag;
|
|
210
|
+
export * from './src/tag';
|
|
211
|
+
export type { CpTagInstance } from './src/instance';
|
|
212
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../tag/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmB,CAAA;AAErC,eAAe,KAAK,CAAA;AACpB,cAAc,WAAW,CAAA;AACzB,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../tag/src/instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,WAAW,CAAA;AAElC,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,OAAO,KAAK,CAAC,GAAG,OAAO,CAAA"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { Size } from '../../../hooks';
|
|
3
|
+
/**
|
|
4
|
+
* 标签尺寸
|
|
5
|
+
* - `sm` - 小尺寸
|
|
6
|
+
* - `md` - 中等尺寸,默认
|
|
7
|
+
* - `lg` - 大尺寸
|
|
8
|
+
* - 也支持数字 (px) 或带单位字符串 (如 '2rem')
|
|
9
|
+
*/
|
|
10
|
+
export type TagSize = Size;
|
|
11
|
+
/**
|
|
12
|
+
* 标签类型(颜色预设)
|
|
13
|
+
* - `default` - 默认 (继承父级颜色)
|
|
14
|
+
* - `primary` - 主色调 (赛博青)
|
|
15
|
+
* - `success` - 成功 (霓虹绿)
|
|
16
|
+
* - `warning` - 警告 (橙黄)
|
|
17
|
+
* - `error` - 错误/危险 (洋红)
|
|
18
|
+
* - `info` - 信息 (紫罗兰)
|
|
19
|
+
*/
|
|
20
|
+
export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
21
|
+
/**
|
|
22
|
+
* 标签变体
|
|
23
|
+
* - `solid` - 实心填充
|
|
24
|
+
* - `outline` - 边框描边
|
|
25
|
+
* - `semi` - 半透明填充
|
|
26
|
+
* - `note` - 便利贴风格(左边框 + 半透明背景 + 前后缀布局)
|
|
27
|
+
*/
|
|
28
|
+
export type TagVariant = 'solid' | 'outline' | 'semi' | 'note';
|
|
29
|
+
/**
|
|
30
|
+
* 标签形状模式
|
|
31
|
+
* - `clip` - 机甲切角(默认)
|
|
32
|
+
* - `no-clip` - 标准直角
|
|
33
|
+
* - `round` - 圆角
|
|
34
|
+
*/
|
|
35
|
+
export type TagShape = 'clip' | 'no-clip' | 'round';
|
|
36
|
+
/**
|
|
37
|
+
* CpTag 组件 Props 定义
|
|
38
|
+
*
|
|
39
|
+
* @description 赛博朋克风格标签组件,用于展示标签、分类或状态。
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```vue
|
|
43
|
+
* <!-- 基础用法 -->
|
|
44
|
+
* <CpTag>默认标签</CpTag>
|
|
45
|
+
*
|
|
46
|
+
* <!-- 颜色类型 -->
|
|
47
|
+
* <CpTag type="primary">主要</CpTag>
|
|
48
|
+
* <CpTag type="success">成功</CpTag>
|
|
49
|
+
*
|
|
50
|
+
* <!-- 可关闭 -->
|
|
51
|
+
* <CpTag closable @close="handleClose">可关闭</CpTag>
|
|
52
|
+
*
|
|
53
|
+
* <!-- 自定义颜色 -->
|
|
54
|
+
* <CpTag color="#ff00ff">自定义颜色</CpTag>
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export declare const tagProps: {
|
|
58
|
+
/**
|
|
59
|
+
* 标签类型(颜色预设)
|
|
60
|
+
* @default 'default'
|
|
61
|
+
* @example `<CpTag type="success" />`
|
|
62
|
+
*/
|
|
63
|
+
readonly type: {
|
|
64
|
+
readonly type: PropType<TagType>;
|
|
65
|
+
readonly default: "default";
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* 标签尺寸
|
|
69
|
+
* @default 'md'
|
|
70
|
+
* @example `<CpTag size="lg" />`
|
|
71
|
+
*/
|
|
72
|
+
readonly size: {
|
|
73
|
+
readonly type: PropType<TagSize>;
|
|
74
|
+
readonly default: "md";
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* 标签变体样式
|
|
78
|
+
* @default 'solid'
|
|
79
|
+
* @example `<CpTag variant="outline" />`
|
|
80
|
+
*/
|
|
81
|
+
readonly variant: {
|
|
82
|
+
readonly type: PropType<TagVariant>;
|
|
83
|
+
readonly default: "solid";
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* 标签形状模式
|
|
87
|
+
* - `clip`: 机甲切角效果(默认)
|
|
88
|
+
* - `no-clip`: 标准直角
|
|
89
|
+
* - `round`: 圆角效果
|
|
90
|
+
* @default 'clip'
|
|
91
|
+
*/
|
|
92
|
+
readonly shape: {
|
|
93
|
+
readonly type: PropType<TagShape>;
|
|
94
|
+
readonly default: "clip";
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* 是否可关闭
|
|
98
|
+
* 开启后显示关闭按钮,点击触发 close 事件
|
|
99
|
+
* @default false
|
|
100
|
+
*/
|
|
101
|
+
readonly closable: {
|
|
102
|
+
readonly type: BooleanConstructor;
|
|
103
|
+
readonly default: false;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* 自定义主题色
|
|
107
|
+
* 传入有效 CSS 颜色值,覆盖 type 的颜色
|
|
108
|
+
* @default ''
|
|
109
|
+
* @example `<CpTag color="#ff00ff" />`
|
|
110
|
+
*/
|
|
111
|
+
readonly color: {
|
|
112
|
+
readonly type: StringConstructor;
|
|
113
|
+
readonly default: "";
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* 虚线边框
|
|
117
|
+
* 仅在 variant="outline" 时生效
|
|
118
|
+
* @default false
|
|
119
|
+
*/
|
|
120
|
+
readonly dashed: {
|
|
121
|
+
readonly type: BooleanConstructor;
|
|
122
|
+
readonly default: false;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* 是否禁用
|
|
126
|
+
* @default false
|
|
127
|
+
*/
|
|
128
|
+
readonly disabled: {
|
|
129
|
+
readonly type: BooleanConstructor;
|
|
130
|
+
readonly default: false;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* 是否可选中
|
|
134
|
+
* 开启后点击标签可切换选中状态
|
|
135
|
+
* @default false
|
|
136
|
+
*/
|
|
137
|
+
readonly selectable: {
|
|
138
|
+
readonly type: BooleanConstructor;
|
|
139
|
+
readonly default: false;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* 选中状态 (v-model:selected)
|
|
143
|
+
* 仅在 selectable 为 true 时有效
|
|
144
|
+
* @default false
|
|
145
|
+
*/
|
|
146
|
+
readonly selected: {
|
|
147
|
+
readonly type: BooleanConstructor;
|
|
148
|
+
readonly default: false;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
export type TagProps = ExtractPropTypes<typeof tagProps>;
|
|
152
|
+
/**
|
|
153
|
+
* CpTag 组件事件定义
|
|
154
|
+
*
|
|
155
|
+
* @event close - 关闭按钮点击时触发
|
|
156
|
+
* @event click - 标签点击时触发
|
|
157
|
+
* @event update:selected - 选中状态变化时触发
|
|
158
|
+
*/
|
|
159
|
+
export declare const tagEmits: {
|
|
160
|
+
/**
|
|
161
|
+
* 关闭按钮点击时触发
|
|
162
|
+
* @param event - 原生鼠标事件
|
|
163
|
+
*/
|
|
164
|
+
close: (event: MouseEvent) => boolean;
|
|
165
|
+
/**
|
|
166
|
+
* 标签点击时触发
|
|
167
|
+
* @param event - 原生鼠标事件
|
|
168
|
+
*/
|
|
169
|
+
click: (event: MouseEvent) => boolean;
|
|
170
|
+
/**
|
|
171
|
+
* 选中状态变化时触发
|
|
172
|
+
* @param selected - 新的选中状态
|
|
173
|
+
*/
|
|
174
|
+
'update:selected': (selected: boolean) => boolean;
|
|
175
|
+
};
|
|
176
|
+
export type TagEmits = typeof tagEmits;
|
|
177
|
+
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../tag/src/tag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAEhD;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GAAG,IAAI,CAAA;AAE1B;;;;;;;;GAQG;AACH,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAEtF;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;AAEnD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,QAAQ;IACjB;;;;OAIG;;uBAEiB,QAAQ,CAAC,OAAO,CAAC;;;IAGrC;;;;OAIG;;uBAEiB,QAAQ,CAAC,OAAO,CAAC;;;IAGrC;;;;OAIG;;uBAEiB,QAAQ,CAAC,UAAU,CAAC;;;IAGxC;;;;;;OAMG;;uBAEiB,QAAQ,CAAC,QAAQ,CAAC;;;IAGtC;;;;OAIG;;;;;IAKH;;;;;OAKG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;OAGG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;CAKG,CAAA;AAEV,MAAM,MAAM,QAAQ,GAAG,gBAAgB,CAAC,OAAO,QAAQ,CAAC,CAAA;AAExD;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ;IACjB;;;OAGG;mBACY,UAAU;IAEzB;;;OAGG;mBACY,UAAU;IAEzB;;;OAGG;kCAC2B,OAAO;CACxC,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAA"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
prefix?(_: {}): any;
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
suffix?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLSpanElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
+
readonly type: {
|
|
14
|
+
readonly type: import('vue').PropType<import('./tag').TagType>;
|
|
15
|
+
readonly default: "default";
|
|
16
|
+
};
|
|
17
|
+
readonly size: {
|
|
18
|
+
readonly type: import('vue').PropType<import('./tag').TagSize>;
|
|
19
|
+
readonly default: "md";
|
|
20
|
+
};
|
|
21
|
+
readonly variant: {
|
|
22
|
+
readonly type: import('vue').PropType<import('./tag').TagVariant>;
|
|
23
|
+
readonly default: "solid";
|
|
24
|
+
};
|
|
25
|
+
readonly shape: {
|
|
26
|
+
readonly type: import('vue').PropType<import('./tag').TagShape>;
|
|
27
|
+
readonly default: "clip";
|
|
28
|
+
};
|
|
29
|
+
readonly closable: {
|
|
30
|
+
readonly type: BooleanConstructor;
|
|
31
|
+
readonly default: false;
|
|
32
|
+
};
|
|
33
|
+
readonly color: {
|
|
34
|
+
readonly type: StringConstructor;
|
|
35
|
+
readonly default: "";
|
|
36
|
+
};
|
|
37
|
+
readonly dashed: {
|
|
38
|
+
readonly type: BooleanConstructor;
|
|
39
|
+
readonly default: false;
|
|
40
|
+
};
|
|
41
|
+
readonly disabled: {
|
|
42
|
+
readonly type: BooleanConstructor;
|
|
43
|
+
readonly default: false;
|
|
44
|
+
};
|
|
45
|
+
readonly selectable: {
|
|
46
|
+
readonly type: BooleanConstructor;
|
|
47
|
+
readonly default: false;
|
|
48
|
+
};
|
|
49
|
+
readonly selected: {
|
|
50
|
+
readonly type: BooleanConstructor;
|
|
51
|
+
readonly default: false;
|
|
52
|
+
};
|
|
53
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
54
|
+
click: (event: MouseEvent) => void;
|
|
55
|
+
close: (event: MouseEvent) => void;
|
|
56
|
+
"update:selected": (selected: boolean) => void;
|
|
57
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
58
|
+
readonly type: {
|
|
59
|
+
readonly type: import('vue').PropType<import('./tag').TagType>;
|
|
60
|
+
readonly default: "default";
|
|
61
|
+
};
|
|
62
|
+
readonly size: {
|
|
63
|
+
readonly type: import('vue').PropType<import('./tag').TagSize>;
|
|
64
|
+
readonly default: "md";
|
|
65
|
+
};
|
|
66
|
+
readonly variant: {
|
|
67
|
+
readonly type: import('vue').PropType<import('./tag').TagVariant>;
|
|
68
|
+
readonly default: "solid";
|
|
69
|
+
};
|
|
70
|
+
readonly shape: {
|
|
71
|
+
readonly type: import('vue').PropType<import('./tag').TagShape>;
|
|
72
|
+
readonly default: "clip";
|
|
73
|
+
};
|
|
74
|
+
readonly closable: {
|
|
75
|
+
readonly type: BooleanConstructor;
|
|
76
|
+
readonly default: false;
|
|
77
|
+
};
|
|
78
|
+
readonly color: {
|
|
79
|
+
readonly type: StringConstructor;
|
|
80
|
+
readonly default: "";
|
|
81
|
+
};
|
|
82
|
+
readonly dashed: {
|
|
83
|
+
readonly type: BooleanConstructor;
|
|
84
|
+
readonly default: false;
|
|
85
|
+
};
|
|
86
|
+
readonly disabled: {
|
|
87
|
+
readonly type: BooleanConstructor;
|
|
88
|
+
readonly default: false;
|
|
89
|
+
};
|
|
90
|
+
readonly selectable: {
|
|
91
|
+
readonly type: BooleanConstructor;
|
|
92
|
+
readonly default: false;
|
|
93
|
+
};
|
|
94
|
+
readonly selected: {
|
|
95
|
+
readonly type: BooleanConstructor;
|
|
96
|
+
readonly default: false;
|
|
97
|
+
};
|
|
98
|
+
}>> & Readonly<{
|
|
99
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
100
|
+
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
101
|
+
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
102
|
+
}>, {
|
|
103
|
+
readonly size: import('../../../hooks').Size;
|
|
104
|
+
readonly type: import('./tag').TagType;
|
|
105
|
+
readonly variant: import('./tag').TagVariant;
|
|
106
|
+
readonly disabled: boolean;
|
|
107
|
+
readonly color: string;
|
|
108
|
+
readonly shape: import('./tag').TagShape;
|
|
109
|
+
readonly dashed: boolean;
|
|
110
|
+
readonly closable: boolean;
|
|
111
|
+
readonly selectable: boolean;
|
|
112
|
+
readonly selected: boolean;
|
|
113
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
|
|
114
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
115
|
+
export default _default;
|
|
116
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
117
|
+
new (): {
|
|
118
|
+
$slots: S;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
//# sourceMappingURL=tag.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.vue.d.ts","sourceRoot":"","sources":["../../../tag/src/tag.vue"],"names":[],"mappings":"AA8OA,iBAAS,cAAc;WAoET,OAAO,IAA6B;;wBAZtB,GAAG;yBACF,GAAG;wBACJ,GAAG;;;;EAe9B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|