fix: modify createElement to h (#483)

This commit is contained in:
BeADre 2020-10-28 13:52:27 +08:00 committed by GitHub
parent 45b8986f5a
commit 00104e16fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 24 additions and 16 deletions

View File

@ -124,10 +124,11 @@ Can be customized to show various content.
</template>
<script>
import { h } from 'vue';
export default {
methods: {
open() {
const h = this.$createElement;
this.$msgbox({
title: 'Message',
message: h('p', null, [

View File

@ -15,6 +15,8 @@ Displays at the top, and disappears after 3 seconds.
</template>
<script>
import { h } from 'vue';
export default {
methods: {
open() {
@ -22,7 +24,6 @@ Displays at the top, and disappears after 3 seconds.
},
openVn() {
const h = this.$createElement;
this.$message({
message: h('p', null, [
h('span', null, 'Message can be '),

View File

@ -21,11 +21,11 @@ Displays a global notification message at a corner of the page.
</template>
<script>
import { h } from 'vue';
export default {
methods: {
open1() {
const h = this.$createElement;
this.$notify({
title: 'Title',
message: h('i', { style: 'color: teal' }, 'This is a reminder')

View File

@ -125,10 +125,11 @@ Puede ser personalizado para mostrar diversos contenidos.
</template>
<script>
import { h } from 'vue';
export default {
methods: {
open() {
const h = this.$createElement;
this.$msgbox({
title: 'Message',
message: h('p', null, [

View File

@ -15,6 +15,8 @@ Se muestra en la parte superior de la pagina y desaparece después de 3 segundos
</template>
<script>
import { h } from 'vue';
export default {
methods: {
open() {
@ -22,7 +24,6 @@ Se muestra en la parte superior de la pagina y desaparece después de 3 segundos
},
openVn() {
const h = this.$createElement;
this.$message({
message: h('p', null, [
h('span', null, 'Message can be '),

View File

@ -21,11 +21,11 @@ Muestra un mensaje de notificación global en una esquina de la página.
</template>
<script>
import { h } from 'vue';
export default {
methods: {
open1() {
const h = this.$createElement;
this.$notify({
title: 'Title',
message: h('i', { style: 'color: teal' }, 'This is a reminder')

View File

@ -125,10 +125,11 @@ Il est possible d'afficher du contenu un peu plus varié et personnalisé.
</template>
<script>
import { h } from 'vue';
export default {
methods: {
open() {
const h = this.$createElement;
this.$msgbox({
title: 'Message',
message: h('p', null, [

View File

@ -15,6 +15,8 @@ S'affiche en haut de la page et disparaît après trois secondes.
</template>
<script>
import { h } from 'vue';
export default {
methods: {
open() {
@ -22,7 +24,6 @@ S'affiche en haut de la page et disparaît après trois secondes.
},
openVn() {
const h = this.$createElement;
this.$message({
message: h('p', null, [
h('span', null, 'Message peut être '),

View File

@ -21,11 +21,11 @@ Affiche une notification globale dans un coin de la page.
</template>
<script>
import { h } from 'vue';
export default {
methods: {
open1() {
const h = this.$createElement;
this.$notify({
title: 'Titre',
message: h('i', { style: 'color: teal' }, 'Ceci est un rappel')

View File

@ -122,10 +122,11 @@
</template>
<script>
import { h } from 'vue';
export default {
methods: {
open() {
const h = this.$createElement;
this.$msgbox({
title: '消息',
message: h('p', null, [

View File

@ -15,6 +15,8 @@
</template>
<script>
import { h } from 'vue';
export default {
methods: {
open() {
@ -22,7 +24,6 @@
},
openVn() {
const h = this.$createElement;
this.$message({
message: h('p', null, [
h('span', null, '内容可以是 '),

View File

@ -22,11 +22,11 @@
</template>
<script>
import { h } from 'vue';
export default {
methods: {
open1() {
const h = this.$createElement;
this.$notify({
title: '标题名称',
message: h('i', { style: 'color: teal'}, '这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案')