@unsource/ui 2.7.0 → 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 +1 -1
- package/dist/runtime/components/UnProfile.vue +43 -38
- package/dist/runtime/components/UnTable.d.vue.ts +1 -0
- package/dist/runtime/components/UnTable.vue +0 -1
- package/dist/runtime/components/UnTable.vue.d.ts +1 -0
- package/dist/runtime/components/UnTableRow.vue +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1,45 +1,50 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="flex flex-col
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
<div class="grow flex flex-col gap-3">
|
|
3
|
+
<div class="flex flex-col items-stretch gap-3 grow-1 p-4">
|
|
4
|
+
<UnCard
|
|
5
|
+
v-for="(item, index) in items.filter((e) => !e.disable)"
|
|
6
|
+
:key="index"
|
|
7
|
+
:custom-class="_mergeWith(customClass.item, {
|
|
7
8
|
logo: '!w-8 !h-8 !border-none !rounded-0',
|
|
8
9
|
body: '!items-center'
|
|
9
10
|
}, merge)"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
11
|
+
:class="customClass.items"
|
|
12
|
+
:to="item.to"
|
|
13
|
+
:item="item"
|
|
14
|
+
>
|
|
15
|
+
<template #header>
|
|
16
|
+
<UnNuxtIcon
|
|
17
|
+
:class="customClass.appendIcon"
|
|
18
|
+
:name="item.appendIcon || 'solar:alt-arrow-left-line-duotone'"
|
|
19
|
+
class="text-sm"
|
|
20
|
+
/>
|
|
21
|
+
</template>
|
|
22
|
+
</UnCard>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="grow" />
|
|
25
|
+
<div class="flex flex-col gap-2 text-sm text-center self-stretch">
|
|
26
|
+
<slot>
|
|
27
|
+
<NuxtLink
|
|
28
|
+
v-if="developer"
|
|
29
|
+
:to="developerLink || '#'"
|
|
30
|
+
target="_blank"
|
|
31
|
+
class="flex justify-center gap-1 self-center"
|
|
32
|
+
>طراحی و توسعه توسط <span class="text-blue-6 font-bold">{{ developer }}</span>
|
|
33
|
+
<UnNuxtIcon
|
|
34
|
+
v-if="developerIcon"
|
|
35
|
+
:name="developerIcon"
|
|
36
|
+
class="!text-xl"
|
|
37
|
+
/>
|
|
38
|
+
</NuxtLink>
|
|
39
|
+
<p v-if="owner">
|
|
40
|
+
کلیه حقوق مادی و معنوی این نرمافزار متعلق به شرکت <span class="text-primary-500 font-bold">{{ owner }}</span>
|
|
41
|
+
میباشد.
|
|
42
|
+
</p>
|
|
43
|
+
<p v-if="version">
|
|
44
|
+
V{{ version }}
|
|
45
|
+
</p>
|
|
46
|
+
</slot>
|
|
47
|
+
</div>
|
|
43
48
|
</div>
|
|
44
49
|
</template>
|
|
45
50
|
|
|
@@ -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>
|
|
@@ -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"
|