pimelon-ui 0.1.54 → 0.1.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pimelon-ui",
3
- "version": "0.1.54",
3
+ "version": "0.1.55",
4
4
  "description": "A set of components and utilities for rapid UI development",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -9,9 +9,11 @@
9
9
  :class="$attrs.class"
10
10
  >
11
11
  <slot name="prefix" v-bind="{ item }" />
12
- <div class="truncate">
13
- {{ item.label }}
14
- </div>
12
+ <slot>
13
+ <div class="truncate">
14
+ {{ item.label }}
15
+ </div>
16
+ </slot>
15
17
  <slot name="suffix" v-bind="{ item }" />
16
18
  </div>
17
19
  <slot v-if="list.options.resizeColumn" name="resizer" v-bind="{ item }">
@@ -2,25 +2,25 @@
2
2
  <component
3
3
  :is="list.options.showTooltip ? Tooltip : 'div'"
4
4
  v-bind="list.options.showTooltip ? { text: label } : {}"
5
- class="flex items-center space-x-2"
6
- :class="alignmentMap[align]"
7
5
  >
8
- <slot name="prefix">
9
- <component
10
- v-if="column.prefix"
11
- :is="
12
- typeof column.prefix === 'function'
13
- ? column.prefix({ row })
14
- : column.prefix
15
- "
16
- />
17
- </slot>
18
- <slot v-bind="{ label }">
19
- <div class="truncate text-base">
20
- {{ column?.getLabel ? column.getLabel({ row }) : label }}
21
- </div>
22
- </slot>
23
- <slot name="suffix" />
6
+ <div class="flex items-center space-x-2" :class="alignmentMap[align]">
7
+ <slot name="prefix">
8
+ <component
9
+ v-if="column.prefix"
10
+ :is="
11
+ typeof column.prefix === 'function'
12
+ ? column.prefix({ row })
13
+ : column.prefix
14
+ "
15
+ />
16
+ </slot>
17
+ <slot v-bind="{ label }">
18
+ <div class="truncate text-base">
19
+ {{ column?.getLabel ? column.getLabel({ row }) : label }}
20
+ </div>
21
+ </slot>
22
+ <slot name="suffix" />
23
+ </div>
24
24
  </component>
25
25
  </template>
26
26
  <script setup>