@opentinyvue/vue-dropdown-item 2.21.0 → 3.21.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
@@ -118,7 +118,7 @@ var DropdownItem = defineComponent({
118
118
  });
119
119
  }
120
120
  });
121
- var version = "2.21.0";
121
+ var version = "3.21.0";
122
122
  DropdownItem.model = {
123
123
  prop: "modelValue",
124
124
  event: "update:modelValue"
@@ -1,37 +1,41 @@
1
1
  import { defineComponent, props, setup } from '@opentinyvue/vue-common';
2
2
  import { renderless, api } from '@opentinyvue/vue-renderless/dropdown-item/mf';
3
+ import { openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, createBlock, resolveDynamicComponent, createCommentVNode, renderSlot } from 'vue';
3
4
 
4
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
5
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
6
- if (render) {
7
- options.render = render;
8
- options.staticRenderFns = staticRenderFns;
9
- options._compiled = true;
5
+ function _createForOfIteratorHelperLoose(r, e) {
6
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
7
+ if (t) return (t = t.call(r)).next.bind(t);
8
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
9
+ t && (r = t);
10
+ var o = 0;
11
+ return function() {
12
+ return o >= r.length ? { done: true } : { done: false, value: r[o++] };
13
+ };
10
14
  }
11
- var hook;
12
- if (injectStyles) {
13
- hook = injectStyles;
14
- }
15
- if (hook) {
16
- if (options.functional) {
17
- options._injectStyles = hook;
18
- var originalRender = options.render;
19
- options.render = function renderWithStyleInjection(h, context) {
20
- hook.call(context);
21
- return originalRender(h, context);
22
- };
23
- } else {
24
- var existing = options.beforeCreate;
25
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
26
- }
15
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
16
+ }
17
+ function _unsupportedIterableToArray(r, a) {
18
+ if (r) {
19
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
20
+ var t = {}.toString.call(r).slice(8, -1);
21
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
27
22
  }
28
- return {
29
- exports: scriptExports,
30
- options
31
- };
32
23
  }
24
+ function _arrayLikeToArray(r, a) {
25
+ (null == a || a > r.length) && (a = r.length);
26
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
27
+ return n;
28
+ }
29
+ var _export_sfc = function _export_sfc2(sfc, props) {
30
+ var target = sfc.__vccOpts || sfc;
31
+ for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
32
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
33
+ target[key] = val;
34
+ }
35
+ return target;
36
+ };
33
37
 
34
- var __vue2_script = defineComponent({
38
+ var _sfc_main = defineComponent({
35
39
  emits: ["update:modelValue", "change", "closed", "open", "opened", "close", "confirm", "reset"],
36
40
  props: [].concat(props, ["disabled", "icon", "itemData", "selected", "label", "level", "currentIndex", "tooltipContent"]),
37
41
  setup: function setup$1(props2, context) {
@@ -43,48 +47,39 @@ var __vue2_script = defineComponent({
43
47
  });
44
48
  }
45
49
  });
46
- var render = function render2() {
47
- var _vm = this;
48
- var _h = _vm.$createElement;
49
- var _c = _vm._self._c || _h;
50
- return _c("li", {
51
- class: _vm.m("rounded-sm list-none leading-10 sm:leading-8 outline-0 min-w-[theme(spacing.18)] max-w-[theme(spacing.52)] w-full [&_svg]:sm:w-3.5 [&_svg]:sm:h-3.5 [&_svg]:sm:mr-1.5 [&_svg]:mr-2 [&_svg]:align-text-bottom", _vm.disabled ? "cursor-not-allowed text-color-text-disabled [&_svg]:fill-color-text-disabled" : "text-color-text-primary active:bg-color-bg-4 visited:text-color-brand hover:bg-color-bg-2 focus:bg-color-bg-4 cursor-pointer", {
52
- "text-color-brand-focus bg-color-fill-6": _vm.dataStore.checkedStatus && _vm.selected
53
- }, _vm.dataStore.multiStage ? "!px-0 mb-1" : "[&:not(:last-of-type)]:mb-1"),
54
- attrs: {
55
- "data-tag": "tiny-dropdown-item",
56
- "aria-disabled": _vm.disabled,
57
- "tabindex": _vm.disabled ? null : -1
50
+ var _hoisted_1 = ["aria-disabled", "tabindex"];
51
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
52
+ return openBlock(), createElementBlock("li", {
53
+ "data-tag": "tiny-dropdown-item",
54
+ onMouseenter: _cache[0] || (_cache[0] = function() {
55
+ return _ctx.mouseEnter && _ctx.mouseEnter.apply(_ctx, arguments);
56
+ }),
57
+ onMouseleave: _cache[1] || (_cache[1] = function() {
58
+ return _ctx.mouseLeave && _ctx.mouseLeave.apply(_ctx, arguments);
59
+ }),
60
+ class: normalizeClass(_ctx.m("rounded-sm list-none leading-10 sm:leading-8 outline-0 min-w-[theme(spacing.18)] max-w-[theme(spacing.52)] w-full [&_svg]:sm:w-3.5 [&_svg]:sm:h-3.5 [&_svg]:sm:mr-1.5 [&_svg]:mr-2 [&_svg]:align-text-bottom", _ctx.disabled ? "cursor-not-allowed text-color-text-disabled [&_svg]:fill-color-text-disabled" : "text-color-text-primary active:bg-color-bg-4 visited:text-color-brand hover:bg-color-bg-2 focus:bg-color-bg-4 cursor-pointer", {
61
+ "text-color-brand-focus bg-color-fill-6": _ctx.dataStore.checkedStatus && _ctx.selected
62
+ }, _ctx.dataStore.multiStage ? "!px-0 mb-1" : "[&:not(:last-of-type)]:mb-1")),
63
+ onClick: _cache[2] || (_cache[2] = withModifiers(function() {
64
+ return _ctx.handleClick && _ctx.handleClick.apply(_ctx, arguments);
65
+ }, ["stop"])),
66
+ "aria-disabled": _ctx.disabled,
67
+ tabindex: _ctx.disabled ? null : -1
68
+ }, [createElementVNode(
69
+ "div",
70
+ {
71
+ "data-tag": "tiny-dropdown-level",
72
+ ref: "level",
73
+ class: normalizeClass(["sm:text-xs text-sm", _ctx.level === "2" ? "mx-6 overflow-hidden text-ellipsis whitespace-nowrap" : "mx-4 sm:mx-3 overflow-hidden text-ellipsis whitespace-nowrap"])
58
74
  },
59
- on: {
60
- "mouseenter": _vm.mouseEnter,
61
- "mouseleave": _vm.mouseLeave,
62
- "click": function click($event) {
63
- $event.stopPropagation();
64
- return _vm.handleClick.apply(null, arguments);
65
- }
66
- }
67
- }, [_c("div", {
68
- ref: "level",
69
- class: ["sm:text-xs text-sm", _vm.level === "2" ? "mx-6 overflow-hidden text-ellipsis whitespace-nowrap" : "mx-4 sm:mx-3 overflow-hidden text-ellipsis whitespace-nowrap"],
70
- attrs: {
71
- "data-tag": "tiny-dropdown-level"
72
- }
73
- }, [_vm.icon ? _c(_vm.icon, {
74
- tag: "component",
75
- staticClass: "sm:w-3.5 sm:h-3.5 sm:mr-1.5 mr-2 align-text-bottom"
76
- }) : _vm._e(), _vm._t("default")], 2)]);
77
- };
78
- var staticRenderFns = [];
79
- var __cssModules = {};
80
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
81
- function __vue2_injectStyles(context) {
82
- for (var o in __cssModules) {
83
- this[o] = __cssModules[o];
84
- }
75
+ [_ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
76
+ key: 0,
77
+ class: "sm:w-3.5 sm:h-3.5 sm:mr-1.5 mr-2 align-text-bottom"
78
+ })) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default")],
79
+ 2
80
+ /* CLASS */
81
+ )], 42, _hoisted_1);
85
82
  }
86
- var mobileFirst = /* @__PURE__ */ function() {
87
- return __component__.exports;
88
- }();
83
+ var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
89
84
 
90
85
  export { mobileFirst as default };
package/lib/mobile.js CHANGED
@@ -5,38 +5,42 @@ import Popup from '@opentinyvue/vue-popup';
5
5
  import Button from '@opentinyvue/vue-button';
6
6
  import Clickoutside from '@opentinyvue/vue-renderless/common/deps/clickoutside';
7
7
  import '@opentinyvue/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';
8
9
 
9
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
10
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
11
- if (render) {
12
- options.render = render;
13
- options.staticRenderFns = staticRenderFns;
14
- options._compiled = true;
10
+ function _createForOfIteratorHelperLoose(r, e) {
11
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
12
+ if (t) return (t = t.call(r)).next.bind(t);
13
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
14
+ t && (r = t);
15
+ var o = 0;
16
+ return function() {
17
+ return o >= r.length ? { done: true } : { done: false, value: r[o++] };
18
+ };
15
19
  }
16
- var hook;
17
- if (injectStyles) {
18
- hook = injectStyles;
19
- }
20
- if (hook) {
21
- if (options.functional) {
22
- options._injectStyles = hook;
23
- var originalRender = options.render;
24
- options.render = function renderWithStyleInjection(h, context) {
25
- hook.call(context);
26
- return originalRender(h, context);
27
- };
28
- } else {
29
- var existing = options.beforeCreate;
30
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
31
- }
20
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
21
+ }
22
+ function _unsupportedIterableToArray(r, a) {
23
+ if (r) {
24
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
25
+ var t = {}.toString.call(r).slice(8, -1);
26
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
32
27
  }
33
- return {
34
- exports: scriptExports,
35
- options
36
- };
37
28
  }
29
+ function _arrayLikeToArray(r, a) {
30
+ (null == a || a > r.length) && (a = r.length);
31
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
32
+ return n;
33
+ }
34
+ var _export_sfc = function _export_sfc2(sfc, props) {
35
+ var target = sfc.__vccOpts || sfc;
36
+ for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
37
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
38
+ target[key] = val;
39
+ }
40
+ return target;
41
+ };
38
42
 
39
- var __vue2_script = defineComponent({
43
+ var _sfc_main = defineComponent({
40
44
  directives: directive({
41
45
  Clickoutside
42
46
  }),
@@ -56,140 +60,160 @@ var __vue2_script = defineComponent({
56
60
  });
57
61
  }
58
62
  });
59
- var render = function render2() {
60
- var _vm = this;
61
- var _h = _vm.$createElement;
62
- var _c = _vm._self._c || _h;
63
- return _c("div", {
64
- directives: [{
65
- name: "show",
66
- rawName: "v-show",
67
- value: _vm.state.showWrapper,
68
- expression: "state.showWrapper"
69
- }],
70
- ref: "wrapper",
71
- staticClass: "tiny-mobile-dropdown-item",
72
- class: "tiny-mobile-dropdown-item--" + _vm.state.direction,
73
- style: _vm.state.itemStyle,
74
- on: {
75
- "click": _vm.clickWrapper
76
- }
77
- }, [_c("tiny-popup", {
78
- attrs: {
79
- "popup-class": "tiny-mobile-dropdown-item__content",
80
- "overlay": _vm.state.overlay,
81
- "close-on-click-overlay": _vm.state.closeOnClickOverlay,
82
- "closeable": false,
83
- "position": _vm.state.direction === "down" ? "top" : "bottom",
84
- "duration": _vm.state.transition ? _vm.state.duration : 0
85
- },
86
- on: {
87
- "open": _vm.open,
88
- "close": _vm.close,
89
- "opened": _vm.opened,
90
- "closed": _vm.closed
63
+ var _hoisted_1 = {
64
+ key: 0,
65
+ class: "tiny-mobile-dropdown-item__options"
66
+ };
67
+ var _hoisted_2 = ["onClick"];
68
+ var _hoisted_3 = {
69
+ class: "tiny-mobile-dropdown-item__option-icon"
70
+ };
71
+ var _hoisted_4 = {
72
+ class: "tiny-mobile-dropdown-item__option-title"
73
+ };
74
+ var _hoisted_5 = {
75
+ class: "tiny-mobile-dropdown-item__option-value"
76
+ };
77
+ var _hoisted_6 = {
78
+ key: 1,
79
+ class: "tiny-mobile-dropdown-item__filter"
80
+ };
81
+ var _hoisted_7 = {
82
+ class: "tiny-mobile-dropdown-item__filter-wrap"
83
+ };
84
+ var _hoisted_8 = {
85
+ class: "tiny-mobile-dropdown-item__filter-title"
86
+ };
87
+ var _hoisted_9 = ["onClick"];
88
+ var _hoisted_10 = {
89
+ class: "tiny-mobile-dropdown-item__filter-operate"
90
+ };
91
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
92
+ var _component_icon_yes = resolveComponent("icon-yes");
93
+ var _component_tiny_button = resolveComponent("tiny-button");
94
+ var _component_tiny_popup = resolveComponent("tiny-popup");
95
+ var _directive_clickoutside = resolveDirective("clickoutside");
96
+ return withDirectives((openBlock(), createElementBlock(
97
+ "div",
98
+ {
99
+ ref: "wrapper",
100
+ class: normalizeClass(["tiny-mobile-dropdown-item--" + _ctx.state.direction, "tiny-mobile-dropdown-item"]),
101
+ onClick: _cache[1] || (_cache[1] = function() {
102
+ return _ctx.clickWrapper && _ctx.clickWrapper.apply(_ctx, arguments);
103
+ }),
104
+ style: normalizeStyle(_ctx.state.itemStyle)
91
105
  },
92
- model: {
93
- value: _vm.state.showPopup,
94
- callback: function callback($$v) {
95
- _vm.$set(_vm.state, "showPopup", $$v);
96
- },
97
- expression: "state.showPopup"
98
- }
99
- }, [_vm._t("default", function() {
100
- return [_vm.type === "selection" ? _c("div", {
101
- staticClass: "tiny-mobile-dropdown-item__options"
102
- }, _vm._l(_vm.options, function(item, index) {
103
- return _c("div", {
104
- key: index,
105
- staticClass: "tiny-mobile-dropdown-item__cell tiny-mobile-dropdown-item__option",
106
- class: item.value === _vm.modelValue ? "is-active" : "",
107
- attrs: {
108
- "tabindex": "0"
109
- },
110
- on: {
111
- "click": function click($event) {
112
- return _vm.clickItem(item.value);
113
- }
114
- }
115
- }, [_c("div", {
116
- staticClass: "tiny-mobile-dropdown-item__option-icon"
117
- }, [_vm._t("icon", function() {
118
- return [_c(_vm.icon, {
119
- tag: "component"
106
+ [createVNode(_component_tiny_popup, {
107
+ modelValue: _ctx.state.showPopup,
108
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = function($event) {
109
+ return _ctx.state.showPopup = $event;
110
+ }),
111
+ "popup-class": "tiny-mobile-dropdown-item__content",
112
+ overlay: _ctx.state.overlay,
113
+ "close-on-click-overlay": _ctx.state.closeOnClickOverlay,
114
+ closeable: false,
115
+ position: _ctx.state.direction === "down" ? "top" : "bottom",
116
+ duration: _ctx.state.transition ? _ctx.state.duration : 0,
117
+ onOpen: _ctx.open,
118
+ onClose: _ctx.close,
119
+ onOpened: _ctx.opened,
120
+ onClosed: _ctx.closed
121
+ }, {
122
+ default: withCtx(function() {
123
+ return [renderSlot(_ctx.$slots, "default", {}, function() {
124
+ return [_ctx.type === "selection" ? (openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(true), createElementBlock(
125
+ Fragment,
126
+ null,
127
+ renderList(_ctx.options, function(item, index) {
128
+ return openBlock(), createElementBlock("div", {
129
+ class: normalizeClass(["tiny-mobile-dropdown-item__cell tiny-mobile-dropdown-item__option", item.value === _ctx.modelValue ? "is-active" : ""]),
130
+ key: index,
131
+ tabindex: "0",
132
+ onClick: function onClick($event) {
133
+ return _ctx.clickItem(item.value);
134
+ }
135
+ }, [createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "icon", {}, function() {
136
+ return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))];
137
+ })]), createElementVNode("div", _hoisted_4, [renderSlot(_ctx.$slots, "title", {
138
+ titleData: item
139
+ }, function() {
140
+ return [createElementVNode(
141
+ "span",
142
+ {
143
+ style: normalizeStyle({
144
+ color: item.value === _ctx.modelValue && _ctx.state.activeColor ? _ctx.state.activeColor : ""
145
+ })
146
+ },
147
+ toDisplayString(item.text),
148
+ 5
149
+ /* TEXT, STYLE */
150
+ )];
151
+ })]), createElementVNode("div", _hoisted_5, [item.value === _ctx.modelValue ? (openBlock(), createBlock(_component_icon_yes, {
152
+ key: 0,
153
+ fill: _ctx.state.activeColor ? _ctx.state.activeColor : "#f36f64"
154
+ }, null, 8, ["fill"])) : createCommentVNode("v-if", true)])], 10, _hoisted_2);
155
+ }),
156
+ 128
157
+ /* KEYED_FRAGMENT */
158
+ ))])) : createCommentVNode("v-if", true), _ctx.type === "filter" ? withDirectives((openBlock(), createElementBlock("div", _hoisted_6, [createElementVNode("div", _hoisted_7, [(openBlock(true), createElementBlock(
159
+ Fragment,
160
+ null,
161
+ renderList(_ctx.options, function(item, key) {
162
+ return openBlock(), createElementBlock("div", {
163
+ key,
164
+ class: "tiny-mobile-dropdown-item__cell tiny-mobile-dropdown-item__filter-item"
165
+ }, [createElementVNode(
166
+ "span",
167
+ _hoisted_8,
168
+ toDisplayString(item.title),
169
+ 1
170
+ /* TEXT */
171
+ ), createElementVNode("ul", null, [(openBlock(true), createElementBlock(
172
+ Fragment,
173
+ null,
174
+ renderList(_ctx.options.length === 0 ? item.data = [] : item.data, function(tag, tagkey) {
175
+ return openBlock(), createElementBlock("li", {
176
+ class: normalizeClass(["tiny-mobile-dropdown-item__filter-li", [_ctx.modelValue[key].indexOf(tag.value) > -1 ? "checked" : ""]]),
177
+ style: normalizeStyle(_ctx.getOptionStyle(tag, _ctx.modelValue[key])),
178
+ onClick: function onClick($event) {
179
+ return _ctx.tagClick(key, tag, $event);
180
+ },
181
+ key: tagkey
182
+ }, toDisplayString(tag.text), 15, _hoisted_9);
183
+ }),
184
+ 128
185
+ /* KEYED_FRAGMENT */
186
+ ))])]);
187
+ }),
188
+ 128
189
+ /* KEYED_FRAGMENT */
190
+ ))]), createElementVNode("div", _hoisted_10, [createVNode(_component_tiny_button, {
191
+ onClick: _ctx.reset
192
+ }, {
193
+ default: withCtx(function() {
194
+ return [createTextVNode(" Reset ")];
195
+ }),
196
+ _: 1
197
+ /* STABLE */
198
+ }, 8, ["onClick"]), createVNode(_component_tiny_button, {
199
+ type: "primary",
200
+ onClick: _ctx.confirm
201
+ }, {
202
+ default: withCtx(function() {
203
+ return [createTextVNode(" OK ")];
204
+ }),
205
+ _: 1
206
+ /* STABLE */
207
+ }, 8, ["onClick"])])])), [[_directive_clickoutside, _ctx.clickOutside]]) : createCommentVNode("v-if", true)];
120
208
  })];
121
- })], 2), _c("div", {
122
- staticClass: "tiny-mobile-dropdown-item__option-title"
123
- }, [_vm._t("title", function() {
124
- return [_c("span", {
125
- style: {
126
- color: item.value === _vm.modelValue && _vm.state.activeColor ? _vm.state.activeColor : ""
127
- }
128
- }, [_vm._v(_vm._s(item.text))])];
129
- }, {
130
- "titleData": item
131
- })], 2), _c("div", {
132
- staticClass: "tiny-mobile-dropdown-item__option-value"
133
- }, [item.value === _vm.modelValue ? _c("icon-yes", {
134
- attrs: {
135
- "fill": _vm.state.activeColor ? _vm.state.activeColor : "#f36f64"
136
- }
137
- }) : _vm._e()], 1)]);
138
- }), 0) : _vm._e(), _vm.type === "filter" ? _c("div", {
139
- directives: [{
140
- name: "clickoutside",
141
- rawName: "v-clickoutside",
142
- value: _vm.clickOutside,
143
- expression: "clickOutside"
144
- }],
145
- staticClass: "tiny-mobile-dropdown-item__filter"
146
- }, [_c("div", {
147
- staticClass: "tiny-mobile-dropdown-item__filter-wrap"
148
- }, _vm._l(_vm.options, function(item, key) {
149
- return _c("div", {
150
- key,
151
- staticClass: "tiny-mobile-dropdown-item__cell tiny-mobile-dropdown-item__filter-item"
152
- }, [_c("span", {
153
- staticClass: "tiny-mobile-dropdown-item__filter-title"
154
- }, [_vm._v(_vm._s(item.title))]), _c("ul", _vm._l(_vm.options.length === 0 ? item.data = [] : item.data, function(tag, tagkey) {
155
- return _c("li", {
156
- key: tagkey,
157
- staticClass: "tiny-mobile-dropdown-item__filter-li",
158
- class: [_vm.modelValue[key].indexOf(tag.value) > -1 ? "checked" : ""],
159
- style: _vm.getOptionStyle(tag, _vm.modelValue[key]),
160
- on: {
161
- "click": function click($event) {
162
- return _vm.tagClick(key, tag, $event);
163
- }
164
- }
165
- }, [_vm._v(" " + _vm._s(tag.text) + " ")]);
166
- }), 0)]);
167
- }), 0), _c("div", {
168
- staticClass: "tiny-mobile-dropdown-item__filter-operate"
169
- }, [_c("tiny-button", {
170
- on: {
171
- "click": _vm.reset
172
- }
173
- }, [_vm._v(" Reset ")]), _c("tiny-button", {
174
- attrs: {
175
- "type": "primary"
176
- },
177
- on: {
178
- "click": _vm.confirm
179
- }
180
- }, [_vm._v(" OK ")])], 1)]) : _vm._e()];
181
- })], 2)], 1);
182
- };
183
- var staticRenderFns = [];
184
- var __cssModules = {};
185
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
186
- function __vue2_injectStyles(context) {
187
- for (var o in __cssModules) {
188
- this[o] = __cssModules[o];
189
- }
209
+ }),
210
+ _: 3
211
+ /* FORWARDED */
212
+ }, 8, ["modelValue", "overlay", "close-on-click-overlay", "position", "duration", "onOpen", "onClose", "onOpened", "onClosed"])],
213
+ 6
214
+ /* CLASS, STYLE */
215
+ )), [[vShow, _ctx.state.showWrapper]]);
190
216
  }
