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
@@ -9,6 +9,7 @@ import {
onActivated,
CSSProperties,
onDeactivated,
defineComponent,
} from 'vue';
// Utils
@@ -33,11 +34,13 @@ export type PopupCloseIconPosition =
| 'botttom-left'
| 'bottom-right';
const [createComponent, bem] = createNamespace('popup');
const [name, bem] = createNamespace('popup');
let globalZIndex = 2000;
export default createComponent({
export default defineComponent({
name,
inheritAttrs: false,
props: {
+8
View File
@@ -0,0 +1,8 @@
import { installable } from '../utils';
import _Popup from './Popup';
const Popup = installable(_Popup);
export default Popup;
export { Popup };
export type { PopupPosition, PopupCloseIconPosition } from './Popup';