refactor: reorganize all components (#8303)
This commit is contained in:
+12
-3
@@ -1,4 +1,11 @@
|
||||
import { watch, PropType, onMounted, onUnmounted, CSSProperties } from 'vue';
|
||||
import {
|
||||
watch,
|
||||
PropType,
|
||||
onMounted,
|
||||
onUnmounted,
|
||||
CSSProperties,
|
||||
defineComponent,
|
||||
} from 'vue';
|
||||
|
||||
// Utils
|
||||
import { createNamespace, isDef, UnknownProp } from '../utils';
|
||||
@@ -9,12 +16,14 @@ import Icon from '../icon';
|
||||
import Popup from '../popup';
|
||||
import Loading, { LoadingType } from '../loading';
|
||||
|
||||
const [createComponent, bem] = createNamespace('toast');
|
||||
const [name, bem] = createNamespace('toast');
|
||||
|
||||
export type ToastType = 'text' | 'loading' | 'success' | 'fail' | 'html';
|
||||
export type ToastPosition = 'top' | 'middle' | 'bottom';
|
||||
|
||||
export default createComponent({
|
||||
export default defineComponent({
|
||||
name,
|
||||
|
||||
props: {
|
||||
icon: String,
|
||||
show: Boolean,
|
||||
|
||||
Reference in New Issue
Block a user