@opentiny/vue-dropdown-item 2.13.0 → 2.15.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 +11 -6
- package/lib/mobile-first.js +8 -8
- package/lib/mobile.js +12 -12
- package/lib/pc.js +32 -12
- package/package.json +9 -7
- package/src/index.d.ts +7 -6
package/lib/index.js
CHANGED
|
@@ -50,10 +50,7 @@ var dropdownItemProps = _extends({}, $props, {
|
|
|
50
50
|
default: ""
|
|
51
51
|
},
|
|
52
52
|
title: String,
|
|
53
|
-
label:
|
|
54
|
-
type: String,
|
|
55
|
-
default: ""
|
|
56
|
-
},
|
|
53
|
+
label: String,
|
|
57
54
|
level: String,
|
|
58
55
|
titleClass: String,
|
|
59
56
|
options: {
|
|
@@ -62,18 +59,22 @@ var dropdownItemProps = _extends({}, $props, {
|
|
|
62
59
|
return [];
|
|
63
60
|
}
|
|
64
61
|
},
|
|
62
|
+
// mobile 属性,可选值 selection | filter | sort
|
|
65
63
|
type: {
|
|
66
64
|
type: String,
|
|
67
65
|
default: "selection"
|
|
68
66
|
},
|
|
67
|
+
// 是否选中,勾选状态功能
|
|
69
68
|
selected: {
|
|
70
69
|
type: Boolean,
|
|
71
70
|
default: false
|
|
72
71
|
},
|
|
72
|
+
// 暂没找到使用的地方
|
|
73
73
|
selectedField: {
|
|
74
74
|
type: String,
|
|
75
75
|
default: "selected"
|
|
76
76
|
},
|
|
77
|
+
// 暂没找到使用的地方
|
|
77
78
|
multiStage: {
|
|
78
79
|
type: Boolean,
|
|
79
80
|
default: false
|
|
@@ -84,7 +85,11 @@ var dropdownItemProps = _extends({}, $props, {
|
|
|
84
85
|
return -1;
|
|
85
86
|
}
|
|
86
87
|
},
|
|
87
|
-
|
|
88
|
+
tooltipContent: {
|
|
89
|
+
type: String,
|
|
90
|
+
default: ""
|
|
91
|
+
},
|
|
92
|
+
// 以下为 tiny 新增
|
|
88
93
|
appendToBody: {
|
|
89
94
|
type: Boolean,
|
|
90
95
|
default: true
|
|
@@ -114,7 +119,7 @@ var DropdownItem = defineComponent({
|
|
|
114
119
|
});
|
|
115
120
|
}
|
|
116
121
|
});
|
|
117
|
-
var version = "2.
|
|
122
|
+
var version = "2.15.0";
|
|
118
123
|
DropdownItem.model = {
|
|
119
124
|
prop: "modelValue",
|
|
120
125
|
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,9 @@
|
|
|
1
|
-
import { defineComponent, $prefix, props, setup
|
|
2
|
-
import { renderless, api } from
|
|
3
|
-
import { iconDeltaLeft } from
|
|
4
|
-
import Tooltip from
|
|
5
|
-
import
|
|
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 Tooltip from '@opentiny/vue-tooltip';
|
|
5
|
+
import '@opentiny/vue-theme/dropdown-item/index.css';
|
|
6
|
+
|
|
6
7
|
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
7
8
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
8
9
|
if (render) {
|
|
@@ -60,14 +61,33 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
|
|
|
60
61
|
var __vue2_script = defineComponent({
|
|
61
62
|
name: $prefix + "DropdownItem",
|
|
62
63
|
componentName: $prefix + "DropdownItem",
|
|
63
|
-
emits: ["item-click"],
|
|
64
|
-
props: [].concat(props, [
|
|
64
|
+
emits: ["item-click", "update:modelValue", "change", "closed", "open", "opened", "close", "confirm", "reset"],
|
|
65
|
+
props: [].concat(props, [
|
|
66
|
+
"disabled",
|
|
67
|
+
"divided",
|
|
68
|
+
"icon",
|
|
69
|
+
"itemData",
|
|
70
|
+
"selected",
|
|
71
|
+
"currentIndex",
|
|
72
|
+
"title",
|
|
73
|
+
"titleClass",
|
|
74
|
+
"options",
|
|
75
|
+
"type",
|
|
76
|
+
"label",
|
|
77
|
+
"selectedField",
|
|
78
|
+
"multiStage",
|
|
79
|
+
// tiny新增
|
|
80
|
+
"appendToBody",
|
|
81
|
+
"textField",
|
|
82
|
+
"tip",
|
|
83
|
+
"tipPosition"
|
|
84
|
+
]),
|
|
65
85
|
components: {
|
|
66
86
|
IconDeltaLeft: iconDeltaLeft(),
|
|
67
87
|
TinyTooltip: Tooltip
|
|
68
88
|
},
|
|
69
|
-
setup: function setup(props2, context) {
|
|
70
|
-
return
|
|
89
|
+
setup: function setup$1(props2, context) {
|
|
90
|
+
return setup({
|
|
71
91
|
props: props2,
|
|
72
92
|
context,
|
|
73
93
|
renderless,
|
|
@@ -90,6 +110,7 @@ var render = function render2() {
|
|
|
90
110
|
class: {
|
|
91
111
|
"is-disabled": _vm.disabled,
|
|
92
112
|
"tiny-dropdown-item--divided tiny-dropdown-menu__item--divided": _vm.divided,
|
|
113
|
+
"tiny-dropdown-item--check-status": _vm.state.checkedStatus && _vm.selected,
|
|
93
114
|
"has-children": _vm.itemData.children && _vm.itemData.children.length
|
|
94
115
|
},
|
|
95
116
|
attrs: {
|
|
@@ -152,6 +173,5 @@ function __vue2_injectStyles(context) {
|
|
|
152
173
|
var pc = /* @__PURE__ */ function() {
|
|
153
174
|
return __component__.exports;
|
|
154
175
|
}();
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
};
|
|
176
|
+
|
|
177
|
+
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-dropdown-item",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@opentiny/vue-common": "~2.
|
|
11
|
-
"@opentiny/vue-icon": "~2.
|
|
12
|
-
"@opentiny/vue-renderless": "~3.
|
|
13
|
-
"@opentiny/vue-popup": "~2.
|
|
14
|
-
"@opentiny/vue-button": "~2.
|
|
15
|
-
"@opentiny/vue-tooltip": "~2.
|
|
10
|
+
"@opentiny/vue-common": "~2.15.0",
|
|
11
|
+
"@opentiny/vue-icon": "~2.15.0",
|
|
12
|
+
"@opentiny/vue-renderless": "~3.15.0",
|
|
13
|
+
"@opentiny/vue-popup": "~2.15.0",
|
|
14
|
+
"@opentiny/vue-button": "~2.15.0",
|
|
15
|
+
"@opentiny/vue-tooltip": "~2.15.0",
|
|
16
|
+
"@opentiny/vue-theme-mobile": "~3.15.0",
|
|
17
|
+
"@opentiny/vue-theme": "~3.15.0"
|
|
16
18
|
},
|
|
17
19
|
"license": "MIT",
|
|
18
20
|
"types": "index.d.ts",
|
package/src/index.d.ts
CHANGED
|
@@ -23,18 +23,15 @@ export declare const dropdownItemProps: {
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
icon: (
|
|
26
|
+
icon: (StringConstructor | ObjectConstructor)[];
|
|
27
27
|
disabled: BooleanConstructor;
|
|
28
28
|
divided: BooleanConstructor;
|
|
29
29
|
itemData: {
|
|
30
|
-
type: (
|
|
30
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
31
31
|
default: string;
|
|
32
32
|
};
|
|
33
33
|
title: StringConstructor;
|
|
34
|
-
label:
|
|
35
|
-
type: StringConstructor;
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
34
|
+
label: StringConstructor;
|
|
38
35
|
level: StringConstructor;
|
|
39
36
|
titleClass: StringConstructor;
|
|
40
37
|
options: {
|
|
@@ -61,6 +58,10 @@ export declare const dropdownItemProps: {
|
|
|
61
58
|
type: NumberConstructor;
|
|
62
59
|
default: () => number;
|
|
63
60
|
};
|
|
61
|
+
tooltipContent: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
64
65
|
appendToBody: {
|
|
65
66
|
type: BooleanConstructor;
|
|
66
67
|
default: boolean;
|