@opentiny/vue-dropdown-item 2.14.0 → 2.16.0-prod.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 +12 -12
- package/lib/mobile-first.js +8 -8
- package/lib/mobile.js +12 -12
- package/lib/pc.js +12 -19
- package/package.json +11 -12
- package/src/index.d.ts +4 -0
package/lib/index.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
function _extends() {
|
|
2
|
-
_extends = Object.assign ? Object.assign.bind() : function(
|
|
3
|
-
for (var
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
|
|
7
|
-
target[key] = source[key];
|
|
8
|
-
}
|
|
9
|
-
}
|
|
2
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
3
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
4
|
+
var t = arguments[e];
|
|
5
|
+
for (var r in t)
|
|
6
|
+
({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
10
7
|
}
|
|
11
|
-
return
|
|
12
|
-
};
|
|
13
|
-
return _extends.apply(this, arguments);
|
|
8
|
+
return n;
|
|
9
|
+
}, _extends.apply(null, arguments);
|
|
14
10
|
}
|
|
15
11
|
import { defineComponent, $prefix, $setup, $props } from "@opentiny/vue-common";
|
|
16
12
|
import PcTemplate from "./pc.js";
|
|
@@ -85,6 +81,10 @@ var dropdownItemProps = _extends({}, $props, {
|
|
|
85
81
|
return -1;
|
|
86
82
|
}
|
|
87
83
|
},
|
|
84
|
+
tooltipContent: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: ""
|
|
87
|
+
},
|
|
88
88
|
// 以下为 tiny 新增
|
|
89
89
|
appendToBody: {
|
|
90
90
|
type: Boolean,
|
|
@@ -115,7 +115,7 @@ var DropdownItem = defineComponent({
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
|
-
var version = "
|
|
118
|
+
var version = "3.16.0-prod.0";
|
|
119
119
|
DropdownItem.model = {
|
|
120
120
|
prop: "modelValue",
|
|
121
121
|
event: "update:modelValue"
|
package/lib/mobile-first.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent, props, setup
|
|
2
|
-
import { renderless, api } from
|
|
1
|
+
import { defineComponent, props, setup } from '@opentiny/vue-common';
|
|
2
|
+
import { renderless, api } from '@opentiny/vue-renderless/dropdown-item/mf';
|
|
3
|
+
|
|
3
4
|
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
4
5
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
5
6
|
if (render) {
|
|
@@ -56,9 +57,9 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
|
|
|
56
57
|
|
|
57
58
|
var __vue2_script = defineComponent({
|
|
58
59
|
emits: ["update:modelValue", "change", "closed", "open", "opened", "close", "confirm", "reset"],
|
|
59
|
-
props: [].concat(props, ["disabled", "icon", "itemData", "selected", "label", "level", "currentIndex"]),
|
|
60
|
-
setup: function setup(props2, context) {
|
|
61
|
-
return
|
|
60
|
+
props: [].concat(props, ["disabled", "icon", "itemData", "selected", "label", "level", "currentIndex", "tooltipContent"]),
|
|
61
|
+
setup: function setup$1(props2, context) {
|
|
62
|
+
return setup({
|
|
62
63
|
props: props2,
|
|
63
64
|
context,
|
|
64
65
|
renderless,
|
|
@@ -109,6 +110,5 @@ function __vue2_injectStyles(context) {
|
|
|
109
110
|
var mobileFirst = /* @__PURE__ */ function() {
|
|
110
111
|
return __component__.exports;
|
|
111
112
|
}();
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
};
|
|
113
|
+
|
|
114
|
+
export { mobileFirst as default };
|
package/lib/mobile.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { renderless, api } from
|
|
2
|
-
import { defineComponent, directive, props, setup
|
|
3
|
-
import { iconYes } from
|
|
4
|
-
import Popup from
|
|
5
|
-
import Button from
|
|
6
|
-
import Clickoutside from
|
|
7
|
-
import
|
|
1
|
+
import { renderless, api } from '@opentiny/vue-renderless/dropdown-item/vue';
|
|
2
|
+
import { defineComponent, directive, props, setup } from '@opentiny/vue-common';
|
|
3
|
+
import { iconYes } from '@opentiny/vue-icon';
|
|
4
|
+
import Popup from '@opentiny/vue-popup';
|
|
5
|
+
import Button from '@opentiny/vue-button';
|
|
6
|
+
import Clickoutside from '@opentiny/vue-renderless/common/deps/clickoutside';
|
|
7
|
+
import '@opentiny/vue-theme-mobile/dropdown-item/index.css';
|
|
8
|
+
|
|
8
9
|
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
9
10
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
10
11
|
if (render) {
|
|
@@ -70,8 +71,8 @@ var __vue2_script = defineComponent({
|
|
|
70
71
|
TinyButton: Button
|
|
71
72
|
},
|
|
72
73
|
emits: ["update:modelValue", "open", "opened", "click", "change", "closed", "close", "reset", "confirm", "item-click"],
|
|
73
|
-
setup: function setup(props2, context) {
|
|
74
|
-
return
|
|
74
|
+
setup: function setup$1(props2, context) {
|
|
75
|
+
return setup({
|
|
75
76
|
props: props2,
|
|
76
77
|
context,
|
|
77
78
|
renderless,
|
|
@@ -214,6 +215,5 @@ function __vue2_injectStyles(context) {
|
|
|
214
215
|
var mobile = /* @__PURE__ */ function() {
|
|
215
216
|
return __component__.exports;
|
|
216
217
|
}();
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
};
|
|
218
|
+
|
|
219
|
+
export { mobile as default };
|
package/lib/pc.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent, $prefix, props, setup
|
|
2
|
-
import { renderless, api } from
|
|
3
|
-
import { iconDeltaLeft } from
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { defineComponent, $prefix, props, setup } from '@opentiny/vue-common';
|
|
2
|
+
import { renderless, api } from '@opentiny/vue-renderless/dropdown-item/vue';
|
|
3
|
+
import { iconDeltaLeft } from '@opentiny/vue-icon';
|
|
4
|
+
import '@opentiny/vue-theme/dropdown-item/index.css';
|
|
5
|
+
|
|
6
6
|
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
7
7
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
8
8
|
if (render) {
|
|
@@ -82,11 +82,10 @@ var __vue2_script = defineComponent({
|
|
|
82
82
|
"tipPosition"
|
|
83
83
|
]),
|
|
84
84
|
components: {
|
|
85
|
-
IconDeltaLeft: iconDeltaLeft()
|
|
86
|
-
TinyTooltip: Tooltip
|
|
85
|
+
IconDeltaLeft: iconDeltaLeft()
|
|
87
86
|
},
|
|
88
|
-
setup: function setup(props2, context) {
|
|
89
|
-
return
|
|
87
|
+
setup: function setup$1(props2, context) {
|
|
88
|
+
return setup({
|
|
90
89
|
props: props2,
|
|
91
90
|
context,
|
|
92
91
|
renderless,
|
|
@@ -98,12 +97,7 @@ var render = function render2() {
|
|
|
98
97
|
var _vm = this;
|
|
99
98
|
var _h = _vm.$createElement;
|
|
100
99
|
var _c = _vm._self._c || _h;
|
|
101
|
-
return _c("
|
|
102
|
-
attrs: {
|
|
103
|
-
"content": _vm.getTip,
|
|
104
|
-
"placement": _vm.tipPosition
|
|
105
|
-
}
|
|
106
|
-
}, [_c("li", {
|
|
100
|
+
return _c("li", {
|
|
107
101
|
ref: "dropdownItem",
|
|
108
102
|
staticClass: "tiny-dropdown-item tiny-dropdown-menu__item",
|
|
109
103
|
class: {
|
|
@@ -159,7 +153,7 @@ var render = function render2() {
|
|
|
159
153
|
}, [_vm._t("default", null, {
|
|
160
154
|
"itemData": item
|
|
161
155
|
})], 2);
|
|
162
|
-
}), 1) : _vm._e()])])
|
|
156
|
+
}), 1) : _vm._e()])]);
|
|
163
157
|
};
|
|
164
158
|
var staticRenderFns = [];
|
|
165
159
|
var __cssModules = {};
|
|
@@ -172,6 +166,5 @@ function __vue2_injectStyles(context) {
|
|
|
172
166
|
var pc = /* @__PURE__ */ function() {
|
|
173
167
|
return __component__.exports;
|
|
174
168
|
}();
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
};
|
|
169
|
+
|
|
170
|
+
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-dropdown-item",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.16.0-prod.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-
|
|
11
|
-
"@opentiny/vue-
|
|
12
|
-
"@opentiny/vue-
|
|
13
|
-
"@opentiny/vue-popup": "~2.
|
|
14
|
-
"@opentiny/vue-
|
|
15
|
-
"@opentiny/vue-
|
|
16
|
-
"@opentiny/vue-theme-mobile": "~3.
|
|
17
|
-
"@opentiny/vue-theme": "~3.14.0"
|
|
11
|
+
"@opentiny/vue-button": "~2.16.0-prod.0",
|
|
12
|
+
"@opentiny/vue-common": "~2.16.0-prod.0",
|
|
13
|
+
"@opentiny/vue-icon": "~2.16.0-prod.0",
|
|
14
|
+
"@opentiny/vue-popup": "~2.16.0-prod.0",
|
|
15
|
+
"@opentiny/vue-renderless": "~3.16.0-prod.0",
|
|
16
|
+
"@opentiny/vue-theme": "~3.16.0-prod.0",
|
|
17
|
+
"@opentiny/vue-theme-mobile": "~3.16.0-prod.0"
|
|
18
18
|
},
|
|
19
|
-
"license": "MIT",
|
|
20
19
|
"types": "index.d.ts",
|
|
21
20
|
"scripts": {
|
|
22
21
|
"build": "pnpm -w build:ui $npm_package_name",
|
package/src/index.d.ts
CHANGED