Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
83943181
Commit
83943181
authored
Sep 01, 2016
by
qingwei.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Table: fix render static data
Table
parent
0b94a122
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
CHANGELOG.md
CHANGELOG.md
+2
-0
examples/docs/table.md
examples/docs/table.md
+1
-1
packages/table/src/table-column.js
packages/table/src/table-column.js
+7
-1
No files found.
CHANGELOG.md
View file @
83943181
...
...
@@ -6,6 +6,8 @@
-
修复 upload 上传的问题,并增加上传成功和失败的钩子函数
-
button 组件增加
`nativeType`
属性,用于组件内
`<button>`
标签的
`type`
属性,默认值为
`'button'
- 修复 Table 自定义模板中渲染静态数据错误
- 修复 TimePicker 的 `
picker-options
`
属性
### 1.0.0-rc.1
...
...
examples/docs/table.md
View file @
83943181
...
...
@@ -768,4 +768,4 @@
| type | 对应列的类型。如果设置了
`selection`
则显示多选框,如果设置了
`index`
则显示该行的索引(从 1 开始计算) | string | selection/index | - |
| formatter | 用来格式化内容,在 formatter 执行的时候,会传入 row 和 column | function | - | - |
| show-tooltip-when-overflow | 当过长被隐藏时显示 tooltip | Boolean | - | false |
| inline-template | 指定该属性后可以自定义 column 模板,参考多选的时间列,通过 row 获取行信息,通过 _self 获取当前上下文。此时不需要配置 property 属性 | - | - |
| inline-template | 指定该属性后可以自定义 column 模板,参考多选的时间列,通过 row 获取行信息,
JSX 里
通过 _self 获取当前上下文。此时不需要配置 property 属性 | - | - |
packages/table/src/table-column.js
View file @
83943181
...
...
@@ -172,7 +172,13 @@ export default {
let
customRender
=
_self
.
$options
.
render
;
renderColumn
=
function
()
{
return
customRender
.
call
(
objectAssign
(
_self
,
data
));
data
.
_staticTrees
=
_self
.
_staticTrees
;
data
.
$options
=
{};
data
.
$options
.
staticRenderFns
=
_self
.
$options
.
staticRenderFns
;
data
.
_renderProxy
=
_self
.
_renderProxy
;
data
.
_m
=
_self
.
_m
;
return
customRender
.
call
(
data
);
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment