changes
This commit is contained in:
@@ -27,45 +27,56 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field is-narrow">
|
||||
<div class="field is-narrow has-addons">
|
||||
<p class="control">
|
||||
<a @click="addAttr()">
|
||||
<SvgIcon v-bind="{ name: 'add1.png', type: 'gray', size: 18 }"></SvgIcon>
|
||||
</a>
|
||||
<a
|
||||
class="ml-2"
|
||||
@click="remove(i)"
|
||||
>
|
||||
<SvgIcon v-bind="{ name: 'bin1.svg', type: 'gray', size: 18 }"></SvgIcon>
|
||||
</a>
|
||||
<a
|
||||
class="ml-2"
|
||||
<button
|
||||
class="button is-primary is-light"
|
||||
@click="jsonData(v, i)"
|
||||
>
|
||||
<SvgIcon v-bind="{ name: 'apps.svg', type: 'gray', size: 18 }"></SvgIcon>
|
||||
</a>
|
||||
<span class="icon">
|
||||
<Icon
|
||||
name="material-symbols:app-registration-rounded"
|
||||
:size="20"
|
||||
/>
|
||||
</span>
|
||||
</button>
|
||||
</p>
|
||||
<p class="control">
|
||||
<button
|
||||
class="button is-primary is-light"
|
||||
@click="remove(i)"
|
||||
>
|
||||
<span class="icon">
|
||||
<Icon
|
||||
name="material-symbols:delete-outline-rounded"
|
||||
:size="20"
|
||||
/>
|
||||
</span>
|
||||
</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<div
|
||||
class="mb-6"
|
||||
v-else
|
||||
<button
|
||||
class="button is-success is-light"
|
||||
@click="addAttr()"
|
||||
>
|
||||
<span class="icon">
|
||||
<Icon
|
||||
name="material-symbols:add-rounded"
|
||||
:size="20"
|
||||
/>
|
||||
</span>
|
||||
<span>Thêm thuộc tính</span>
|
||||
</button>
|
||||
<div class="mt-2">
|
||||
<button
|
||||
class="button is-primary has-text-white"
|
||||
@click="addAttr()"
|
||||
>
|
||||
Thêm thuộc tính
|
||||
</button>
|
||||
</div>
|
||||
<div class="buttons mt-5">
|
||||
<a
|
||||
class="button is-primary has-text-white"
|
||||
class="button is-primary"
|
||||
@click="update()"
|
||||
>Cập nhật</a
|
||||
>
|
||||
Cập nhật
|
||||
</button>
|
||||
</div>
|
||||
<Modal
|
||||
@close="comp = undefined"
|
||||
|
||||
Reference in New Issue
Block a user