191
- var mobile = /* @__PURE__ */ function() {
192
- return __component__.exports;
193
- }();
217
+ var mobile = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
194
218
 
195
219
  export { mobile as default };
package/lib/pc.js CHANGED
@@ -3,38 +3,42 @@ import { renderless, api } from '@opentinyvue/vue-renderless/dropdown-item/vue';
3
3
  import { iconLeftWardArrow } from '@opentinyvue/vue-icon';
4
4
  import '@opentinyvue/vue-theme/dropdown-item/index.css';
5
5
  import { AutoTip } from '@opentinyvue/vue-directive';
6
+ import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, createBlock, resolveDynamicComponent, createCommentVNode, renderSlot, toDisplayString, Fragment, renderList, withCtx } from 'vue';
6
7
 
7
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
8
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
9
- if (render) {
10
- options.render = render;
11
- options.staticRenderFns = staticRenderFns;
12
- options._compiled = true;
8
+ function _createForOfIteratorHelperLoose(r, e) {
9
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
10
+ if (t) return (t = t.call(r)).next.bind(t);
11
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
12
+ t && (r = t);
13
+ var o = 0;
14
+ return function() {
15
+ return o >= r.length ? { done: true } : { done: false, value: r[o++] };
16
+ };
13
17
  }
14
- var hook;
15
- if (injectStyles) {
16
- hook = injectStyles;
17
- }
18
- if (hook) {
19
- if (options.functional) {
20
- options._injectStyles = hook;
21
- var originalRender = options.render;
22
- options.render = function renderWithStyleInjection(h, context) {
23
- hook.call(context);
24
- return originalRender(h, context);
25
- };
26
- } else {
27
- var existing = options.beforeCreate;
28
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
29
- }
18
+ 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
+ function _unsupportedIterableToArray(r, a) {
21
+ if (r) {
22
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
23
+ var t = {}.toString.call(r).slice(8, -1);
24
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
30
25
  }
31
- return {
32
- exports: scriptExports,
33
- options
34
- };
35
26
  }
27
+ function _arrayLikeToArray(r, a) {
28
+ (null == a || a > r.length) && (a = r.length);
29
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
30
+ return n;
31
+ }
32
+ var _export_sfc = function _export_sfc2(sfc, props) {
33
+ var target = sfc.__vccOpts || sfc;
34
+ for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
35
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
36
+ target[key] = val;
37
+ }
38
+ return target;
39
+ };
36
40
 
37
- var __vue2_script = defineComponent({
41
+ var _sfc_main = defineComponent({
38
42
  name: $prefix + "DropdownItem",
39
43
  componentName: $prefix + "DropdownItem",
40
44
  directives: {
@@ -76,85 +80,89 @@ var __vue2_script = defineComponent({
76
80
  });
77
81
  }
78
82
  });
79
- var render = function render2() {
80
- var _vm = this;
81
- var _h = _vm.$createElement;
82
- var _c = _vm._self._c || _h;
83
- return _c("li", {
84
- directives: [{
85
- name: "auto-tip",
86
- rawName: "v-auto-tip",
87
- value: _vm.state.computedTip ? {
88
- always: true,
89
- content: _vm.state.computedTip,
90
- effect: _vm.effect,
91
- placement: _vm.tipPosition
92
- } : false,
93
- expression: "\n state.computedTip ? { always: true, content: state.computedTip, effect, placement: tipPosition } : false\n "
94
- }],
83
+ var _hoisted_1 = ["aria-disabled", "tabindex"];
84
+ var _hoisted_2 = {
85
+ class: "tiny-dropdown-item__wrap"
86
+ };
87
+ var _hoisted_3 = {
88
+ key: 0,
89
+ class: "tiny-dropdown-item__expand tiny-dropdown-menu__item-expand"
90
+ };
91
+ var _hoisted_4 = {
92
+ class: "tiny-dropdown-item__content tiny-dropdown-menu__item-content"
93
+ };
94
+ var _hoisted_5 = {
95
+ class: "tiny-dropdown-item__label"
96
+ };
97
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
98
+ var _component_tiny_dropdown_item = resolveComponent("tiny-dropdown-item");
99
+ var _directive_auto_tip = resolveDirective("auto-tip");
100
+ return withDirectives((openBlock(), createElementBlock("li", {
101
+ class: normalizeClass(["tiny-dropdown-item", "tiny-dropdown-menu__item", _ctx.state.sizeClass, _ctx.disabled ? "is-disabled" : "", _ctx.divided ? "tiny-dropdown-item--divided tiny-dropdown-menu__item--divided" : "", _ctx.state.checkedStatus && _ctx.selected ? "tiny-dropdown-item--check-status" : "", _ctx.itemData.children && _ctx.itemData.children.length ? "has-children" : ""]),
95
102
  ref: "dropdownItem",
96
- 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" : ""],
97
- attrs: {
98
- "aria-disabled": _vm.disabled,
99
- "tabindex": _vm.disabled ? null : -1
103
+ onClick: _cache[0] || (_cache[0] = withModifiers(function() {
104
+ return _ctx.handleClick && _ctx.handleClick.apply(_ctx, arguments);
105
+ }, ["stop"])),
106
+ onMousedown: _cache[1] || (_cache[1] = withModifiers(function() {
107
+ }, ["stop"])),
108
+ "aria-disabled": _ctx.disabled,
109
+ tabindex: _ctx.disabled ? null : -1
110
+ }, [createElementVNode("div", _hoisted_2, [_ctx.itemData.children && _ctx.itemData.children.length ? (openBlock(), createElementBlock("span", _hoisted_3, [(openBlock(), createBlock(resolveDynamicComponent(_ctx.state.getIcon)))])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_4, [_ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
111
+ key: 0,
112
+ class: "tiny-svg-size tiny-dropdown-item__pre-icon"
113
+ })) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_5, [renderSlot(_ctx.$slots, "default", {
114
+ itemData: _ctx.itemData
115
+ }, function() {
116
+ return [createElementVNode(
117
+ "span",
118
+ null,
119
+ toDisplayString(_ctx.label),
120
+ 1
121
+ /* TEXT */
122
+ )];
123
+ })])]), _ctx.itemData.children && _ctx.itemData.children.length ? (openBlock(), createElementBlock(
124
+ "ul",
125
+ {
126
+ key: 1,
127
+ class: normalizeClass(["tiny-dropdown-menu", "tiny-dropdown-item--child tiny-dropdown-menu__item--child", _ctx.state.popperClass])
100
128
  },
101
- on: {
102
- "click": function click($event) {
103
- $event.stopPropagation();
104
- return _vm.handleClick.apply(null, arguments);
105
- },
106
- "mousedown": function mousedown($event) {
107
- $event.stopPropagation();
108
- }
109
- }
110
- }, [_c("div", {
111
- staticClass: "tiny-dropdown-item__wrap"
112
- }, [_vm.itemData.children && _vm.itemData.children.length ? _c("span", {
113
- staticClass: "tiny-dropdown-item__expand tiny-dropdown-menu__item-expand"
114
- }, [_c(_vm.state.getIcon, {
115
- tag: "component"
116
- })], 1) : _vm._e(), _c("div", {
117
- staticClass: "tiny-dropdown-item__content tiny-dropdown-menu__item-content"
118
- }, [_vm.icon ? _c(_vm.icon, {
119
- tag: "component",
120
- staticClass: "tiny-svg-size tiny-dropdown-item__pre-icon"
121
- }) : _vm._e(), _c("span", {
122
- staticClass: "tiny-dropdown-item__label"
123
- }, [_vm._t("default", function() {
124
- return [_c("span", [_vm._v(_vm._s(_vm.label))])];
125
- }, {
126
- "itemData": _vm.itemData
127
- })], 2)], 1), _vm.itemData.children && _vm.itemData.children.length ? _c("ul", {
128
- class: ["tiny-dropdown-menu", "tiny-dropdown-item--child tiny-dropdown-menu__item--child", _vm.state.popperClass]
129
- }, _vm._l(_vm.itemData.children, function(item, index) {
130
- return _c("tiny-dropdown-item", {
131
- key: index,
132
- attrs: {
133
- "label": item[_vm.state.textField],
134
- "item-data": item,
135
- "_constants": _vm._constants,
136
- "icon": item.icon,
137
- "is-mono": true,
138
- "disabled": item.disabled,
139
- "divided": item.divided,
140
- "tip": item.tip,
141
- "tip-position": item.tipPosition
142
- }
143
- }, [_vm._t("default", null, {
144
- "itemData": item
145
- })], 2);
146
- }), 1) : _vm._e()])]);
147
- };
148
- var staticRenderFns = [];
149
- var __cssModules = {};
150
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
151
- function __vue2_injectStyles(context) {
152
- for (var o in __cssModules) {
153
- this[o] = __cssModules[o];
154
- }
129
+ [(openBlock(true), createElementBlock(
130
+ Fragment,
131
+ null,
132
+ renderList(_ctx.itemData.children, function(item, index) {
133
+ return openBlock(), createBlock(_component_tiny_dropdown_item, {
134
+ key: index,
135
+ label: item[_ctx.state.textField],
136
+ "item-data": item,
137
+ _constants: _ctx._constants,
138
+ icon: item.icon,
139
+ "is-mono": true,
140
+ disabled: item.disabled,
141
+ divided: item.divided,
142
+ tip: item.tip,
143
+ "tip-position": item.tipPosition
144
+ }, {
145
+ default: withCtx(function() {
146
+ return [renderSlot(_ctx.$slots, "default", {
147
+ itemData: item
148
+ })];
149
+ }),
150
+ _: 2
151
+ /* DYNAMIC */
152
+ }, 1032, ["label", "item-data", "_constants", "icon", "disabled", "divided", "tip", "tip-position"]);
153
+ }),
154
+ 128
155
+ /* KEYED_FRAGMENT */
156
+ ))],
157
+ 2
158
+ /* CLASS */
159
+ )) : createCommentVNode("v-if", true)])], 42, _hoisted_1)), [[_directive_auto_tip, _ctx.state.computedTip ? {
160
+ always: true,
161
+ content: _ctx.state.computedTip,
162
+ effect: _ctx.effect,
163
+ placement: _ctx.tipPosition
164
+ } : false]]);
155
165
  }
