@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,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CpRadioGroup 单选框组
|
|
3
|
+
*
|
|
4
|
+
* 用于管理多个 CpRadio 的选中状态。
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```vue
|
|
8
|
+
* <CpRadioGroup v-model="selected">
|
|
9
|
+
* <CpRadio label="A">选项 A</CpRadio>
|
|
10
|
+
* <CpRadio label="B">选项 B</CpRadio>
|
|
11
|
+
* </CpRadioGroup>
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @see {@link RadioGroupProps} 查看所有可用属性
|
|
15
|
+
*/
|
|
16
|
+
export declare const CpRadioGroup: import('../utils').SFCWithInstall<{
|
|
17
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
readonly modelValue: {
|
|
19
|
+
readonly type: import('vue').PropType<import('..').RadioValueType>;
|
|
20
|
+
readonly default: undefined;
|
|
21
|
+
};
|
|
22
|
+
readonly disabled: {
|
|
23
|
+
readonly type: BooleanConstructor;
|
|
24
|
+
readonly default: false;
|
|
25
|
+
};
|
|
26
|
+
readonly size: {
|
|
27
|
+
readonly type: import('vue').PropType<import('../../cyberpunk-vue').Size>;
|
|
28
|
+
readonly default: "md";
|
|
29
|
+
};
|
|
30
|
+
readonly type: {
|
|
31
|
+
readonly type: import('vue').PropType<import('..').RadioType>;
|
|
32
|
+
readonly default: "primary";
|
|
33
|
+
};
|
|
34
|
+
readonly name: {
|
|
35
|
+
readonly type: StringConstructor;
|
|
36
|
+
readonly default: "";
|
|
37
|
+
};
|
|
38
|
+
readonly direction: {
|
|
39
|
+
readonly type: import('vue').PropType<"horizontal" | "vertical">;
|
|
40
|
+
readonly default: "horizontal";
|
|
41
|
+
};
|
|
42
|
+
}>> & Readonly<{
|
|
43
|
+
"onUpdate:modelValue"?: ((value: import('..').RadioValueType) => any) | undefined;
|
|
44
|
+
onChange?: ((value: import('..').RadioValueType) => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
modelValue: import('vue').Ref<import('..').RadioValueType | undefined, import('..').RadioValueType | undefined>;
|
|
47
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
48
|
+
"update:modelValue": (value: import('..').RadioValueType) => void;
|
|
49
|
+
change: (value: import('..').RadioValueType) => void;
|
|
50
|
+
}, import('vue').PublicProps, {
|
|
51
|
+
readonly size: import('../../cyberpunk-vue').Size;
|
|
52
|
+
readonly name: string;
|
|
53
|
+
readonly type: import('..').RadioType;
|
|
54
|
+
readonly disabled: boolean;
|
|
55
|
+
readonly modelValue: import('..').RadioValueType;
|
|
56
|
+
readonly direction: "vertical" | "horizontal";
|
|
57
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
58
|
+
P: {};
|
|
59
|
+
B: {};
|
|
60
|
+
D: {};
|
|
61
|
+
C: {};
|
|
62
|
+
M: {};
|
|
63
|
+
Defaults: {};
|
|
64
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
65
|
+
readonly modelValue: {
|
|
66
|
+
readonly type: import('vue').PropType<import('..').RadioValueType>;
|
|
67
|
+
readonly default: undefined;
|
|
68
|
+
};
|
|
69
|
+
readonly disabled: {
|
|
70
|
+
readonly type: BooleanConstructor;
|
|
71
|
+
readonly default: false;
|
|
72
|
+
};
|
|
73
|
+
readonly size: {
|
|
74
|
+
readonly type: import('vue').PropType<import('../../cyberpunk-vue').Size>;
|
|
75
|
+
readonly default: "md";
|
|
76
|
+
};
|
|
77
|
+
readonly type: {
|
|
78
|
+
readonly type: import('vue').PropType<import('..').RadioType>;
|
|
79
|
+
readonly default: "primary";
|
|
80
|
+
};
|
|
81
|
+
readonly name: {
|
|
82
|
+
readonly type: StringConstructor;
|
|
83
|
+
readonly default: "";
|
|
84
|
+
};
|
|
85
|
+
readonly direction: {
|
|
86
|
+
readonly type: import('vue').PropType<"horizontal" | "vertical">;
|
|
87
|
+
readonly default: "horizontal";
|
|
88
|
+
};
|
|
89
|
+
}>> & Readonly<{
|
|
90
|
+
"onUpdate:modelValue"?: ((value: import('..').RadioValueType) => any) | undefined;
|
|
91
|
+
onChange?: ((value: import('..').RadioValueType) => any) | undefined;
|
|
92
|
+
}>, {
|
|
93
|
+
modelValue: import('vue').Ref<import('..').RadioValueType | undefined, import('..').RadioValueType | undefined>;
|
|
94
|
+
}, {}, {}, {}, {
|
|
95
|
+
readonly size: import('../../cyberpunk-vue').Size;
|
|
96
|
+
readonly name: string;
|
|
97
|
+
readonly type: import('..').RadioType;
|
|
98
|
+
readonly disabled: boolean;
|
|
99
|
+
readonly modelValue: import('..').RadioValueType;
|
|
100
|
+
readonly direction: "vertical" | "horizontal";
|
|
101
|
+
}>;
|
|
102
|
+
__isFragment?: never;
|
|
103
|
+
__isTeleport?: never;
|
|
104
|
+
__isSuspense?: never;
|
|
105
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
106
|
+
readonly modelValue: {
|
|
107
|
+
readonly type: import('vue').PropType<import('..').RadioValueType>;
|
|
108
|
+
readonly default: undefined;
|
|
109
|
+
};
|
|
110
|
+
readonly disabled: {
|
|
111
|
+
readonly type: BooleanConstructor;
|
|
112
|
+
readonly default: false;
|
|
113
|
+
};
|
|
114
|
+
readonly size: {
|
|
115
|
+
readonly type: import('vue').PropType<import('../../cyberpunk-vue').Size>;
|
|
116
|
+
readonly default: "md";
|
|
117
|
+
};
|
|
118
|
+
readonly type: {
|
|
119
|
+
readonly type: import('vue').PropType<import('..').RadioType>;
|
|
120
|
+
readonly default: "primary";
|
|
121
|
+
};
|
|
122
|
+
readonly name: {
|
|
123
|
+
readonly type: StringConstructor;
|
|
124
|
+
readonly default: "";
|
|
125
|
+
};
|
|
126
|
+
readonly direction: {
|
|
127
|
+
readonly type: import('vue').PropType<"horizontal" | "vertical">;
|
|
128
|
+
readonly default: "horizontal";
|
|
129
|
+
};
|
|
130
|
+
}>> & Readonly<{
|
|
131
|
+
"onUpdate:modelValue"?: ((value: import('..').RadioValueType) => any) | undefined;
|
|
132
|
+
onChange?: ((value: import('..').RadioValueType) => any) | undefined;
|
|
133
|
+
}>, {
|
|
134
|
+
modelValue: import('vue').Ref<import('..').RadioValueType | undefined, import('..').RadioValueType | undefined>;
|
|
135
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
136
|
+
"update:modelValue": (value: import('..').RadioValueType) => void;
|
|
137
|
+
change: (value: import('..').RadioValueType) => void;
|
|
138
|
+
}, string, {
|
|
139
|
+
readonly size: import('../../cyberpunk-vue').Size;
|
|
140
|
+
readonly name: string;
|
|
141
|
+
readonly type: import('..').RadioType;
|
|
142
|
+
readonly disabled: boolean;
|
|
143
|
+
readonly modelValue: import('..').RadioValueType;
|
|
144
|
+
readonly direction: "vertical" | "horizontal";
|
|
145
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
146
|
+
$slots: {
|
|
147
|
+
default?(_: {}): any;
|
|
148
|
+
};
|
|
149
|
+
})>;
|
|
150
|
+
export default CpRadioGroup;
|
|
151
|
+
export * from './src/radio-group';
|
|
152
|
+
export * from './src/constants';
|
|
153
|
+
export type { RadioGroupInstance } from './src/instance';
|
|
154
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../radio-group/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0B,CAAA;AACnD,eAAe,YAAY,CAAA;AAE3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { RadioValueType, RadioType, RadioSize } from '../../radio/src/radio';
|
|
3
|
+
export interface RadioGroupContext {
|
|
4
|
+
modelValue: Ref<RadioValueType | undefined>;
|
|
5
|
+
disabled: Ref<boolean>;
|
|
6
|
+
size: Ref<RadioSize>;
|
|
7
|
+
type: Ref<RadioType>;
|
|
8
|
+
name: Ref<string>;
|
|
9
|
+
handleChange: (value: RadioValueType) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const radioGroupContextKey: InjectionKey<RadioGroupContext>;
|
|
12
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../radio-group/src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjF,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,GAAG,CAAC,cAAc,GAAG,SAAS,CAAC,CAAA;IAC3C,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACtB,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,CAAA;IACpB,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,CAAA;IACpB,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACjB,YAAY,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAA;CAC9C;AAED,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,iBAAiB,CAA+B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../radio-group/src/instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAA;AAE/C,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,GAAG,OAAO,CAAA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { Size } from '../../../hooks';
|
|
3
|
+
import { RadioValueType, RadioType } from '../../radio/src/radio';
|
|
4
|
+
/**
|
|
5
|
+
* CpRadioGroup 组件 Props 定义
|
|
6
|
+
*
|
|
7
|
+
* @description 单选框组容器,管理多个 CpRadio 的选中状态。
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```vue
|
|
11
|
+
* <CpRadioGroup v-model="selected">
|
|
12
|
+
* <CpRadio label="A">选项 A</CpRadio>
|
|
13
|
+
* <CpRadio label="B">选项 B</CpRadio>
|
|
14
|
+
* <CpRadio label="C">选项 C</CpRadio>
|
|
15
|
+
* </CpRadioGroup>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare const radioGroupProps: {
|
|
19
|
+
/**
|
|
20
|
+
* 绑定值 (v-model)
|
|
21
|
+
*/
|
|
22
|
+
readonly modelValue: {
|
|
23
|
+
readonly type: PropType<RadioValueType>;
|
|
24
|
+
readonly default: undefined;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 是否禁用所有子单选框
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
readonly disabled: {
|
|
31
|
+
readonly type: BooleanConstructor;
|
|
32
|
+
readonly default: false;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* 子单选框尺寸
|
|
36
|
+
* @default 'md'
|
|
37
|
+
*/
|
|
38
|
+
readonly size: {
|
|
39
|
+
readonly type: PropType<Size>;
|
|
40
|
+
readonly default: "md";
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* 子单选框类型(颜色预设)
|
|
44
|
+
* @default 'primary'
|
|
45
|
+
*/
|
|
46
|
+
readonly type: {
|
|
47
|
+
readonly type: PropType<RadioType>;
|
|
48
|
+
readonly default: "primary";
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* 原生 name 属性,应用于所有子 Radio
|
|
52
|
+
*/
|
|
53
|
+
readonly name: {
|
|
54
|
+
readonly type: StringConstructor;
|
|
55
|
+
readonly default: "";
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* 布局方向
|
|
59
|
+
* @default 'horizontal'
|
|
60
|
+
*/
|
|
61
|
+
readonly direction: {
|
|
62
|
+
readonly type: PropType<"horizontal" | "vertical">;
|
|
63
|
+
readonly default: "horizontal";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;
|
|
67
|
+
/**
|
|
68
|
+
* CpRadioGroup 组件事件定义
|
|
69
|
+
*/
|
|
70
|
+
export declare const radioGroupEmits: {
|
|
71
|
+
/**
|
|
72
|
+
* 值变化时触发 (v-model 绑定)
|
|
73
|
+
*/
|
|
74
|
+
'update:modelValue': (value: RadioValueType) => value is string | number | boolean;
|
|
75
|
+
/**
|
|
76
|
+
* 值变化时触发
|
|
77
|
+
*/
|
|
78
|
+
change: (value: RadioValueType) => value is string | number | boolean;
|
|
79
|
+
};
|
|
80
|
+
export type RadioGroupEmits = typeof radioGroupEmits;
|
|
81
|
+
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../radio-group/src/radio-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEtE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe;IAC1B;;OAEG;;uBAEkC,QAAQ,CAAC,cAAc,CAAC;;;IAG7D;;;OAGG;;;;;IAKH;;;OAGG;;uBAEyB,QAAQ,CAAC,IAAI,CAAC;;;IAG1C;;;OAGG;;uBAEe,QAAQ,CAAC,SAAS,CAAC;;;IAGrC;;OAEG;;;;;IAKH;;;OAGG;;uBAEe,QAAQ,CAAC,YAAY,GAAG,UAAU,CAAC;;;CAG7C,CAAA;AAEV,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC,OAAO,eAAe,CAAC,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,eAAe;IAC1B;;OAEG;iCAC0B,cAAc;IAE3C;;OAEG;oBACa,cAAc;CAE/B,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAA"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { RadioValueType } from '../../radio/src/radio';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
|
+
readonly modelValue: {
|
|
13
|
+
readonly type: import('vue').PropType<RadioValueType>;
|
|
14
|
+
readonly default: undefined;
|
|
15
|
+
};
|
|
16
|
+
readonly disabled: {
|
|
17
|
+
readonly type: BooleanConstructor;
|
|
18
|
+
readonly default: false;
|
|
19
|
+
};
|
|
20
|
+
readonly size: {
|
|
21
|
+
readonly type: import('vue').PropType<import('../../../hooks').Size>;
|
|
22
|
+
readonly default: "md";
|
|
23
|
+
};
|
|
24
|
+
readonly type: {
|
|
25
|
+
readonly type: import('vue').PropType<import('../..').RadioType>;
|
|
26
|
+
readonly default: "primary";
|
|
27
|
+
};
|
|
28
|
+
readonly name: {
|
|
29
|
+
readonly type: StringConstructor;
|
|
30
|
+
readonly default: "";
|
|
31
|
+
};
|
|
32
|
+
readonly direction: {
|
|
33
|
+
readonly type: import('vue').PropType<"horizontal" | "vertical">;
|
|
34
|
+
readonly default: "horizontal";
|
|
35
|
+
};
|
|
36
|
+
}>, {
|
|
37
|
+
/** @description 当前选中的值 */
|
|
38
|
+
modelValue: import('vue').Ref<RadioValueType | undefined, RadioValueType | undefined>;
|
|
39
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
40
|
+
"update:modelValue": (value: RadioValueType) => void;
|
|
41
|
+
change: (value: RadioValueType) => void;
|
|
42
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
43
|
+
readonly modelValue: {
|
|
44
|
+
readonly type: import('vue').PropType<RadioValueType>;
|
|
45
|
+
readonly default: undefined;
|
|
46
|
+
};
|
|
47
|
+
readonly disabled: {
|
|
48
|
+
readonly type: BooleanConstructor;
|
|
49
|
+
readonly default: false;
|
|
50
|
+
};
|
|
51
|
+
readonly size: {
|
|
52
|
+
readonly type: import('vue').PropType<import('../../../hooks').Size>;
|
|
53
|
+
readonly default: "md";
|
|
54
|
+
};
|
|
55
|
+
readonly type: {
|
|
56
|
+
readonly type: import('vue').PropType<import('../..').RadioType>;
|
|
57
|
+
readonly default: "primary";
|
|
58
|
+
};
|
|
59
|
+
readonly name: {
|
|
60
|
+
readonly type: StringConstructor;
|
|
61
|
+
readonly default: "";
|
|
62
|
+
};
|
|
63
|
+
readonly direction: {
|
|
64
|
+
readonly type: import('vue').PropType<"horizontal" | "vertical">;
|
|
65
|
+
readonly default: "horizontal";
|
|
66
|
+
};
|
|
67
|
+
}>> & Readonly<{
|
|
68
|
+
"onUpdate:modelValue"?: ((value: RadioValueType) => any) | undefined;
|
|
69
|
+
onChange?: ((value: RadioValueType) => any) | undefined;
|
|
70
|
+
}>, {
|
|
71
|
+
readonly size: import('../../../hooks').Size;
|
|
72
|
+
readonly name: string;
|
|
73
|
+
readonly type: import('../..').RadioType;
|
|
74
|
+
readonly disabled: boolean;
|
|
75
|
+
readonly modelValue: RadioValueType;
|
|
76
|
+
readonly direction: "vertical" | "horizontal";
|
|
77
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
78
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
79
|
+
export default _default;
|
|
80
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
81
|
+
new (): {
|
|
82
|
+
$slots: S;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=radio-group.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.vue.d.ts","sourceRoot":"","sources":["../../../radio-group/src/radio-group.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AA8C3D,iBAAS,cAAc;WAwBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;IAlDnB,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFA2D1B,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"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CpSlider 赛博朋克风格滑块
|
|
3
|
+
*
|
|
4
|
+
* 用于在给定的数值范围内进行选择,支持单值和范围模式。
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```vue
|
|
8
|
+
* <CpSlider v-model="value" />
|
|
9
|
+
* <CpSlider v-model="range" range :min="0" :max="100" />
|
|
10
|
+
* <CpSlider v-model="value" :marks="{ 0: '低', 50: '中', 100: '高' }" />
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @see {@link SliderProps} 查看所有可用属性
|
|
14
|
+
*/
|
|
15
|
+
export declare const CpSlider: import('../utils').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
16
|
+
readonly modelValue: {
|
|
17
|
+
readonly type: import('vue').PropType<number | [number, number]>;
|
|
18
|
+
readonly default: 0;
|
|
19
|
+
};
|
|
20
|
+
readonly min: {
|
|
21
|
+
readonly type: NumberConstructor;
|
|
22
|
+
readonly default: 0;
|
|
23
|
+
};
|
|
24
|
+
readonly max: {
|
|
25
|
+
readonly type: NumberConstructor;
|
|
26
|
+
readonly default: 100;
|
|
27
|
+
};
|
|
28
|
+
readonly step: {
|
|
29
|
+
readonly type: NumberConstructor;
|
|
30
|
+
readonly default: 1;
|
|
31
|
+
};
|
|
32
|
+
readonly size: {
|
|
33
|
+
readonly type: import('vue').PropType<import('.').SliderSize>;
|
|
34
|
+
readonly default: "md";
|
|
35
|
+
};
|
|
36
|
+
readonly shape: {
|
|
37
|
+
readonly type: import('vue').PropType<import('.').SliderShape>;
|
|
38
|
+
readonly default: "clip";
|
|
39
|
+
};
|
|
40
|
+
readonly disabled: {
|
|
41
|
+
readonly type: BooleanConstructor;
|
|
42
|
+
readonly default: false;
|
|
43
|
+
};
|
|
44
|
+
readonly range: {
|
|
45
|
+
readonly type: BooleanConstructor;
|
|
46
|
+
readonly default: false;
|
|
47
|
+
};
|
|
48
|
+
readonly showTooltip: {
|
|
49
|
+
readonly type: BooleanConstructor;
|
|
50
|
+
readonly default: true;
|
|
51
|
+
};
|
|
52
|
+
readonly showStops: {
|
|
53
|
+
readonly type: BooleanConstructor;
|
|
54
|
+
readonly default: false;
|
|
55
|
+
};
|
|
56
|
+
readonly marks: {
|
|
57
|
+
readonly type: import('vue').PropType<import('.').SliderMarks>;
|
|
58
|
+
readonly default: undefined;
|
|
59
|
+
};
|
|
60
|
+
readonly color: {
|
|
61
|
+
readonly type: StringConstructor;
|
|
62
|
+
readonly default: "";
|
|
63
|
+
};
|
|
64
|
+
readonly vertical: {
|
|
65
|
+
readonly type: BooleanConstructor;
|
|
66
|
+
readonly default: false;
|
|
67
|
+
};
|
|
68
|
+
readonly height: {
|
|
69
|
+
readonly type: StringConstructor;
|
|
70
|
+
readonly default: undefined;
|
|
71
|
+
};
|
|
72
|
+
readonly formatTooltip: {
|
|
73
|
+
readonly type: import('vue').PropType<(value: number) => string>;
|
|
74
|
+
readonly default: undefined;
|
|
75
|
+
};
|
|
76
|
+
}>, {
|
|
77
|
+
sliderRef: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
78
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
79
|
+
input: (value: number | [number, number]) => void;
|
|
80
|
+
"update:modelValue": (value: number | [number, number]) => void;
|
|
81
|
+
change: (value: number | [number, number]) => void;
|
|
82
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
83
|
+
readonly modelValue: {
|
|
84
|
+
readonly type: import('vue').PropType<number | [number, number]>;
|
|
85
|
+
readonly default: 0;
|
|
86
|
+
};
|
|
87
|
+
readonly min: {
|
|
88
|
+
readonly type: NumberConstructor;
|
|
89
|
+
readonly default: 0;
|
|
90
|
+
};
|
|
91
|
+
readonly max: {
|
|
92
|
+
readonly type: NumberConstructor;
|
|
93
|
+
readonly default: 100;
|
|
94
|
+
};
|
|
95
|
+
readonly step: {
|
|
96
|
+
readonly type: NumberConstructor;
|
|
97
|
+
readonly default: 1;
|
|
98
|
+
};
|
|
99
|
+
readonly size: {
|
|
100
|
+
readonly type: import('vue').PropType<import('.').SliderSize>;
|
|
101
|
+
readonly default: "md";
|
|
102
|
+
};
|
|
103
|
+
readonly shape: {
|
|
104
|
+
readonly type: import('vue').PropType<import('.').SliderShape>;
|
|
105
|
+
readonly default: "clip";
|
|
106
|
+
};
|
|
107
|
+
readonly disabled: {
|
|
108
|
+
readonly type: BooleanConstructor;
|
|
109
|
+
readonly default: false;
|
|
110
|
+
};
|
|
111
|
+
readonly range: {
|
|
112
|
+
readonly type: BooleanConstructor;
|
|
113
|
+
readonly default: false;
|
|
114
|
+
};
|
|
115
|
+
readonly showTooltip: {
|
|
116
|
+
readonly type: BooleanConstructor;
|
|
117
|
+
readonly default: true;
|
|
118
|
+
};
|
|
119
|
+
readonly showStops: {
|
|
120
|
+
readonly type: BooleanConstructor;
|
|
121
|
+
readonly default: false;
|
|
122
|
+
};
|
|
123
|
+
readonly marks: {
|
|
124
|
+
readonly type: import('vue').PropType<import('.').SliderMarks>;
|
|
125
|
+
readonly default: undefined;
|
|
126
|
+
};
|
|
127
|
+
readonly color: {
|
|
128
|
+
readonly type: StringConstructor;
|
|
129
|
+
readonly default: "";
|
|
130
|
+
};
|
|
131
|
+
readonly vertical: {
|
|
132
|
+
readonly type: BooleanConstructor;
|
|
133
|
+
readonly default: false;
|
|
134
|
+
};
|
|
135
|
+
readonly height: {
|
|
136
|
+
readonly type: StringConstructor;
|
|
137
|
+
readonly default: undefined;
|
|
138
|
+
};
|
|
139
|
+
readonly formatTooltip: {
|
|
140
|
+
readonly type: import('vue').PropType<(value: number) => string>;
|
|
141
|
+
readonly default: undefined;
|
|
142
|
+
};
|
|
143
|
+
}>> & Readonly<{
|
|
144
|
+
onInput?: ((value: number | [number, number]) => any) | undefined;
|
|
145
|
+
"onUpdate:modelValue"?: ((value: number | [number, number]) => any) | undefined;
|
|
146
|
+
onChange?: ((value: number | [number, number]) => any) | undefined;
|
|
147
|
+
}>, {
|
|
148
|
+
readonly size: import('../../cyberpunk-vue').Size;
|
|
149
|
+
readonly disabled: boolean;
|
|
150
|
+
readonly color: string;
|
|
151
|
+
readonly shape: import('.').SliderShape;
|
|
152
|
+
readonly height: string;
|
|
153
|
+
readonly modelValue: number | [number, number];
|
|
154
|
+
readonly range: boolean;
|
|
155
|
+
readonly min: number;
|
|
156
|
+
readonly max: number;
|
|
157
|
+
readonly step: number;
|
|
158
|
+
readonly showTooltip: boolean;
|
|
159
|
+
readonly showStops: boolean;
|
|
160
|
+
readonly marks: import('.').SliderMarks;
|
|
161
|
+
readonly vertical: boolean;
|
|
162
|
+
readonly formatTooltip: (value: number) => string;
|
|
163
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
164
|
+
sliderRef: HTMLDivElement;
|
|
165
|
+
}, HTMLDivElement>>;
|
|
166
|
+
export default CpSlider;
|
|
167
|
+
export * from './src/slider';
|
|
168
|
+
export type { SliderInstance } from './src/instance';
|
|
169
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../slider/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAsB,CAAA;AAC3C,eAAe,QAAQ,CAAA;AAEvB,cAAc,cAAc,CAAA;AAC5B,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../slider/src/instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AAEtC,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,MAAM,CAAC,GAAG,OAAO,CAAA"}
|