🎃 移除 element 全局导入, 修改 star 样式

This commit is contained in:
Hunlongyu
2020-10-16 18:00:13 +08:00
parent 7e94ef8025
commit 7d4ffeed87
3 changed files with 32 additions and 37 deletions

View File

@@ -43,30 +43,28 @@
</span>
</li>
<draggable v-model="list" @change="listUpdatedEvent">
<transition-group>
<li
v-for="(i, j) in list"
:key="j"
@click="detailEvent(i)"
:class="[i.hasUpdate ? 'zy-highlighted' : '']"
>
<span class="name">{{ i.name }}</span>
<span class="type">{{ i.type }}</span>
<span class="time">{{ i.year }}</span>
<span class="site">{{ getSiteName(i.key) }}</span>
<span class="note">{{ i.note }}</span>
<span class="note">{{ getHistoryNote(i.index) }}</span>
<span class="operate">
<span class="btn" @click.stop="playEvent(i)">播放</span>
<span class="btn" @click.stop="shareEvent(i)">分享</span>
<span class="btn" @click.stop="updateEvent(i)">同步</span>
<span class="btn" @click.stop="downloadEvent(i)"
>下载</span
>
<span class="btn" @click.stop="deleteEvent(i)">删除</span>
</span>
</li>
</transition-group>
<li
v-for="(i, j) in list"
:key="j"
@click="detailEvent(i)"
:class="[i.hasUpdate ? 'zy-highlighted' : '']"
>
<span class="name">{{ i.name }}</span>
<span class="type">{{ i.type }}</span>
<span class="time">{{ i.year }}</span>
<span class="site">{{ getSiteName(i.key) }}</span>
<span class="note">{{ i.note }}</span>
<span class="note">{{ getHistoryNote(i.index) }}</span>
<span class="operate">
<span class="btn" @click.stop="playEvent(i)">播放</span>
<span class="btn" @click.stop="shareEvent(i)">分享</span>
<span class="btn" @click.stop="updateEvent(i)">同步</span>
<span class="btn" @click.stop="downloadEvent(i)"
>下载</span
>
<span class="btn" @click.stop="deleteEvent(i)">删除</span>
</span>
</li>
</draggable>
</ul>
</div>
@@ -379,20 +377,18 @@ export default {
</script>
<style lang="scss" scoped>
.detail{
position: absolute;
left: 80px;
right: 20px;
bottom: 0;
width: calc(100% - 100px);
z-index: 2000;
position: relative;
width: 100%;
height: calc(100% - 40px);
z-index: 888;
border-radius: 5px;
.detail-content{
height: calc(100% - 10px);
padding: 0 60px;
height: 100%;
position: relative;
.detail-header{
width: 100%;
height: 40px;
height: 50px;
padding: 0 10px;
display: flex;
align-items: center;
justify-content: space-between;

View File

@@ -1,3 +1,5 @@
import Vue from 'vue'
import { Message } from 'element-ui'
import { Message, Table, TableColumn } from 'element-ui'
Vue.use(Table)
Vue.use(TableColumn)
Vue.prototype.$message = Message

View File

@@ -3,10 +3,7 @@ import App from './App.vue'
import store from './store'
import 'modern-normalize'
import Register from './components/register'
import './lib/element/index'
import ElementUI from 'element-ui'
Vue.use(ElementUI)
Register.registerComponents()
Vue.config.productionTip = false
new Vue({