Files
mes-ui-d2/src/pages/demo/playground/log/console/index.vue
liyang 7f00053b34 feat: scss public
Former-commit-id: 41a358b0515ea0806a9cec5aa0eeafa69dbc5803 [formerly 2e4519ee057ac6c95e949a646e3c399f8b2f44f7] [formerly 41a358b0515ea0806a9cec5aa0eeafa69dbc5803 [formerly 2e4519ee057ac6c95e949a646e3c399f8b2f44f7] [formerly 41a358b0515ea0806a9cec5aa0eeafa69dbc5803 [formerly 2e4519ee057ac6c95e949a646e3c399f8b2f44f7] [formerly 2e4519ee057ac6c95e949a646e3c399f8b2f44f7 [formerly 8ba9ec64281660336d5fb304b9a5a64cbb2aa17c [formerly a2e8abc48eb676a12c407d8f5e3f2f6b5151686a]]]]]
Former-commit-id: 05526984ebfd295b5fc6eb9f2204c7785b962ecf
Former-commit-id: 770c57651cba3499bc7bcd3c33cf10becb5f289e
Former-commit-id: bf411035a0a7488a3f329786911deb401b4c5bff [formerly 2b4ca8aa7eccc9fe3da2abdd55b886fdc189df09]
Former-commit-id: 233582f8c356147ddea2f836fcf45fe215f7f79d
Former-commit-id: 1b4ed84ffe61099ac9a2d077851f133d33626df9
Former-commit-id: bf66bb6d5444d94cca4b628cbc7ff407b4c50511
Former-commit-id: 8dff1bb9cd43cdc30d42ec5c4373c25c1cae8214
Former-commit-id: 419216ae2da027e8a0282ca71590bdd2e51a1133
2018-11-16 22:49:27 +08:00

68 lines
2.1 KiB
Vue

<template>
<d2-container class="page">
<p class="d2-mt-0">$log.capsule</p>
<el-button size="small" type="primary" @click="$log.capsule('title', 'primary')">
$log.capsule('title', 'primary')
</el-button>
<el-button size="small" type="success" @click="$log.capsule('title', 'success', 'success')">
$log.capsule('title', 'success', 'success')
</el-button>
<el-button size="small" type="warning" @click="$log.capsule('title', 'warning', 'warning')">
$log.capsule('title', 'warning', 'warning')
</el-button>
<el-button size="small" type="danger" @click="$log.capsule('title', 'danger', 'danger')">
$log.capsule('title', 'danger', 'danger')
</el-button>
<p>$log.colorful</p>
<el-button size="small" @click="handleColorful">
colorful
</el-button>
<p>$log.default | primary | success | warning | danger</p>
<el-button size="small" @click="$log.default('default style')">
$log.default('default style')
</el-button>
<el-button size="small" type="primary" @click="$log.primary('primary style')">
$log.primary('primary style')
</el-button>
<el-button size="small" type="success" @click="$log.success('success style')">
$log.success('success style')
</el-button>
<el-button size="small" type="warning" @click="$log.warning('warning style')">
$log.warning('warning style')
</el-button>
<el-button size="small" type="danger" @click="$log.danger('danger style')">
$log.danger('danger style')
</el-button>
<p>效果 ( Chrome )</p>
<img
class="page__image-demo"
src="./image/demo.png">
</d2-container>
</template>
<script>
export default {
methods: {
handleColorful () {
this.$log.colorful([
{ text: 'H', type: 'default' },
{ text: 'e', type: 'primary' },
{ text: 'l', type: 'success' },
{ text: 'l', type: 'warning' },
{ text: 'o', type: 'danger' }
])
}
}
}
</script>
<style lang="scss" scoped>
.page {
.page__image-demo {
border-radius: 4px;
width: 260px;
border: 1px solid $color-border-1;
}
}
</style>