feat(prop): lockList属性,禁止编辑已选项
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-08-14 11:07:15
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-08-16 11:54:25
|
||||
* @LastEditTime: 2023-08-18 16:45:45
|
||||
* @FilePath: \vue3\stories\SelectTransferModal.stories.ts
|
||||
* @Description:
|
||||
*
|
||||
@ -49,6 +49,7 @@ const meta = {
|
||||
title: '选择',
|
||||
width: '70%',
|
||||
zIndex: 2023,
|
||||
lockList: undefined,
|
||||
},
|
||||
render: args => ({
|
||||
components: { ThSelectTransferModal },
|
||||
@ -61,6 +62,7 @@ const meta = {
|
||||
:form-items="args.formItems"
|
||||
:default-params="args.defaultParams"
|
||||
:hide-pagination="args.hidePagination"
|
||||
:lock-list="args.lockList"
|
||||
:request="args.request"
|
||||
:page-sizes="args.pageSizes"
|
||||
:pager-count="args.pagerCount"
|
||||
@ -106,6 +108,28 @@ export const Data: Story = {
|
||||
render: meta.render,
|
||||
}
|
||||
|
||||
export const TransferLock: Story = {
|
||||
name: '锁定已编辑项',
|
||||
args: {
|
||||
...Data.args,
|
||||
value: [{
|
||||
id: 1,
|
||||
name: 'name1',
|
||||
value: 'value1',
|
||||
}, {
|
||||
id: 12,
|
||||
name: 'name12',
|
||||
value: 'value12',
|
||||
}, {
|
||||
id: 33,
|
||||
name: 'name33',
|
||||
value: 'value33',
|
||||
}],
|
||||
lockList: [1, 12, 33],
|
||||
},
|
||||
render: meta.render,
|
||||
}
|
||||
|
||||
export const TransferSlot: Story = {
|
||||
name: '插槽',
|
||||
args: {
|
||||
@ -123,6 +147,7 @@ export const TransferSlot: Story = {
|
||||
:default-params="args.defaultParams"
|
||||
:hide-pagination="args.hidePagination"
|
||||
:request="args.request"
|
||||
:lock-list="args.lockList"
|
||||
:page-sizes="args.pageSizes"
|
||||
:pager-count="args.pagerCount"
|
||||
:props="args.props"
|
||||
|
Reference in New Issue
Block a user