nuxt-glorious 1.2.2-3 → 1.2.2-4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "glorious",
3
3
  "configKey": "glorious",
4
- "version": "1.2.2-3"
4
+ "version": "1.2.2-4"
5
5
  }
@@ -28,14 +28,17 @@ const props = defineProps({
28
28
  </thead>
29
29
  <tbody>
30
30
  <tr v-for="(bodyItem, index) in props.body" :key="index">
31
- <td v-for="(bodyRecord, bodyKey, rIndex) in bodyItem" :key="rIndex">
31
+ <td
32
+ v-for="(headItem, headKey, headIndex) in props.header"
33
+ :key="headIndex"
34
+ >
32
35
  <slot
33
- v-if="typeof $slots[bodyKey] !== 'undefined'"
34
- :name="bodyKey"
36
+ v-if="typeof $slots[headKey] !== 'undefined'"
37
+ :name="headKey"
35
38
  :item="bodyItem"
36
39
  />
37
40
  <template v-else>
38
- {{ bodyRecord }}
41
+ {{ bodyItem[headKey] }}
39
42
  </template>
40
43
  </td>
41
44
  </tr>
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.2-3",
2
+ "version": "1.2.2-4",
3
3
  "name": "nuxt-glorious",
4
4
  "description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
5
5
  "repository": "sajadhzj/nuxt-glorious",