@opentiny/vue-dropdown-item 2.17.0 → 2.18.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.
Files changed (3) hide show
  1. package/lib/index.js +1 -1
  2. package/lib/pc.js +18 -10
  3. package/package.json +12 -12
package/lib/index.js CHANGED
@@ -115,7 +115,7 @@ var DropdownItem = defineComponent({
115
115
  });
116
116
  }
117
117
  });
118
- var version = "2.17.0";
118
+ var version = "2.18.0";
119
119
  DropdownItem.model = {
120
120
  prop: "modelValue",
121
121
  event: "update:modelValue"
package/lib/pc.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, $prefix, props, setup } from '@opentiny/vue-common';
2
2
  import { renderless, api } from '@opentiny/vue-renderless/dropdown-item/vue';
3
3
  import { iconDeltaLeft } from '@opentiny/vue-icon';
4
- import Tooltip from '@opentiny/vue-tooltip';
5
4
  import '@opentiny/vue-theme/dropdown-item/index.css';
5
+ import { AutoTip } from '@opentiny/vue-directive';
6
6
 
7
7
  function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
8
8
  var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
@@ -61,6 +61,9 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
61
61
  var __vue2_script = defineComponent({
62
62
  name: $prefix + "DropdownItem",
63
63
  componentName: $prefix + "DropdownItem",
64
+ directives: {
65
+ AutoTip
66
+ },
64
67
  emits: ["item-click", "update:modelValue", "change", "closed", "open", "opened", "close", "confirm", "reset"],
65
68
  props: [].concat(props, [
66
69
  "disabled",
@@ -83,8 +86,7 @@ var __vue2_script = defineComponent({
83
86
  "tipPosition"
84
87
  ]),
85
88
  components: {
86
- IconDeltaLeft: iconDeltaLeft(),
87
- TinyTooltip: Tooltip
89
+ IconDeltaLeft: iconDeltaLeft()
88
90
  },
89
91
  setup: function setup$1(props2, context) {
90
92
  return setup({
@@ -99,12 +101,18 @@ var render = function render2() {
99
101
  var _vm = this;
100
102
  var _h = _vm.$createElement;
101
103
  var _c = _vm._self._c || _h;
102
- return _c("tiny-tooltip", {
103
- attrs: {
104
- "content": _vm.getTip,
105
- "placement": _vm.tipPosition
106
- }
107
- }, [_c("li", {
104
+ return _c("li", {
105
+ directives: [{
106
+ name: "auto-tip",
107
+ rawName: "v-auto-tip",
108
+ value: {
109
+ always: true,
110
+ content: _vm.getTip,
111
+ effect: "dark",
112
+ placement: _vm.tipPosition
113
+ },
114
+ expression: "{ always: true, content: getTip, effect: 'dark', placement: tipPosition }"
115
+ }],
108
116
  ref: "dropdownItem",
109
117
  staticClass: "tiny-dropdown-item tiny-dropdown-menu__item",
110
118
  class: {
@@ -160,7 +168,7 @@ var render = function render2() {
160
168
  }, [_vm._t("default", null, {
161
169
  "itemData": item
162
170
  })], 2);
163
- }), 1) : _vm._e()])])]);
171
+ }), 1) : _vm._e()])]);
164
172
  };
165
173
  var staticRenderFns = [];
166
174
  var __cssModules = {};
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@opentiny/vue-dropdown-item",
3
- "version": "2.17.0",
3
+ "type": "module",
4
+ "version": "2.18.0",
4
5
  "description": "",
6
+ "license": "MIT",
7
+ "sideEffects": false,
5
8
  "main": "./lib/index.js",
6
9
  "module": "./lib/index.js",
7
- "sideEffects": false,
8
- "type": "module",
9
10
  "dependencies": {
10
- "@opentiny/vue-common": "~2.17.0",
11
- "@opentiny/vue-icon": "~2.17.0",
12
- "@opentiny/vue-renderless": "~3.17.0",
13
- "@opentiny/vue-popup": "~2.17.0",
14
- "@opentiny/vue-button": "~2.17.0",
15
- "@opentiny/vue-tooltip": "~2.17.0",
16
- "@opentiny/vue-theme-mobile": "~3.17.0",
17
- "@opentiny/vue-theme": "~3.17.0"
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"
18
19
  },
19
- "license": "MIT",
20
20
  "types": "index.d.ts",
21
21
  "scripts": {
22
22
  "build": "pnpm -w build:ui $npm_package_name",