@unsource/ui 2.7.1 → 2.7.2

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.7.1",
4
+ "version": "2.7.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,6 +1,7 @@
1
1
  type __VLS_Props = {
2
2
  cols?: {
3
3
  title: string;
4
+ handler: string;
4
5
  name: string;
5
6
  disabled?: boolean;
6
7
  key?: string | string[];
@@ -99,6 +99,5 @@ const { cols = [], items = [], thClass = "bg-gray-100 border-gray-100", tdClass
99
99
  idKey: { type: String, required: false },
100
100
  selectable: { type: Boolean, required: false }
101
101
  });
102
- const { isDesktop, isMobile } = useDevice();
103
102
  const selected = defineModel();
104
103
  </script>
@@ -1,6 +1,7 @@
1
1
  type __VLS_Props = {
2
2
  cols?: {
3
3
  title: string;
4
+ handler: string;
4
5
  name: string;
5
6
  disabled?: boolean;
6
7
  key?: string | string[];
@@ -33,7 +33,7 @@
33
33
  >
34
34
  <div class="flex flex-col gap-0.5">
35
35
  <p :class="textClass">
36
- {{ _at(item, col.key).join(" ") }}
36
+ {{ item.handler ? item.handler(_at(item, col.key), item, col, items, cols) : _at(item, col.key).join(" ") }}
37
37
  </p>
38
38
  <small
39
39
  v-if="col.subKey?.length"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",