156
- var pc = /* @__PURE__ */ function() {
157
- return __component__.exports;
158
- }();
166
+ var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
159
167
 
160
168
  export { pc as default };
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-dropdown-item",
3
3
  "type": "module",
4
- "version": "2.21.0",
4
+ "version": "3.21.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
- "@opentinyvue/vue-button": "~2.21.0",
12
- "@opentinyvue/vue-common": "~2.21.0",
13
- "@opentinyvue/vue-directive": "~2.21.0",
14
- "@opentinyvue/vue-icon": "~2.21.0",
15
- "@opentinyvue/vue-popup": "~2.21.0",
11
+ "@opentinyvue/vue-button": "~3.21.0",
12
+ "@opentinyvue/vue-common": "~3.21.0",
13
+ "@opentinyvue/vue-directive": "~3.21.0",
14
+ "@opentinyvue/vue-icon": "~3.21.0",
15
+ "@opentinyvue/vue-popup": "~3.21.0",
16
16
  "@opentinyvue/vue-renderless": "~3.21.0",
17
17
  "@opentinyvue/vue-theme": "~3.21.0",
18
18
  "@opentinyvue/vue-theme-mobile": "~3.21.0"
package/src/index.d.ts CHANGED
@@ -89,5 +89,173 @@ export declare const dropdownItemProps: {
89
89
  tiny_theme: StringConstructor;
90
90
  tiny_chart_theme: ObjectConstructor;
91
91
  };
