forked from element-plus/element-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(components): refactor space (element-plus#3757)
- Loading branch information
Showing
10 changed files
with
320 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
import Space from './src/index' | ||
import { withInstall } from '@element-plus/utils/with-install' | ||
|
||
import type { App } from 'vue' | ||
import type { SFCWithInstall } from '@element-plus/utils/types' | ||
import Space from './src/space' | ||
|
||
const _Space = Space as SFCWithInstall<typeof Space> | ||
export const ElSpace = withInstall(Space) | ||
export default ElSpace | ||
|
||
_Space.install = (app: App) => { | ||
app.component(_Space.name, _Space) | ||
} | ||
|
||
export default _Space | ||
export const ElSpace = _Space | ||
export * from './src/space' | ||
export * from './src/use-space' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.