flameresttable 1.0.7 → 1.0.9
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/.vscode/settings.json +0 -3
- package/package.json +1 -1
- package/src/Table/Table.vue +5 -2
package/.vscode/settings.json
CHANGED
package/package.json
CHANGED
package/src/Table/Table.vue
CHANGED
|
@@ -88,6 +88,8 @@
|
|
|
88
88
|
<!-- КОЛОНКИ ТАБЛИЦЫ-->
|
|
89
89
|
<label v-for="column in ColumnNames" v-show="Table.columns[column].Popup.isShow" :key="'c' + column"
|
|
90
90
|
class="flex items-stretch justify-center w-full my-1 ml-2">
|
|
91
|
+
|
|
92
|
+
<!-- Заголовок -->
|
|
91
93
|
<div class="text-left px-2 py-1 bg-slate-100" style="width: 110px">
|
|
92
94
|
<div>{{ Table.columns[column].Popup.title !== '' ? Table.columns[column].Popup.title === '' :
|
|
93
95
|
Table.columns[column].title !== '' ? Table.columns[column].title : Table.columns[column].name }}</div>
|
|
@@ -143,8 +145,9 @@
|
|
|
143
145
|
<!-- ФАЙЛЫ -->
|
|
144
146
|
<div v-if="Table.columns[column].Popup.popupType === 'file'"
|
|
145
147
|
class="flex-1 border border-slate-100 mr-5 w-full flex self-stretch">
|
|
148
|
+
|
|
146
149
|
<div class="flex-1">
|
|
147
|
-
{{ fileGetData(Table.columns[column].Popup.model, false)
|
|
150
|
+
{{ fileGetData(Table.columns[column].Popup.model, false)?.name }}
|
|
148
151
|
</div>
|
|
149
152
|
|
|
150
153
|
<!-- Загрузчик-->
|
|
@@ -337,7 +340,7 @@ export default defineComponent({
|
|
|
337
340
|
// Получить строку с исходником
|
|
338
341
|
if (getSource) {
|
|
339
342
|
if (typeof thisArr[0].data === 'string') return thisArr[0].data;
|
|
340
|
-
if (typeof thisArr[0].file === 'string') return thisArr[0].file;
|
|
343
|
+
if (typeof thisArr[0].file === 'string') return '/' + thisArr[0].file;
|
|
341
344
|
return "";
|
|
342
345
|
}
|
|
343
346
|
// Получить данные целиком
|