adminforth 1.1.45 → 1.1.47
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/index.js
CHANGED
|
@@ -18,9 +18,8 @@
|
|
|
18
18
|
<span v-else-if="column.enum">
|
|
19
19
|
{{ checkEmptyValues(column.enum.find(e => e.value === record[column.name])?.label,route.meta.type) }}
|
|
20
20
|
</span>
|
|
21
|
-
<span v-else-if="column.type === 'datetime'">
|
|
21
|
+
<span v-else-if="column.type === 'datetime'" class="whitespace-nowrap">
|
|
22
22
|
{{ checkEmptyValues(formatDate(record[column.name]),route.meta.type) }}
|
|
23
|
-
|
|
24
23
|
</span>
|
|
25
24
|
<span v-else>
|
|
26
25
|
{{ checkEmptyValues(record[column.name],route.meta.type) }}
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -18,9 +18,8 @@
|
|
|
18
18
|
<span v-else-if="column.enum">
|
|
19
19
|
{{ checkEmptyValues(column.enum.find(e => e.value === record[column.name])?.label,route.meta.type) }}
|
|
20
20
|
</span>
|
|
21
|
-
<span v-else-if="column.type === 'datetime'">
|
|
21
|
+
<span v-else-if="column.type === 'datetime'" class="whitespace-nowrap">
|
|
22
22
|
{{ checkEmptyValues(formatDate(record[column.name]),route.meta.type) }}
|
|
23
|
-
|
|
24
23
|
</span>
|
|
25
24
|
<span v-else>
|
|
26
25
|
{{ checkEmptyValues(record[column.name],route.meta.type) }}
|
|
@@ -382,7 +382,7 @@ export type AdminForthResourceColumn = {
|
|
|
382
382
|
*
|
|
383
383
|
* This field will be displayed in show and list views with custom component `CountryFlag.vue`. CountryFlag.vue should be placed in custom folder and can be next:
|
|
384
384
|
*
|
|
385
|
-
* ```
|
|
385
|
+
* ```html
|
|
386
386
|
* <template>
|
|
387
387
|
* {{ getFlagEmojiFromIso(record.ipCountry) }}
|
|
388
388
|
* </template>
|
|
@@ -952,7 +952,7 @@ export type AdminForthComponentDeclarationFull = {
|
|
|
952
952
|
*
|
|
953
953
|
* In Flag.vue you can access this meta object like this:
|
|
954
954
|
*
|
|
955
|
-
* ```
|
|
955
|
+
* ```html
|
|
956
956
|
* <template>
|
|
957
957
|
* <img :src="loadFile(`@@/flags/${meta.flagType}/${meta.flagType === 'country' ? record.countryIso : record.teamCode}.png`)" />
|
|
958
958
|
* </template>
|
|
@@ -975,7 +975,7 @@ export type AdminForthFieldComponents = {
|
|
|
975
975
|
*
|
|
976
976
|
* Example: `FullName.vue`
|
|
977
977
|
*
|
|
978
|
-
* ```
|
|
978
|
+
* ```html
|
|
979
979
|
* <template>
|
|
980
980
|
* {{ record.firstName }} {{ record.lastName }}
|
|
981
981
|
* </template>
|