@varlet/ui 1.26.2 → 1.26.5

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 (39) hide show
  1. package/es/checkbox/Checkbox.js +6 -1
  2. package/es/checkbox-group/CheckboxGroup.js +7 -1
  3. package/es/date-picker/DatePicker.js +87 -15
  4. package/es/date-picker/date-picker.css +1 -1
  5. package/es/date-picker/date-picker.less +1 -0
  6. package/es/date-picker/props.js +4 -0
  7. package/es/date-picker/src/day-picker-panel.js +10 -1
  8. package/es/date-picker/src/month-picker-panel.js +10 -1
  9. package/es/date-picker/src/panel-header.js +2 -1
  10. package/es/image-preview/ImagePreview.js +7 -3
  11. package/es/image-preview/imagePreview.css +1 -1
  12. package/es/image-preview/imagePreview.less +11 -1
  13. package/es/rate/Rate.js +2 -1
  14. package/es/rate/props.js +3 -0
  15. package/es/style.css +1 -1
  16. package/es/varlet.esm.js +180 -69
  17. package/highlight/attributes.json +8 -0
  18. package/highlight/tags.json +3 -1
  19. package/highlight/web-types.json +23 -1
  20. package/lib/checkbox/Checkbox.js +6 -1
  21. package/lib/checkbox-group/CheckboxGroup.js +7 -1
  22. package/lib/date-picker/DatePicker.js +86 -14
  23. package/lib/date-picker/date-picker.css +1 -1
  24. package/lib/date-picker/date-picker.less +1 -0
  25. package/lib/date-picker/props.js +4 -0
  26. package/lib/date-picker/src/day-picker-panel.js +10 -1
  27. package/lib/date-picker/src/month-picker-panel.js +10 -1
  28. package/lib/date-picker/src/panel-header.js +2 -1
  29. package/lib/image-preview/ImagePreview.js +7 -3
  30. package/lib/image-preview/imagePreview.css +1 -1
  31. package/lib/image-preview/imagePreview.less +11 -1
  32. package/lib/rate/Rate.js +2 -1
  33. package/lib/rate/props.js +3 -0
  34. package/lib/style.css +1 -1
  35. package/package.json +4 -4
  36. package/types/datePicker.d.ts +1 -0
  37. package/types/radioGroup.d.ts +3 -3
  38. package/types/rate.d.ts +1 -0
  39. package/umd/varlet.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "1.26.2",
3
+ "version": "1.26.5",
4
4
  "description": "A material like components library",
5
5
  "module": "es/index.js",
6
6
  "main": "lib/index.js",
@@ -39,13 +39,13 @@
39
39
  },
40
40
  "gitHead": "ee9c3866bedad96c86365b0f9888a3a6bb781b1f",
41
41
  "dependencies": {
42
- "@varlet/icons": "1.26.2",
42
+ "@varlet/icons": "1.26.5",
43
43
  "dayjs": "^1.10.4",
44
44
  "decimal.js": "^10.2.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@varlet/cli": "1.26.2",
48
- "@varlet/touch-emulator": "1.26.2",
47
+ "@varlet/cli": "1.26.5",
48
+ "@varlet/touch-emulator": "1.26.5",
49
49
  "@vue/test-utils": "2.0.0-rc.6",
50
50
  "@vue/runtime-core": "3.2.25",
51
51
  "typescript": "^4.4.4",
@@ -14,6 +14,7 @@ export interface DatePickerProps {
14
14
  readonly?: boolean
15
15
  multiple?: boolean
16
16
  range?: boolean
17
+ touchable?: boolean
17
18
  onChange?: (value: string | string[]) => void
18
19
  'onUpdate:modelValue'?: (value: string | string[]) => void
19
20
  }
@@ -3,12 +3,12 @@ import { VarComponent } from './varComponent'
3
3
  export type RadioGroupValidateTriggers = 'onChange'
4
4
 
5
5
  export interface RadioGroupProps {
6
- modelValue?: any[]
6
+ modelValue?: any
7
7
  direction?: 'horizontal' | 'vertical'
8
8
  validateTrigger?: Array<RadioGroupValidateTriggers>
9
9
  rules?: Array<(value: any) => any>
10
- onChange?: (value: Array<any>) => void
11
- 'onUpdate:modelValue'?: (value: Array<any>) => void
10
+ onChange?: (value: any) => void
11
+ 'onUpdate:modelValue'?: (value: any) => void
12
12
  }
13
13
 
14
14
  export class RadioGroup extends VarComponent {
package/types/rate.d.ts CHANGED
@@ -9,6 +9,7 @@ export interface RateProps {
9
9
  disabledColor?: string
10
10
  emptyIcon?: string
11
11
  halfIcon?: string
12
+ namespace?: string
12
13
  size?: string | number
13
14
  gap?: string | number
14
15
  half?: boolean