@aurouscia/au-color-picker 0.5.0 → 0.5.1

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.
Files changed (2) hide show
  1. package/README.md +13 -4
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -62,24 +62,33 @@ function enforceToDemo(){
62
62
 
63
63
  ### 组件属性定义
64
64
  ```ts
65
+ //位置描述
66
+ type Pos = 'left'|'right'|number
67
+
65
68
  //AuColorPicker的属性
66
69
  export interface PickerProps{
67
70
  initial?: string //初始值
68
71
  entryStyles?: CSSProperties //入口按钮的样式
69
72
  entryActiveStyles?: CSSProperties //入口按钮的样式(当面板展开)
70
73
  entryClassName?: string //入口按钮的类名
71
- pos?: 'left'|'right', //面板靠左还是靠右
72
- panelBaseZIndex?:number, //面板的zIndex基础值
74
+ pos?: Pos //面板位置描述
75
+ panelBaseZIndex?:number //面板的zIndex基础值
76
+ entryRespondDelay?:number //入口按钮点击后,面板展开的延迟(ms)
77
+ panelClickStopPropagation?:boolean //面板点击是否阻止冒泡
78
+ showPackageName?:boolean //是否显示包名(帮我打广告)
73
79
  }
74
80
 
75
81
  //AuColorPickerPresetsNested的属性
76
82
  export interface PickerWithPresetsProps extends PickerProps{
77
83
  initialSelectedPreset?:string //初始选择预设名称(undefined即为自定义)
78
84
  presets?: NamedPreset[] //预设列表
85
+ posInternal?: Pos //使用自定义时,自定义颜色选择器面板的位置描述
79
86
  }
87
+
88
+ //预设列表项描述
80
89
  export interface NamedPreset{
81
- colorHex:string, //预设值
82
- name:string //预设名称
90
+ colorHex:string,
91
+ name:string
83
92
  }
84
93
  ```
85
94
 
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "color",
15
15
  "component"
16
16
  ],
17
- "version": "0.5.0",
17
+ "version": "0.5.1",
18
18
  "type": "module",
19
19
  "files": [
20
20
  "dist"
@@ -37,15 +37,15 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "color-convert": "^2.0.1",
40
- "vue": "^3.5.13"
40
+ "vue": "^3.5.16"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/color-convert": "^2.0.4",
44
- "@types/node": "^22.13.5",
45
- "@vitejs/plugin-vue": "^5.2.1",
46
- "sass": "^1.85.0",
47
- "typescript": "^5.7.3",
48
- "vite": "^6.1.1",
49
- "vite-plugin-dts": "^4.5.0"
44
+ "@types/node": "^22.15.29",
45
+ "@vitejs/plugin-vue": "^5.2.4",
46
+ "sass": "^1.89.1",
47
+ "typescript": "^5.8.3",
48
+ "vite": "^6.3.5",
49
+ "vite-plugin-dts": "^4.5.4"
50
50
  }
51
51
  }