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
9bb4343d
Commit
9bb4343d
authored
Aug 30, 2016
by
qingwei.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tree: Fix render bug
parent
d538f180
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
examples/docs/pagination.md
examples/docs/pagination.md
+13
-0
examples/docs/tooltip.md
examples/docs/tooltip.md
+2
-2
packages/tree/src/transition.js
packages/tree/src/transition.js
+0
-3
packages/tree/src/tree-node.vue
packages/tree/src/tree-node.vue
+1
-2
No files found.
examples/docs/pagination.md
View file @
9bb4343d
...
...
@@ -58,6 +58,19 @@
```
:::
<script>
export default {
methods: {
handleSizeChange(val) {
console.log(
`每页 ${val} 条`
);
},
handleCurrentChange(val) {
console.log(
`当前页: ${val}`
);
}
}
}
</script>
### Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|--------------------|----------------------------------------------------------|-------------------|-------------|--------|
...
...
examples/docs/tooltip.md
View file @
9bb4343d
...
...
@@ -134,14 +134,14 @@ Tooltip 组件提供了两个不同的主题:`dark`和`light`。
如果需要关闭
`tooltip`
功能,
`disabled`
属性可以满足这个需求,它接受一个
`Boolean`
,设置为
`true`
即可。
事实上,这是基于
[
Vue-popper
](
https://github.com/element-component/vue-popper
)
的扩展,你可以自定义任意 Vue-popper 中允许定义的字段。
事实上,这是基于
[
Vue-popper
](
https://github.com/element-component/vue-popper
)
的扩展,你可以自定义任意 Vue-popper 中允许定义的字段。
当然,Tooltip 组件实际上十分强大,文末的API文档会做一一说明。
:::demo
```
html
<template>
<el-tooltip
:disabled=
"disabled"
content=
"点击关闭 tooltip 功能"
transition=
"slide-fade"
placement=
"bottom"
effect=
"light"
>
<el-tooltip
:disabled=
"disabled"
content=
"点击关闭 tooltip 功能"
placement=
"bottom"
effect=
"light"
>
<el-button
@
click.native=
"disabled=true"
>
点击关闭 tooltip 功能
</el-button>
</el-tooltip>
</template>
...
...
packages/tree/src/transition.js
View file @
9bb4343d
...
...
@@ -64,9 +64,6 @@ export default {
functional
:
true
,
render
(
h
,
{
children
})
{
const
data
=
{
props
:
{
appear
:
true
},
on
:
new
Transition
()
};
...
...
packages/tree/src/tree-node.vue
View file @
9bb4343d
...
...
@@ -6,13 +6,12 @@
<span
class=
"el-tree-node__expand-icon"
:class=
"
{ 'is-leaf': node.isLeaf, expanded: !node.isLeaf
&&
expanded }"
>
</span>
<el-checkbox
v-if=
"showCheckbox"
:indeterminate=
"node.indeterminate"
v-model=
"node.checked"
:true-label=
"true"
:false-label=
"false"
@
change=
"handleCheckChange"
></el-checkbox>
<el-checkbox
v-if=
"showCheckbox"
:indeterminate=
"node.indeterminate"
v-model=
"node.checked"
@
change=
"handleCheckChange"
></el-checkbox>
<!--
<span
class=
"el-tree-node__icon
{{
node
.
icon
}}
{{
node
.
loading
?
'
el-icon-loading
'
:
''
}}
" v-if="node.icon">
</span>
-->
<span
class=
"el-tree-node__label"
>
{{
node
.
label
}}
</span>
</div>
<collapse-transition>
<div
class=
"el-tree-node__children"
v-if=
"childrenRendered"
v-show=
"expanded"
>
<el-tree-node
v-for=
"child in node.children"
:node=
"child"
></el-tree-node>
</div>
...
...
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