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

View File

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