feat(navigation): hard-switch to Zibll navigation and Font Awesome 5
This commit is contained in:
1 parent
3c3ddac8be
commit
a0b84977a2
630 files changed
+101647
-11293
No files matched your search
@@ -7,7 +7,7 @@
|
||||
</label>
|
||||
<n-tooltip v-if="schema.help" trigger="hover">
|
||||
<template #trigger>
|
||||
<FaIcon icon="fas fa-question-circle" :size="13" class="aksrt-field__help-icon" />
|
||||
<FaIcon icon="fa fas fa-question-circle" :size="13" class="aksrt-field__help-icon" />
|
||||
</template>
|
||||
{{ schema.help }}
|
||||
</n-tooltip>
|
||||
@@ -353,7 +353,7 @@
|
||||
>
|
||||
<img v-if="opt.image" :src="opt.image" :alt="opt.label" class="aksrt-field__image-select-img" />
|
||||
<div v-else class="aksrt-field__image-select-placeholder">
|
||||
<FaIcon :icon="opt.icon || 'fas fa-image'" :size="20" />
|
||||
<FaIcon :icon="opt.icon || 'fa fas fa-image'" :size="20" />
|
||||
</div>
|
||||
<span class="aksrt-field__image-select-label">{{ opt.label }}</span>
|
||||
</div>
|
||||
@@ -386,7 +386,7 @@
|
||||
:disabled="schema.disabled"
|
||||
@click="removeRepeaterItem(index)"
|
||||
>
|
||||
<FaIcon icon="fas fa-trash" :size="12" />
|
||||
<FaIcon icon="fa fas fa-trash-alt" :size="12" />
|
||||
</n-button>
|
||||
</div>
|
||||
<div class="aksrt-field__repeater-fields">
|
||||
@@ -406,7 +406,7 @@
|
||||
:disabled="schema.disabled"
|
||||
@click="addRepeaterItem"
|
||||
>
|
||||
<FaIcon icon="fas fa-plus" :size="12" style="margin-right: 6px" />
|
||||
<FaIcon icon="fa fas fa-plus" :size="12" style="margin-right: 6px" />
|
||||
{{ schema.addText || '添加一项' }}
|
||||
</n-button>
|
||||
</div>
|
||||
@@ -427,7 +427,7 @@
|
||||
:disabled="schema.disabled"
|
||||
@click="moveRepeaterItem(index, -1)"
|
||||
>
|
||||
<FaIcon icon="fas fa-arrow-up" :size="12" />
|
||||
<FaIcon icon="fa fas fa-arrow-up" :size="12" />
|
||||
</n-button>
|
||||
<n-button
|
||||
v-if="index < (modelValue || []).length - 1"
|
||||
@@ -436,7 +436,7 @@
|
||||
:disabled="schema.disabled"
|
||||
@click="moveRepeaterItem(index, 1)"
|
||||
>
|
||||
<FaIcon icon="fas fa-arrow-down" :size="12" />
|
||||
<FaIcon icon="fa fas fa-arrow-down" :size="12" />
|
||||
</n-button>
|
||||
<n-button
|
||||
size="tiny"
|
||||
@@ -445,7 +445,7 @@
|
||||
:disabled="schema.disabled"
|
||||
@click="openRepeaterModal(index)"
|
||||
>
|
||||
<FaIcon icon="fas fa-edit" :size="12" />
|
||||
<FaIcon icon="fa fas fa-edit" :size="12" />
|
||||
编辑
|
||||
</n-button>
|
||||
<n-button
|
||||
@@ -455,7 +455,7 @@
|
||||
:disabled="schema.disabled"
|
||||
@click="removeRepeaterItem(index)"
|
||||
>
|
||||
<FaIcon icon="fas fa-trash" :size="12" />
|
||||
<FaIcon icon="fa fas fa-trash-alt" :size="12" />
|
||||
删除
|
||||
</n-button>
|
||||
</div>
|
||||
@@ -467,7 +467,7 @@
|
||||
v-html="getRepeaterPreviewCustomIcon(item)"
|
||||
/>
|
||||
<i v-else-if="getRepeaterPreviewIcon(item)" :class="getRepeaterPreviewIcon(item)" aria-hidden="true" />
|
||||
<FaIcon v-else icon="fas fa-star" :size="16" />
|
||||
<FaIcon v-else icon="fa fas fa-star" :size="16" />
|
||||
</div>
|
||||
<div class="aksrt-field__repeater-list-meta">
|
||||
<div class="aksrt-field__repeater-list-title">
|
||||
@@ -481,7 +481,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="aksrt-field__repeater-empty">
|
||||
<FaIcon icon="fas fa-inbox" :size="18" />
|
||||
<FaIcon icon="fa fas fa-inbox" :size="18" />
|
||||
<span>{{ schema.emptyText || '暂无数据' }}</span>
|
||||
</div>
|
||||
<n-button
|
||||
@@ -491,7 +491,7 @@
|
||||
:disabled="schema.disabled"
|
||||
@click="openRepeaterModal(-1)"
|
||||
>
|
||||
<FaIcon icon="fas fa-plus" :size="12" style="margin-right: 6px" />
|
||||
<FaIcon icon="fa fas fa-plus" :size="12" style="margin-right: 6px" />
|
||||
{{ schema.addText || '添加一项' }}
|
||||
</n-button>
|
||||
|
||||
@@ -600,7 +600,7 @@ async function loadTaxonomyTerms() {
|
||||
if (!props.schema.taxonomy) return
|
||||
taxonomyLoading.value = true
|
||||
try {
|
||||
const res = await api.getCategories()
|
||||
const res = await api.getCategories(props.schema.taxonomy || 'category')
|
||||
const items = res?.data || res || []
|
||||
taxonomyOptions.value = (Array.isArray(items) ? items : []).map(t => ({
|
||||
label: t.name + (t.count ? ' (' + t.count + ')' : ''),
|
||||
|
||||
Reference in new issue
Block a user