@opentiny/vue-dropdown-item 3.13.0 → 3.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 +16 -16
- package/lib/mobile.js +20 -20
- package/lib/pc.js +40 -20
- package/package.json +9 -7
- package/src/index.d.ts +22 -19
- package/src/mobile-first.vue.d.ts +5 -2
- package/src/mobile.vue.d.ts +2 -2
- package/src/pc.vue.d.ts +9 -1
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 = "3.
|
|
122
|
+
var version = "3.15.0";
|
|
118
123
|
DropdownItem.model = {
|
|
119
124
|
prop: "modelValue",
|
|
120
125
|
event: "update:modelValue"
|
package/lib/mobile-first.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent, props, setup
|
|
2
|
-
import { renderless, api } from
|
|
3
|
-
import { openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, createBlock, resolveDynamicComponent, createCommentVNode, renderSlot } from
|
|
4
|
-
|
|
1
|
+
import { defineComponent, props, setup } from '@opentiny/vue-common';
|
|
2
|
+
import { renderless, api } from '@opentiny/vue-renderless/dropdown-item/mf';
|
|
3
|
+
import { openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, createBlock, resolveDynamicComponent, createCommentVNode, renderSlot } from 'vue';
|
|
4
|
+
|
|
5
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
5
6
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
6
7
|
if (it)
|
|
7
8
|
return (it = it.call(o)).next.bind(it);
|
|
8
|
-
if (Array.isArray(o) || (it =
|
|
9
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
9
10
|
if (it)
|
|
10
11
|
o = it;
|
|
11
12
|
var i = 0;
|
|
@@ -17,20 +18,20 @@ function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
|
|
|
17
18
|
}
|
|
18
19
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
21
22
|
if (!o)
|
|
22
23
|
return;
|
|
23
24
|
if (typeof o === "string")
|
|
24
|
-
return
|
|
25
|
+
return _arrayLikeToArray(o, minLen);
|
|
25
26
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
26
27
|
if (n === "Object" && o.constructor)
|
|
27
28
|
n = o.constructor.name;
|
|
28
29
|
if (n === "Map" || n === "Set")
|
|
29
30
|
return Array.from(o);
|
|
30
31
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
31
|
-
return
|
|
32
|
+
return _arrayLikeToArray(o, minLen);
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function _arrayLikeToArray(arr, len) {
|
|
34
35
|
if (len == null || len > arr.length)
|
|
35
36
|
len = arr.length;
|
|
36
37
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -39,7 +40,7 @@ function _arrayLikeToArray_tiny(arr, len) {
|
|
|
39
40
|
}
|
|
40
41
|
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
41
42
|
var target = sfc.__vccOpts || sfc;
|
|
42
|
-
for (var _iterator =
|
|
43
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
43
44
|
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
44
45
|
target[key] = val;
|
|
45
46
|
}
|
|
@@ -48,9 +49,9 @@ var _export_sfc = function _export_sfc2(sfc, props) {
|
|
|
48
49
|
|
|
49
50
|
var _sfc_main = defineComponent({
|
|
50
51
|
emits: ["update:modelValue", "change", "closed", "open", "opened", "close", "confirm", "reset"],
|
|
51
|
-
props: [].concat(props, ["disabled", "icon", "itemData", "selected", "label", "level", "currentIndex"]),
|
|
52
|
-
setup: function setup(props2, context) {
|
|
53
|
-
return
|
|
52
|
+
props: [].concat(props, ["disabled", "icon", "itemData", "selected", "label", "level", "currentIndex", "tooltipContent"]),
|
|
53
|
+
setup: function setup$1(props2, context) {
|
|
54
|
+
return setup({
|
|
54
55
|
props: props2,
|
|
55
56
|
context,
|
|
56
57
|
renderless,
|
|
@@ -92,6 +93,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
92
93
|
)], 42, _hoisted_1);
|
|
93
94
|
}
|
|
94
95
|
var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
};
|
|
96
|
+
|
|
97
|
+
export { mobileFirst as default };
|
package/lib/mobile.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
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
|
|
8
|
-
import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, withCtx, renderSlot, Fragment, renderList, createElementVNode, createBlock, resolveDynamicComponent, toDisplayString, createCommentVNode, createTextVNode, vShow } from
|
|
9
|
-
|
|
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
|
+
import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, withCtx, renderSlot, Fragment, renderList, createElementVNode, createBlock, resolveDynamicComponent, toDisplayString, createCommentVNode, createTextVNode, vShow } from 'vue';
|
|
9
|
+
|
|
10
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
10
11
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
11
12
|
if (it)
|
|
12
13
|
return (it = it.call(o)).next.bind(it);
|
|
13
|
-
if (Array.isArray(o) || (it =
|
|
14
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
14
15
|
if (it)
|
|
15
16
|
o = it;
|
|
16
17
|
var i = 0;
|
|
@@ -22,20 +23,20 @@ function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
|
|
|
22
23
|
}
|
|
23
24
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
26
27
|
if (!o)
|
|
27
28
|
return;
|
|
28
29
|
if (typeof o === "string")
|
|
29
|
-
return
|
|
30
|
+
return _arrayLikeToArray(o, minLen);
|
|
30
31
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
31
32
|
if (n === "Object" && o.constructor)
|
|
32
33
|
n = o.constructor.name;
|
|
33
34
|
if (n === "Map" || n === "Set")
|
|
34
35
|
return Array.from(o);
|
|
35
36
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
36
|
-
return
|
|
37
|
+
return _arrayLikeToArray(o, minLen);
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
+
function _arrayLikeToArray(arr, len) {
|
|
39
40
|
if (len == null || len > arr.length)
|
|
40
41
|
len = arr.length;
|
|
41
42
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -44,7 +45,7 @@ function _arrayLikeToArray_tiny(arr, len) {
|
|
|
44
45
|
}
|
|
45
46
|
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
46
47
|
var target = sfc.__vccOpts || sfc;
|
|
47
|
-
for (var _iterator =
|
|
48
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
48
49
|
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
49
50
|
target[key] = val;
|
|
50
51
|
}
|
|
@@ -62,8 +63,8 @@ var _sfc_main = defineComponent({
|
|
|
62
63
|
TinyButton: Button
|
|
63
64
|
},
|
|
64
65
|
emits: ["update:modelValue", "open", "opened", "click", "change", "closed", "close", "reset", "confirm", "item-click"],
|
|
65
|
-
setup: function setup(props2, context) {
|
|
66
|
-
return
|
|
66
|
+
setup: function setup$1(props2, context) {
|
|
67
|
+
return setup({
|
|
67
68
|
props: props2,
|
|
68
69
|
context,
|
|
69
70
|
renderless,
|
|
@@ -226,6 +227,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
226
227
|
)), [[vShow, _ctx.state.showWrapper]]);
|
|
227
228
|
}
|
|
228
229
|
var mobile = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
};
|
|
230
|
+
|
|
231
|
+
export { mobile as default };
|
package/lib/pc.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { defineComponent, $prefix, props, setup
|
|
2
|
-
import { renderless, api } from
|
|
3
|
-
import { iconDeltaLeft } from
|
|
4
|
-
import Tooltip from
|
|
5
|
-
import
|
|
6
|
-
import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, withModifiers, createElementBlock, resolveDynamicComponent, createCommentVNode, renderSlot, toDisplayString, Fragment, renderList } from
|
|
7
|
-
|
|
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
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, withModifiers, createElementBlock, resolveDynamicComponent, createCommentVNode, renderSlot, toDisplayString, Fragment, renderList } from 'vue';
|
|
7
|
+
|
|
8
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
8
9
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
9
10
|
if (it)
|
|
10
11
|
return (it = it.call(o)).next.bind(it);
|
|
11
|
-
if (Array.isArray(o) || (it =
|
|
12
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
12
13
|
if (it)
|
|
13
14
|
o = it;
|
|
14
15
|
var i = 0;
|
|
@@ -20,20 +21,20 @@ function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
|
|
|
20
21
|
}
|
|
21
22
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
24
25
|
if (!o)
|
|
25
26
|
return;
|
|
26
27
|
if (typeof o === "string")
|
|
27
|
-
return
|
|
28
|
+
return _arrayLikeToArray(o, minLen);
|
|
28
29
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
29
30
|
if (n === "Object" && o.constructor)
|
|
30
31
|
n = o.constructor.name;
|
|
31
32
|
if (n === "Map" || n === "Set")
|
|
32
33
|
return Array.from(o);
|
|
33
34
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
34
|
-
return
|
|
35
|
+
return _arrayLikeToArray(o, minLen);
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function _arrayLikeToArray(arr, len) {
|
|
37
38
|
if (len == null || len > arr.length)
|
|
38
39
|
len = arr.length;
|
|
39
40
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -42,7 +43,7 @@ function _arrayLikeToArray_tiny(arr, len) {
|
|
|
42
43
|
}
|
|
43
44
|
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
44
45
|
var target = sfc.__vccOpts || sfc;
|
|
45
|
-
for (var _iterator =
|
|
46
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
46
47
|
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
47
48
|
target[key] = val;
|
|
48
49
|
}
|
|
@@ -52,14 +53,33 @@ var _export_sfc = function _export_sfc2(sfc, props) {
|
|
|
52
53
|
var _sfc_main = defineComponent({
|
|
53
54
|
name: $prefix + "DropdownItem",
|
|
54
55
|
componentName: $prefix + "DropdownItem",
|
|
55
|
-
emits: ["item-click"],
|
|
56
|
-
props: [].concat(props, [
|
|
56
|
+
emits: ["item-click", "update:modelValue", "change", "closed", "open", "opened", "close", "confirm", "reset"],
|
|
57
|
+
props: [].concat(props, [
|
|
58
|
+
"disabled",
|
|
59
|
+
"divided",
|
|
60
|
+
"icon",
|
|
61
|
+
"itemData",
|
|
62
|
+
"selected",
|
|
63
|
+
"currentIndex",
|
|
64
|
+
"title",
|
|
65
|
+
"titleClass",
|
|
66
|
+
"options",
|
|
67
|
+
"type",
|
|
68
|
+
"label",
|
|
69
|
+
"selectedField",
|
|
70
|
+
"multiStage",
|
|
71
|
+
// tiny新增
|
|
72
|
+
"appendToBody",
|
|
73
|
+
"textField",
|
|
74
|
+
"tip",
|
|
75
|
+
"tipPosition"
|
|
76
|
+
]),
|
|
57
77
|
components: {
|
|
58
78
|
IconDeltaLeft: iconDeltaLeft(),
|
|
59
79
|
TinyTooltip: Tooltip
|
|
60
80
|
},
|
|
61
|
-
setup: function setup(props2, context) {
|
|
62
|
-
return
|
|
81
|
+
setup: function setup$1(props2, context) {
|
|
82
|
+
return setup({
|
|
63
83
|
props: props2,
|
|
64
84
|
context,
|
|
65
85
|
renderless,
|
|
@@ -93,6 +113,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
93
113
|
class: normalizeClass(["tiny-dropdown-item tiny-dropdown-menu__item", {
|
|
94
114
|
"is-disabled": _ctx.disabled,
|
|
95
115
|
"tiny-dropdown-item--divided tiny-dropdown-menu__item--divided": _ctx.divided,
|
|
116
|
+
"tiny-dropdown-item--check-status": _ctx.state.checkedStatus && _ctx.selected,
|
|
96
117
|
"has-children": _ctx.itemData.children && _ctx.itemData.children.length
|
|
97
118
|
}]),
|
|
98
119
|
ref: "dropdownItem",
|
|
@@ -157,6 +178,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
157
178
|
}, 8, ["content", "placement"]);
|
|
158
179
|
}
|
|
159
180
|
var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
};
|
|
181
|
+
|
|
182
|
+
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-dropdown-item",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.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": "~3.
|
|
11
|
-
"@opentiny/vue-icon": "~3.
|
|
12
|
-
"@opentiny/vue-renderless": "~3.
|
|
13
|
-
"@opentiny/vue-popup": "~3.
|
|
14
|
-
"@opentiny/vue-button": "~3.
|
|
15
|
-
"@opentiny/vue-tooltip": "~3.
|
|
10
|
+
"@opentiny/vue-common": "~3.15.0",
|
|
11
|
+
"@opentiny/vue-icon": "~3.15.0",
|
|
12
|
+
"@opentiny/vue-renderless": "~3.15.0",
|
|
13
|
+
"@opentiny/vue-popup": "~3.15.0",
|
|
14
|
+
"@opentiny/vue-button": "~3.15.0",
|
|
15
|
+
"@opentiny/vue-tooltip": "~3.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;
|
|
@@ -93,18 +94,15 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
93
94
|
};
|
|
94
95
|
};
|
|
95
96
|
};
|
|
96
|
-
icon: (
|
|
97
|
+
icon: (StringConstructor | ObjectConstructor)[];
|
|
97
98
|
disabled: BooleanConstructor;
|
|
98
99
|
divided: BooleanConstructor;
|
|
99
100
|
itemData: {
|
|
100
|
-
type: (
|
|
101
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
101
102
|
default: string;
|
|
102
103
|
};
|
|
103
104
|
title: StringConstructor;
|
|
104
|
-
label:
|
|
105
|
-
type: StringConstructor;
|
|
106
|
-
default: string;
|
|
107
|
-
};
|
|
105
|
+
label: StringConstructor;
|
|
108
106
|
level: StringConstructor;
|
|
109
107
|
titleClass: StringConstructor;
|
|
110
108
|
options: {
|
|
@@ -131,6 +129,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
131
129
|
type: NumberConstructor;
|
|
132
130
|
default: () => number;
|
|
133
131
|
};
|
|
132
|
+
tooltipContent: {
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
default: string;
|
|
135
|
+
};
|
|
134
136
|
appendToBody: {
|
|
135
137
|
type: BooleanConstructor;
|
|
136
138
|
default: boolean;
|
|
@@ -164,18 +166,15 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
164
166
|
};
|
|
165
167
|
};
|
|
166
168
|
};
|
|
167
|
-
icon: (
|
|
169
|
+
icon: (StringConstructor | ObjectConstructor)[];
|
|
168
170
|
disabled: BooleanConstructor;
|
|
169
171
|
divided: BooleanConstructor;
|
|
170
172
|
itemData: {
|
|
171
|
-
type: (
|
|
173
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
172
174
|
default: string;
|
|
173
175
|
};
|
|
174
176
|
title: StringConstructor;
|
|
175
|
-
label:
|
|
176
|
-
type: StringConstructor;
|
|
177
|
-
default: string;
|
|
178
|
-
};
|
|
177
|
+
label: StringConstructor;
|
|
179
178
|
level: StringConstructor;
|
|
180
179
|
titleClass: StringConstructor;
|
|
181
180
|
options: {
|
|
@@ -202,6 +201,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
202
201
|
type: NumberConstructor;
|
|
203
202
|
default: () => number;
|
|
204
203
|
};
|
|
204
|
+
tooltipContent: {
|
|
205
|
+
type: StringConstructor;
|
|
206
|
+
default: string;
|
|
207
|
+
};
|
|
205
208
|
appendToBody: {
|
|
206
209
|
type: BooleanConstructor;
|
|
207
210
|
default: boolean;
|
|
@@ -226,7 +229,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
226
229
|
tiny_chart_theme: ObjectConstructor;
|
|
227
230
|
}>>, {
|
|
228
231
|
type: string;
|
|
229
|
-
label: string;
|
|
230
232
|
selected: boolean;
|
|
231
233
|
disabled: boolean;
|
|
232
234
|
tiny_mode_root: boolean;
|
|
@@ -238,6 +240,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
238
240
|
itemData: string | Record<string, any>;
|
|
239
241
|
selectedField: string;
|
|
240
242
|
currentIndex: number;
|
|
243
|
+
tooltipContent: string;
|
|
241
244
|
appendToBody: boolean;
|
|
242
245
|
tip: string | Function;
|
|
243
246
|
tipPosition: string;
|
|
@@ -13,7 +13,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
13
13
|
itemData?: any;
|
|
14
14
|
level?: any;
|
|
15
15
|
currentIndex?: any;
|
|
16
|
-
|
|
16
|
+
tooltipContent?: any;
|
|
17
|
+
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("confirm" | "change" | "update:modelValue" | "close" | "reset" | "open" | "closed" | "opened")[], "confirm" | "change" | "update:modelValue" | "close" | "reset" | "open" | "closed" | "opened", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
17
18
|
label?: any;
|
|
18
19
|
selected?: any;
|
|
19
20
|
disabled?: any;
|
|
@@ -28,11 +29,12 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
28
29
|
itemData?: any;
|
|
29
30
|
level?: any;
|
|
30
31
|
currentIndex?: any;
|
|
32
|
+
tooltipContent?: any;
|
|
31
33
|
}>>> & {
|
|
32
34
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
33
35
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
34
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
35
36
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
36
38
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
37
39
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
38
40
|
onClosed?: ((...args: any[]) => any) | undefined;
|
|
@@ -52,5 +54,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
52
54
|
readonly itemData?: any;
|
|
53
55
|
readonly level?: any;
|
|
54
56
|
readonly currentIndex?: any;
|
|
57
|
+
readonly tooltipContent?: any;
|
|
55
58
|
}, {}>;
|
|
56
59
|
export default _default;
|
package/src/mobile.vue.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
21
21
|
d: (props: any) => void;
|
|
22
22
|
dp: (props: any) => void;
|
|
23
23
|
gcls: (key: any) => any;
|
|
24
|
-
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("confirm" | "
|
|
24
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("item-click" | "confirm" | "change" | "update:modelValue" | "close" | "click" | "reset" | "open" | "closed" | "opened")[], "item-click" | "confirm" | "change" | "update:modelValue" | "close" | "click" | "reset" | "open" | "closed" | "opened", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
25
25
|
type?: any;
|
|
26
26
|
title?: any;
|
|
27
27
|
disabled?: any;
|
|
@@ -41,8 +41,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
41
41
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
42
42
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
43
43
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
44
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
45
44
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
46
46
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
47
47
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
48
48
|
onClosed?: ((...args: any[]) => any) | undefined;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
24
24
|
appendToBody?: any;
|
|
25
25
|
tip?: any;
|
|
26
26
|
tipPosition?: any;
|
|
27
|
-
}>, IDropdownItemApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "item-click"[], "item-click", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
27
|
+
}>, IDropdownItemApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("item-click" | "confirm" | "change" | "update:modelValue" | "close" | "reset" | "open" | "closed" | "opened")[], "item-click" | "confirm" | "change" | "update:modelValue" | "close" | "reset" | "open" | "closed" | "opened", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
28
28
|
type?: any;
|
|
29
29
|
label?: any;
|
|
30
30
|
title?: any;
|
|
@@ -51,6 +51,14 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
51
51
|
tipPosition?: any;
|
|
52
52
|
}>>> & {
|
|
53
53
|
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
61
|
+
onOpened?: ((...args: any[]) => any) | undefined;
|
|
54
62
|
}, {
|
|
55
63
|
readonly type?: any;
|
|
56
64
|
readonly label?: any;
|