mirror of
https://codeberg.org/Sevichecc/Seigwai.git
synced 2025-04-30 07:49:30 +08:00
fix: icons could not render
This commit is contained in:
parent
91c9d8c22a
commit
202e31b0f2
4 changed files with 27 additions and 6 deletions
|
@ -93,6 +93,9 @@ devDependencies:
|
||||||
postcss:
|
postcss:
|
||||||
specifier: ^8.4.21
|
specifier: ^8.4.21
|
||||||
version: 8.4.21
|
version: 8.4.21
|
||||||
|
postcss-import:
|
||||||
|
specifier: ^15.1.0
|
||||||
|
version: 15.1.0(postcss@8.4.21)
|
||||||
sass:
|
sass:
|
||||||
specifier: ^1.60.0
|
specifier: ^1.60.0
|
||||||
version: 1.60.0
|
version: 1.60.0
|
||||||
|
@ -3623,6 +3626,18 @@ packages:
|
||||||
read-cache: 1.0.0
|
read-cache: 1.0.0
|
||||||
resolve: 1.22.1
|
resolve: 1.22.1
|
||||||
|
|
||||||
|
/postcss-import@15.1.0(postcss@8.4.21):
|
||||||
|
resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==}
|
||||||
|
engines: {node: '>=14.0.0'}
|
||||||
|
peerDependencies:
|
||||||
|
postcss: ^8.0.0
|
||||||
|
dependencies:
|
||||||
|
postcss: 8.4.21
|
||||||
|
postcss-value-parser: 4.2.0
|
||||||
|
read-cache: 1.0.0
|
||||||
|
resolve: 1.22.1
|
||||||
|
dev: true
|
||||||
|
|
||||||
/postcss-js@4.0.1(postcss@8.4.21):
|
/postcss-js@4.0.1(postcss@8.4.21):
|
||||||
resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==}
|
resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==}
|
||||||
engines: {node: ^12 || ^14 || >= 16}
|
engines: {node: ^12 || ^14 || >= 16}
|
||||||
|
|
|
@ -71,15 +71,16 @@ export default {
|
||||||
<template>
|
<template>
|
||||||
<div class="items">
|
<div class="items">
|
||||||
<template v-if="items.length">
|
<template v-if="items.length">
|
||||||
<button
|
<div
|
||||||
v-for="(item, index) in items"
|
v-for="(item, index) in items"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="item"
|
class="item"
|
||||||
:class="{ 'is-selected': index === selectedIndex }"
|
:class="{ 'is-selected': index === selectedIndex }"
|
||||||
@click="selectItem(index)"
|
@click="selectItem(index)"
|
||||||
>
|
>
|
||||||
|
<span :class="item.icon" />
|
||||||
{{ item.title }}
|
{{ item.title }}
|
||||||
</button>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div v-else class="item">
|
<div v-else class="item">
|
||||||
No result
|
No result
|
||||||
|
|
|
@ -10,6 +10,7 @@ export default {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
title: 'H1',
|
title: 'H1',
|
||||||
|
icon: 'i-tabler-h-1',
|
||||||
command: ({ editor, range }) => {
|
command: ({ editor, range }) => {
|
||||||
editor
|
editor
|
||||||
.chain()
|
.chain()
|
||||||
|
@ -21,6 +22,7 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'H2',
|
title: 'H2',
|
||||||
|
icon: 'i-tabler-h-2',
|
||||||
command: ({ editor, range }) => {
|
command: ({ editor, range }) => {
|
||||||
editor
|
editor
|
||||||
.chain()
|
.chain()
|
||||||
|
@ -32,6 +34,7 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'H3',
|
title: 'H3',
|
||||||
|
icon: 'i-tabler-h-3',
|
||||||
command: ({ editor, range }) => {
|
command: ({ editor, range }) => {
|
||||||
editor
|
editor
|
||||||
.chain()
|
.chain()
|
||||||
|
@ -43,30 +46,35 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Code block',
|
title: 'Code block',
|
||||||
|
icon: 'i-tabler-terminal',
|
||||||
command: ({ editor, range }) => {
|
command: ({ editor, range }) => {
|
||||||
editor.chain().focus().deleteRange(range).setCodeBlock().run()
|
editor.chain().focus().deleteRange(range).setCodeBlock().run()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Blockquote',
|
title: 'Blockquote',
|
||||||
|
icon: 'i-tabler-blockquote',
|
||||||
command: ({ editor, range }) => {
|
command: ({ editor, range }) => {
|
||||||
editor.chain().focus().deleteRange(range).toggleBlockquote().run()
|
editor.chain().focus().deleteRange(range).toggleBlockquote().run()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Divider',
|
title: 'Divider',
|
||||||
|
icon: 'i-tabler-separator',
|
||||||
command: ({ editor, range }) => {
|
command: ({ editor, range }) => {
|
||||||
editor.chain().focus().deleteRange(range).setHorizontalRule().run()
|
editor.chain().focus().deleteRange(range).setHorizontalRule().run()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Bullet List',
|
title: 'Bullet List',
|
||||||
|
icon: 'i-tabler-list',
|
||||||
command: ({ editor, range }) => {
|
command: ({ editor, range }) => {
|
||||||
editor.chain().focus().deleteRange(range).toggleBulletList().run()
|
editor.chain().focus().deleteRange(range).toggleBulletList().run()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Ordered List',
|
title: 'Ordered List',
|
||||||
|
icon: 'i-tabler-list-numbers',
|
||||||
command: ({ editor, range }) => {
|
command: ({ editor, range }) => {
|
||||||
editor.chain().focus().deleteRange(range).toggleOrderedList().run()
|
editor.chain().focus().deleteRange(range).toggleOrderedList().run()
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,11 +4,8 @@ import typography from '@tailwindcss/typography'
|
||||||
import daisyui from 'daisyui'
|
import daisyui from 'daisyui'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
content: ['**/*.tsx', '**/*.ts', '**/*.vue', '**/*.html'],
|
content: ['**/*.{js,ts,jsx,tsx}', '**/*.vue', '**/*.html'],
|
||||||
darkMode: 'class',
|
darkMode: 'class',
|
||||||
theme: {
|
|
||||||
extend: {},
|
|
||||||
},
|
|
||||||
plugins: [
|
plugins: [
|
||||||
typography,
|
typography,
|
||||||
daisyui,
|
daisyui,
|
||||||
|
|
Loading…
Reference in a new issue