@varlet/ui 3.2.10 → 3.2.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "3.2.10",
3
+ "version": "3.2.11",
4
4
  "description": "A material like components library",
5
5
  "main": "lib/varlet.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -48,9 +48,9 @@
48
48
  "@popperjs/core": "^2.11.6",
49
49
  "dayjs": "^1.10.4",
50
50
  "decimal.js": "^10.2.1",
51
- "@varlet/shared": "3.2.10",
52
- "@varlet/icons": "3.2.10",
53
- "@varlet/use": "3.2.10"
51
+ "@varlet/icons": "3.2.11",
52
+ "@varlet/shared": "3.2.11",
53
+ "@varlet/use": "3.2.11"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@vue/runtime-core": "3.4.21",
@@ -66,9 +66,9 @@
66
66
  "typescript": "^5.1.5",
67
67
  "vue": "3.4.21",
68
68
  "vue-router": "4.2.0",
69
- "@varlet/cli": "3.2.10",
70
- "@varlet/ui": "3.2.10",
71
- "@varlet/touch-emulator": "3.2.10"
69
+ "@varlet/ui": "3.2.11",
70
+ "@varlet/touch-emulator": "3.2.11",
71
+ "@varlet/cli": "3.2.11"
72
72
  },
73
73
  "scripts": {
74
74
  "dev": "varlet-cli dev",
@@ -12,6 +12,7 @@ export interface BottomNavigationProps extends BasicAttributes {
12
12
  zIndex?: number | string
13
13
  activeColor?: string
14
14
  inactiveColor?: string
15
+ placeholder?: boolean
15
16
  fabProps?: Partial<ButtonProps>
16
17
  variant?: boolean
17
18
  onChange?: ListenerProp<(active: string | number) => void>
@@ -5,17 +5,26 @@ import {
5
5
  ListenerProp,
6
6
  SetPropsDefaults,
7
7
  } from './varComponent'
8
- import { VNode } from 'vue'
8
+ import { VNode, VNodeChild } from 'vue'
9
9
 
10
10
  export declare const checkboxGroupProps: Record<keyof CheckboxGroupProps, any>
11
11
 
12
12
  export type CheckboxGroupValidateTrigger = 'onChange'
13
13
 
14
+ export type CheckboxGroupOptionLabelRender = (option: CheckboxGroupOption, checked: boolean) => VNodeChild
15
+
16
+ export interface CheckboxGroupOption {
17
+ label?: string | VNode | CheckboxGroupOptionLabelRender
18
+ disabled?: boolean
19
+ value?: any
20
+ }
21
+
14
22
  export { CheckboxGroupDirection }
15
23
 
16
24
  export interface CheckboxGroupProps extends BasicAttributes {
17
25
  modelValue?: any[]
18
26
  max?: string | number
27
+ options?: Array<CheckboxGroupOption>
19
28
  direction?: CheckboxGroupDirection
20
29
  validateTrigger?: Array<CheckboxGroupValidateTrigger>
21
30
  rules?: Array<(value: any) => any>