@opentinyvue/vue-dropdown-item 2.22.0 → 3.22.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
@@ -114,7 +114,7 @@ var DropdownItem = defineComponent({
114
114
  });
115
115
  }
116
116
  });
117
- var version = "2.22.0";
117
+ var version = "3.22.0";
118
118
  DropdownItem.model = {
119
119
  prop: "modelValue",
120
120
  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/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,16 +1,16 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-dropdown-item",
3
3
  "type": "module",
4
- "version": "2.22.0",
4
+ "version": "3.22.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-common": "~2.22.0",
12
- "@opentinyvue/vue-directive": "~2.22.0",
13
- "@opentinyvue/vue-icon": "~2.22.0",
11
+ "@opentinyvue/vue-common": "~3.22.0",
12
+ "@opentinyvue/vue-directive": "~3.22.0",
13
+ "@opentinyvue/vue-icon": "~3.22.0",
14
14
  "@opentinyvue/vue-renderless": "~3.22.0",
15
15
  "@opentinyvue/vue-theme": "~3.22.0"
16
16
  },
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
+ options: unknown[];
248
+ appendToBody: boolean;
249
+ tiny_mode_root: boolean;
250
+ _constants: Record<string, any>;
251
+ effect: string;
252
+ multiStage: boolean;
253
+ textField: string;
254
+ itemData: string | Record<string, any>;
255
+ selectedField: string;
256
+ currentIndex: number;
257
+ tooltipContent: string;
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
+ level?: any;
7
+ tiny_mode?: any;
8
+ tiny_mode_root?: any;
9
+ tiny_template?: any;
10
+ tiny_renderless?: any;
11
+ _constants?: any;
12
+ tiny_theme?: any;
13
+ tiny_chart_theme?: any;
14
+ itemData?: 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
+ level?: any;
23
+ tiny_mode?: any;
24
+ tiny_mode_root?: any;
25
+ tiny_template?: any;
26
+ tiny_renderless?: any;
27
+ _constants?: any;
28
+ tiny_theme?: any;
29
+ tiny_chart_theme?: any;
30
+ itemData?: 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 level?: any;
48
+ readonly tiny_mode?: any;
49
+ readonly tiny_mode_root?: any;
50
+ readonly tiny_template?: any;
51
+ readonly tiny_renderless?: any;
52
+ readonly _constants?: any;
53
+ readonly tiny_theme?: any;
54
+ readonly tiny_chart_theme?: any;
55
+ readonly itemData?: any;
56
+ readonly currentIndex?: any;
57
+ readonly tooltipContent?: any;
58
+ }, {}>;
2
59
  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
+ options?: any;
11
+ appendToBody?: any;
12
+ tiny_mode?: any;
13
+ tiny_mode_root?: any;
14
+ tiny_template?: any;
15
+ tiny_renderless?: any;
16
+ _constants?: any;
17
+ tiny_theme?: any;
18
+ tiny_chart_theme?: any;
19
+ effect?: any;
20
+ multiStage?: any;
21
+ textField?: any;
22
+ itemData?: any;
23
+ titleClass?: any;
24
+ selectedField?: any;
25
+ currentIndex?: 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
+ options?: any;
38
+ appendToBody?: any;
39
+ tiny_mode?: any;
40
+ tiny_mode_root?: any;
41
+ tiny_template?: any;
42
+ tiny_renderless?: any;
43
+ _constants?: any;
44
+ tiny_theme?: any;
45
+ tiny_chart_theme?: any;
46
+ effect?: any;
47
+ multiStage?: any;
48
+ textField?: any;
49
+ itemData?: any;
50
+ titleClass?: any;
51
+ selectedField?: any;
52
+ currentIndex?: 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 options?: any;
75
+ readonly appendToBody?: any;
76
+ readonly tiny_mode?: any;
77
+ readonly tiny_mode_root?: any;
78
+ readonly tiny_template?: any;
79
+ readonly tiny_renderless?: any;
80
+ readonly _constants?: any;
81
+ readonly tiny_theme?: any;
82
+ readonly tiny_chart_theme?: any;
83
+ readonly effect?: any;
84
+ readonly multiStage?: any;
85
+ readonly textField?: any;
86
+ readonly itemData?: any;
87
+ readonly titleClass?: any;
88
+ readonly selectedField?: any;
89
+ readonly currentIndex?: any;
90
+ readonly tip?: any;
91
+ readonly tipPosition?: any;
92
+ readonly isMono?: any;
93
+ }, {}>;
2
94
  export default _default;