92
- declare const _default: any;
92
+ declare const _default: import("@vue/runtime-core").DefineComponent<{
93
+ _constants: {
94
+ type: ObjectConstructor;
95
+ default: () => {
96
+ ICON_MAP: {
97
+ leftWardArrow: string;
98
+ };
99
+ };
100
+ };
101
+ icon: (StringConstructor | ObjectConstructor)[];
102
+ disabled: BooleanConstructor;
103
+ divided: BooleanConstructor;
104
+ itemData: {
105
+ type: (StringConstructor | ObjectConstructor)[];
106
+ default: string;
107
+ };
108
+ title: StringConstructor;
109
+ label: StringConstructor;
110
+ level: StringConstructor;
111
+ titleClass: StringConstructor;
112
+ options: {
113
+ type: ArrayConstructor;
114
+ default: () => never[];
115
+ };
116
+ type: {
117
+ type: StringConstructor;
118
+ default: string;
119
+ };
120
+ selected: {
121
+ type: BooleanConstructor;
122
+ default: boolean;
123
+ };
124
+ selectedField: {
125
+ type: StringConstructor;
126
+ default: string;
127
+ };
128
+ multiStage: {
129
+ type: BooleanConstructor;
130
+ default: boolean;
131
+ };
132
+ currentIndex: {
133
+ type: NumberConstructor;
134
+ default: () => number;
135
+ };
136
+ tooltipContent: {
137
+ type: StringConstructor;
138
+ default: string;
139
+ };
140
+ appendToBody: {
141
+ type: BooleanConstructor;
142
+ default: boolean;
143
+ };
144
+ textField: {
145
+ type: StringConstructor;
146
+ default: string;
147
+ };
148
+ tip: {
149
+ type: (StringConstructor | FunctionConstructor)[];
150
+ default: string;
151
+ };
152
+ tipPosition: {
153
+ type: StringConstructor;
154
+ default: string;
155
+ };
156
+ effect: {
157
+ type: StringConstructor;
158
+ default: string;
159
+ };
160
+ tiny_mode: StringConstructor;
161
+ tiny_mode_root: BooleanConstructor;
162
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
163
+ tiny_renderless: FunctionConstructor;
164
+ tiny_theme: StringConstructor;
165
+ tiny_chart_theme: ObjectConstructor;
166
+ }, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
167
+ [key: string]: any;
168
+ }>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
169
+ _constants: {
170
+ type: ObjectConstructor;
171
+ default: () => {
172
+ ICON_MAP: {
173
+ leftWardArrow: string;
174
+ };
175
+ };
176
+ };
177
+ icon: (StringConstructor | ObjectConstructor)[];
178
+ disabled: BooleanConstructor;
179
+ divided: BooleanConstructor;
180
+ itemData: {
181
+ type: (StringConstructor | ObjectConstructor)[];
182
+ default: string;
183
+ };
184
+ title: StringConstructor;
185
+ label: StringConstructor;
186
+ level: StringConstructor;
187
+ titleClass: StringConstructor;
188
+ options: {
189
+ type: ArrayConstructor;
190
+ default: () => never[];
191
+ };
192
+ type: {
193
+ type: StringConstructor;
194
+ default: string;
195
+ };
196
+ selected: {
197
+ type: BooleanConstructor;
198
+ default: boolean;
199
+ };
200
+ selectedField: {
201
+ type: StringConstructor;
202
+ default: string;
203
+ };
204
+ multiStage: {
205
+ type: BooleanConstructor;
206
+ default: boolean;
207
+ };
208
+ currentIndex: {
209
+ type: NumberConstructor;
210
+ default: () => number;
211
+ };
212
+ tooltipContent: {
213
+ type: StringConstructor;
214
+ default: string;
215
+ };
216
+ appendToBody: {
217
+ type: BooleanConstructor;
218
+ default: boolean;
219
+ };
220
+ textField: {
221
+ type: StringConstructor;
222
+ default: string;
223
+ };
224
+ tip: {
225
+ type: (StringConstructor | FunctionConstructor)[];
226
+ default: string;
227
+ };
228
+ tipPosition: {
229
+ type: StringConstructor;
230
+ default: string;
231
+ };
232
+ effect: {
233
+ type: StringConstructor;
234
+ default: string;
235
+ };
236
+ tiny_mode: StringConstructor;
237
+ tiny_mode_root: BooleanConstructor;
238
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
239
+ tiny_renderless: FunctionConstructor;
240
+ tiny_theme: StringConstructor;
241
+ tiny_chart_theme: ObjectConstructor;
242
+ }>>, {
243
+ disabled: boolean;
244
+ divided: boolean;
245
+ type: string;
246
+ selected: boolean;
247
+ tiny_mode_root: boolean;
248
+ _constants: Record<string, any>;
249
+ effect: string;
250
+ multiStage: boolean;
251
+ options: unknown[];
252
+ textField: string;
253
+ itemData: string | Record<string, any>;
254
+ selectedField: string;
255
+ currentIndex: number;
256
+ tooltipContent: string;
257
+ appendToBody: boolean;
258
+ tip: string | Function;
259
+ tipPosition: string;
260
+ }, {}>;
93
261
  export default _default;
