This commit is contained in:
Viet An
2026-05-14 09:11:18 +07:00
parent 336c8c9036
commit 4d37397ee4
25 changed files with 450 additions and 209 deletions

View File

@@ -2,10 +2,10 @@
<table class="table is-fullwidth">
<thead>
<tr class="fs-14">
<th>#</th>
<th class="is-narrow">#</th>
<th>Tên trường</th>
<th>Tên cột</th>
<th class="is-narrow">...</th>
<th class="is-narrow has-text-right">Thao tác</th>
</tr>
</thead>
<tbody>
@@ -13,52 +13,52 @@
class="fs-14"
v-for="(v, i) in fields"
>
<td>{{ i }}</td>
<td>
<td style="vertical-align: middle">{{ i }}</td>
<td style="vertical-align: middle">
<a
class="has-text-primary"
@click="openField(v, i)"
>{{ v.name }}</a
>
</td>
<td>{{ $stripHtml(v.label, 50) }}</td>
<td style="vertical-align: middle">{{ $stripHtml(v.label, 50) }}</td>
<td>
<div class="field has-addons">
<p class="control">
<button
class="button is-primary is-light"
class="button is-primary is-light px-3.5 py-1.5"
@click="moveDown(v, i)"
>
<span class="icon">
<Icon
name="material-symbols:arrow-downward-rounded"
:size="19"
:size="18"
/>
</span>
</button>
</p>
<p class="control">
<button
class="button is-primary is-light"
class="button is-primary is-light px-3.5 py-1.5"
@click="moveUp(v, i)"
>
<span class="icon">
<Icon
name="material-symbols:arrow-upward-rounded"
:size="19"
:size="18"
/>
</span>
</button>
</p>
<p class="control">
<button
class="button is-primary is-light"
class="button is-primary is-light px-3.5 py-1.5"
@click="askConfirm(v, i)"
>
<span class="icon">
<Icon
name="material-symbols:delete-outline-rounded"
:size="19"
:size="18"
/>
</span>
</button>