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
3057984a
Commit
3057984a
authored
Nov 06, 2016
by
unknown
Committed by
cinwell.li
Nov 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix docs in ie9
parent
d6495351
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
43 deletions
+53
-43
examples/docs/zh-cn/button.md
examples/docs/zh-cn/button.md
+2
-1
examples/docs/zh-cn/pagination.md
examples/docs/zh-cn/pagination.md
+7
-5
examples/docs/zh-cn/rate.md
examples/docs/zh-cn/rate.md
+3
-3
examples/docs/zh-cn/tooltip.md
examples/docs/zh-cn/tooltip.md
+41
-34
No files found.
examples/docs/zh-cn/button.md
View file @
3057984a
<script>
<script>
import { addClass } from 'wind-dom/src/class';
export default {
export default {
data() {
data() {
return {
return {
...
@@ -16,7 +17,7 @@
...
@@ -16,7 +17,7 @@
this.$nextTick(() => {
this.$nextTick(() => {
let demos = document.querySelectorAll('.source');
let demos = document.querySelectorAll('.source');
let thirdDemo = demos
[
2
]
;
let thirdDemo = demos
[
2
]
;
thirdDemo.classList.add(
'intro-block');
addClass(thirdDemo,
'intro-block');
});
});
}
}
}
}
...
...
examples/docs/zh-cn/pagination.md
View file @
3057984a
...
@@ -108,6 +108,7 @@
...
@@ -108,6 +108,7 @@
```
```
:::
:::
<script>
<script>
import { addClass } from 'wind-dom/src/class';
export default {
export default {
methods: {
methods: {
handleSizeChange(val) {
handleSizeChange(val) {
...
@@ -122,8 +123,8 @@
...
@@ -122,8 +123,8 @@
let demos = document.querySelectorAll('.source');
let demos = document.querySelectorAll('.source');
let firstDemo = demos
[
0
]
;
let firstDemo = demos
[
0
]
;
let lastDemo = demos
[
demos.length - 1
]
;
let lastDemo = demos
[
demos.length - 1
]
;
firstDemo.classList.add(
'first');
addClass(firstDemo,
'first');
lastDemo.classList.add(
'last');
addClass(lastDemo,
'last');
});
});
}
}
}
}
...
@@ -131,15 +132,16 @@
...
@@ -131,15 +132,16 @@
<style>
<style>
.demo-pagination .source.first {
.demo-pagination .source.first {
padding: 0;
padding: 0;
display: flex;
}
}
.demo-pagination .first .block {
.demo-pagination .first .block {
display: inline-block;
padding: 30px 0;
padding: 30px 0;
text-align: center;
text-align: center;
border-right: solid 1px #EFF2F6;
border-right: solid 1px #EFF2F6;
flex: 1;
float: left;
width: 50%;
box-sizing: border-box;
&:last-child {
&:last-child {
border-right: none;
border-right: none;
}
}
...
...
examples/docs/zh-cn/rate.md
View file @
3057984a
...
@@ -13,18 +13,18 @@
...
@@ -13,18 +13,18 @@
this.$nextTick(() => {
this.$nextTick(() => {
let firstDemo = document.querySelector('.source');
let firstDemo = document.querySelector('.source');
firstDemo.style.padding = '0';
firstDemo.style.padding = '0';
firstDemo.style.display = 'flex';
});
});
}
}
}
}
</script>
</script>
<style>
<style>
.demo-rate .block {
.demo-rate .block {
display: inline-block;
padding: 30px 0;
padding: 30px 0;
text-align: center;
text-align: center;
border-right: solid 1px #EFF2F6;
border-right: solid 1px #EFF2F6;
flex: 1;
float: left;
width: 50%;
box-sizing: border-box;
&:last-child {
&:last-child {
border-right: none;
border-right: none;
}
}
...
...
examples/docs/zh-cn/tooltip.md
View file @
3057984a
...
@@ -7,6 +7,47 @@
...
@@ -7,6 +7,47 @@
}
}
};
};
</script>
</script>
<style>
.demo-tooltip {
.el-tooltip + .el-tooltip {
margin-left: 15px;
}
.box {
width: 400px;
.top {
text-align: center;
}
.left {
float: left;
width: 60px;
}
.right {
float: right;
width: 60px;
}
.bottom {
clear: both;
text-align: center;
}
.item {
margin: 4px;
}
.left .el-tooltip__popper,
.right .el-tooltip__popper {
padding: 8px 10px;
}
.el-tooltip {
margin-left: 0;
}
}
}
</style>
## Tooltip 文字提示
## Tooltip 文字提示
...
@@ -19,40 +60,6 @@
...
@@ -19,40 +60,6 @@
:::demo 使用
`content`
属性来决定
`hover`
时的提示信息。由
`placement`
属性决定展示效果:
`placement`
属性值为:
`方向-对齐位置`
;四个方向:
`top`
、
`left`
、
`right`
、
`bottom`
;三种对齐位置:
`start`
,
`end`
,默认为空。如
`placement="left-end"`
,则提示信息出现在目标元素的左侧,且提示信息的底部与目标元素的底部对齐。
:::demo 使用
`content`
属性来决定
`hover`
时的提示信息。由
`placement`
属性决定展示效果:
`placement`
属性值为:
`方向-对齐位置`
;四个方向:
`top`
、
`left`
、
`right`
、
`bottom`
;三种对齐位置:
`start`
,
`end`
,默认为空。如
`placement="left-end"`
,则提示信息出现在目标元素的左侧,且提示信息的底部与目标元素的底部对齐。
```
html
```
html
<style>
.box
{
width
:
400px
;
.top
{
text-align
:
center
;
}
.left
{
float
:
left
;
width
:
60px
;
}
.right
{
float
:
right
;
width
:
60px
;
}
.bottom
{
clear
:
both
;
text-align
:
center
;
}
.item
{
margin
:
4px
;
}
.left
.el-tooltip__popper
,
.right
.el-tooltip__popper
{
padding
:
8px
10px
;
}
}
</style>
<div
class=
"box"
>
<div
class=
"box"
>
<div
class=
"top"
>
<div
class=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"Top Left 提示文字"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"Top Left 提示文字"
placement=
"top-start"
>
...
...
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