@opentinyvue/vue-breadcrumb-item 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
@@ -21,7 +21,18 @@ var breadcrumbItemProps = _extends({}, $props, {
21
21
  type: Boolean,
22
22
  default: false
23
23
  },
24
- size: String,
24
+ size: {
25
+ type: String,
26
+ default: "",
27
+ validator: function validator(val) {
28
+ return [
29
+ /* 'large', */
30
+ "medium",
31
+ /* 'small', 'mini', */
32
+ ""
33
+ ].includes(val);
34
+ }
35
+ },
25
36
  option: {
26
37
  type: Object,
27
38
  default: function _default() {
@@ -40,7 +51,7 @@ var BreadcrumbItem = defineComponent({
40
51
  });
41
52
  }
42
53
  });
43
- var version = "2.22.0";
54
+ var version = "2.23.0";
44
55
  BreadcrumbItem.install = function(Vue) {
45
56
  Vue.component(BreadcrumbItem.name, BreadcrumbItem);
46
57
  };
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-breadcrumb-item",
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-renderless": "~3.22.0",
11
- "@opentinyvue/vue-common": "~2.22.0",
12
- "@opentinyvue/vue-theme": "~3.22.0"
10
+ "@opentinyvue/vue-renderless": "~3.23.0",
11
+ "@opentinyvue/vue-common": "~2.23.0",
12
+ "@opentinyvue/vue-theme": "~3.23.0"
13
13
  },
14
14
  "license": "MIT",
15
15
  "types": "index.d.ts",
package/src/index.d.ts CHANGED
@@ -4,7 +4,11 @@ export declare const breadcrumbItemProps: {
4
4
  type: BooleanConstructor;
5
5
  default: boolean;
6
6
  };
7
- size: StringConstructor;
7
+ size: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ validator: (val: string) => boolean;
11
+ };
8
12
  option: {
9
13
  type: ObjectConstructor;
10
14
  default: () => {};