@@ -1,2 +1,59 @@
1
- declare const _default: any;
1
+ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
+ label?: any;
3
+ disabled?: any;
4
+ icon?: any;
5
+ selected?: any;
6
+ tiny_mode?: any;
7
+ tiny_mode_root?: any;
8
+ tiny_template?: any;
9
+ tiny_renderless?: any;
10
+ _constants?: any;
11
+ tiny_theme?: any;
12
+ tiny_chart_theme?: any;
13
+ itemData?: any;
14
+ level?: any;
15
+ currentIndex?: any;
16
+ tooltipContent?: any;
17
+ }>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened")[], "change" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
18
+ label?: any;
19
+ disabled?: any;
20
+ icon?: any;
21
+ selected?: any;
22
+ tiny_mode?: any;
23
+ tiny_mode_root?: any;
24
+ tiny_template?: any;
25
+ tiny_renderless?: any;
26
+ _constants?: any;
27
+ tiny_theme?: any;
28
+ tiny_chart_theme?: any;
29
+ itemData?: any;
30
+ level?: any;
31
+ currentIndex?: any;
32
+ tooltipContent?: any;
33
+ }>>> & {
34
+ onChange?: ((...args: any[]) => any) | undefined;
35
+ onClose?: ((...args: any[]) => any) | undefined;
36
+ onReset?: ((...args: any[]) => any) | undefined;
37
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
38
+ onConfirm?: ((...args: any[]) => any) | undefined;
39
+ onOpen?: ((...args: any[]) => any) | undefined;
40
+ onClosed?: ((...args: any[]) => any) | undefined;
41
+ onOpened?: ((...args: any[]) => any) | undefined;
42
+ }, {
43
+ readonly label?: any;
44
+ readonly disabled?: any;
45
+ readonly icon?: any;
46
+ readonly selected?: any;
47
+ readonly tiny_mode?: any;
48
+ readonly tiny_mode_root?: any;
49
+ readonly tiny_template?: any;
50
+ readonly tiny_renderless?: any;
51
+ readonly _constants?: any;
52
+ readonly tiny_theme?: any;
53
+ readonly tiny_chart_theme?: any;
54
+ readonly itemData?: any;
55
+ readonly level?: any;
56
+ readonly currentIndex?: any;
57
+ readonly tooltipContent?: any;
58
+ }, {}>;
2
59
  export default _default;
