refactor: reorganize all components (#8303)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { PropType } from 'vue';
|
||||
import { PropType, defineComponent } from 'vue';
|
||||
|
||||
// Utils
|
||||
import { createNamespace, pick } from '../utils';
|
||||
@@ -40,9 +40,11 @@ function getIconURL(icon: string) {
|
||||
return icon;
|
||||
}
|
||||
|
||||
const [createComponent, bem, t] = createNamespace('share-sheet');
|
||||
const [name, bem, t] = createNamespace('share-sheet');
|
||||
|
||||
export default defineComponent({
|
||||
name,
|
||||
|
||||
export default createComponent({
|
||||
props: {
|
||||
...popupSharedProps,
|
||||
title: String,
|
||||
@@ -0,0 +1,8 @@
|
||||
import { installable } from '../utils';
|
||||
import _ShareSheet from './ShareSheet';
|
||||
|
||||
const ShareSheet = installable(_ShareSheet);
|
||||
|
||||
export default ShareSheet;
|
||||
export { ShareSheet };
|
||||
export type { ShareSheetOption, ShareSheetOptions } from './ShareSheet';
|
||||
Reference in New Issue
Block a user