perf: standard code format in the views folder

This commit is contained in:
xiaoxian521 2022-05-14 10:53:06 +08:00
parent 1cf82eb7a4
commit 64326c4fb5
31 changed files with 228 additions and 166 deletions

View File

@ -33,5 +33,6 @@
"i18n-ally.enabledParsers": ["yaml", "js"], "i18n-ally.enabledParsers": ["yaml", "js"],
"i18n-ally.sourceLanguage": "en", "i18n-ally.sourceLanguage": "en",
"i18n-ally.displayLanguage": "zh-CN", "i18n-ally.displayLanguage": "zh-CN",
"i18n-ally.enabledFrameworks": ["vue"] "i18n-ally.enabledFrameworks": ["vue"],
"iconify.excludes": ["el"]
} }

View File

@ -12,19 +12,25 @@ function handleAnchorClick(e, link) {
<el-card> <el-card>
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span class="font-medium" <span class="font-medium">
>仿antdv锚点采用<el-link 仿antdv锚点采用
<el-link
href="https://www.npmjs.com/package/@pureadmin/components" href="https://www.npmjs.com/package/@pureadmin/components"
target="_blank" target="_blank"
style="font-size: 16px; margin: 0 4px 5px" style="font-size: 16px; margin: 0 4px 5px"
>@pureadmin/components</el-link >
>完全兼容antdv的<el-link @pureadmin/components
</el-link>
完全兼容antdv的
<el-link
href="https://next.antdv.com/components/anchor-cn" href="https://next.antdv.com/components/anchor-cn"
target="_blank" target="_blank"
style="font-size: 16px; margin: 0 4px 5px" style="font-size: 16px; margin: 0 4px 5px"
>Anchor</el-link >
>写法</span Anchor
> </el-link>
写法
</span>
</div> </div>
</template> </template>
<div class="w-400px"> <div class="w-400px">

View File

@ -13,19 +13,25 @@ const callback = (val: string) => {
<el-card> <el-card>
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span class="font-medium" <span class="font-medium">
>仿antdv标签页采用<el-link 仿antdv标签页采用
<el-link
href="https://www.npmjs.com/package/@pureadmin/components" href="https://www.npmjs.com/package/@pureadmin/components"
target="_blank" target="_blank"
style="font-size: 16px; margin: 0 4px 5px" style="font-size: 16px; margin: 0 4px 5px"
>@pureadmin/components</el-link >
>完全兼容antdv的<el-link @pureadmin/components
</el-link>
完全兼容antdv的
<el-link
href="https://next.antdv.com/components/tabs-cn" href="https://next.antdv.com/components/tabs-cn"
target="_blank" target="_blank"
style="font-size: 16px; margin: 0 4px 5px" style="font-size: 16px; margin: 0 4px 5px"
>Tabs</el-link >
>写法</span Tabs
> </el-link>
写法
</span>
</div> </div>
</template> </template>
<el-radio-group v-model="mode" size="small" class="mb-2"> <el-radio-group v-model="mode" size="small" class="mb-2">

View File

@ -122,19 +122,25 @@ const onLoadData = treeNode => {
<el-card> <el-card>
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span class="font-medium" <span class="font-medium">
>仿antdv树选择采用<el-link 仿antdv树选择采用
<el-link
href="https://www.npmjs.com/package/@pureadmin/components" href="https://www.npmjs.com/package/@pureadmin/components"
target="_blank" target="_blank"
style="font-size: 16px; margin: 0 4px 5px" style="font-size: 16px; margin: 0 4px 5px"
>@pureadmin/components</el-link >
>完全兼容antdv的<el-link @pureadmin/components
</el-link>
完全兼容antdv的
<el-link
href="https://next.antdv.com/components/tree-select-cn" href="https://next.antdv.com/components/tree-select-cn"
target="_blank" target="_blank"
style="font-size: 16px; margin: 0 4px 5px" style="font-size: 16px; margin: 0 4px 5px"
>TreeSelect</el-link >
>写法</span TreeSelect
> </el-link>
写法
</span>
</div> </div>
</template> </template>
<div class="flex justify-around flex-wrap"> <div class="flex justify-around flex-wrap">
@ -171,9 +177,9 @@ const onLoadData = treeNode => {
:max-tag-count="10" :max-tag-count="10"
> >
<template #title="{ title, value }"> <template #title="{ title, value }">
<span v-if="value === '0-0-1-0'" style="color: #1890ff">{{ <span v-if="value === '0-0-1-0'" style="color: #1890ff">
title {{ title }}
}}</span> </span>
<template v-else>{{ title }}</template> <template v-else>{{ title }}</template>
</template> </template>
</TreeSelect> </TreeSelect>

View File

@ -30,12 +30,15 @@ const barcodes = [
<el-card> <el-card>
<template #header> <template #header>
<div class="font-medium"> <div class="font-medium">
条形码基于<el-link 条形码基于
<el-link
href="https://lindell.me/JsBarcode/" href="https://lindell.me/JsBarcode/"
target="_blank" target="_blank"
style="font-size: 16px; margin: 0 5px 4px 0" style="font-size: 16px; margin: 0 5px 4px 0"
>JsBarcode</el-link >
>生成 JsBarcode
</el-link>
生成
</div> </div>
</template> </template>
<el-row :gutter="12"> <el-row :gutter="12">

View File

@ -36,12 +36,13 @@ const handleChange = value => {
<div class="leading-10"> <div class="leading-10">
<div>绑定值{{ selectedOptions1 }}</div> <div>绑定值{{ selectedOptions1 }}</div>
<div> <div>
区域码转汉字{{ CodeToText[selectedOptions1[0]] }},{{ 区域码转汉字
CodeToText[selectedOptions1[1]] {{ CodeToText[selectedOptions1[0]] }},
}} {{ CodeToText[selectedOptions1[1]] }}
</div> </div>
<div> <div>
汉字转区域码{{ 汉字转区域码
{{
convertTextToCode( convertTextToCode(
CodeToText[selectedOptions1[0]], CodeToText[selectedOptions1[0]],
CodeToText[selectedOptions1[1]] CodeToText[selectedOptions1[1]]
@ -64,12 +65,13 @@ const handleChange = value => {
<div class="leading-10"> <div class="leading-10">
<div>绑定值{{ selectedOptions3 }}</div> <div>绑定值{{ selectedOptions3 }}</div>
<div> <div>
区域码转汉字{{ CodeToText[selectedOptions3[0]] }},{{ 区域码转汉字
CodeToText[selectedOptions3[1]] {{ CodeToText[selectedOptions3[0]] }},
}} {{ CodeToText[selectedOptions3[1]] }}
</div> </div>
<div> <div>
汉字转区域码{{ 汉字转区域码
{{
convertTextToCode( convertTextToCode(
CodeToText[selectedOptions3[0]], CodeToText[selectedOptions3[0]],
CodeToText[selectedOptions3[1]] CodeToText[selectedOptions3[1]]
@ -92,12 +94,14 @@ const handleChange = value => {
<div class="leading-10"> <div class="leading-10">
<div>绑定值{{ selectedOptions2 }}</div> <div>绑定值{{ selectedOptions2 }}</div>
<div> <div>
区域码转汉字{{ CodeToText[selectedOptions2[0]] }},{{ 区域码转汉字
CodeToText[selectedOptions2[1]] {{ CodeToText[selectedOptions2[0]] }},
}},{{ CodeToText[selectedOptions2[2]] }} {{ CodeToText[selectedOptions2[1]] }},
{{ CodeToText[selectedOptions2[2]] }}
</div> </div>
<div> <div>
汉字转区域码{{ 汉字转区域码
{{
convertTextToCode( convertTextToCode(
CodeToText[selectedOptions2[0]], CodeToText[selectedOptions2[0]],
CodeToText[selectedOptions2[1]], CodeToText[selectedOptions2[1]],
@ -121,12 +125,14 @@ const handleChange = value => {
<div class="leading-10"> <div class="leading-10">
<div>绑定值{{ selectedOptions4 }}</div> <div>绑定值{{ selectedOptions4 }}</div>
<div> <div>
区域码转汉字{{ CodeToText[selectedOptions4[0]] }},{{ 区域码转汉字
CodeToText[selectedOptions4[1]] {{ CodeToText[selectedOptions4[0]] }},
}},{{ CodeToText[selectedOptions4[2]] }} {{ CodeToText[selectedOptions4[1]] }},
{{ CodeToText[selectedOptions4[2]] }}
</div> </div>
<div> <div>
汉字转区域码{{ 汉字转区域码
{{
convertTextToCode( convertTextToCode(
CodeToText[selectedOptions4[0]], CodeToText[selectedOptions4[0]],
CodeToText[selectedOptions4[1]], CodeToText[selectedOptions4[1]],

View File

@ -27,12 +27,12 @@ const throttleClick = useThrottleFn(handle, 1000, false);
所谓防抖就是指触发事件后在 n 秒内函数只能执行一次如果在 n 所谓防抖就是指触发事件后在 n 秒内函数只能执行一次如果在 n
秒内又触发了事件则会重新计算函数执行时间 秒内又触发了事件则会重新计算函数执行时间
</div> </div>
<el-button @click="immediateDebounce" <el-button @click="immediateDebounce">
>连续点击我只会执行最后一次点击事件立即执行</el-button 连续点击我只会执行最后一次点击事件立即执行
> </el-button>
<el-button @click="debounceClick" <el-button @click="debounceClick">
>连续点击我只会执行最后一次点击事件延后执行</el-button 连续点击我只会执行最后一次点击事件延后执行
> </el-button>
</el-card> </el-card>
<el-card> <el-card>
<template #header> <template #header>
@ -42,9 +42,9 @@ const throttleClick = useThrottleFn(handle, 1000, false);
所谓节流就是指连续触发事件但是在 n 所谓节流就是指连续触发事件但是在 n
秒中只执行一次函数节流会稀释函数的执行频率 秒中只执行一次函数节流会稀释函数的执行频率
</div> </div>
<el-button @click="throttleClick" <el-button @click="throttleClick">
>连续点击我每一秒只会执行一次点击事件</el-button 连续点击我每一秒只会执行一次点击事件
> </el-button>
</el-card> </el-card>
</div> </div>
</template> </template>

View File

@ -48,16 +48,18 @@ const filterMethod = (query: string, node: treeNode) => {
<el-card> <el-card>
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span class="font-medium" <span class="font-medium">
>菜单树结构采用element-plus的 菜单树结构采用element-plus的
<el-link <el-link
href="https://element-plus.gitee.io/zh-CN/component/tree-v2.html" href="https://element-plus.gitee.io/zh-CN/component/tree-v2.html"
target="_blank" target="_blank"
:icon="useRenderIcon('node-tree')" :icon="useRenderIcon('node-tree')"
style="font-size: 16px; margin: 0 5px 4px 0" style="font-size: 16px; margin: 0 5px 4px 0"
>Tree V2</el-link >
>组件并支持国际化</span Tree V2
> </el-link>
组件并支持国际化
</span>
</div> </div>
</template> </template>
<el-input <el-input

View File

@ -23,12 +23,15 @@ const disabledClick = () => {
<el-card> <el-card>
<template #header> <template #header>
<div class="font-medium"> <div class="font-medium">
二维码基于<el-link 二维码基于
<el-link
href="https://github.com/soldair/node-qrcode" href="https://github.com/soldair/node-qrcode"
target="_blank" target="_blank"
style="font-size: 16px; margin: 0 5px 4px 0" style="font-size: 16px; margin: 0 5px 4px 0"
>qrcode</el-link >
>生成 qrcode
</el-link>
生成
</div> </div>
</template> </template>
<el-row :gutter="20" justify="space-between"> <el-row :gutter="20" justify="space-between">

View File

@ -102,12 +102,15 @@ const swiperExample: SwiperExample[] = [
<el-card> <el-card>
<template #header> <template #header>
<div class="font-medium"> <div class="font-medium">
Swiper插件<el-link Swiper插件
<el-link
href="https://github.com/nolimits4web/swiper" href="https://github.com/nolimits4web/swiper"
target="_blank" target="_blank"
style="font-size: 16px; margin: 0 5px 4px 0" style="font-size: 16px; margin: 0 5px 4px 0"
>github地址</el-link >
> github地址
</el-link>
</div> </div>
</template> </template>
<el-row :gutter="10"> <el-row :gutter="10">

View File

@ -14,19 +14,19 @@ const { setWatermark, clear } = useWatermark();
<span class="font-medium">页面水印功能</span> <span class="font-medium">页面水印功能</span>
</div> </div>
</template> </template>
<span>请输入要创建水印的值</span <span> 请输入要创建水印的值</span>
><el-input <el-input
class="mb-4 mr-4" class="mb-4 mr-4"
style="width: 200px" style="width: 200px"
v-model="value" v-model="value"
clearable clearable
/> />
<span>请选择要创建水印的颜色</span <span>请选择要创建水印的颜色</span>
><el-color-picker v-model="color" show-alpha /> <el-color-picker v-model="color" show-alpha />
<br /> <br />
<el-button @click="setWatermark(value, { fillStyle: color })" <el-button @click="setWatermark(value, { fillStyle: color })">
>创建</el-button 创建
> </el-button>
<el-button @click="clear">清除</el-button> <el-button @click="clear">清除</el-button>
</el-card> </el-card>
</template> </template>

View File

@ -70,11 +70,11 @@ Object.keys(devDependencies).forEach(key => {
</a> </a>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="QQ交流群" label-align="left" align="left"> <el-descriptions-item label="QQ交流群" label-align="left" align="left">
<a href="https://jq.qq.com/?_wv=1027&k=HntMx0dt" target="_blank" <a href="https://jq.qq.com/?_wv=1027&k=HntMx0dt" target="_blank">
><span style="color: var(--el-color-primary)" <span style="color: var(--el-color-primary)">
>点击链接加入群聊Pure Admin</span 点击链接加入群聊Pure Admin
></a </span>
> </a>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</el-card> </el-card>

View File

@ -7,20 +7,21 @@
<v-contextmenu ref="contextmenu"> <v-contextmenu ref="contextmenu">
<v-contextmenu-group title="操作"> <v-contextmenu-group title="操作">
<v-contextmenu-item :hide-on-click="false" @click="extra.push('item')" <v-contextmenu-item :hide-on-click="false" @click="extra.push('item')">
>添加菜单</v-contextmenu-item 添加菜单
> </v-contextmenu-item>
<v-contextmenu-item :hide-on-click="false" @click="extra.push('group')" <v-contextmenu-item :hide-on-click="false" @click="extra.push('group')">
>添加菜单组</v-contextmenu-item 添加菜单组
> </v-contextmenu-item>
<v-contextmenu-item <v-contextmenu-item
:hide-on-click="false" :hide-on-click="false"
@click="extra.push('submenu')" @click="extra.push('submenu')"
>添加子菜单</v-contextmenu-item
>
<v-contextmenu-item :hide-on-click="false" @click="extra.pop()"
>删除</v-contextmenu-item
> >
添加子菜单
</v-contextmenu-item>
<v-contextmenu-item :hide-on-click="false" @click="extra.pop()">
删除
</v-contextmenu-item>
</v-contextmenu-group> </v-contextmenu-group>
<template v-for="(item, index) of extra" :key="index"> <template v-for="(item, index) of extra" :key="index">

View File

@ -51,15 +51,17 @@ onMounted(() => {
<el-card> <el-card>
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span <span>
>拖拽组件采用开源的<el-link 拖拽组件采用开源的
<el-link
href="https://sortablejs.github.io/vue.draggable.next/#/simple" href="https://sortablejs.github.io/vue.draggable.next/#/simple"
target="_blank" target="_blank"
:icon="useRenderIcon('rank')" :icon="useRenderIcon('rank')"
style="font-size: 16px; margin: 0 4px 5px" style="font-size: 16px; margin: 0 4px 5px"
>vuedraggable</el-link >
></span vuedraggable
> </el-link>
</span>
</div> </div>
</template> </template>
<div class="drag-container"> <div class="drag-container">

View File

@ -56,8 +56,9 @@ function changeDirection(val) {
<el-button class="button" type="text" @click="changeDirection('top')"> <el-button class="button" type="text" @click="changeDirection('top')">
<span <span
:style="{ color: classOption.direction === 'top' ? 'red' : '' }" :style="{ color: classOption.direction === 'top' ? 'red' : '' }"
>向上滚动</span
> >
向上滚动
</span>
</el-button> </el-button>
<el-button <el-button
class="button" class="button"
@ -68,8 +69,9 @@ function changeDirection(val) {
:style="{ :style="{
color: classOption.direction === 'bottom' ? 'red' : '' color: classOption.direction === 'bottom' ? 'red' : ''
}" }"
>向下滚动</span
> >
向下滚动
</span>
</el-button> </el-button>
<el-button <el-button
class="button" class="button"
@ -78,8 +80,9 @@ function changeDirection(val) {
> >
<span <span
:style="{ color: classOption.direction === 'left' ? 'red' : '' }" :style="{ color: classOption.direction === 'left' ? 'red' : '' }"
>向左滚动</span
> >
向左滚动
</span>
</el-button> </el-button>
<el-button <el-button
class="button" class="button"
@ -88,8 +91,9 @@ function changeDirection(val) {
> >
<span <span
:style="{ color: classOption.direction === 'right' ? 'red' : '' }" :style="{ color: classOption.direction === 'right' ? 'red' : '' }"
>向右滚动</span
> >
向右滚动
</span>
</el-button> </el-button>
</div> </div>
</template> </template>

View File

@ -29,14 +29,16 @@ onMounted(() => {
<el-card> <el-card>
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span class="font-medium" <span class="font-medium">
>视频组件采用开源的<el-link 视频组件采用开源的
<el-link
href="https://v2.h5player.bytedance.com" href="https://v2.h5player.bytedance.com"
target="_blank" target="_blank"
:icon="useRenderIcon('video-play')" :icon="useRenderIcon('video-play')"
style="font-size: 16px; margin: 0 4px 5px" style="font-size: 16px; margin: 0 4px 5px"
>西瓜播放器</el-link >
></span 西瓜播放器
</el-link></span
> >
</div> </div>
</template> </template>

View File

@ -24,7 +24,7 @@ onMounted(() => {
}, 1500); }, 1500);
}); });
const toolbarConfig = { excludeKeys: "fullScreen" }; const toolbarConfig: any = { excludeKeys: "fullScreen" };
const editorConfig = { placeholder: "请输入内容..." }; const editorConfig = { placeholder: "请输入内容..." };
// //
@ -43,14 +43,16 @@ const handleCreated = editor => {
<el-card> <el-card>
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span class="font-medium" <span class="font-medium">
>编辑器组件采用开源的<el-link 编辑器组件采用开源的
<el-link
href="https://www.wangeditor.com" href="https://www.wangeditor.com"
target="_blank" target="_blank"
:icon="useRenderIcon('edit')" :icon="useRenderIcon('edit')"
style="font-size: 16px; margin: 0 4px 5px" style="font-size: 16px; margin: 0 4px 5px"
>wangeditor</el-link >
></span wangeditor
</el-link></span
> >
</div> </div>
</template> </template>

View File

@ -55,8 +55,9 @@ import noAccess from "/@/assets/status/403.svg?component";
delay: 500 delay: 500
} }
}" }"
>返回首页</el-button
> >
返回首页
</el-button>
</div> </div>
</div> </div>
</template> </template>

View File

@ -55,8 +55,9 @@ import noExist from "/@/assets/status/404.svg?component";
delay: 500 delay: 500
} }
}" }"
>返回首页</el-button
> >
返回首页
</el-button>
</div> </div>
</div> </div>
</template> </template>

View File

@ -55,8 +55,9 @@ import noServer from "/@/assets/status/500.svg?component";
delay: 500 delay: 500
} }
}" }"
>返回首页</el-button
> >
返回首页
</el-button>
</div> </div>
</div> </div>
</template> </template>

View File

@ -62,15 +62,17 @@ onMounted(() => {
<el-card> <el-card>
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span class="font-medium" <span class="font-medium">
>流程图组件采用开源的<el-link 流程图组件采用开源的
<el-link
href="http://logic-flow.org/" href="http://logic-flow.org/"
target="_blank" target="_blank"
:icon="useRenderIcon('set-up')" :icon="useRenderIcon('set-up')"
style="font-size: 16px; margin: 0 4px 5px" style="font-size: 16px; margin: 0 4px 5px"
>LogicFlow</el-link >
></span LogicFlow
> </el-link>
</span>
</div> </div>
</template> </template>
<div class="logic-flow-view"> <div class="logic-flow-view">

View File

@ -68,9 +68,9 @@ const guide = () => {
<el-card> <el-card>
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span class="font-medium" <span class="font-medium">
>引导页对于一些第一次进入项目的人很有用你可以简单介绍下项目的功能</span 引导页对于一些第一次进入项目的人很有用你可以简单介绍下项目的功能
> </span>
</div> </div>
</template> </template>
<el-button <el-button

View File

@ -73,12 +73,12 @@ const cardLogoClass = computed(() => [
<IconifyIconOffline icon="more-vertical" class="icon-more" /> <IconifyIconOffline icon="more-vertical" class="icon-more" />
<template #dropdown> <template #dropdown>
<el-dropdown-menu :disabled="!product.isSetup"> <el-dropdown-menu :disabled="!product.isSetup">
<el-dropdown-item @click="handleClickManage(product)" <el-dropdown-item @click="handleClickManage(product)">
>管理</el-dropdown-item 管理
> </el-dropdown-item>
<el-dropdown-item @click="handleClickDelete(product)" <el-dropdown-item @click="handleClickDelete(product)">
>删除</el-dropdown-item 删除
> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</template> </template>
</el-dropdown> </el-dropdown>

View File

@ -139,9 +139,9 @@ const rules = {
</el-form> </el-form>
<template #footer> <template #footer>
<el-button @click="closeDialog">取消</el-button> <el-button @click="closeDialog">取消</el-button>
<el-button type="primary" @click="submitForm(ruleFormRef)" <el-button type="primary" @click="submitForm(ruleFormRef)">
>确定</el-button 确定
> </el-button>
</template> </template>
</el-dialog> </el-dialog>
</template> </template>

View File

@ -97,9 +97,9 @@ const handleManageProduct = product => {
<template> <template>
<div class="main"> <div class="main">
<div class="w-full flex justify-between mb-4"> <div class="w-full flex justify-between mb-4">
<el-button :icon="useRenderIcon('add')" @click="formDialogVisible = true" <el-button :icon="useRenderIcon('add')" @click="formDialogVisible = true">
>新建产品</el-button 新建产品
> </el-button>
<el-input <el-input
style="width: 300px" style="width: 300px"
v-model="searchValue" v-model="searchValue"

View File

@ -37,15 +37,16 @@ function changRole() {
<span style="font-size: 26px">{{ purview }}</span> <span style="font-size: 26px">{{ purview }}</span>
<p style="color: #ffa500"> <p style="color: #ffa500">
查看左侧菜单变化(系统管理)模拟后台根据不同角色返回对应路由 查看左侧菜单变化(系统管理)模拟后台根据不同角色返回对应路由
</p></span </p>
> </span>
</div> </div>
</template> </template>
<el-button <el-button
type="primary" type="primary"
@click="changRole" @click="changRole"
:icon="useRenderIcon('user', { color: '#fff' })" :icon="useRenderIcon('user', { color: '#fff' })"
>切换角色</el-button
> >
切换角色
</el-button>
</el-card> </el-card>
</template> </template>

View File

@ -35,13 +35,15 @@
href="javascript:void(0);" href="javascript:void(0);"
class="flex items-center" class="flex items-center"
style="color: var(--el-color-primary)" style="color: var(--el-color-primary)"
>立即解冻 >
立即解冻
<IconifyIconOffline <IconifyIconOffline
icon="arrow-right-s-line" icon="arrow-right-s-line"
color="var(--el-color-primary)" color="var(--el-color-primary)"
width="18px" width="18px"
height="18px" height="18px"
/></a> />
</a>
</span> </span>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
@ -57,13 +59,15 @@
href="javascript:void(0);" href="javascript:void(0);"
class="flex items-center" class="flex items-center"
style="color: var(--el-color-primary)" style="color: var(--el-color-primary)"
>立即升级 >
立即升级
<IconifyIconOffline <IconifyIconOffline
icon="arrow-right-s-line" icon="arrow-right-s-line"
color="var(--el-color-primary)" color="var(--el-color-primary)"
width="18px" width="18px"
height="18px" height="18px"
/></a> />
</a>
</span> </span>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>

View File

@ -47,7 +47,8 @@ const { lastBuildTime } = __APP_INFO__;
aria-label="dingding" aria-label="dingding"
class="anticon anticon-dingding cursor-pointer flex items-center cursor-pointer" class="anticon anticon-dingding cursor-pointer flex items-center cursor-pointer"
style="color: rgb(0, 160, 233); margin-left: 8px" style="color: rgb(0, 160, 233); margin-left: 8px"
><svg >
<svg
viewBox="64 64 896 896" viewBox="64 64 896 896"
focusable="false" focusable="false"
data-icon="dingding" data-icon="dingding"

View File

@ -106,14 +106,16 @@ const checkboxChangeEvent: VxeTableEvents.CheckboxChange = ({ records }) => {
type="text" type="text"
icon="fa fa-pencil-square-o" icon="fa fa-pencil-square-o"
@click="editConfig(row)" @click="editConfig(row)"
>编辑</vxe-button
> >
编辑
</vxe-button>
<vxe-button <vxe-button
type="text" type="text"
icon="fa fa-trash-o" icon="fa fa-trash-o"
@click="delConfig(row)" @click="delConfig(row)"
>删除</vxe-button
> >
删除
</vxe-button>
</template> </template>
</vxe-table-column> </vxe-table-column>
</vxe-table> </vxe-table>
@ -140,9 +142,9 @@ const checkboxChangeEvent: VxeTableEvents.CheckboxChange = ({ records }) => {
:indeterminate="configData.isIndeterminate" :indeterminate="configData.isIndeterminate"
@change="changeAllEvent" @change="changeAllEvent"
/> />
<span class="select-count" <span class="select-count">
>已选中{{ configData.selectRecords.length }}</span 已选中{{ configData.selectRecords.length }}
> </span>
<vxe-button size="small">{{ t("buttons.hsdelete") }}</vxe-button> <vxe-button size="small">{{ t("buttons.hsdelete") }}</vxe-button>
</span> </span>
</template> </template>

View File

@ -217,24 +217,23 @@ function handleClose() {
/> />
</template> </template>
<template #tools> <template #tools>
<vxe-button <vxe-button icon="fa fa-plus-square-o" status="primary" @click="onAdd">
icon="fa fa-plus-square-o" {{ t("buttons.hsadd") }}
status="primary" </vxe-button>
@click="onAdd"
>{{ t("buttons.hsadd") }}</vxe-button
>
<vxe-button <vxe-button
icon="fa fa-folder-open-o" icon="fa fa-folder-open-o"
status="primary" status="primary"
@click="$refs.xTree.setAllTreeExpand(true)" @click="$refs.xTree.setAllTreeExpand(true)"
>{{ t("buttons.hsexpendAll") }}</vxe-button
> >
{{ t("buttons.hsexpendAll") }}
</vxe-button>
<vxe-button <vxe-button
icon="fa fa-folder-o" icon="fa fa-folder-o"
status="primary" status="primary"
@click="$refs.xTree.clearTreeExpand()" @click="$refs.xTree.clearTreeExpand()"
>{{ t("buttons.hscollapseAll") }}</vxe-button
> >
{{ t("buttons.hscollapseAll") }}
</vxe-button>
</template> </template>
</vxe-toolbar> </vxe-toolbar>
@ -269,24 +268,27 @@ function handleClose() {
type="text" type="text"
icon="fa fa-pencil-square-o" icon="fa fa-pencil-square-o"
@click="onEdit(row)" @click="onEdit(row)"
>编辑</vxe-button
> >
编辑
</vxe-button>
<vxe-button <vxe-button
type="text" type="text"
icon="fa fa-plus-square-o" icon="fa fa-plus-square-o"
@click="onAddChild(row)" @click="onAddChild(row)"
>新增子类型</vxe-button
> >
新增子类型
</vxe-button>
<vxe-button <vxe-button
v-show="row.model" v-show="row.model"
type="text" type="text"
icon="fa fa-cog" icon="fa fa-cog"
@click="onDeploy(row)" @click="onDeploy(row)"
>字典配置</vxe-button
>
<vxe-button type="text" icon="fa fa-trash-o" @click="confirmEvent"
>删除</vxe-button
> >
字典配置
</vxe-button>
<vxe-button type="text" icon="fa fa-trash-o" @click="confirmEvent">
删除
</vxe-button>
</template> </template>
</vxe-table-column> </vxe-table-column>
</vxe-table> </vxe-table>

View File

@ -89,9 +89,9 @@ const openDepot = (): void => {
> >
<el-card style="height: 360px"> <el-card style="height: 360px">
<template #header> <template #header>
<span style="font-size: 16px; font-weight: 500" <span style="font-size: 16px; font-weight: 500">
>GitHub滚动信息</span GitHub滚动信息
> </span>
</template> </template>
<el-skeleton animated :rows="7" :loading="loading"> <el-skeleton animated :rows="7" :loading="loading">
<template #default> <template #default>
@ -123,9 +123,9 @@ const openDepot = (): void => {
> >
<el-card> <el-card>
<template #header> <template #header>
<span style="font-size: 16px; font-weight: 500" <span style="font-size: 16px; font-weight: 500">
>GitHub饼图信息</span GitHub饼图信息
> </span>
</template> </template>
<el-skeleton animated :rows="7" :loading="loading"> <el-skeleton animated :rows="7" :loading="loading">
<template #default> <template #default>
@ -157,9 +157,9 @@ const openDepot = (): void => {
> >
<el-card> <el-card>
<template #header> <template #header>
<span style="font-size: 16px; font-weight: 500" <span style="font-size: 16px; font-weight: 500">
>GitHub折线图信息</span GitHub折线图信息
> </span>
</template> </template>
<el-skeleton animated :rows="7" :loading="loading"> <el-skeleton animated :rows="7" :loading="loading">
<template #default> <template #default>
@ -191,9 +191,9 @@ const openDepot = (): void => {
> >
<el-card> <el-card>
<template #header> <template #header>
<span style="font-size: 16px; font-weight: 500" <span style="font-size: 16px; font-weight: 500">
>GitHub柱状图信息</span GitHub柱状图信息
> </span>
</template> </template>
<el-skeleton animated :rows="7" :loading="loading"> <el-skeleton animated :rows="7" :loading="loading">
<template #default> <template #default>