refactor: add transition namespace (#5829)

This commit is contained in:
三咲智子 2022-02-08 09:09:54 +08:00 committed by GitHub
parent a84facfa4f
commit b63956c325
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<transition name="el-alert-fade"> <transition :name="ns.b('fade')">
<div <div
v-show="visible" v-show="visible"
:class="[ns.b(), ns.m(type), ns.is('center', center), ns.is(effect)]" :class="[ns.b(), ns.m(type), ns.is('center', center), ns.is(effect)]"

View File

@ -1,7 +1,7 @@
<template> <template>
<div :class="ns.b()"> <div :class="ns.b()">
<slot></slot> <slot></slot>
<transition name="el-zoom-in-center"> <transition :name="`${ns.namespace.value}-zoom-in-center`">
<sup <sup
v-show="!hidden && (content || content === '0' || isDot)" v-show="!hidden && (content || content === '0' || isDot)"
:class="[ :class="[