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
@@ -1,4 +1,4 @@
import { nextTick, PropType } from 'vue';
import { nextTick, PropType, defineComponent } from 'vue';
// Utils
import { createNamespace, pick } from '../utils';
@@ -9,7 +9,7 @@ import Popup from '../popup';
import Loading from '../loading';
import { popupSharedProps, popupSharedPropKeys } from '../popup/shared';
const [createComponent, bem] = createNamespace('action-sheet');
const [name, bem] = createNamespace('action-sheet');
export type ActionSheetAction = {
name?: string;
@@ -21,7 +21,9 @@ export type ActionSheetAction = {
className?: unknown;
};
export default createComponent({
export default defineComponent({
name,
props: {
...popupSharedProps,
title: String,
+8
View File
@@ -0,0 +1,8 @@
import { installable } from '../utils';
import _ActionSheet from './ActionSheet';
const ActionSheet = installable(_ActionSheet);
export default ActionSheet;
export { ActionSheet };
export type { ActionSheetAction } from './ActionSheet';