@opentinyvue/vue-button-group 2.22.0 → 2.23.0

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/lib/index.js CHANGED
@@ -16,7 +16,13 @@ var template = function template2(mode) {
16
16
  return PcTemplate;
17
17
  };
18
18
  var buttonGroupProps = _extends({}, $props, {
19
- size: String,
19
+ size: {
20
+ type: String,
21
+ default: "",
22
+ validator: function validator(val) {
23
+ return ["medium", "small", "mini", ""].includes(val);
24
+ }
25
+ },
20
26
  data: {
21
27
  type: Array,
22
28
  default: function _default() {
@@ -60,7 +66,7 @@ var ButtonGroup = defineComponent({
60
66
  });
61
67
  }
62
68
  });
63
- var version = "2.22.0";
69
+ var version = "2.23.0";
64
70
  ButtonGroup.model = {
65
71
  prop: "modelValue",
66
72
  event: "update:modelValue"
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-button-group",
3
- "version": "2.22.0",
3
+ "version": "2.23.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentinyvue/vue-common": "~2.22.0",
11
- "@opentinyvue/vue-renderless": "~3.22.0",
12
- "@opentinyvue/vue-theme": "~3.22.0",
13
- "@opentinyvue/vue-directive": "~2.22.0",
14
- "@opentinyvue/vue-popover": "~2.22.0",
15
- "@opentinyvue/vue-button": "~2.22.0",
16
- "@opentinyvue/vue-icon": "~2.22.0"
10
+ "@opentinyvue/vue-common": "~2.23.0",
11
+ "@opentinyvue/vue-renderless": "~3.23.0",
12
+ "@opentinyvue/vue-theme": "~3.23.0",
13
+ "@opentinyvue/vue-directive": "~2.23.0",
14
+ "@opentinyvue/vue-popover": "~2.23.0",
15
+ "@opentinyvue/vue-button": "~2.23.0",
16
+ "@opentinyvue/vue-icon": "~2.23.0"
17
17
  },
18
18
  "license": "MIT",
19
19
  "types": "index.d.ts",
package/src/index.d.ts CHANGED
@@ -1,7 +1,11 @@
1
1
  import type { PropType } from 'vue';
2
2
  import type { IButtonGroupNode } from '@opentinyvue/vue-renderless/types/button-group.type';
3
3
  export declare const buttonGroupProps: {
4
- size: StringConstructor;
4
+ size: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ validator: (val: string) => boolean;
8
+ };
5
9
  data: {
6
10
  type: PropType<IButtonGroupNode[]>;
7
11
  default: () => never[];