style: lint fix

This commit is contained in:
张传龙 2023-06-03 16:38:45 +08:00
parent 526792e22f
commit eea9fc79f7
8 changed files with 44 additions and 31 deletions

View File

@ -7,8 +7,8 @@
target="__blank" target="__blank"
hover="decoration-underline color-primary" hover="decoration-underline color-primary"
> >
大脸怪</a 大脸怪
> </a>
</p> </p>
<p> <p>
<a <a

View File

@ -16,16 +16,20 @@
<n-card title="带 Icon 的按钮"> <n-card title="带 Icon 的按钮">
<n-space> <n-space>
<n-button type="info"> <n-button type="info">
<TheIcon icon="material-symbols:add" :size="18" class="mr-5" /> 新增 <TheIcon icon="material-symbols:add" :size="18" class="mr-5" />
新增
</n-button> </n-button>
<n-button type="error"> <n-button type="error">
<TheIcon icon="material-symbols:delete-outline" :size="18" class="mr-5" /> 删除 <TheIcon icon="material-symbols:delete-outline" :size="18" class="mr-5" />
删除
</n-button> </n-button>
<n-button type="warning"> <n-button type="warning">
<TheIcon icon="material-symbols:edit-outline" :size="18" class="mr-5" /> 编辑 <TheIcon icon="material-symbols:edit-outline" :size="18" class="mr-5" />
编辑
</n-button> </n-button>
<n-button type="primary"> <n-button type="primary">
<TheIcon icon="majesticons:eye-line" :size="18" class="mr-5" /> 查看 <TheIcon icon="majesticons:eye-line" :size="18" class="mr-5" />
查看
</n-button> </n-button>
</n-space> </n-space>
</n-card> </n-card>
@ -42,7 +46,10 @@
</n-card> </n-card>
<n-card min-w-340 title="确认弹窗 Dialog"> <n-card min-w-340 title="确认弹窗 Dialog">
<n-button type="error" @click="handleDelete"> <icon-mi:delete mr-5 />删除</n-button> <n-button type="error" @click="handleDelete">
<icon-mi:delete mr-5 />
删除
</n-button>
</n-card> </n-card>
<n-card min-w-340 title="消息提醒 Message"> <n-card min-w-340 title="消息提醒 Message">

View File

@ -1,9 +1,10 @@
<template> <template>
<CommonPage show-footer> <CommonPage show-footer>
<p> <p>
文档<a c-blue hover-decoration-underline href="https://uno.antfu.me/" target="_blank" 文档
>https://uno.antfu.me/</a <a c-blue hover-decoration-underline href="https://uno.antfu.me/" target="_blank">
> https://uno.antfu.me/
</a>
</p> </p>
<p> <p>
playground playground

View File

@ -9,7 +9,8 @@
placeholder="输入文章标题..." placeholder="输入文章标题..."
/> />
<n-button type="primary" style="width: 80px" :loading="btnLoading" @click="handleSavePost"> <n-button type="primary" style="width: 80px" :loading="btnLoading" @click="handleSavePost">
<TheIcon v-if="!btnLoading" icon="line-md:confirm-circle" class="mr-5" :size="18" /> 保存 <TheIcon v-if="!btnLoading" icon="line-md:confirm-circle" class="mr-5" :size="18" />
保存
</n-button> </n-button>
</div> </div>
<MdEditor v-model="post.content" style="height: calc(100vh - 305px)" dark:bg-dark /> <MdEditor v-model="post.content" style="height: calc(100vh - 305px)" dark:bg-dark />

View File

@ -3,10 +3,12 @@
<template #action> <template #action>
<div> <div>
<n-button type="primary" secondary @click="$table?.handleExport()"> <n-button type="primary" secondary @click="$table?.handleExport()">
<TheIcon icon="mdi:download" :size="18" class="mr-5" /> 导出 <TheIcon icon="mdi:download" :size="18" class="mr-5" />
导出
</n-button> </n-button>
<n-button type="primary" class="ml-16" @click="handleAdd"> <n-button type="primary" class="ml-16" @click="handleAdd">
<TheIcon icon="material-symbols:add" :size="18" class="mr-5" /> 新建文章 <TheIcon icon="material-symbols:add" :size="18" class="mr-5" />
新建文章
</n-button> </n-button>
</div> </div>
</template> </template>

View File

@ -24,15 +24,16 @@
</div> </div>
<n-space class="mt-16" justify="space-evenly"> <n-space class="mt-16" justify="space-evenly">
<n-button dashed type="primary" @click="copy(item.url)">url</n-button> <n-button dashed type="primary" @click="copy(item.url)">url</n-button>
<n-button dashed type="primary" @click="copy(`![${item.fileName}](${item.url})`)" <n-button dashed type="primary" @click="copy(`![${item.fileName}](${item.url})`)">
>MD</n-button MD
> </n-button>
<n-button <n-button
dashed dashed
type="primary" type="primary"
@click="copy(`&lt;img src=&quot;${item.url}&quot; /&gt;`)" @click="copy(`&lt;img src=&quot;${item.url}&quot; /&gt;`)"
>img</n-button
> >
img
</n-button>
</n-space> </n-space>
</n-card> </n-card>
<div v-for="i in 4" :key="i" class="w-280" /> <div v-for="i in 4" :key="i" class="w-280" />

View File

@ -11,7 +11,8 @@
<div w-320 flex-col px-20 py-35> <div w-320 flex-col px-20 py-35>
<h5 f-c-c text-24 font-normal color="#6a6a6a"> <h5 f-c-c text-24 font-normal color="#6a6a6a">
<icon-custom-logo mr-10 text-50 color-primary />{{ title }} <icon-custom-logo mr-10 text-50 color-primary />
{{ title }}
</h5> </h5>
<div mt-30> <div mt-30>
<n-input <n-input