docs[alert]: update alert docs (#493)

This commit is contained in:
滑威 2020-10-29 13:54:27 +08:00 committed by GitHub
parent 0132bf5790
commit 83aaf71684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 16 deletions

View File

@ -87,13 +87,17 @@ Customize the close button as texts or other symbols.
</template>
<script>
export default {
methods: {
hello() {
import { defineComponent } from 'vue'
export default defineComponent({
setup() {
const hello = () => {
alert('Hello World!');
}
return {
hello
}
}
}
})
</script>
```
:::

View File

@ -88,13 +88,17 @@ Personalizar el botón de cerrar como texto u otros símbolos.
</template>
<script>
export default {
methods: {
hello() {
import { defineComponent } from 'vue'
export default defineComponent({
setup() {
const hello = () => {
alert('Hello World!');
}
return {
hello
}
}
}
})
</script>
```
:::

View File

@ -87,13 +87,17 @@ Personnalisez le bouton de fermeture avec du texte ou des symboles.
</template>
<script>
export default {
methods: {
hello() {
import { defineComponent } from 'vue'
export default defineComponent({
setup() {
const hello = () => {
alert('Hello World!');
}
return {
hello
}
}
}
})
</script>
```
:::

View File

@ -87,13 +87,17 @@ Alert 组件提供了两个不同的主题:`light`和`dark`。
</template>
<script>
export default {
methods: {
hello() {
import { defineComponent } from 'vue'
export default defineComponent({
setup() {
const hello = () => {
alert('Hello World!');
}
return {
hello
}
}
}
})
</script>
```
:::