@cyberpunk-vue/components 1.5.1 → 1.5.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/dropdown/index.d.ts +15 -0
- package/dist/dropdown/index.d.ts.map +1 -1
- package/dist/dropdown/src/dropdown.d.ts +10 -0
- package/dist/dropdown/src/dropdown.d.ts.map +1 -1
- package/dist/dropdown/src/dropdown.vue.d.ts +9 -0
- package/dist/dropdown/src/dropdown.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +11 -1
- package/package.json +4 -4
package/dist/dropdown/index.d.ts
CHANGED
|
@@ -97,6 +97,10 @@ export declare const CpDropdown: import('../utils').SFCWithInstall<{
|
|
|
97
97
|
readonly type: NumberConstructor;
|
|
98
98
|
readonly default: 150;
|
|
99
99
|
};
|
|
100
|
+
readonly width: {
|
|
101
|
+
readonly type: import('vue').PropType<string | number>;
|
|
102
|
+
readonly default: "";
|
|
103
|
+
};
|
|
100
104
|
}>> & Readonly<{
|
|
101
105
|
onClear?: (() => any) | undefined;
|
|
102
106
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
@@ -119,6 +123,7 @@ export declare const CpDropdown: import('../utils').SFCWithInstall<{
|
|
|
119
123
|
visibleChange: (visible: boolean) => void;
|
|
120
124
|
}, import('vue').PublicProps, {
|
|
121
125
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
126
|
+
readonly width: string | number;
|
|
122
127
|
readonly variant: import('.').DropdownVariant;
|
|
123
128
|
readonly disabled: boolean;
|
|
124
129
|
readonly color: string;
|
|
@@ -231,6 +236,10 @@ export declare const CpDropdown: import('../utils').SFCWithInstall<{
|
|
|
231
236
|
readonly type: NumberConstructor;
|
|
232
237
|
readonly default: 150;
|
|
233
238
|
};
|
|
239
|
+
readonly width: {
|
|
240
|
+
readonly type: import('vue').PropType<string | number>;
|
|
241
|
+
readonly default: "";
|
|
242
|
+
};
|
|
234
243
|
}>> & Readonly<{
|
|
235
244
|
onClear?: (() => any) | undefined;
|
|
236
245
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
@@ -246,6 +255,7 @@ export declare const CpDropdown: import('../utils').SFCWithInstall<{
|
|
|
246
255
|
blur: () => void;
|
|
247
256
|
}, {}, {}, {}, {
|
|
248
257
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
258
|
+
readonly width: string | number;
|
|
249
259
|
readonly variant: import('.').DropdownVariant;
|
|
250
260
|
readonly disabled: boolean;
|
|
251
261
|
readonly color: string;
|
|
@@ -350,6 +360,10 @@ export declare const CpDropdown: import('../utils').SFCWithInstall<{
|
|
|
350
360
|
readonly type: NumberConstructor;
|
|
351
361
|
readonly default: 150;
|
|
352
362
|
};
|
|
363
|
+
readonly width: {
|
|
364
|
+
readonly type: import('vue').PropType<string | number>;
|
|
365
|
+
readonly default: "";
|
|
366
|
+
};
|
|
353
367
|
}>> & Readonly<{
|
|
354
368
|
onClear?: (() => any) | undefined;
|
|
355
369
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
@@ -372,6 +386,7 @@ export declare const CpDropdown: import('../utils').SFCWithInstall<{
|
|
|
372
386
|
visibleChange: (visible: boolean) => void;
|
|
373
387
|
}, string, {
|
|
374
388
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
389
|
+
readonly width: string | number;
|
|
375
390
|
readonly variant: import('.').DropdownVariant;
|
|
376
391
|
readonly disabled: boolean;
|
|
377
392
|
readonly color: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../dropdown/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../dropdown/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAwB,CAAA;AAC/C,eAAe,UAAU,CAAA;AAEzB,cAAc,gBAAgB,CAAA;AAC9B,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -234,6 +234,16 @@ export declare const dropdownProps: {
|
|
|
234
234
|
readonly type: NumberConstructor;
|
|
235
235
|
readonly default: 150;
|
|
236
236
|
};
|
|
237
|
+
/**
|
|
238
|
+
* 下拉框宽度
|
|
239
|
+
* 支持数字 (px) 或带单位字符串 (如 '200px', '15rem')。
|
|
240
|
+
* 为空时默认 100%(铺满父容器)。
|
|
241
|
+
* @default ''
|
|
242
|
+
*/
|
|
243
|
+
readonly width: {
|
|
244
|
+
readonly type: PropType<string | number>;
|
|
245
|
+
readonly default: "";
|
|
246
|
+
};
|
|
237
247
|
};
|
|
238
248
|
export type DropdownProps = ExtractPropTypes<typeof dropdownProps>;
|
|
239
249
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../dropdown/src/dropdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACrD,OAAO,KAAK,EAA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Ae,CAAC;;;IAG3C;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;uBAEe,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C;;;OAGG;;uBAEyB,QAAQ,CAAC,MAAM,GAAG,WAAW,CAAC;;;IAG1D;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;;;OAKG;;;;;IAKH;;;;;OAKG;;uBAEyB,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;CAG7C,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,aAAa,CAAC,CAAA;AAElE;;GAEG;AACH,eAAO,MAAM,aAAa;IACxB;;OAEG;iCAC0B,MAAM,GAAG,MAAM;IAC5C;;OAEG;oBACa,MAAM,GAAG,MAAM;IAC/B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;6BACsB,OAAO;CACjC,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAA"}
|
|
@@ -98,6 +98,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
98
98
|
readonly type: NumberConstructor;
|
|
99
99
|
readonly default: 150;
|
|
100
100
|
};
|
|
101
|
+
readonly width: {
|
|
102
|
+
readonly type: import('vue').PropType<string | number>;
|
|
103
|
+
readonly default: "";
|
|
104
|
+
};
|
|
101
105
|
}>, {
|
|
102
106
|
/** @description 打开下拉面板 */
|
|
103
107
|
open: () => void;
|
|
@@ -197,6 +201,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
197
201
|
readonly type: NumberConstructor;
|
|
198
202
|
readonly default: 150;
|
|
199
203
|
};
|
|
204
|
+
readonly width: {
|
|
205
|
+
readonly type: import('vue').PropType<string | number>;
|
|
206
|
+
readonly default: "";
|
|
207
|
+
};
|
|
200
208
|
}>> & Readonly<{
|
|
201
209
|
onClear?: (() => any) | undefined;
|
|
202
210
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
@@ -206,6 +214,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
206
214
|
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
207
215
|
}>, {
|
|
208
216
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
217
|
+
readonly width: string | number;
|
|
209
218
|
readonly variant: import('./dropdown').DropdownVariant;
|
|
210
219
|
readonly disabled: boolean;
|
|
211
220
|
readonly color: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.vue.d.ts","sourceRoot":"","sources":["../../../dropdown/src/dropdown.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dropdown.vue.d.ts","sourceRoot":"","sources":["../../../dropdown/src/dropdown.vue"],"names":[],"mappings":"AAocA,OAAO,EAAgC,KAAK,cAAc,EAAE,MAAM,YAAY,CAAA;AA8U9E,iBAAS,cAAc;WAgMT,OAAO,IAA6B;;wBAhBtB,GAAG;uBACH,GAAG;;;YACD,GAAG;;;;;;;;;EAmBhC;AAkCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA/QnB,0BAA0B;;IAE1B,0BAA0B;;IAE1B,0BAA0B;;IAE1B,4BAA4B;;IAE5B,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiR5B,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"}
|