dfish-widget 1.0.37 → 1.0.38

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.esm.js CHANGED
@@ -4997,7 +4997,7 @@ var script$R = {
4997
4997
  let chd = this.x.children;
4998
4998
  if (Array.isArray(chd)) {
4999
4999
  let i = 0;
5000
- r = chd.map(item => this.$slots.row({item, row: item}).map(t => $$1.lodash.set(t, 'props.rowIndex', i++)));
5000
+ r = chd.map((item, index) => this.$slots.row({item, index}).map(t => $$1.lodash.set(t, 'props.rowIndex', i++)));
5001
5001
  }
5002
5002
  return r || []
5003
5003
  } else {
@@ -5199,7 +5199,7 @@ var script$P = {
5199
5199
  },
5200
5200
  html() {
5201
5201
  if (this.x.children && Array.isArray(this.x.children) && this._provideTBody && this._provideTBody.$slots.row) {
5202
- return [this.html_self(true), this.x.children.map(item => this._provideTBody.$slots.row({item, row: item}))]
5202
+ return [this.html_self(true), this.x.children.map((item, index) => this._provideTBody.$slots.row({item, index}))]
5203
5203
  }
5204
5204
  return this.$slots.row ? [this.html_self(true), this.$slots.row()] : this.html_self()
5205
5205
  },
@@ -5919,7 +5919,7 @@ var script$C = {
5919
5919
  let chd = this.x.children;
5920
5920
  if (this.$slots.default) {
5921
5921
  if (Array.isArray(chd)) {
5922
- r = chd.map(item => this.$slots.default({item}));
5922
+ r = chd.map((item, index) => this.$slots.default({item, index}));
5923
5923
  } else {
5924
5924
  r = [];
5925
5925
  }
@@ -6836,7 +6836,7 @@ var script$x = {
6836
6836
  let chd = this.x.children;
6837
6837
  let tree = this.pubParent;
6838
6838
  if (Array.isArray(chd) && tree) {
6839
- r = chd.map(item => tree.$slots.default({item}));
6839
+ r = chd.map((item, index) => tree.$slots.default({item, index}));
6840
6840
  }
6841
6841
  return h('div', {
6842
6842
  id: this.uid + 'cont',
@@ -7913,13 +7913,16 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
7913
7913
  return (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(item), 1 /* TEXT */))
7914
7914
  }), 256 /* UNKEYED_FRAGMENT */))
7915
7915
  : createCommentVNode("v-if", true),
7916
- (openBlock(true), createElementBlock(Fragment, null, renderList($options.bodyList, (item) => {
7916
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.bodyList, (item, index) => {
7917
7917
  return (openBlock(), createElementBlock("div", {
7918
7918
  title: item.title,
7919
7919
  class: normalizeClass(['w-calendar-item', {'z-on': item.focus && !item.disabled, 'z-pad': item.pad, 'z-ds': item.disabled}]),
7920
7920
  onClick: $event => ($options.clickItem($event,item))
7921
7921
  }, [
7922
- renderSlot(_ctx.$slots, "default", { item: item }, () => [
7922
+ renderSlot(_ctx.$slots, "default", {
7923
+ item: item,
7924
+ index: index
7925
+ }, () => [
7923
7926
  createElementVNode("div", _hoisted_11, toDisplayString(item.text), 1 /* TEXT */)
7924
7927
  ])
7925
7928
  ], 10 /* CLASS, PROPS */, _hoisted_10))
@@ -9716,8 +9719,8 @@ var script$e = {
9716
9719
  }
9717
9720
  },
9718
9721
  html_list() {
9719
- return this.list.map(item => {
9720
- return h(script$f, {item})
9722
+ return this.list.map((item, index) => {
9723
+ return h(script$f, {item, index})
9721
9724
  })
9722
9725
  },
9723
9726
  html_input_button() {