mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-26 04:27:26 +08:00
refactor(components): refactor row
This commit is contained in:
@ -1,13 +1,7 @@
|
||||
import { withInstall } from '@element-plus/utils/with-install'
|
||||
import Row from './src/row'
|
||||
|
||||
import type { App } from 'vue'
|
||||
import type { SFCWithInstall } from '@element-plus/utils/types'
|
||||
export const ElRow = withInstall(Row)
|
||||
export default ElRow
|
||||
|
||||
const _Row = Row as SFCWithInstall<typeof Row>
|
||||
|
||||
_Row.install = (app: App) => {
|
||||
app.component(_Row.name, _Row)
|
||||
}
|
||||
|
||||
export default _Row
|
||||
export const ElRow = _Row
|
||||
export * from './src/row'
|
||||
|
Reference in New Issue
Block a user