feat(CuteTransfer): 优化数据穿梭组件功能

- 将组件内按钮尺寸从 mini 调整为 small
- 添加表格选择控制方法 onTableSelectionRender
- 实现禁用状态数据项的选择限制
- 在演示页面更新组件标题文案
- 移除段落标题中的 mini 按钮尺寸设置
- 为演示数据添加禁用状态测试样例
This commit is contained in:
2026-02-02 10:04:18 +08:00
parent 4e34a3d4e4
commit a87acffdf6
2 changed files with 23 additions and 20 deletions
@@ -1,6 +1,6 @@
<template>
<div>
<cute-section-title title="高级搜索组件 CuteSearchForm" />
<cute-section-title title="高级搜索 CuteSearchForm" />
<cute-search-form :model="searchFormModel" @submit="handleSearchFormSubmit">
<template v-slot:suffix>
<el-form-item label="模糊查询" prop="blurry">
@@ -11,20 +11,20 @@
<el-button type="primary">查询后置按钮</el-button>
</template>
</cute-search-form>
<cute-section-title title="横向滚动组件 CuteHorizontalScrollBar" />
<cute-section-title title="横向滚动 CuteHorizontalScrollBar" />
<cute-horizontal-scroll-bar>
<div style="width: 3000px;min-width: 3000px">模拟超长内容</div>
</cute-horizontal-scroll-bar>
<cute-section-title title="纵向滚动组件 CuteVerticalScrollBar" />
<cute-section-title title="纵向滚动 CuteVerticalScrollBar" />
<cute-vertical-scroll-bar>
<div style="height: 3000px;min-height: 3000px">模拟超高内容</div>
</cute-vertical-scroll-bar>
<cute-section-title title="数据穿梭组件 CuteTransfer" />
<cute-section-title title="数据穿梭 CuteTransfer" />
<cute-transfer :data-source="leftDataSource" primary-key="id">
<el-table-column prop="name" label="姓名" />
<el-table-column prop="description" label="备注" />
</cute-transfer>
<cute-section-title title="链接组件 CuteLink" />
<cute-section-title title="链接 CuteLink" />
<cute-link title="百度一下" href="https://www.baidu.com" />
<cute-section-title title="空状态 CuteNoData" />
<cute-no-data desc="自定义提示语" />
@@ -36,7 +36,7 @@
<cute-preview-drawer ref="cpd" title="预览抽屉">
<p>预览抽屉预览抽屉预览抽屉预览抽屉预览抽屉预览抽屉预览抽屉预览抽屉</p>
</cute-preview-drawer>
<cute-section-title title="截屏组件 CuteScreenShot:包裹要截屏的组件" />
<cute-section-title title="截屏 CuteScreenShot:包裹要截屏的组件" />
<cute-screen-shot>
<cute-search-form :model="searchFormModel" @submit="handleSearchFormSubmit" @reset="handleSearchFormReset">
<template v-slot:suffix>
@@ -51,9 +51,9 @@
</cute-screen-shot>
<cute-section-title title="段落标题 CuteSectionTitle" />
<cute-section-title title="主标题" sub-title="副标题" third-title="三级标题">
<cute-button type="danger" size="mini">操作按钮1</cute-button>
<cute-button type="danger" size="mini">操作按钮2</cute-button>
<cute-button type="danger" size="mini">操作按钮3</cute-button>
<cute-button type="danger">操作按钮1</cute-button>
<cute-button type="danger">操作按钮2</cute-button>
<cute-button type="danger">操作按钮3</cute-button>
</cute-section-title>
</div>
</template>
@@ -90,20 +90,20 @@ export default {
searchFormModel: {},
leftDataSource: [
{ id: 1, name: '小明', description: '小明牛P' },
{ id: 2, name: '小红', description: '小红牛P' },
{ id: 3, name: '小蓝', description: '小蓝牛P' },
{ id: 2, name: '小红', description: '小红牛P', disabled: true },
{ id: 3, name: '小蓝', description: '小蓝牛P', disabled: true },
{ id: 4, name: '小绿', description: '小绿牛P' },
{ id: 5, name: '小黄', description: '小黄牛P' },
{ id: 6, name: '小紫', description: '小紫牛P' },
{ id: 7, name: '小青', description: '小青牛P' },
{ id: 7, name: '小青', description: '小青牛P', disabled: true },
{ id: 8, name: '小橙', description: '小橙牛P' },
{ id: 9, name: '小贵', description: '小贵牛P' },
{ id: 10, name: '小陈', description: '小陈牛P' },
{ id: 11, name: '小勇', description: '小勇牛P' },
{ id: 12, name: '小田', description: '小田牛P' },
{ id: 13, name: '小天', description: '小天牛P' },
{ id: 14, name: '小邓', description: '小邓牛P' },
{ id: 15, name: '小周', description: '小周牛P' },
{ id: 13, name: '小天', description: '小天牛P', disabled: true },
{ id: 14, name: '小邓', description: '小邓牛P', disabled: true },
{ id: 15, name: '小周', description: '小周牛P', disabled: true },
{ id: 16, name: '小吴', description: '小吴牛P' },
{ id: 17, name: '小郑', description: '小郑牛P' },
{ id: 18, name: '小王', description: '小王牛P' }