@qikdev/vue-ui 0.2.106 → 0.2.108

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/dist/lib.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import './style.css';
2
2
  import { defineComponent as Si, ref as Yt, toRefs as ma, onMounted as ha, onBeforeUnmount as Ao, watch as Oi, computed as ui, openBlock as o, createElementBlock as d, renderSlot as G, createCommentVNode as _, useSlots as Mo, reactive as wr, provide as $r, resolveComponent as y, normalizeClass as P, Fragment as S, unref as Rn, createBlock as k, withCtx as m, createVNode as h, renderList as $, toDisplayString as b, createElementVNode as x, withModifiers as q, createTextVNode as O, h as di, resolveDynamicComponent as St, mergeProps as Ti, toHandlers as pa, withDirectives as K, vModelSelect as Ot, pushScopeId as lt, popScopeId as ot, normalizeStyle as ct, Teleport as Io, vModelText as se, withKeys as ge, TransitionGroup as Do, nextTick as ya, vModelDynamic as Bn, vShow as Zi } from "vue";
3
3
  import { EventDispatcher as Fo } from "@qikdev/sdk";
4
- const $o = "0.2.106";
4
+ const $o = "0.2.108";
5
5
  class $t extends Error {
6
6
  }
7
7
  class No extends $t {
@@ -8015,9 +8015,12 @@ const K_ = {
8015
8015
  //
8016
8016
  // },
8017
8017
  toggle(e) {
8018
- this.isolate && (this.currentExpandedItems.forEach(function(n) {
8019
- n.expanded = !1;
8020
- }), this.currentExpandedItems.length = 0), this.currentExpandedItems.indexOf(e) === -1 ? this.expandItem(e) : this.collapseItem(e), this.currentExpandedItems.length ? this.addListeners() : this.removeListeners();
8018
+ const t = e.expanded;
8019
+ this.isolate && (this.currentExpandedItems.forEach(function(i) {
8020
+ i.expanded = !1;
8021
+ }), this.currentExpandedItems = []);
8022
+ const n = this.currentExpandedItems.indexOf(e);
8023
+ t || n !== -1 ? this.collapseItem(e) : this.expandItem(e), this.currentExpandedItems.length ? this.addListeners() : this.removeListeners();
8021
8024
  }
8022
8025
  },
8023
8026
  watch: {
@@ -8035,7 +8038,8 @@ function Y_(e, t, n, i, s, r) {
8035
8038
  (o(!0), d(S, null, $(r.filteredItems, (p) => {
8036
8039
  var g;
8037
8040
  return o(), d("li", {
8038
- class: P({ expanded: p.expanded, collapsed: !p.expanded })
8041
+ class: P({ expanded: p.expanded, collapsed: !p.expanded }),
8042
+ key: p.title
8039
8043
  }, [
8040
8044
  n.expandOn === "click" && ((g = p.items) != null && g.length) ? (o(), k(f, {
8041
8045
  key: 0,
@@ -8099,10 +8103,10 @@ function Y_(e, t, n, i, s, r) {
8099
8103
  depth: r.actualDepth - 1
8100
8104
  }, null, 8, ["expandOn", "items", "displayCaret", "isolate", "depth"])) : _("", !0)
8101
8105
  ], 2);
8102
- }), 256))
8106
+ }), 128))
8103
8107
  ]);
8104
8108
  }
8105
- const Z_ = /* @__PURE__ */ V(K_, [["render", Y_], ["__scopeId", "data-v-0c67e95e"]]);
8109
+ const Z_ = /* @__PURE__ */ V(K_, [["render", Y_], ["__scopeId", "data-v-5426258b"]]);
8106
8110
  const J_ = {
8107
8111
  props: {
8108
8112
  item: {