@varlet/ui 3.2.13 → 3.2.14

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.13",
3
+ "version": "3.2.14",
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/icons": "3.2.13",
52
- "@varlet/shared": "3.2.13",
53
- "@varlet/use": "3.2.13"
51
+ "@varlet/use": "3.2.14",
52
+ "@varlet/icons": "3.2.14",
53
+ "@varlet/shared": "3.2.14"
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.13",
70
- "@varlet/ui": "3.2.13",
71
- "@varlet/touch-emulator": "3.2.13"
69
+ "@varlet/touch-emulator": "3.2.14",
70
+ "@varlet/cli": "3.2.14",
71
+ "@varlet/ui": "3.2.14"
72
72
  },
73
73
  "scripts": {
74
74
  "dev": "varlet-cli dev",
package/types/appBar.d.ts CHANGED
@@ -16,6 +16,7 @@ export interface AppBarProps extends BasicAttributes {
16
16
  imageLinearGradient?: string
17
17
  safeAreaTop?: boolean
18
18
  fixed?: boolean
19
+ placeholder?: boolean
19
20
  zIndex?: number | string
20
21
  }
21
22
 
package/types/radio.d.ts CHANGED
@@ -22,13 +22,17 @@ export interface RadioProps extends BasicAttributes {
22
22
  'onUpdate:modelValue'?: ListenerProp<(value: any) => void>
23
23
  }
24
24
 
25
+ export interface RadioData {
26
+ checked: boolean
27
+ }
28
+
25
29
  export class Radio extends VarComponent {
26
30
  static setPropsDefaults: SetPropsDefaults<RadioProps>
27
31
 
28
32
  $props: RadioProps
29
33
 
30
34
  $slots: {
31
- default(): VNode[]
35
+ default(data: RadioData): VNode[]
32
36
  'checked-icon'(): VNode[]
33
37
  'unchecked-icon'(): VNode[]
34
38
  }
@@ -5,17 +5,30 @@ 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 radioGroupProps: Record<keyof RadioGroupProps, any>
11
11
 
12
12
  export type RadioGroupValidateTrigger = 'onChange'
13
13
 
14
+ export type RadioGroupOptionLabelRender = (option: CheckboxGroupOption, checked: boolean) => VNodeChild
15
+
16
+ export interface RadioGroupOption {
17
+ label?: string | VNode | RadioGroupOptionLabelRender
18
+ value?: any
19
+ disabled?: boolean
20
+
21
+ [key: PropertyKey]: any
22
+ }
23
+
14
24
  export { RadioGroupDirection }
15
25
 
16
26
  export interface RadioGroupProps extends BasicAttributes {
17
27
  modelValue?: any
18
28
  direction?: RadioGroupDirection
29
+ options?: Array<RadioGroupOption>
30
+ labelKey?: string
31
+ valueKey?: string
19
32
  validateTrigger?: Array<RadioGroupValidateTrigger>
20
33
  rules?: Array<(value: any) => any>
21
34
  onChange?: ListenerProp<(value: any) => void>