@opentiny/vue-dropdown-item 2.18.1 → 2.20.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.20.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
 
@@ -84,17 +84,19 @@ var __vue2_script = defineComponent({
84
84
  "textField",
85
85
  "tip",
86
86
  "tipPosition",
87
- "effect"
87
+ "effect",
88
+ "isMono"
88
89
  ]),
89
90
  components: {
90
- IconDeltaLeft: iconDeltaLeft()
91
+ IconLeftWardArrow: iconLeftWardArrow()
91
92
  },
92
93
  setup: function setup$1(props2, context) {
93
94
  return setup({
94
95
  props: props2,
95
96
  context,
96
97
  renderless,
97
- api
98
+ api,
99
+ mono: props2.isMono
98
100
  });
99
101
  }
100
102
  });
@@ -106,22 +108,16 @@ var render = function render2() {
106
108
  directives: [{
107
109
  name: "auto-tip",
108
110
  rawName: "v-auto-tip",
109
- value: _vm.getTip ? {
111
+ value: _vm.state.computedTip ? {
110
112
  always: true,
111
- content: _vm.getTip,
113
+ content: _vm.state.computedTip,
112
114
  effect: _vm.effect,
113
115
  placement: _vm.tipPosition
114
116
  } : false,
115
- expression: "getTip ? { always: true, content: getTip, effect, placement: tipPosition } : false"
117
+ expression: "\n state.computedTip ? { always: true, content: state.computedTip, effect, placement: tipPosition } : false\n "
116
118
  }],
117
119
  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
- },
120
+ 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
121
  attrs: {
126
122
  "aria-disabled": _vm.disabled,
127
123
  "tabindex": _vm.disabled ? null : -1
@@ -145,7 +141,7 @@ var render = function render2() {
145
141
  staticClass: "tiny-dropdown-item__content tiny-dropdown-menu__item-content"
146
142
  }, [_vm.icon ? _c(_vm.icon, {
147
143
  tag: "component",
148
- staticClass: "tiny-svg-size"
144
+ staticClass: "tiny-svg-size tiny-dropdown-item__pre-icon"
149
145
  }) : _vm._e(), _c("span", {
150
146
  staticClass: "tiny-dropdown-item__label"
151
147
  }, [_vm._t("default", function() {
@@ -160,7 +156,9 @@ var render = function render2() {
160
156
  attrs: {
161
157
  "label": item[_vm.state.textField],
162
158
  "item-data": item,
159
+ "_constants": _vm._constants,
163
160
  "icon": item.icon,
161
+ "is-mono": true,
164
162
  "disabled": item.disabled,
165
163
  "divided": item.divided,
166
164
  "tip": item.tip,
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.20.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.20.0",
12
+ "@opentiny/vue-common": "~2.20.0",
13
+ "@opentiny/vue-directive": "~2.20.0",
14
+ "@opentiny/vue-icon": "~2.20.0",
15
+ "@opentiny/vue-popup": "~2.20.0",
16
+ "@opentiny/vue-renderless": "~3.20.0",
17
+ "@opentiny/vue-theme": "~3.20.0",
18
+ "@opentiny/vue-theme-mobile": "~3.20.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;