@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,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CpText 特殊文字组件
|
|
3
|
+
*
|
|
4
|
+
* @description 赛博朋克风格特殊文字,可快速为文字添加多种视觉效果。
|
|
5
|
+
* 支持下划线、方框、加粗、斜体、删除线、发光、马克笔等效果。
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```vue
|
|
9
|
+
* <CpText type="primary" underline>下划线</CpText>
|
|
10
|
+
* <CpText type="success" glow>发光效果</CpText>
|
|
11
|
+
* <CpText type="warning" marker bold>马克笔加粗</CpText>
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare const CpText: import('../utils').SFCWithInstall<{
|
|
15
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
readonly type: {
|
|
17
|
+
readonly type: import('vue').PropType<import('.').TextType>;
|
|
18
|
+
readonly default: "default";
|
|
19
|
+
};
|
|
20
|
+
readonly color: {
|
|
21
|
+
readonly type: StringConstructor;
|
|
22
|
+
readonly default: "";
|
|
23
|
+
};
|
|
24
|
+
readonly size: {
|
|
25
|
+
readonly type: import('vue').PropType<import('.').TextSize>;
|
|
26
|
+
readonly default: "md";
|
|
27
|
+
};
|
|
28
|
+
readonly align: {
|
|
29
|
+
readonly type: import('vue').PropType<import('.').TextAlign>;
|
|
30
|
+
readonly default: "middle";
|
|
31
|
+
};
|
|
32
|
+
readonly underline: {
|
|
33
|
+
readonly type: BooleanConstructor;
|
|
34
|
+
readonly default: false;
|
|
35
|
+
};
|
|
36
|
+
readonly boxed: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: false;
|
|
39
|
+
};
|
|
40
|
+
readonly dashed: {
|
|
41
|
+
readonly type: BooleanConstructor;
|
|
42
|
+
readonly default: false;
|
|
43
|
+
};
|
|
44
|
+
readonly bold: {
|
|
45
|
+
readonly type: BooleanConstructor;
|
|
46
|
+
readonly default: false;
|
|
47
|
+
};
|
|
48
|
+
readonly italic: {
|
|
49
|
+
readonly type: BooleanConstructor;
|
|
50
|
+
readonly default: false;
|
|
51
|
+
};
|
|
52
|
+
readonly strikethrough: {
|
|
53
|
+
readonly type: BooleanConstructor;
|
|
54
|
+
readonly default: false;
|
|
55
|
+
};
|
|
56
|
+
readonly glow: {
|
|
57
|
+
readonly type: BooleanConstructor;
|
|
58
|
+
readonly default: false;
|
|
59
|
+
};
|
|
60
|
+
readonly glowIntensity: {
|
|
61
|
+
readonly type: NumberConstructor;
|
|
62
|
+
readonly default: 3;
|
|
63
|
+
};
|
|
64
|
+
readonly glowPulse: {
|
|
65
|
+
readonly type: BooleanConstructor;
|
|
66
|
+
readonly default: false;
|
|
67
|
+
};
|
|
68
|
+
readonly lightWave: {
|
|
69
|
+
readonly type: BooleanConstructor;
|
|
70
|
+
readonly default: false;
|
|
71
|
+
};
|
|
72
|
+
readonly lightWaveDuration: {
|
|
73
|
+
readonly type: import('vue').PropType<import('../../cyberpunk-vue').DurationValue>;
|
|
74
|
+
readonly default: 2000;
|
|
75
|
+
};
|
|
76
|
+
readonly marker: {
|
|
77
|
+
readonly type: BooleanConstructor;
|
|
78
|
+
readonly default: false;
|
|
79
|
+
};
|
|
80
|
+
readonly markerColor: {
|
|
81
|
+
readonly type: StringConstructor;
|
|
82
|
+
readonly default: "";
|
|
83
|
+
};
|
|
84
|
+
readonly glowPulseDuration: {
|
|
85
|
+
readonly type: import('vue').PropType<import('../../cyberpunk-vue').DurationValue>;
|
|
86
|
+
readonly default: 1500;
|
|
87
|
+
};
|
|
88
|
+
readonly unselectable: {
|
|
89
|
+
readonly type: BooleanConstructor;
|
|
90
|
+
readonly default: false;
|
|
91
|
+
};
|
|
92
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
93
|
+
readonly size: import('.').TextSize;
|
|
94
|
+
readonly type: import('.').TextType;
|
|
95
|
+
readonly color: string;
|
|
96
|
+
readonly dashed: boolean;
|
|
97
|
+
readonly marker: boolean;
|
|
98
|
+
readonly bold: boolean;
|
|
99
|
+
readonly italic: boolean;
|
|
100
|
+
readonly underline: boolean;
|
|
101
|
+
readonly align: import('.').TextAlign;
|
|
102
|
+
readonly boxed: boolean;
|
|
103
|
+
readonly strikethrough: boolean;
|
|
104
|
+
readonly glow: boolean;
|
|
105
|
+
readonly glowIntensity: number;
|
|
106
|
+
readonly glowPulse: boolean;
|
|
107
|
+
readonly lightWave: boolean;
|
|
108
|
+
readonly lightWaveDuration: import('../../cyberpunk-vue').DurationValue;
|
|
109
|
+
readonly markerColor: string;
|
|
110
|
+
readonly glowPulseDuration: import('../../cyberpunk-vue').DurationValue;
|
|
111
|
+
readonly unselectable: boolean;
|
|
112
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
|
|
113
|
+
P: {};
|
|
114
|
+
B: {};
|
|
115
|
+
D: {};
|
|
116
|
+
C: {};
|
|
117
|
+
M: {};
|
|
118
|
+
Defaults: {};
|
|
119
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
120
|
+
readonly type: {
|
|
121
|
+
readonly type: import('vue').PropType<import('.').TextType>;
|
|
122
|
+
readonly default: "default";
|
|
123
|
+
};
|
|
124
|
+
readonly color: {
|
|
125
|
+
readonly type: StringConstructor;
|
|
126
|
+
readonly default: "";
|
|
127
|
+
};
|
|
128
|
+
readonly size: {
|
|
129
|
+
readonly type: import('vue').PropType<import('.').TextSize>;
|
|
130
|
+
readonly default: "md";
|
|
131
|
+
};
|
|
132
|
+
readonly align: {
|
|
133
|
+
readonly type: import('vue').PropType<import('.').TextAlign>;
|
|
134
|
+
readonly default: "middle";
|
|
135
|
+
};
|
|
136
|
+
readonly underline: {
|
|
137
|
+
readonly type: BooleanConstructor;
|
|
138
|
+
readonly default: false;
|
|
139
|
+
};
|
|
140
|
+
readonly boxed: {
|
|
141
|
+
readonly type: BooleanConstructor;
|
|
142
|
+
readonly default: false;
|
|
143
|
+
};
|
|
144
|
+
readonly dashed: {
|
|
145
|
+
readonly type: BooleanConstructor;
|
|
146
|
+
readonly default: false;
|
|
147
|
+
};
|
|
148
|
+
readonly bold: {
|
|
149
|
+
readonly type: BooleanConstructor;
|
|
150
|
+
readonly default: false;
|
|
151
|
+
};
|
|
152
|
+
readonly italic: {
|
|
153
|
+
readonly type: BooleanConstructor;
|
|
154
|
+
readonly default: false;
|
|
155
|
+
};
|
|
156
|
+
readonly strikethrough: {
|
|
157
|
+
readonly type: BooleanConstructor;
|
|
158
|
+
readonly default: false;
|
|
159
|
+
};
|
|
160
|
+
readonly glow: {
|
|
161
|
+
readonly type: BooleanConstructor;
|
|
162
|
+
readonly default: false;
|
|
163
|
+
};
|
|
164
|
+
readonly glowIntensity: {
|
|
165
|
+
readonly type: NumberConstructor;
|
|
166
|
+
readonly default: 3;
|
|
167
|
+
};
|
|
168
|
+
readonly glowPulse: {
|
|
169
|
+
readonly type: BooleanConstructor;
|
|
170
|
+
readonly default: false;
|
|
171
|
+
};
|
|
172
|
+
readonly lightWave: {
|
|
173
|
+
readonly type: BooleanConstructor;
|
|
174
|
+
readonly default: false;
|
|
175
|
+
};
|
|
176
|
+
readonly lightWaveDuration: {
|
|
177
|
+
readonly type: import('vue').PropType<import('../../cyberpunk-vue').DurationValue>;
|
|
178
|
+
readonly default: 2000;
|
|
179
|
+
};
|
|
180
|
+
readonly marker: {
|
|
181
|
+
readonly type: BooleanConstructor;
|
|
182
|
+
readonly default: false;
|
|
183
|
+
};
|
|
184
|
+
readonly markerColor: {
|
|
185
|
+
readonly type: StringConstructor;
|
|
186
|
+
readonly default: "";
|
|
187
|
+
};
|
|
188
|
+
readonly glowPulseDuration: {
|
|
189
|
+
readonly type: import('vue').PropType<import('../../cyberpunk-vue').DurationValue>;
|
|
190
|
+
readonly default: 1500;
|
|
191
|
+
};
|
|
192
|
+
readonly unselectable: {
|
|
193
|
+
readonly type: BooleanConstructor;
|
|
194
|
+
readonly default: false;
|
|
195
|
+
};
|
|
196
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
197
|
+
readonly size: import('.').TextSize;
|
|
198
|
+
readonly type: import('.').TextType;
|
|
199
|
+
readonly color: string;
|
|
200
|
+
readonly dashed: boolean;
|
|
201
|
+
readonly marker: boolean;
|
|
202
|
+
readonly bold: boolean;
|
|
203
|
+
readonly italic: boolean;
|
|
204
|
+
readonly underline: boolean;
|
|
205
|
+
readonly align: import('.').TextAlign;
|
|
206
|
+
readonly boxed: boolean;
|
|
207
|
+
readonly strikethrough: boolean;
|
|
208
|
+
readonly glow: boolean;
|
|
209
|
+
readonly glowIntensity: number;
|
|
210
|
+
readonly glowPulse: boolean;
|
|
211
|
+
readonly lightWave: boolean;
|
|
212
|
+
readonly lightWaveDuration: import('../../cyberpunk-vue').DurationValue;
|
|
213
|
+
readonly markerColor: string;
|
|
214
|
+
readonly glowPulseDuration: import('../../cyberpunk-vue').DurationValue;
|
|
215
|
+
readonly unselectable: boolean;
|
|
216
|
+
}>;
|
|
217
|
+
__isFragment?: never;
|
|
218
|
+
__isTeleport?: never;
|
|
219
|
+
__isSuspense?: never;
|
|
220
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
221
|
+
readonly type: {
|
|
222
|
+
readonly type: import('vue').PropType<import('.').TextType>;
|
|
223
|
+
readonly default: "default";
|
|
224
|
+
};
|
|
225
|
+
readonly color: {
|
|
226
|
+
readonly type: StringConstructor;
|
|
227
|
+
readonly default: "";
|
|
228
|
+
};
|
|
229
|
+
readonly size: {
|
|
230
|
+
readonly type: import('vue').PropType<import('.').TextSize>;
|
|
231
|
+
readonly default: "md";
|
|
232
|
+
};
|
|
233
|
+
readonly align: {
|
|
234
|
+
readonly type: import('vue').PropType<import('.').TextAlign>;
|
|
235
|
+
readonly default: "middle";
|
|
236
|
+
};
|
|
237
|
+
readonly underline: {
|
|
238
|
+
readonly type: BooleanConstructor;
|
|
239
|
+
readonly default: false;
|
|
240
|
+
};
|
|
241
|
+
readonly boxed: {
|
|
242
|
+
readonly type: BooleanConstructor;
|
|
243
|
+
readonly default: false;
|
|
244
|
+
};
|
|
245
|
+
readonly dashed: {
|
|
246
|
+
readonly type: BooleanConstructor;
|
|
247
|
+
readonly default: false;
|
|
248
|
+
};
|
|
249
|
+
readonly bold: {
|
|
250
|
+
readonly type: BooleanConstructor;
|
|
251
|
+
readonly default: false;
|
|
252
|
+
};
|
|
253
|
+
readonly italic: {
|
|
254
|
+
readonly type: BooleanConstructor;
|
|
255
|
+
readonly default: false;
|
|
256
|
+
};
|
|
257
|
+
readonly strikethrough: {
|
|
258
|
+
readonly type: BooleanConstructor;
|
|
259
|
+
readonly default: false;
|
|
260
|
+
};
|
|
261
|
+
readonly glow: {
|
|
262
|
+
readonly type: BooleanConstructor;
|
|
263
|
+
readonly default: false;
|
|
264
|
+
};
|
|
265
|
+
readonly glowIntensity: {
|
|
266
|
+
readonly type: NumberConstructor;
|
|
267
|
+
readonly default: 3;
|
|
268
|
+
};
|
|
269
|
+
readonly glowPulse: {
|
|
270
|
+
readonly type: BooleanConstructor;
|
|
271
|
+
readonly default: false;
|
|
272
|
+
};
|
|
273
|
+
readonly lightWave: {
|
|
274
|
+
readonly type: BooleanConstructor;
|
|
275
|
+
readonly default: false;
|
|
276
|
+
};
|
|
277
|
+
readonly lightWaveDuration: {
|
|
278
|
+
readonly type: import('vue').PropType<import('../../cyberpunk-vue').DurationValue>;
|
|
279
|
+
readonly default: 2000;
|
|
280
|
+
};
|
|
281
|
+
readonly marker: {
|
|
282
|
+
readonly type: BooleanConstructor;
|
|
283
|
+
readonly default: false;
|
|
284
|
+
};
|
|
285
|
+
readonly markerColor: {
|
|
286
|
+
readonly type: StringConstructor;
|
|
287
|
+
readonly default: "";
|
|
288
|
+
};
|
|
289
|
+
readonly glowPulseDuration: {
|
|
290
|
+
readonly type: import('vue').PropType<import('../../cyberpunk-vue').DurationValue>;
|
|
291
|
+
readonly default: 1500;
|
|
292
|
+
};
|
|
293
|
+
readonly unselectable: {
|
|
294
|
+
readonly type: BooleanConstructor;
|
|
295
|
+
readonly default: false;
|
|
296
|
+
};
|
|
297
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
298
|
+
readonly size: import('.').TextSize;
|
|
299
|
+
readonly type: import('.').TextType;
|
|
300
|
+
readonly color: string;
|
|
301
|
+
readonly dashed: boolean;
|
|
302
|
+
readonly marker: boolean;
|
|
303
|
+
readonly bold: boolean;
|
|
304
|
+
readonly italic: boolean;
|
|
305
|
+
readonly underline: boolean;
|
|
306
|
+
readonly align: import('.').TextAlign;
|
|
307
|
+
readonly boxed: boolean;
|
|
308
|
+
readonly strikethrough: boolean;
|
|
309
|
+
readonly glow: boolean;
|
|
310
|
+
readonly glowIntensity: number;
|
|
311
|
+
readonly glowPulse: boolean;
|
|
312
|
+
readonly lightWave: boolean;
|
|
313
|
+
readonly lightWaveDuration: import('../../cyberpunk-vue').DurationValue;
|
|
314
|
+
readonly markerColor: string;
|
|
315
|
+
readonly glowPulseDuration: import('../../cyberpunk-vue').DurationValue;
|
|
316
|
+
readonly unselectable: boolean;
|
|
317
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
318
|
+
$slots: {
|
|
319
|
+
prefix?(_: {}): any;
|
|
320
|
+
default?(_: {}): any;
|
|
321
|
+
suffix?(_: {}): any;
|
|
322
|
+
};
|
|
323
|
+
})>;
|
|
324
|
+
export default CpText;
|
|
325
|
+
export * from './src/text';
|
|
326
|
+
export type { CpTextInstance } from './src/instance';
|
|
327
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../text/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAoB,CAAA;AAEvC,eAAe,MAAM,CAAA;AACrB,cAAc,YAAY,CAAA;AAC1B,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../text/src/instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,YAAY,CAAA;AAEpC,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,MAAM,CAAC,GAAG,OAAO,CAAA"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { DurationValue } from '../../../hooks';
|
|
3
|
+
/**
|
|
4
|
+
* 文字尺寸
|
|
5
|
+
* - `sm` - 小尺寸 (12px)
|
|
6
|
+
* - `md` - 中等尺寸 (14px),默认
|
|
7
|
+
* - `lg` - 大尺寸 (16px)
|
|
8
|
+
* - `number` - 自定义像素值
|
|
9
|
+
*/
|
|
10
|
+
export type TextSize = 'sm' | 'md' | 'lg' | number;
|
|
11
|
+
/**
|
|
12
|
+
* 文字类型(颜色预设)
|
|
13
|
+
* - `default` - 默认 (继承父级颜色)
|
|
14
|
+
* - `primary` - 主色调 (赛博青)
|
|
15
|
+
* - `success` - 成功 (霓虹绿)
|
|
16
|
+
* - `warning` - 警告 (橙黄)
|
|
17
|
+
* - `error` - 错误/危险 (洋红)
|
|
18
|
+
* - `info` - 信息 (紫罗兰)
|
|
19
|
+
*/
|
|
20
|
+
export type TextType = 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
21
|
+
/**
|
|
22
|
+
* 垂直对齐方式
|
|
23
|
+
* - `top` - 顶部对齐
|
|
24
|
+
* - `middle` - 垂直居中(默认)
|
|
25
|
+
* - `bottom` - 底部对齐
|
|
26
|
+
*/
|
|
27
|
+
export type TextAlign = 'top' | 'middle' | 'bottom';
|
|
28
|
+
/**
|
|
29
|
+
* CpText 组件 Props 定义
|
|
30
|
+
*
|
|
31
|
+
* @description 赛博朋克风格特殊文字组件,可快速为文字添加多种视觉效果。
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```vue
|
|
35
|
+
* <!-- 基础用法 -->
|
|
36
|
+
* <CpText>普通文字</CpText>
|
|
37
|
+
*
|
|
38
|
+
* <!-- 带效果 -->
|
|
39
|
+
* <CpText underline type="primary">下划线</CpText>
|
|
40
|
+
* <CpText boxed glow type="error">方框发光</CpText>
|
|
41
|
+
* <CpText marker type="warning">马克笔效果</CpText>
|
|
42
|
+
*
|
|
43
|
+
* <!-- 组合效果 -->
|
|
44
|
+
* <CpText bold italic underline>加粗斜体下划线</CpText>
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare const textProps: {
|
|
48
|
+
/**
|
|
49
|
+
* 文字类型(颜色预设)
|
|
50
|
+
* @default 'default'
|
|
51
|
+
* @example `<CpText type="primary">主色调</CpText>`
|
|
52
|
+
*/
|
|
53
|
+
readonly type: {
|
|
54
|
+
readonly type: PropType<TextType>;
|
|
55
|
+
readonly default: "default";
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* 自定义颜色
|
|
59
|
+
* 传入有效 CSS 颜色值,覆盖 type 的颜色
|
|
60
|
+
* @default ''
|
|
61
|
+
* @example `<CpText color="#ff00ff">自定义</CpText>`
|
|
62
|
+
*/
|
|
63
|
+
readonly color: {
|
|
64
|
+
readonly type: StringConstructor;
|
|
65
|
+
readonly default: "";
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* 文字尺寸
|
|
69
|
+
* 可以是预设值 (sm/md/lg) 或数字 (像素)
|
|
70
|
+
* @default 'md'
|
|
71
|
+
* @example `<CpText size="lg">大号</CpText>`
|
|
72
|
+
* @example `<CpText :size="20">20像素</CpText>`
|
|
73
|
+
*/
|
|
74
|
+
readonly size: {
|
|
75
|
+
readonly type: PropType<TextSize>;
|
|
76
|
+
readonly default: "md";
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* 垂直对齐方式
|
|
80
|
+
* @default 'middle'
|
|
81
|
+
*/
|
|
82
|
+
readonly align: {
|
|
83
|
+
readonly type: PropType<TextAlign>;
|
|
84
|
+
readonly default: "middle";
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* 下划线效果
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
90
|
+
readonly underline: {
|
|
91
|
+
readonly type: BooleanConstructor;
|
|
92
|
+
readonly default: false;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* 方框边框效果
|
|
96
|
+
* @default false
|
|
97
|
+
*/
|
|
98
|
+
readonly boxed: {
|
|
99
|
+
readonly type: BooleanConstructor;
|
|
100
|
+
readonly default: false;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* 虚线样式
|
|
104
|
+
* 应用于下划线或方框边框
|
|
105
|
+
* @default false
|
|
106
|
+
*/
|
|
107
|
+
readonly dashed: {
|
|
108
|
+
readonly type: BooleanConstructor;
|
|
109
|
+
readonly default: false;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* 加粗效果
|
|
113
|
+
* @default false
|
|
114
|
+
*/
|
|
115
|
+
readonly bold: {
|
|
116
|
+
readonly type: BooleanConstructor;
|
|
117
|
+
readonly default: false;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* 斜体效果
|
|
121
|
+
* @default false
|
|
122
|
+
*/
|
|
123
|
+
readonly italic: {
|
|
124
|
+
readonly type: BooleanConstructor;
|
|
125
|
+
readonly default: false;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* 删除线效果
|
|
129
|
+
* @default false
|
|
130
|
+
*/
|
|
131
|
+
readonly strikethrough: {
|
|
132
|
+
readonly type: BooleanConstructor;
|
|
133
|
+
readonly default: false;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* 发光效果
|
|
137
|
+
* 赛博朋克霓虹发光效果
|
|
138
|
+
* @default false
|
|
139
|
+
*/
|
|
140
|
+
readonly glow: {
|
|
141
|
+
readonly type: BooleanConstructor;
|
|
142
|
+
readonly default: false;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* 发光强度
|
|
146
|
+
* 1-10 的数值,控制发光的扩散范围
|
|
147
|
+
* @default 3
|
|
148
|
+
*/
|
|
149
|
+
readonly glowIntensity: {
|
|
150
|
+
readonly type: NumberConstructor;
|
|
151
|
+
readonly default: 3;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* 发光心跳动画
|
|
155
|
+
* 开启后发光效果会有呼吸脉冲动画
|
|
156
|
+
* @default false
|
|
157
|
+
*/
|
|
158
|
+
readonly glowPulse: {
|
|
159
|
+
readonly type: BooleanConstructor;
|
|
160
|
+
readonly default: false;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* 光波扫射动画
|
|
164
|
+
* 斜向高光扫过文字的动态效果
|
|
165
|
+
* @default false
|
|
166
|
+
*/
|
|
167
|
+
readonly lightWave: {
|
|
168
|
+
readonly type: BooleanConstructor;
|
|
169
|
+
readonly default: false;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* 光波动画时长
|
|
173
|
+
* 数字默认毫秒 (ms),字符串可指定单位 (如 '2s' 或 '2000ms')
|
|
174
|
+
* @default 2000
|
|
175
|
+
*/
|
|
176
|
+
readonly lightWaveDuration: {
|
|
177
|
+
readonly type: PropType<DurationValue>;
|
|
178
|
+
readonly default: 2000;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* 马克笔背景效果
|
|
182
|
+
* 荧光笔高亮效果
|
|
183
|
+
* @default false
|
|
184
|
+
*/
|
|
185
|
+
readonly marker: {
|
|
186
|
+
readonly type: BooleanConstructor;
|
|
187
|
+
readonly default: false;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* 马克笔自定义颜色
|
|
191
|
+
* 不设置则使用文字颜色
|
|
192
|
+
* @default ''
|
|
193
|
+
*/
|
|
194
|
+
readonly markerColor: {
|
|
195
|
+
readonly type: StringConstructor;
|
|
196
|
+
readonly default: "";
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* 发光心跳动画时长
|
|
200
|
+
* 数字默认毫秒 (ms),字符串可指定单位 (如 '1.5s' 或 '1500ms')
|
|
201
|
+
* @default 1500
|
|
202
|
+
*/
|
|
203
|
+
readonly glowPulseDuration: {
|
|
204
|
+
readonly type: PropType<DurationValue>;
|
|
205
|
+
readonly default: 1500;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* 禁止选中/复制
|
|
209
|
+
* 开启后文字无法被鼠标选中或通过键盘复制
|
|
210
|
+
* @default false
|
|
211
|
+
*/
|
|
212
|
+
readonly unselectable: {
|
|
213
|
+
readonly type: BooleanConstructor;
|
|
214
|
+
readonly default: false;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
export type TextProps = ExtractPropTypes<typeof textProps>;
|
|
218
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../text/src/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;AAElD;;;;;;;;GAQG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAEvF;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEnD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,SAAS;IAClB;;;;OAIG;;uBAEiB,QAAQ,CAAC,QAAQ,CAAC;;;IAGtC;;;;;OAKG;;;;;IAKH;;;;;;OAMG;;uBAE2B,QAAQ,CAAC,QAAQ,CAAC;;;IAGhD;;;OAGG;;uBAEiB,QAAQ,CAAC,SAAS,CAAC;;;IAGvC;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;uBAE2B,QAAQ,CAAC,aAAa,CAAC;;;IAGrD;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;uBAE2B,QAAQ,CAAC,aAAa,CAAC;;;IAGrD;;;;OAIG;;;;;CAKG,CAAA;AAEV,MAAM,MAAM,SAAS,GAAG,gBAAgB,CAAC,OAAO,SAAS,CAAC,CAAA"}
|