fix: 删除optionRight属性

改用插槽代替
This commit is contained in:
2023-08-14 19:05:43 +08:00
parent fb4369711a
commit 738fd09656
2 changed files with 1 additions and 4 deletions

View File

@ -2,7 +2,7 @@
* @Author: zhaojinfeng 121016171@qq.com
* @Date: 2023-08-14 11:07:15
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-08-14 18:54:43
* @LastEditTime: 2023-08-14 19:03:32
* @FilePath: \vue3\packages\select-transfer-modal\index.vue
* @Description:
*
@ -83,7 +83,6 @@ const properties = withDefaults(
defaultParams?: Record<string, any>
formItems?: FormItem[]
request: (args: any) => Promise<Page>
optionRight?: string
pageSizes?: number[]
pagerCount?: number
hideButton?: boolean

View File

@ -42,7 +42,6 @@ const meta = {
defaultParams: {},
formItems: [{ label: 'label1', prop: 'prop1' }, { label: 'label2', prop: 'prop2', selectOptions: [{ label: '1', value: '1' }, { label: '2', value: '2' }] }],
request,
optionRight: 'value',
pageSizes: [20, 50, 100, 200],
pagerCount: document.body.clientWidth < 992 ? 5 : 7,
props: { key: 'id', label: 'name', disabled: 'disabled' },
@ -64,7 +63,6 @@ const meta = {
:hide-pagination="args.hidePagination"
:request="args.request"
:layout="args.layout"
:optionRight="args.optionRight"
:page-sizes="args.pageSizes"
:pager-count="args.pagerCount"
:props="args.props"