@opentiny/vue-dropdown-item 3.16.0 → 3.17.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
@@ -1,16 +1,12 @@
1
1
  function _extends() {
2
- _extends = Object.assign ? Object.assign.bind() : function(target) {
3
- for (var i = 1; i < arguments.length; i++) {
4
- var source = arguments[i];
5
- for (var key in source) {
6
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7
- target[key] = source[key];
8
- }
9
- }
2
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
3
+ for (var e = 1; e < arguments.length; e++) {
4
+ var t = arguments[e];
5
+ for (var r in t)
6
+ ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
10
7
  }
11
- return target;
12
- };
13
- return _extends.apply(this, arguments);
8
+ return n;
9
+ }, _extends.apply(null, arguments);
14
10
  }
15
11
  import { defineComponent, $prefix, $setup, $props } from "@opentiny/vue-common";
16
12
  import PcTemplate from "./pc.js";
@@ -119,7 +115,7 @@ var DropdownItem = defineComponent({
119
115
  });
120
116
  }
121
117
  });
122
- var version = "3.16.0";
118
+ var version = "3.17.0";
123
119
  DropdownItem.model = {
124
120
  prop: "modelValue",
125
121
  event: "update:modelValue"
@@ -2,41 +2,32 @@ import { defineComponent, props, setup } from '@opentiny/vue-common';
2
2
  import { renderless, api } from '@opentiny/vue-renderless/dropdown-item/mf';
3
3
  import { openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, createBlock, resolveDynamicComponent, createCommentVNode, renderSlot } from 'vue';
4
4
 
5
- function _createForOfIteratorHelperLoose(o, allowArrayLike) {
6
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
7
- if (it)
8
- return (it = it.call(o)).next.bind(it);
9
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
10
- if (it)
11
- o = it;
12
- var i = 0;
5
+ function _createForOfIteratorHelperLoose(r, e) {
6
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
7
+ if (t)
8
+ return (t = t.call(r)).next.bind(t);
9
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
10
+ t && (r = t);
11
+ var o = 0;
13
12
  return function() {
14
- if (i >= o.length)
15
- return { done: true };
16
- return { done: false, value: o[i++] };
13
+ return o >= r.length ? { done: true } : { done: false, value: r[o++] };
17
14
  };
18
15
  }
19
16
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
20
17
  }
21
- function _unsupportedIterableToArray(o, minLen) {
22
- if (!o)
23
- return;
24
- if (typeof o === "string")
25
- return _arrayLikeToArray(o, minLen);
26
- var n = Object.prototype.toString.call(o).slice(8, -1);
27
- if (n === "Object" && o.constructor)
28
- n = o.constructor.name;
29
- if (n === "Map" || n === "Set")
30
- return Array.from(o);
31
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
32
- return _arrayLikeToArray(o, minLen);
18
+ function _unsupportedIterableToArray(r, a) {
19
+ if (r) {
20
+ if ("string" == typeof r)
21
+ return _arrayLikeToArray(r, a);
22
+ var t = {}.toString.call(r).slice(8, -1);
23
+ 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;
24
+ }
33
25
  }
34
- function _arrayLikeToArray(arr, len) {
35
- if (len == null || len > arr.length)
36
- len = arr.length;
37
- for (var i = 0, arr2 = new Array(len); i < len; i++)
38
- arr2[i] = arr[i];
39
- return arr2;
26
+ function _arrayLikeToArray(r, a) {
27
+ (null == a || a > r.length) && (a = r.length);
28
+ for (var e = 0, n = Array(a); e < a; e++)
29
+ n[e] = r[e];
30
+ return n;
40
31
  }
41
32
  var _export_sfc = function _export_sfc2(sfc, props) {
42
33
  var target = sfc.__vccOpts || sfc;
package/lib/mobile.js CHANGED
@@ -7,41 +7,32 @@ import Clickoutside from '@opentiny/vue-renderless/common/deps/clickoutside';
7
7
  import '@opentiny/vue-theme-mobile/dropdown-item/index.css';
8
8
  import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, withCtx, renderSlot, Fragment, renderList, createElementVNode, createBlock, resolveDynamicComponent, toDisplayString, createCommentVNode, createTextVNode, vShow } from 'vue';
9
9
 
10
- function _createForOfIteratorHelperLoose(o, allowArrayLike) {
11
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
12
- if (it)
13
- return (it = it.call(o)).next.bind(it);
14
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
15
- if (it)
16
- o = it;
17
- var i = 0;
10
+ function _createForOfIteratorHelperLoose(r, e) {
11
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
12
+ if (t)
13
+ return (t = t.call(r)).next.bind(t);
14
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
15
+ t && (r = t);
16
+ var o = 0;
18
17
  return function() {
19
- if (i >= o.length)
20
- return { done: true };
21
- return { done: false, value: o[i++] };
18
+ return o >= r.length ? { done: true } : { done: false, value: r[o++] };
22
19
  };
23
20
  }
24
21
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
25
22
  }
26
- function _unsupportedIterableToArray(o, minLen) {
27
- if (!o)
28
- return;
29
- if (typeof o === "string")
30
- return _arrayLikeToArray(o, minLen);
31
- var n = Object.prototype.toString.call(o).slice(8, -1);
32
- if (n === "Object" && o.constructor)
33
- n = o.constructor.name;
34
- if (n === "Map" || n === "Set")
35
- return Array.from(o);
36
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
37
- return _arrayLikeToArray(o, minLen);
23
+ function _unsupportedIterableToArray(r, a) {
24
+ if (r) {
25
+ if ("string" == typeof r)
26
+ return _arrayLikeToArray(r, a);
27
+ var t = {}.toString.call(r).slice(8, -1);
28
+ 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;
29
+ }
38
30
  }
39
- function _arrayLikeToArray(arr, len) {
40
- if (len == null || len > arr.length)
41
- len = arr.length;
42
- for (var i = 0, arr2 = new Array(len); i < len; i++)
43
- arr2[i] = arr[i];
44
- return arr2;
31
+ function _arrayLikeToArray(r, a) {
32
+ (null == a || a > r.length) && (a = r.length);
33
+ for (var e = 0, n = Array(a); e < a; e++)
34
+ n[e] = r[e];
35
+ return n;
45
36
  }
46
37
  var _export_sfc = function _export_sfc2(sfc, props) {
47
38
  var target = sfc.__vccOpts || sfc;
package/lib/pc.js CHANGED
@@ -5,41 +5,32 @@ import Tooltip from '@opentiny/vue-tooltip';
5
5
  import '@opentiny/vue-theme/dropdown-item/index.css';
6
6
  import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, withModifiers, createElementBlock, resolveDynamicComponent, createCommentVNode, renderSlot, toDisplayString, Fragment, renderList } from 'vue';
7
7
 
8
- function _createForOfIteratorHelperLoose(o, allowArrayLike) {
9
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
10
- if (it)
11
- return (it = it.call(o)).next.bind(it);
12
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
13
- if (it)
14
- o = it;
15
- var i = 0;
8
+ function _createForOfIteratorHelperLoose(r, e) {
9
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
10
+ if (t)
11
+ return (t = t.call(r)).next.bind(t);
12
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
13
+ t && (r = t);
14
+ var o = 0;
16
15
  return function() {
17
- if (i >= o.length)
18
- return { done: true };
19
- return { done: false, value: o[i++] };
16
+ return o >= r.length ? { done: true } : { done: false, value: r[o++] };
20
17
  };
21
18
  }
22
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.");
23
20
  }
24
- function _unsupportedIterableToArray(o, minLen) {
25
- if (!o)
26
- return;
27
- if (typeof o === "string")
28
- return _arrayLikeToArray(o, minLen);
29
- var n = Object.prototype.toString.call(o).slice(8, -1);
30
- if (n === "Object" && o.constructor)
31
- n = o.constructor.name;
32
- if (n === "Map" || n === "Set")
33
- return Array.from(o);
34
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
35
- return _arrayLikeToArray(o, minLen);
21
+ function _unsupportedIterableToArray(r, a) {
22
+ if (r) {
23
+ if ("string" == typeof r)
24
+ 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;
27
+ }
36
28
  }
37
- function _arrayLikeToArray(arr, len) {
38
- if (len == null || len > arr.length)
39
- len = arr.length;
40
- for (var i = 0, arr2 = new Array(len); i < len; i++)
41
- arr2[i] = arr[i];
42
- return arr2;
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++)
32
+ n[e] = r[e];
33
+ return n;
43
34
  }
44
35
  var _export_sfc = function _export_sfc2(sfc, props) {
45
36
  var target = sfc.__vccOpts || sfc;
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@opentiny/vue-dropdown-item",
3
- "version": "3.16.0",
3
+ "version": "3.17.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.16.0",
11
- "@opentiny/vue-icon": "~3.16.0",
12
- "@opentiny/vue-renderless": "~3.16.0",
13
- "@opentiny/vue-popup": "~3.16.0",
14
- "@opentiny/vue-button": "~3.16.0",
15
- "@opentiny/vue-tooltip": "~3.16.0",
16
- "@opentiny/vue-theme-mobile": "~3.16.0",
17
- "@opentiny/vue-theme": "~3.16.0"
10
+ "@opentiny/vue-common": "~3.17.0",
11
+ "@opentiny/vue-icon": "~3.17.0",
12
+ "@opentiny/vue-renderless": "~3.17.0",
13
+ "@opentiny/vue-popup": "~3.17.0",
14
+ "@opentiny/vue-button": "~3.17.0",
15
+ "@opentiny/vue-tooltip": "~3.17.0",
16
+ "@opentiny/vue-theme-mobile": "~3.17.0",
17
+ "@opentiny/vue-theme": "~3.17.0"
18
18
  },
19
19
  "license": "MIT",
20
20
  "types": "index.d.ts",
package/src/index.d.ts CHANGED
@@ -228,15 +228,15 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
228
228
  tiny_theme: StringConstructor;
229
229
  tiny_chart_theme: ObjectConstructor;
230
230
  }>>, {
231
+ disabled: boolean;
232
+ divided: boolean;
231
233
  type: string;
232
234
  selected: boolean;
233
- disabled: boolean;
234
235
  tiny_mode_root: boolean;
235
236
  _constants: Record<string, any>;
236
237
  multiStage: boolean;
237
238
  options: unknown[];
238
239
  textField: string;
239
- divided: boolean;
240
240
  itemData: string | Record<string, any>;
241
241
  selectedField: string;
242
242
  currentIndex: number;
@@ -1,7 +1,8 @@
1
1
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
2
  label?: any;
3
- selected?: any;
4
3
  disabled?: any;
4
+ icon?: any;
5
+ selected?: any;
5
6
  tiny_mode?: any;
6
7
  tiny_mode_root?: any;
7
8
  tiny_template?: any;
@@ -9,15 +10,15 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
9
10
  _constants?: any;
10
11
  tiny_theme?: any;
11
12
  tiny_chart_theme?: any;
12
- icon?: any;
13
13
  itemData?: any;
14
14
  level?: any;
15
15
  currentIndex?: any;
16
16
  tooltipContent?: any;
17
17
  }>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "close" | "reset" | "confirm" | "update:modelValue" | "open" | "closed" | "opened")[], "change" | "close" | "reset" | "confirm" | "update:modelValue" | "open" | "closed" | "opened", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
18
18
  label?: any;
19
- selected?: any;
20
19
  disabled?: any;
20
+ icon?: any;
21
+ selected?: any;
21
22
  tiny_mode?: any;
22
23
  tiny_mode_root?: any;
23
24
  tiny_template?: any;
@@ -25,7 +26,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
25
26
  _constants?: any;
26
27
  tiny_theme?: any;
27
28
  tiny_chart_theme?: any;
28
- icon?: any;
29
29
  itemData?: any;
30
30
  level?: any;
31
31
  currentIndex?: any;
@@ -41,8 +41,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
41
41
  onOpened?: ((...args: any[]) => any) | undefined;
42
42
  }, {
43
43
  readonly label?: any;
44
- readonly selected?: any;
45
44
  readonly disabled?: any;
45
+ readonly icon?: any;
46
+ readonly selected?: any;
46
47
  readonly tiny_mode?: any;
47
48
  readonly tiny_mode_root?: any;
48
49
  readonly tiny_template?: any;
@@ -50,7 +51,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
50
51
  readonly _constants?: any;
51
52
  readonly tiny_theme?: any;
52
53
  readonly tiny_chart_theme?: any;
53
- readonly icon?: any;
54
54
  readonly itemData?: any;
55
55
  readonly level?: any;
56
56
  readonly currentIndex?: any;
@@ -1,7 +1,8 @@
1
1
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
+ disabled?: any;
3
+ icon?: any;
2
4
  type?: any;
3
5
  title?: any;
4
- disabled?: any;
5
6
  tiny_mode?: any;
6
7
  tiny_mode_root?: any;
7
8
  tiny_template?: any;
@@ -11,7 +12,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
11
12
  tiny_chart_theme?: any;
12
13
  modelValue?: any;
13
14
  options?: any;
14
- icon?: any;
15
15
  titleClass?: any;
16
16
  }>, {
17
17
  t: (this: any, path: any, options?: any) => any;
@@ -22,9 +22,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
22
22
  dp: (props: any) => void;
23
23
  gcls: (key: any) => any;
24
24
  }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("item-click" | "change" | "click" | "close" | "reset" | "confirm" | "update:modelValue" | "open" | "closed" | "opened")[], "item-click" | "change" | "click" | "close" | "reset" | "confirm" | "update:modelValue" | "open" | "closed" | "opened", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
25
+ disabled?: any;
26
+ icon?: any;
25
27
  type?: any;
26
28
  title?: any;
27
- disabled?: any;
28
29
  tiny_mode?: any;
29
30
  tiny_mode_root?: any;
30
31
  tiny_template?: any;
@@ -34,7 +35,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
34
35
  tiny_chart_theme?: any;
35
36
  modelValue?: any;
36
37
  options?: any;
37
- icon?: any;
38
38
  titleClass?: any;
39
39
  }>>> & {
40
40
  onChange?: ((...args: any[]) => any) | undefined;
@@ -48,9 +48,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
48
48
  onClosed?: ((...args: any[]) => any) | undefined;
49
49
  onOpened?: ((...args: any[]) => any) | undefined;
50
50
  }, {
51
+ readonly disabled?: any;
52
+ readonly icon?: any;
51
53
  readonly type?: any;
52
54
  readonly title?: any;
53
- readonly disabled?: any;
54
55
  readonly tiny_mode?: any;
55
56
  readonly tiny_mode_root?: any;
56
57
  readonly tiny_template?: any;
@@ -60,7 +61,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
60
61
  readonly tiny_chart_theme?: any;
61
62
  readonly modelValue?: any;
62
63
  readonly options?: any;
63
- readonly icon?: any;
64
64
  readonly titleClass?: any;
65
65
  }, {}>;
66
66
  export default _default;
package/src/pc.vue.d.ts CHANGED
@@ -1,10 +1,12 @@
1
1
  import type { IDropdownItemApi } from '@opentiny/vue-renderless/types/dropdown-item.type';
2
2
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
3
- type?: any;
4
3
  label?: any;
4
+ disabled?: any;
5
+ divided?: any;
6
+ icon?: any;
7
+ type?: any;
5
8
  title?: any;
6
9
  selected?: any;
7
- disabled?: any;
8
10
  tiny_mode?: any;
9
11
  tiny_mode_root?: any;
10
12
  tiny_template?: any;
@@ -15,8 +17,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
15
17
  multiStage?: any;
16
18
  options?: any;
17
19
  textField?: any;
18
- icon?: any;
19
- divided?: any;
20
20
  itemData?: any;
21
21
  titleClass?: any;
22
22
  selectedField?: any;
@@ -25,11 +25,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
25
25
  tip?: any;
26
26
  tipPosition?: any;
27
27
  }>, IDropdownItemApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("item-click" | "change" | "close" | "reset" | "confirm" | "update:modelValue" | "open" | "closed" | "opened")[], "item-click" | "change" | "close" | "reset" | "confirm" | "update:modelValue" | "open" | "closed" | "opened", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
