diff --git a/docs/docs/zh-CN/components/transfer.md b/docs/docs/zh-CN/components/transfer.md index 2e2a9d48..4c190a74 100644 --- a/docs/docs/zh-CN/components/transfer.md +++ b/docs/docs/zh-CN/components/transfer.md @@ -53,11 +53,48 @@ export default { ::: -::: field transfer 属性 +::: field 使用插槽 +::: +::: demo + + + + + +::: + +::: field transfer 属性 ::: | Name | Description | Accepted Values | | -------- | ---- | ----------------------- | | dataSource | 数据来源 | -- | -| title | 标题 | -- | \ No newline at end of file +| title | 标题 | -- | +| id | 主键 | -- | + +::: field transfer 插槽 +::: + +| Name | Description | Accepted Values | +| -------- | ---- | ----------------------- | +| item | 列表项 | { data } | \ No newline at end of file diff --git a/src/module/transfer/index.vue b/src/module/transfer/index.vue index 761bc6d1..09ce7ccd 100644 --- a/src/module/transfer/index.vue +++ b/src/module/transfer/index.vue @@ -19,7 +19,8 @@ skin="primary" :label="dataSource[id]" > - {{ dataSource.title }} + + {{ dataSource.title }} @@ -56,7 +57,8 @@ skin="primary" :label="dataSource[id]" > - {{ dataSource.title }} + + {{ dataSource.title }} @@ -66,17 +68,18 @@