重新格式化代码

This commit is contained in:
chuzhixin 2020-08-25 18:25:18 +08:00
parent 942b673ad6
commit e7fe9b9b5e
20 changed files with 42 additions and 52 deletions

View File

@ -3,7 +3,7 @@
<el-image <el-image
:src="bigSrc" :src="bigSrc"
fit="cover" fit="cover"
style="width: 100%; height: 100%;" style="width: 100%; height: 100%"
@click="clickBig" @click="clickBig"
></el-image> ></el-image>
<el-image <el-image

View File

@ -41,7 +41,7 @@
append-to-body append-to-body
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
> >
<div style="padding-bottom: 20px !important;"> <div style="padding-bottom: 20px !important">
<img width="100%" :src="dialogImageUrl" alt="" /> <img width="100%" :src="dialogImageUrl" alt="" />
</div> </div>
</el-dialog> </el-dialog>
@ -50,11 +50,11 @@
<div <div
slot="footer" slot="footer"
class="dialog-footer" class="dialog-footer"
style="position: relative; padding-right: 15px; text-align: right;" style="position: relative; padding-right: 15px; text-align: right"
> >
<div <div
v-if="show" v-if="show"
style="position: absolute; top: 10px; left: 15px; color: #999;" style="position: absolute; top: 10px; left: 15px; color: #999"
> >
正在上传中... 当前上传成功数:{{ imgSuccessNum }} 当前上传失败数:{{ 正在上传中... 当前上传成功数:{{ imgSuccessNum }} 当前上传失败数:{{
imgErrorNum imgErrorNum
@ -62,7 +62,7 @@
</div> </div>
<el-button type="primary" @click="handleClose">关闭</el-button> <el-button type="primary" @click="handleClose">关闭</el-button>
<el-button <el-button
style="margin-left: 10px;" style="margin-left: 10px"
size="small" size="small"
type="success" type="success"
:loading="loading" :loading="loading"

View File

@ -12,15 +12,15 @@
href="https://github.com/chuzhixin/vue-admin-beautiful" href="https://github.com/chuzhixin/vue-admin-beautiful"
> >
<img <img
style="height: 100%; margin-right: 10px;" style="height: 100%; margin-right: 10px"
src="https://img.shields.io/github/stars/chuzhixin/vue-admin-beautiful?style=flat-square&label=Stars&logo=github" src="https://img.shields.io/github/stars/chuzhixin/vue-admin-beautiful?style=flat-square&label=Stars&logo=github"
/> />
<img <img
style="height: 100%; margin-right: 10px;" style="height: 100%; margin-right: 10px"
src=" https://img.shields.io/badge/Visitors-79.3k/month-blue?style=flat-square&logo=Visual Studio Code" src=" https://img.shields.io/badge/Visitors-79.3k/month-blue?style=flat-square&logo=Visual Studio Code"
/> />
<img <img
style="height: 100%; margin-right: 10px;" style="height: 100%; margin-right: 10px"
src="https://img.shields.io/github/last-commit/chuzhixin/vue-admin-beautiful?style=flat-square&label=Last Commit&logo=vue.js" src="https://img.shields.io/github/last-commit/chuzhixin/vue-admin-beautiful?style=flat-square&label=Last Commit&logo=vue.js"
/> />
</a> </a>
@ -128,7 +128,7 @@
<el-card class="card" shadow="never"> <el-card class="card" shadow="never">
<div slot="header"> <div slot="header">
<span>更新日志</span> <span>更新日志</span>
<div style="float: right;">部署时间:{{ updateTime }}</div> <div style="float: right">部署时间:{{ updateTime }}</div>
</div> </div>
<div class="bottom-btn"> <div class="bottom-btn">
<el-popover placement="top" width="250" trigger="hover"> <el-popover placement="top" width="250" trigger="hover">
@ -263,9 +263,9 @@
<div slot="header"> <div slot="header">
<span>其他信息</span> <span>其他信息</span>
</div> </div>
<div style="text-align: center;"> <div style="text-align: center">
<vab-colorful-icon style="font-size: 140px;" icon-class="vab" /> <vab-colorful-icon style="font-size: 140px" icon-class="vab" />
<h1 style="font-size: 30px;">vue-admin-beautiful</h1> <h1 style="font-size: 30px">vue-admin-beautiful</h1>
</div> </div>
<div v-for="(item, index) in noticeList" :key="index"> <div v-for="(item, index) in noticeList" :key="index">
<el-alert <el-alert

View File

@ -5,11 +5,11 @@
title="beautiful boys and girls欢迎加入vue-admin-beautifulQQ群972435319" title="beautiful boys and girls欢迎加入vue-admin-beautifulQQ群972435319"
type="success" type="success"
:closable="false" :closable="false"
style="position: fixed;" style="position: fixed"
></el-alert> ></el-alert>
<el-row> <el-row>
<el-col :xs="24" :sm="24" :md="12" :lg="16" :xl="16"> <el-col :xs="24" :sm="24" :md="12" :lg="16" :xl="16">
<div style="color: transparent;">占位符</div> <div style="color: transparent">占位符</div>
</el-col> </el-col>
<el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8"> <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
<el-form <el-form
@ -19,11 +19,9 @@
class="login-form" class="login-form"
label-position="left" label-position="left"
> >
<div class="title"> <div class="title">hello !</div>
hello !
</div>
<div class="title-tips">欢迎来到{{ title }}</div> <div class="title-tips">欢迎来到{{ title }}</div>
<el-form-item style="margin-top: 40px;" prop="username"> <el-form-item style="margin-top: 40px" prop="username">
<span class="svg-container svg-container-admin"> <span class="svg-container svg-container-admin">
<vab-icon :icon="['fas', 'user']" /> <vab-icon :icon="['fas', 'user']" />
</span> </span>
@ -68,7 +66,7 @@
登录 登录
</el-button> </el-button>
<router-link to="/register"> <router-link to="/register">
<div style="margin-top: 20px;">注册</div> <div style="margin-top: 20px">注册</div>
</router-link> </router-link>
</el-form> </el-form>
</el-col> </el-col>

View File

@ -2,9 +2,7 @@
<div> <div>
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-form-item label-width="0"> <el-form-item label-width="0">
<el-alert show-icon> <el-alert show-icon>请务必仔细填写并核对</el-alert>
请务必仔细填写并核对
</el-alert>
</el-form-item> </el-form-item>
<el-form-item label="付款账户" prop="payAccount"> <el-form-item label="付款账户" prop="payAccount">
<el-input v-model="form.payAccount"></el-input> <el-input v-model="form.payAccount"></el-input>

View File

@ -5,11 +5,11 @@
title="beautiful boys and girls欢迎加入vue-admin-beautifulQQ群972435319" title="beautiful boys and girls欢迎加入vue-admin-beautifulQQ群972435319"
type="success" type="success"
:closable="false" :closable="false"
style="position: fixed;" style="position: fixed"
></el-alert> ></el-alert>
<el-row> <el-row>
<el-col :xs="24" :sm="24" :md="12" :lg="16" :xl="16"> <el-col :xs="24" :sm="24" :md="12" :lg="16" :xl="16">
<div style="color: transparent;">占位符</div> <div style="color: transparent">占位符</div>
</el-col> </el-col>
<el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8"> <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
<el-form <el-form
@ -23,7 +23,7 @@
<el-input <el-input
v-model.trim="form.username" v-model.trim="form.username"
v-focus v-focus
style="margin-top: 20px;" style="margin-top: 20px"
type="text" type="text"
placeholder="请输入用户名" placeholder="请输入用户名"
auto-complete="off" auto-complete="off"
@ -43,7 +43,7 @@
<vab-icon slot="prefix" :icon="['fas', 'mobile-alt']"></vab-icon> <vab-icon slot="prefix" :icon="['fas', 'mobile-alt']"></vab-icon>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="phoneCode" style="position: relative;"> <el-form-item prop="phoneCode" style="position: relative">
<el-input <el-input
v-model.trim="form.phoneCode" v-model.trim="form.phoneCode"
type="text" type="text"
@ -82,7 +82,7 @@
注册 注册
</el-button> </el-button>
<router-link to="/login"> <router-link to="/login">
<div style="margin-top: 20px;">登录</div> <div style="margin-top: 20px">登录</div>
</router-link> </router-link>
</el-form-item> </el-form-item>
</el-form> </el-form>

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="back-to-top-container"> <div class="back-to-top-container">
<div v-for="(item, index) in 100" :key="index" style="padding: 20px;"> <div v-for="(item, index) in 100" :key="index" style="padding: 20px">
测试滚轮显示返回顶部-{{ index }} 测试滚轮显示返回顶部-{{ index }}
</div> </div>
<!-- <el-tooltip placement="top" content="返回顶部"><vab-back-to-top transition-name="fade" /></el-tooltip> --> <!-- <el-tooltip placement="top" content="返回顶部"><vab-back-to-top transition-name="fade" /></el-tooltip> -->

View File

@ -5,7 +5,7 @@
动画时长 动画时长
<el-slider <el-slider
v-model="time" v-model="time"
style="width: 300px;" style="width: 300px"
:min="100" :min="100"
:max="3000" :max="3000"
></el-slider> ></el-slider>

View File

@ -7,7 +7,7 @@
这世界嘲笑你的人有很多你又不是圣人干嘛对每个人都仁慈面对无端的辱骂和攻击你只能选择将他记在这里时刻提醒自己 这世界嘲笑你的人有很多你又不是圣人干嘛对每个人都仁慈面对无端的辱骂和攻击你只能选择将他记在这里时刻提醒自己
</el-alert> </el-alert>
<br /> <br />
<el-table :data="tableData" style="width: 100%;"> <el-table :data="tableData" style="width: 100%">
<el-table-column prop="name" label="QQ昵称" width="180"></el-table-column> <el-table-column prop="name" label="QQ昵称" width="180"></el-table-column>
<el-table-column prop="qq" label="QQ号" width="180"></el-table-column> <el-table-column prop="qq" label="QQ号" width="180"></el-table-column>
<el-table-column prop="excuse" label="是否可原谅"></el-table-column> <el-table-column prop="excuse" label="是否可原谅"></el-table-column>

View File

@ -14,7 +14,7 @@
<div slot="header"> <div slot="header">
<span>{{ item.title }}</span> <span>{{ item.title }}</span>
</div> </div>
<div style="width: 100%; height: 200px;"> <div style="width: 100%; height: 200px">
<vab-image <vab-image
:big-src="item.img" :big-src="item.img"
:percent="item.percent" :percent="item.percent"

View File

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<div slot="header" class="clearfix" style="margin-bottom: 15px;"> <div slot="header" class="clearfix" style="margin-bottom: 15px">
<el-button type="primary" @click="prettierJSON">生成表格</el-button> <el-button type="primary" @click="prettierJSON">生成表格</el-button>
</div> </div>
<json-editor v-model="value" @change="prettierNewJSON" /> <json-editor v-model="value" @change="prettierNewJSON" />

View File

@ -19,7 +19,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-dialog title="预览效果" :visible.sync="dialogTableVisible"> <el-dialog title="预览效果" :visible.sync="dialogTableVisible">
<div style="min-height: 60vh;"> <div style="min-height: 60vh">
<h1 class="news-title">{{ form.title }}</h1> <h1 class="news-title">{{ form.title }}</h1>
<div class="news-content" v-html="form.content"></div> <div class="news-content" v-html="form.content"></div>
</div> </div>

View File

@ -34,7 +34,7 @@
> >
<el-card <el-card
shadow="hover" shadow="hover"
style="cursor: pointer;" style="cursor: pointer"
@click.native="handleCopyIcon(index, $event)" @click.native="handleCopyIcon(index, $event)"
> >
<vab-colorful-icon <vab-colorful-icon

View File

@ -28,7 +28,7 @@
> >
<el-card <el-card
shadow="hover" shadow="hover"
style="cursor: pointer;" style="cursor: pointer"
@click.native="handleCopyIcon(index, $event)" @click.native="handleCopyIcon(index, $event)"
> >
<vab-icon :icon="['fas', item]" /> <vab-icon :icon="['fas', item]" />

View File

@ -34,7 +34,7 @@
> >
<el-card <el-card
shadow="hover" shadow="hover"
style="cursor: pointer;" style="cursor: pointer"
@click.native="handleCopyIcon(index, $event)" @click.native="handleCopyIcon(index, $event)"
> >
<vab-remix-icon <vab-remix-icon

View File

@ -12,7 +12,7 @@
> >
<vab-comparison <vab-comparison
:id="'silder-' + index" :id="'silder-' + index"
style="margin-bottom: 12px;" style="margin-bottom: 12px"
:width="comparison.width" :width="comparison.width"
:height="comparison.height" :height="comparison.height"
:src1="comparison.src1" :src1="comparison.src1"

View File

@ -8,7 +8,7 @@
<el-card> <el-card>
<div slot="header"> <div slot="header">
开源版本 开源版本
<el-button style="float: right; padding: 3px 0;" type="text"> <el-button style="float: right; padding: 3px 0" type="text">
永久免费 个人/商业使用 永久免费 个人/商业使用
</el-button> </el-button>
</div> </div>
@ -25,9 +25,7 @@
支持白嫖也请给个star 支持白嫖也请给个star
</a> </a>
</li> </li>
<li> <li>提供讨论群专属文档QQ群 972435319</li>
提供讨论群专属文档QQ群 972435319
</li>
</ul> </ul>
</div> </div>
</el-card> </el-card>
@ -36,7 +34,7 @@
<el-card> <el-card>
<div slot="header"> <div slot="header">
VIP群 VIP群
<el-button style="float: right; padding: 3px 0;" type="text"> <el-button style="float: right; padding: 3px 0" type="text">
100 100
</el-button> </el-button>
</div> </div>
@ -57,7 +55,7 @@
<el-card> <el-card>
<div slot="header"> <div slot="header">
开源版授权 商业用途 完全自定义版权 开源版授权 商业用途 完全自定义版权
<el-button style="float: right; padding: 3px 0;" type="text"> <el-button style="float: right; padding: 3px 0" type="text">
299 299
</el-button> </el-button>
</div> </div>
@ -78,7 +76,7 @@
<el-card> <el-card>
<div slot="header"> <div slot="header">
PRO版 PRO版
<el-button style="float: right; padding: 3px 0;" type="text"> <el-button style="float: right; padding: 3px 0" type="text">
599 599
</el-button> </el-button>
</div> </div>
@ -94,9 +92,7 @@
</a> </a>
</li> </li>
<li>PRO独立版本与开源版本不同</li> <li>PRO独立版本与开源版本不同</li>
<li> <li>无开源版限制无版权限制无需额外配置拿来即用</li>
无开源版限制无版权限制无需额外配置拿来即用
</li>
<li>免费加入vue-admin-beautifl github团队</li> <li>免费加入vue-admin-beautifl github团队</li>
<li>提供16种布局主题搭配</li> <li>提供16种布局主题搭配</li>
<li>图标使用方式大为简化</li> <li>图标使用方式大为简化</li>

View File

@ -22,9 +22,7 @@
{{ JSON.stringify(permissions) }} {{ JSON.stringify(permissions) }}
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-divider content-position="left"> <el-divider content-position="left">按钮级权限演示</el-divider>
按钮级权限演示
</el-divider>
<el-button v-permissions="['admin']" type="primary"> <el-button v-permissions="['admin']" type="primary">
我是拥有["admin"]权限的按钮 我是拥有["admin"]权限的按钮
</el-button> </el-button>

View File

@ -17,7 +17,7 @@
<div slot="header"> <div slot="header">
<span>profile</span> <span>profile</span>
<el-button <el-button
style="float: right; padding: 3px 0;" style="float: right; padding: 3px 0"
type="text" type="text"
@click="handleProfile" @click="handleProfile"
> >

View File

@ -18,7 +18,7 @@
<el-table-column show-overflow-tooltip min-width="300px" label="标题"> <el-table-column show-overflow-tooltip min-width="300px" label="标题">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<template v-if="row.edit"> <template v-if="row.edit">
<el-input v-model="row.title" style="width: 300px;" /> <el-input v-model="row.title" style="width: 300px" />
<el-button <el-button
class="cancel-btn" class="cancel-btn"
type="warning" type="warning"