Address PR comments

This commit is contained in:
JeremyWuuuuu
2020-07-30 11:03:53 +08:00
committed by jeremywu
parent f84907ca3c
commit 619dedb73e
3 changed files with 6 additions and 6 deletions

View File

@@ -1,10 +1,10 @@
<template>
<el-card class="box-card">
<template #header class="clearfix">
<span>卡片名称</span>
<el-button style="float: right; padding: 3px 0" type="text" @click="alert">点我</el-button>
<span>Card name</span>
<el-button style="float: right; padding: 3px 0" type="text" @click="alert">Click Me</el-button>
</template>
<div v-for="o in 4" :key="o" class="text item">{{ '列表内容 ' + o }}</div>
<div v-for="o in 4" :key="o" class="text item">{{ 'List Content ' + o }}</div>
</el-card>
</template>
@@ -12,7 +12,7 @@
export default {
methods: {
alert(): void {
alert('点我干嘛')
alert('Why do you click me?')
},
},
}

View File

@@ -3,5 +3,5 @@ export default {
}
export const BasicCard = () :string => '<el-card header="I am the header">basic card</el-card>'
export const MinimalCard = (): string => '<el-card>minimal card with no header</el-card>'
export const MinimalCard = (): string => '<el-card>Minimal card with no header</el-card>'
export { default as ComplexCard } from './complex.vue'

View File

@@ -6,7 +6,7 @@ import ElTag from '@element-plus/tag'
import ElDivider from '@element-plus/divider'
export {
ElButton, ElBadge, ElTag, ElDivider,
ElButton, ElBadge, ElCard, ElDivider, ElTag,
}
export default function install(app: App): void {