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> </template>
<script> <script>
export default { import { defineComponent } from 'vue'
methods: { export default defineComponent({
hello() { setup() {
const hello = () => {
alert('Hello World!'); alert('Hello World!');
} }
return {
hello
}
} }
} })
</script> </script>
``` ```
::: :::

View File

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

View File

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

View File

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