@opentinyvue/vue-button-group 3.21.0 → 3.22.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.
package/lib/index.js CHANGED
@@ -7,7 +7,7 @@ function _extends() {
7
7
  return n;
8
8
  }, _extends.apply(null, arguments);
9
9
  }
10
- import { defineComponent, $prefix, $setup, $props } from "@opentinyvue/vue-common";
10
+ import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
11
11
  import PcTemplate from "./pc.js";
12
12
  import "@opentinyvue/vue-theme/button-group/index.css";
13
13
  var template = function template2(mode) {
@@ -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 = "3.21.0";
69
+ var version = "3.undefined";
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": "3.21.0",
3
+ "version": "3.22.1",
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": "~3.21.0",
11
- "@opentinyvue/vue-renderless": "~3.21.0",
12
- "@opentinyvue/vue-theme": "~3.21.0",
13
- "@opentinyvue/vue-directive": "~3.21.0",
14
- "@opentinyvue/vue-popover": "~3.21.0",
15
- "@opentinyvue/vue-button": "~3.21.0",
16
- "@opentinyvue/vue-icon": "~3.21.0"
10
+ "@opentinyvue/vue-common": "~3.22.0",
11
+ "@opentinyvue/vue-renderless": "~3.22.0",
12
+ "@opentinyvue/vue-theme": "~3.22.0",
13
+ "@opentinyvue/vue-directive": "~3.22.0",
14
+ "@opentinyvue/vue-popover": "~3.22.0",
15
+ "@opentinyvue/vue-button": "~3.22.0",
16
+ "@opentinyvue/vue-icon": "~3.22.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[];
@@ -34,7 +38,11 @@ export declare const buttonGroupProps: {
34
38
  tiny_chart_theme: ObjectConstructor;
35
39
  };
36
40
  declare const _default: import("@vue/runtime-core").DefineComponent<{
37
- size: StringConstructor;
41
+ size: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ validator: (val: string) => boolean;
45
+ };
38
46
  data: {
39
47
  type: PropType<IButtonGroupNode[]>;
40
48
  default: () => never[];
@@ -68,7 +76,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
68
76
  }, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
69
77
  [key: string]: any;
70
78
  }>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
71
- size: StringConstructor;
79
+ size: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ validator: (val: string) => boolean;
83
+ };
72
84
  data: {
73
85
  type: PropType<IButtonGroupNode[]>;
74
86
  default: () => never[];
@@ -101,6 +113,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
101
113
  tiny_chart_theme: ObjectConstructor;
102
114
  }>>, {
103
115
  disabled: boolean;
116
+ size: string;
104
117
  data: IButtonGroupNode[];
105
118
  tiny_mode_root: boolean;
106
119
  border: boolean;
package/src/pc.vue.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import type { IButtonGroupApi } from '@opentinyvue/vue-renderless/types/button-group.type';
2
2
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
3
3
  disabled?: any;
4
- data?: any;
5
4
  size?: any;
5
+ data?: any;
6
6
  tiny_mode?: any;
7
7
  tiny_mode_root?: any;
8
8
  tiny_template?: any;
@@ -19,8 +19,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
19
19
  showEdit?: any;
20
20
  }>, IButtonGroupApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "update:modelValue" | "edit")[], "change" | "update:modelValue" | "edit", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
21
21
  disabled?: any;
22
- data?: any;
23
22
  size?: any;
23
+ data?: any;
24
24
  tiny_mode?: any;
25
25
  tiny_mode_root?: any;
26
26
  tiny_template?: any;
@@ -41,8 +41,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
41
41
  onEdit?: ((...args: any[]) => any) | undefined;
42
42
  }, {
43
43
  readonly disabled?: any;
44
- readonly data?: any;
45
44
  readonly size?: any;
45
+ readonly data?: any;
46
46
  readonly tiny_mode?: any;
47
47
  readonly tiny_mode_root?: any;
48
48
  readonly tiny_template?: any;