@cyberpunk-vue/components 1.5.1 → 1.5.3
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/index.mjs
CHANGED
|
@@ -4687,6 +4687,16 @@ const Et = {
|
|
|
4687
4687
|
clearDuration: {
|
|
4688
4688
|
type: Number,
|
|
4689
4689
|
default: 150
|
|
4690
|
+
},
|
|
4691
|
+
/**
|
|
4692
|
+
* 下拉框宽度
|
|
4693
|
+
* 支持数字 (px) 或带单位字符串 (如 '200px', '15rem')。
|
|
4694
|
+
* 为空时默认 100%(铺满父容器)。
|
|
4695
|
+
* @default ''
|
|
4696
|
+
*/
|
|
4697
|
+
width: {
|
|
4698
|
+
type: [String, Number],
|
|
4699
|
+
default: ""
|
|
4690
4700
|
}
|
|
4691
4701
|
}, nl = {
|
|
4692
4702
|
/**
|
|
@@ -4748,7 +4758,7 @@ const Et = {
|
|
|
4748
4758
|
d.is("custom-size", !ae(e.size))
|
|
4749
4759
|
]), S = s(() => {
|
|
4750
4760
|
const B = {};
|
|
4751
|
-
return e.color && (B["--cp-dropdown-custom-color"] = e.color, B["--cp-dropdown-custom-color-light"] = `${e.color}33`), e.inactiveColor && (B["--cp-dropdown-inactive-color"] = e.inactiveColor), e.placeholderColor && (B["--cp-dropdown-placeholder-color"] = e.placeholderColor), ae(e.size) || (B["--cp-dropdown-height"] = Se(e.size, c)), e.clearDuration !== 150 && (B["--cp-dropdown-clear-duration"] = `${e.clearDuration}ms`), B;
|
|
4761
|
+
return e.color && (B["--cp-dropdown-custom-color"] = e.color, B["--cp-dropdown-custom-color-light"] = `${e.color}33`), e.inactiveColor && (B["--cp-dropdown-inactive-color"] = e.inactiveColor), e.placeholderColor && (B["--cp-dropdown-placeholder-color"] = e.placeholderColor), ae(e.size) || (B["--cp-dropdown-height"] = Se(e.size, c)), e.clearDuration !== 150 && (B["--cp-dropdown-clear-duration"] = `${e.clearDuration}ms`), e.width && (B["--cp-dropdown-width"] = typeof e.width == "number" ? `${e.width}px` : e.width), B;
|
|
4752
4762
|
}), J = s(() => ({
|
|
4753
4763
|
top: `${P.value.top}px`,
|
|
4754
4764
|
left: `${P.value.left}px`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberpunk-vue/components",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "Cyberpunk Vue components - A futuristic Vue 3 component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"vue": "^3.5.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cyberpunk-vue/
|
|
27
|
-
"@cyberpunk-vue/
|
|
28
|
-
"@cyberpunk-vue/theme-chalk": "1.5.
|
|
26
|
+
"@cyberpunk-vue/hooks": "1.5.3",
|
|
27
|
+
"@cyberpunk-vue/constants": "1.5.3",
|
|
28
|
+
"@cyberpunk-vue/theme-chalk": "1.5.3"
|
|
29
29
|
},
|
|
30
30
|
"author": "Juxest",
|
|
31
31
|
"license": "MIT",
|