28
- type?: any;
29
28
  label?: any;
29
+ disabled?: any;
30
+ divided?: any;
31
+ icon?: any;
32
+ type?: any;
30
33
  title?: any;
31
34
  selected?: any;
32
- disabled?: any;
33
35
  tiny_mode?: any;
34
36
  tiny_mode_root?: any;
35
37
  tiny_template?: any;
@@ -40,8 +42,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
40
42
  multiStage?: any;
41
43
  options?: any;
42
44
  textField?: any;
43
- icon?: any;
44
- divided?: any;
45
45
  itemData?: any;
46
46
  titleClass?: any;
47
47
  selectedField?: any;
@@ -60,11 +60,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
60
60
  onClosed?: ((...args: any[]) => any) | undefined;
61
61
  onOpened?: ((...args: any[]) => any) | undefined;
62
62
  }, {
63
- readonly type?: any;
64
63
  readonly label?: any;
64
+ readonly disabled?: any;
65
+ readonly divided?: any;
66
+ readonly icon?: any;
67
+ readonly type?: any;
65
68
  readonly title?: any;
66
69
  readonly selected?: any;
67
- readonly disabled?: any;
68
70
  readonly tiny_mode?: any;
69
71
  readonly tiny_mode_root?: any;
70
72
  readonly tiny_template?: any;
@@ -75,8 +77,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
75
77
  readonly multiStage?: any;
76
78
  readonly options?: any;
77
79
  readonly textField?: any;
78
- readonly icon?: any;
79
- readonly divided?: any;
80
80
  readonly itemData?: any;
81
81
  readonly titleClass?: any;
82
82
  readonly selectedField?: any;