Skip to content

Commit

Permalink
Fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Oct 3, 2016
2 parents 9561f9b + 74c7513 commit a8df9de
Show file tree
Hide file tree
Showing 9 changed files with 109 additions and 90 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- 修复 Tabs 切换后 Tab-panel 被销毁的问题
- 修复 TimePicker 错误的隐藏面板
- 修复 Table Cell 的样式, #204

### 1.0.0-rc.5

Expand Down
22 changes: 22 additions & 0 deletions packages/button/src/button-group.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* button
* @module components/basic/menu
* @desc 用于按钮组
* @param {string} label - 名称
*/
export default {
name: 'ElButtonGroup',

functional: true,

render(h, { slots, data }) {
return (
<div
class="el-button-group"
{ ...data }
{ ...{ on: data.nativeOn } }>
{ slots().default }
</div>
);
}
};
16 changes: 0 additions & 16 deletions packages/button/src/button-group.vue

This file was deleted.

65 changes: 65 additions & 0 deletions packages/button/src/button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
export default {
name: 'ElButton',

functional: true,

props: {
type: {
type: String,
default: 'default'
},
size: String,
icon: {
type: String,
default: ''
},
nativeType: {
type: String,
default: 'button'
},
loading: {
type: Boolean,
default: false
},
disabled: {
type: Boolean,
default: false
},
plain: {
type: Boolean,
default: false
}
},

render(h, { props, slots, data }) {
return (
<button
disabled={ props.disabled }
type={ props.nativeType }
class={[
'el-button',
props.type ? 'el-button-' + props.type : '',
props.size ? 'el-button-' + props.size : '',
{
'is-disabled': props.disabled,
'is-loading': props.loading,
'is-plain': props.plain
}
]}
{ ...data }
{ ...{ on: data.nativeOn } }>
{
[
props.loading
? <i class="el-icon-loading"></i>
: {},
props.icon && !props.loading
? <i class={ 'el-icon-' + props.icon }></i>
: {}
]
}
{ slots().default }
</button>
);
}
};
54 changes: 0 additions & 54 deletions packages/button/src/button.vue

This file was deleted.

2 changes: 1 addition & 1 deletion packages/icon/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./src/icon.vue');
module.exports = require('./src/icon');
19 changes: 19 additions & 0 deletions packages/icon/src/icon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
export default {
name: 'ElIcon',

functional: true,

props: {
name: String
},

render(h, { props, data }) {
return (
<i
class={ 'el-icon' + props.name }
{ ...data }
{ ...{ on: data.nativeOn } }>
</i>
);
}
};
13 changes: 0 additions & 13 deletions packages/icon/src/icon.vue

This file was deleted.

7 changes: 1 addition & 6 deletions packages/theme-default/src/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@

& th {
white-space: nowrap;
overflow: hidden;
}

& th, td {
height: 20px;
max-width: 250px;
min-width: 0;
box-sizing: border-box;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
position: relative;
Expand Down Expand Up @@ -102,10 +102,6 @@
box-sizing: border-box;
}

& td div {
display: block;
}

@e fixed {
position: absolute;
top: 0;
Expand Down Expand Up @@ -180,7 +176,6 @@
& th > .cell {
position: relative;
word-wrap: normal;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
line-height: 20px;
Expand Down

0 comments on commit a8df9de

Please sign in to comment.