@ramathibodi/nuxt-commons 0.1.16 → 0.1.17
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
|
@@ -18,6 +18,10 @@ const headers = ref([
|
|
|
18
18
|
key: 'operation',
|
|
19
19
|
width: '120px',
|
|
20
20
|
},
|
|
21
|
+
{
|
|
22
|
+
title: 'Rec No.',
|
|
23
|
+
key: 'recNo',
|
|
24
|
+
},
|
|
21
25
|
{
|
|
22
26
|
title: 'Input Type',
|
|
23
27
|
key: 'inputType',
|
|
@@ -99,6 +103,9 @@ const ruleOptions = (inputType: string) => (value: any) => {
|
|
|
99
103
|
Convert To Advance
|
|
100
104
|
</VBtn>
|
|
101
105
|
</template>
|
|
106
|
+
<template #item.recNo="{internalItem}">
|
|
107
|
+
{{ internalItem.index }}
|
|
108
|
+
</template>
|
|
102
109
|
<template #form="{ data, rules }">
|
|
103
110
|
<v-container fluid>
|
|
104
111
|
<v-row dense>
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
+
import {computed} from 'vue'
|
|
2
3
|
interface Props {
|
|
3
4
|
label: string
|
|
4
5
|
value?: string | null | undefined
|
|
5
6
|
horizontal?: boolean
|
|
7
|
+
size? : 'large' | 'medium'
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
const props = withDefaults(defineProps<Props>(), {
|
|
9
11
|
label: '', value: '',
|
|
10
12
|
})
|
|
13
|
+
const cal_size = computed(()=>{
|
|
14
|
+
if(props.size=='medium') return 'text-subtitle-1'
|
|
15
|
+
else return 'text-h6'
|
|
16
|
+
})
|
|
11
17
|
</script>
|
|
12
18
|
|
|
13
19
|
<template>
|
|
14
20
|
<div v-if="horizontal" class="d-flex align-end" :="$attrs">
|
|
15
|
-
<div class="text-medium-emphasis">
|
|
21
|
+
<div class="text-medium-emphasis text-no-wrap">
|
|
16
22
|
<slot name="label">
|
|
17
23
|
{{ label }}:
|
|
18
24
|
</slot>
|
|
@@ -23,13 +29,13 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
23
29
|
</slot>
|
|
24
30
|
</div>
|
|
25
31
|
</div>
|
|
26
|
-
<v-card v-else variant="
|
|
32
|
+
<v-card v-else variant="text" :="$attrs">
|
|
27
33
|
<VCardSubtitle class="ma-0 pa-0 text-black">
|
|
28
34
|
<slot name="label">
|
|
29
35
|
{{ label }}
|
|
30
36
|
</slot>
|
|
31
37
|
</VCardSubtitle>
|
|
32
|
-
<VCardText class="
|
|
38
|
+
<VCardText :class="`pa-0 mb-2 ${cal_size}`">
|
|
33
39
|
<slot name="value">
|
|
34
40
|
{{ value }}
|
|
35
41
|
</slot>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ramathibodi/nuxt-commons",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"description": "Ramathibodi Nuxt modules for common components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"vitest": "^1.5.1",
|
|
117
117
|
"vue-tsc": "^1.8.27"
|
|
118
118
|
},
|
|
119
|
-
"packageManager": "pnpm@9.
|
|
119
|
+
"packageManager": "pnpm@9.7.1+sha512.faf344af2d6ca65c4c5c8c2224ea77a81a5e8859cbc4e06b1511ddce2f0151512431dd19e6aff31f2c6a8f5f2aced9bd2273e1fed7dd4de1868984059d2c4247"
|
|
120
120
|
}
|