@qikdev/vue-ui 0.2.7 → 0.2.8

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
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
32
32
  };
33
33
  import { openBlock, createElementBlock, renderSlot, resolveComponent, createBlock, withCtx, createVNode, Fragment, renderList, normalizeClass, toDisplayString, withDirectives, resolveDynamicComponent, vShow, withModifiers, createTextVNode, createCommentVNode, createElementVNode, mergeProps, toHandlers, pushScopeId, popScopeId, normalizeStyle, Teleport, vModelText, vModelSelect, withKeys, TransitionGroup, defineComponent, h, nextTick, vModelDynamic, vModelCheckbox, reactive, watch } from "vue";
34
34
  import { EventDispatcher } from "@qikdev/sdk";
35
- const version$1 = "0.2.7";
35
+ const version$1 = "0.2.8";
36
36
  var flexColumn_vue_vue_type_style_index_0_scoped_true_lang = "";
37
37
  var _export_sfc = (sfc, props2) => {
38
38
  const target = sfc.__vccOpts || sfc;
@@ -151,7 +151,14 @@ const _sfc_main$19 = {
151
151
  },
152
152
  computed: {
153
153
  tabs() {
154
- var slotChildren = this.$slots.default();
154
+ const self2 = this;
155
+ const slotChildren = self2.$slots.default().map(function(child) {
156
+ if (child.props.enabled === false) {
157
+ return;
158
+ }
159
+ return child;
160
+ }).filter(Boolean);
161
+ console.log("TABS", slotChildren);
155
162
  return slotChildren;
156
163
  }
157
164
  }
@@ -170,9 +177,10 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
170
177
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.tabs, (tab, index2) => {
171
178
  return openBlock(), createElementBlock("a", {
172
179
  class: normalizeClass({ active: index2 === $data.activeIndex }),
180
+ key: `tab-link-${tab.props.heading}`,
173
181
  onClick: ($event) => $options.select(index2)
174
182
  }, toDisplayString(tab.props.heading), 11, _hoisted_1$T);
175
- }), 256))
183
+ }), 128))
176
184
  ]),
177
185
  _: 1
178
186
  })
@@ -182,7 +190,9 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
182
190
  createVNode(_component_flex_column, null, {
183
191
  default: withCtx(() => [
184
192
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.tabs, (tab, index2) => {
185
- return withDirectives((openBlock(), createBlock(_component_flex_column, { key: index2 }, {
193
+ return withDirectives((openBlock(), createBlock(_component_flex_column, {
194
+ key: `tab-panel-${tab.props.heading}`
195
+ }, {
186
196
  default: withCtx(() => [
187
197
  (openBlock(), createBlock(resolveDynamicComponent(tab)))
188
198
  ]),
@@ -198,12 +208,16 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
198
208
  _: 1
199
209
  });
200
210
  }
201
- var UXTabset = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$19], ["__scopeId", "data-v-1449f192"]]);
211
+ var UXTabset = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$19], ["__scopeId", "data-v-7e39d77e"]]);
202
212
  const _sfc_main$18 = {
203
213
  props: {
204
214
  heading: {
205
215
  type: String,
206
216
  required: true
217
+ },
218
+ enabled: {
219
+ type: Boolean,
220
+ default: true
207
221
  }
208
222
  },
209
223
  data() {