@opentiny/vue-dropdown-item 2.28.0 → 2.30.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/index.d.ts CHANGED
@@ -1,13 +1,2 @@
1
- /**
2
- * Copyright (c) 2022 - present TinyVue Authors.
3
- * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
4
- *
5
- * Use of this source code is governed by an MIT-style license.
6
- *
7
- * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
8
- * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
9
- * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
10
- *
11
- */
12
- import DropdownItem from './src/index';
1
+ import { default as DropdownItem } from './src/index';
13
2
  export default DropdownItem;
package/lib/index.js CHANGED
@@ -97,7 +97,7 @@ var dropdownItemProps = _extends({}, $props, {
97
97
  type: String,
98
98
  default: "right"
99
99
  },
100
- effect: {
100
+ tipEffect: {
101
101
  type: String,
102
102
  default: "light"
103
103
  }
package/lib/pc.js CHANGED
@@ -60,7 +60,7 @@ var __vue2_script = defineComponent({
60
60
  "textField",
61
61
  "tip",
62
62
  "tipPosition",
63
- "effect",
63
+ "tipEffect",
64
64
  "isMono"
65
65
  ]),
66
66
  components: {
@@ -87,10 +87,10 @@ var render = function render2() {
87
87
  value: _vm.state.computedTip ? {
88
88
  always: true,
89
89
  content: _vm.state.computedTip,
90
- effect: _vm.effect,
90
+ effect: _vm.tipEffect,
91
91
  placement: _vm.tipPosition
92
92
  } : false,
93
- expression: "\n state.computedTip ? { always: true, content: state.computedTip, effect, placement: tipPosition } : false\n "
93
+ expression: "\n state.computedTip ? { always: true, content: state.computedTip, effect: tipEffect, placement: tipPosition } : false\n "
94
94
  }],
95
95
  ref: "dropdownItem",
96
96
  class: ["tiny-dropdown-item", "tiny-dropdown-menu__item", _vm.state.sizeClass, _vm.disabled ? "is-disabled" : "", _vm.divided ? "tiny-dropdown-item--divided tiny-dropdown-menu__item--divided" : "", _vm.state.checkedStatus && _vm.selected ? "tiny-dropdown-item--check-status" : "", _vm.itemData.children && _vm.itemData.children.length ? "has-children" : ""],
@@ -139,7 +139,8 @@ var render = function render2() {
139
139
  "disabled": item.disabled,
140
140
  "divided": item.divided,
141
141
  "tip": item.tip,
142
- "tip-position": item.tipPosition
142
+ "tip-position": item.tipPosition,
143
+ "tip-effect": item.tipEffect
143
144
  }
144
145
  }, [_vm._t("default", null, {
145
146
  "itemData": item
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opentiny/vue-dropdown-item",
3
3
  "type": "module",
4
- "version": "2.28.0",
4
+ "version": "2.30.0",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
8
8
  "main": "./lib/index.js",
9
9
  "module": "./lib/index.js",
10
10
  "dependencies": {
11
- "@opentiny/vue-common": "~2.28.0",
12
- "@opentiny/vue-directive": "~2.28.0",
13
- "@opentiny/vue-icon": "~2.28.0",
14
- "@opentiny/vue-renderless": "~3.28.0",
15
- "@opentiny/vue-theme": "~3.28.0"
11
+ "@opentiny/vue-common": "~2.30.0",
12
+ "@opentiny/vue-directive": "~2.30.0",
13
+ "@opentiny/vue-icon": "~2.30.0",
14
+ "@opentiny/vue-renderless": "~3.30.0",
15
+ "@opentiny/vue-theme": "~3.30.0"
16
16
  },
17
17
  "types": "index.d.ts",
18
18
  "scripts": {
package/src/index.d.ts CHANGED
@@ -23,11 +23,11 @@ export declare const dropdownItemProps: {
23
23
  };
24
24
  };
25
25
  };
26
- icon: (StringConstructor | ObjectConstructor)[];
26
+ icon: (ObjectConstructor | StringConstructor)[];
27
27
  disabled: BooleanConstructor;
28
28
  divided: BooleanConstructor;
29
29
  itemData: {
30
- type: (StringConstructor | ObjectConstructor)[];
30
+ type: (ObjectConstructor | StringConstructor)[];
31
31
  default: string;
32
32
  };
33
33
  title: StringConstructor;
@@ -78,7 +78,7 @@ export declare const dropdownItemProps: {
78
78
  type: StringConstructor;
79
79
  default: string;
80
80
  };
81
- effect: {
81
+ tipEffect: {
82
82
  type: StringConstructor;
83
83
  default: string;
84
84
  };
@@ -1,2 +0,0 @@
1
- declare const _default: any;
2
- export default _default;
package/src/pc.vue.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const _default: any;
2
- export default _default;