@@ -1,2 +1,67 @@
1
- declare const _default: any;
1
+ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
+ disabled?: any;
3
+ icon?: any;
4
+ type?: any;
5
+ title?: any;
6
+ tiny_mode?: any;
7
+ tiny_mode_root?: any;
8
+ tiny_template?: any;
9
+ tiny_renderless?: any;
10
+ _constants?: any;
11
+ tiny_theme?: any;
12
+ tiny_chart_theme?: any;
13
+ modelValue?: any;
14
+ options?: any;
15
+ titleClass?: any;
16
+ }>, {
17
+ t: (this: any, path: any, options?: any) => any;
18
+ vm: any;
19
+ f: (props: any, attrs?: {}) => {};
20
+ a: (attrs: any, filters: any, include: any) => {};
21
+ d: (props: any) => void;
22
+ dp: (props: any) => void;
23
+ gcls: (key: any) => any;
24
+ m: (...cssClasses: any[]) => string;
25
+ }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("item-click" | "change" | "click" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened")[], "item-click" | "change" | "click" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
26
+ disabled?: any;
27
+ icon?: any;
28
+ type?: any;
29
+ title?: any;
30
+ tiny_mode?: any;
31
+ tiny_mode_root?: any;
32
+ tiny_template?: any;
33
+ tiny_renderless?: any;
34
+ _constants?: any;
35
+ tiny_theme?: any;
36
+ tiny_chart_theme?: any;
37
+ modelValue?: any;
38
+ options?: any;
39
+ titleClass?: any;
40
+ }>>> & {
41
+ onChange?: ((...args: any[]) => any) | undefined;
42
+ onClick?: ((...args: any[]) => any) | undefined;
43
+ onClose?: ((...args: any[]) => any) | undefined;
44
+ onReset?: ((...args: any[]) => any) | undefined;
45
+ "onItem-click"?: ((...args: any[]) => any) | undefined;
46
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
47
+ onConfirm?: ((...args: any[]) => any) | undefined;
48
+ onOpen?: ((...args: any[]) => any) | undefined;
49
+ onClosed?: ((...args: any[]) => any) | undefined;
50
+ onOpened?: ((...args: any[]) => any) | undefined;
51
+ }, {
52
+ readonly disabled?: any;
53
+ readonly icon?: any;
54
+ readonly type?: any;
55
+ readonly title?: any;
56
+ readonly tiny_mode?: any;
57
+ readonly tiny_mode_root?: any;
58
+ readonly tiny_template?: any;
59
+ readonly tiny_renderless?: any;
60
+ readonly _constants?: any;
61
+ readonly tiny_theme?: any;
62
+ readonly tiny_chart_theme?: any;
63
+ readonly modelValue?: any;
64
+ readonly options?: any;
65
+ readonly titleClass?: any;
66
+ }, {}>;
2
67
  export default _default;
