tangjinzhou
4 years ago
7 changed files with 33 additions and 35 deletions
@ -1,19 +1,18 @@
|
||||
import { defineComponent } from 'vue'; |
||||
import VcSelect, { SelectProps } from '../select'; |
||||
import { getOptionProps, getSlot } from '../_util/props-util'; |
||||
|
||||
export default { |
||||
export default defineComponent({ |
||||
inheritAttrs: false, |
||||
props: { |
||||
...SelectProps(), |
||||
}, |
||||
props: SelectProps(), |
||||
Option: VcSelect.Option, |
||||
render() { |
||||
const selectOptionsProps = getOptionProps(this); |
||||
const selelctProps = { |
||||
const selelctProps: any = { |
||||
...selectOptionsProps, |
||||
size: 'small', |
||||
...this.$attrs, |
||||
}; |
||||
return <VcSelect {...selelctProps}>{getSlot(this)}</VcSelect>; |
||||
}, |
||||
}; |
||||
}); |
@ -1,9 +1,10 @@
|
||||
import { App } from 'vue'; |
||||
import Pagination from './Pagination'; |
||||
|
||||
export { PaginationProps, PaginationConfig } from './Pagination'; |
||||
|
||||
/* istanbul ignore next */ |
||||
Pagination.install = function(app) { |
||||
Pagination.install = function(app: App) { |
||||
app.component(Pagination.name, Pagination); |
||||
return app; |
||||
}; |
Loading…
Reference in new issue