refactor: reorganize all components (#8303)

This commit is contained in:
neverland
2021-03-08 11:50:37 +08:00
committed by GitHub
parent 3144a63d2b
commit e540876398
193 changed files with 1307 additions and 400 deletions
+5 -2
View File
@@ -5,6 +5,7 @@ import {
PropType,
CSSProperties,
onBeforeUnmount,
defineComponent,
getCurrentInstance,
} from 'vue';
import {
@@ -16,11 +17,13 @@ import {
} from '../utils';
import Icon from '../icon';
const [createComponent, bem] = createNamespace('image');
const [name, bem] = createNamespace('image');
export type ImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
export default createComponent({
export default defineComponent({
name,
props: {
src: String,
alt: String,
+8
View File
@@ -0,0 +1,8 @@
import { installable } from '../utils';
import _Image from './Image';
const Image = installable(_Image);
export default Image;
export { Image };
export type { ImageFit } from './Image';