package/src/pc.vue.d.ts CHANGED
@@ -1,2 +1,94 @@
1
- declare const _default: any;
1
+ import type { IDropdownItemApi } from '@opentinyvue/vue-renderless/types/dropdown-item.type';
2
+ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
3
+ label?: any;
4
+ disabled?: any;
5
+ divided?: any;
6
+ icon?: any;
7
+ type?: any;
8
+ title?: any;
9
+ selected?: any;
10
+ tiny_mode?: any;
11
+ tiny_mode_root?: any;
12
+ tiny_template?: any;
13
+ tiny_renderless?: any;
14
+ _constants?: any;
15
+ tiny_theme?: any;
16
+ tiny_chart_theme?: any;
17
+ effect?: any;
18
+ multiStage?: any;
19
+ options?: any;
20
+ textField?: any;
21
+ itemData?: any;
22
+ titleClass?: any;
23
+ selectedField?: any;
24
+ currentIndex?: any;
25
+ appendToBody?: any;
26
+ tip?: any;
27
+ tipPosition?: any;
28
+ isMono?: any;
29
+ }>, IDropdownItemApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("item-click" | "change" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened")[], "item-click" | "change" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
30
+ label?: any;
31
+ disabled?: any;
32
+ divided?: any;
33
+ icon?: any;
34
+ type?: any;
35
+ title?: any;
36
+ selected?: any;
37
+ tiny_mode?: any;
38
+ tiny_mode_root?: any;
39
+ tiny_template?: any;
40
+ tiny_renderless?: any;
41
+ _constants?: any;
42
+ tiny_theme?: any;
43
+ tiny_chart_theme?: any;
44
+ effect?: any;
45
+ multiStage?: any;
46
+ options?: any;
47
+ textField?: any;
48
+ itemData?: any;
49
+ titleClass?: any;
50
+ selectedField?: any;
51
+ currentIndex?: any;
52
+ appendToBody?: any;
53
+ tip?: any;
54
+ tipPosition?: any;
55
+ isMono?: any;
56
+ }>>> & {
57
+ onChange?: ((...args: any[]) => any) | undefined;
58
+ onClose?: ((...args: any[]) => any) | undefined;
59
+ onReset?: ((...args: any[]) => any) | undefined;
60
+ "onItem-click"?: ((...args: any[]) => any) | undefined;
61
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
62
+ onConfirm?: ((...args: any[]) => any) | undefined;
63
+ onOpen?: ((...args: any[]) => any) | undefined;
64
+ onClosed?: ((...args: any[]) => any) | undefined;
65
+ onOpened?: ((...args: any[]) => any) | undefined;
66
+ }, {
67
+ readonly label?: any;
68
+ readonly disabled?: any;
69
+ readonly divided?: any;
70
+ readonly icon?: any;
71
+ readonly type?: any;
72
+ readonly title?: any;
73
+ readonly selected?: any;
74
+ readonly tiny_mode?: any;
75
+ readonly tiny_mode_root?: any;
76
+ readonly tiny_template?: any;
77
+ readonly tiny_renderless?: any;
78
+ readonly _constants?: any;
79
+ readonly tiny_theme?: any;
80
+ readonly tiny_chart_theme?: any;
81
+ readonly effect?: any;
82
+ readonly multiStage?: any;
83
+ readonly options?: any;
84
+ readonly textField?: any;
85
+ readonly itemData?: any;
86
+ readonly titleClass?: any;
87
+ readonly selectedField?: any;
88
+ readonly currentIndex?: any;
89
+ readonly appendToBody?: any;
90
+ readonly tip?: any;
91
+ readonly tipPosition?: any;
92
+ readonly isMono?: any;
93
+ }, {}>;
2
94
  export default _default;