@opentiny/vue-dropdown-item 2.18.1 → 2.19.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
@@ -28,7 +28,7 @@ var template = function template2(mode) {
28
28
  };
29
29
  var $constants = {
30
30
  ICON_MAP: {
31
- leftWardArrow: "icon-delta-left"
31
+ leftWardArrow: "icon-left-ward-arrow"
32
32
  }
33
33
  };
34
34
  var dropdownItemProps = _extends({}, $props, {
@@ -119,7 +119,7 @@ var DropdownItem = defineComponent({
119
119
  });
120
120
  }
121
121
  });
122
- var version = "2.undefined";
122
+ var version = "2.19.0";
123
123
  DropdownItem.model = {
124
124
  prop: "modelValue",
125
125
  event: "update:modelValue"
package/lib/pc.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, $prefix, props, setup } from '@opentiny/vue-common';
2
2
  import { renderless, api } from '@opentiny/vue-renderless/dropdown-item/vue';
3
- import { iconDeltaLeft } from '@opentiny/vue-icon';
3
+ import { iconLeftWardArrow } from '@opentiny/vue-icon';
4
4
  import '@opentiny/vue-theme/dropdown-item/index.css';
5
5
  import { AutoTip } from '@opentiny/vue-directive';
6
6
 
@@ -87,7 +87,7 @@ var __vue2_script = defineComponent({
87
87
  "effect"
88
88
  ]),
89
89
  components: {
90
- IconDeltaLeft: iconDeltaLeft()
90
+ IconLeftWardArrow: iconLeftWardArrow()
91
91
  },
92
92
  setup: function setup$1(props2, context) {
93
93
  return setup({
@@ -106,22 +106,16 @@ var render = function render2() {
106
106
  directives: [{
107
107
  name: "auto-tip",
108
108
  rawName: "v-auto-tip",
109
- value: _vm.getTip ? {
109
+ value: _vm.state.computedTip ? {
110
110
  always: true,
111
- content: _vm.getTip,
111
+ content: _vm.state.computedTip,
112
112
  effect: _vm.effect,
113
113
  placement: _vm.tipPosition
114
114
  } : false,
115
- expression: "getTip ? { always: true, content: getTip, effect, placement: tipPosition } : false"
115
+ expression: "\n state.computedTip ? { always: true, content: state.computedTip, effect, placement: tipPosition } : false\n "
116
116
  }],
117
117
  ref: "dropdownItem",
118
- staticClass: "tiny-dropdown-item tiny-dropdown-menu__item",
119
- class: {
120
- "is-disabled": _vm.disabled,
121
- "tiny-dropdown-item--divided tiny-dropdown-menu__item--divided": _vm.divided,
122
- "tiny-dropdown-item--check-status": _vm.state.checkedStatus && _vm.selected,
123
- "has-children": _vm.itemData.children && _vm.itemData.children.length
124
- },
118
+ 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" : ""],
125
119
  attrs: {
126
120
  "aria-disabled": _vm.disabled,
127
121
  "tabindex": _vm.disabled ? null : -1
@@ -145,7 +139,7 @@ var render = function render2() {
145
139
  staticClass: "tiny-dropdown-item__content tiny-dropdown-menu__item-content"
146
140
  }, [_vm.icon ? _c(_vm.icon, {
147
141
  tag: "component",
148
- staticClass: "tiny-svg-size"
142
+ staticClass: "tiny-svg-size tiny-dropdown-item__pre-icon"
149
143
  }) : _vm._e(), _c("span", {
150
144
  staticClass: "tiny-dropdown-item__label"
151
145
  }, [_vm._t("default", function() {
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@opentiny/vue-dropdown-item",
3
3
  "type": "module",
4
- "version": "2.18.1",
4
+ "version": "2.19.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-button": "~2.18.0",
12
- "@opentiny/vue-common": "~2.18.0",
13
- "@opentiny/vue-directive": "~2.18.0",
14
- "@opentiny/vue-icon": "~2.18.0",
15
- "@opentiny/vue-popup": "~2.18.0",
16
- "@opentiny/vue-renderless": "~3.18.0",
17
- "@opentiny/vue-theme": "~3.18.0",
18
- "@opentiny/vue-theme-mobile": "~3.18.0"
11
+ "@opentiny/vue-button": "~2.19.0",
12
+ "@opentiny/vue-common": "~2.19.0",
13
+ "@opentiny/vue-directive": "~2.19.0",
14
+ "@opentiny/vue-icon": "~2.19.0",
15
+ "@opentiny/vue-popup": "~2.19.0",
16
+ "@opentiny/vue-renderless": "~3.19.0",
17
+ "@opentiny/vue-theme": "~3.19.0",
18
+ "@opentiny/vue-theme-mobile": "~3.19.0"
19
19
  },
20
20
  "types": "index.d.ts",
21
21
  "scripts": {
package/src/index.d.ts CHANGED
@@ -23,11 +23,11 @@ export declare const dropdownItemProps: {
23
23
  };
24
24
  };
25
25
  };
26
- icon: (ObjectConstructor | StringConstructor)[];
26
+ icon: (StringConstructor | ObjectConstructor)[];
27
27
  disabled: BooleanConstructor;
28
28
  divided: BooleanConstructor;
29
29
  itemData: {
30
- type: (ObjectConstructor | StringConstructor)[];
30
+ type: (StringConstructor | ObjectConstructor)[];
31
31
  default: string;
32
32
  };
33
33
  title: StringConstructor;