Skip to content

Commit

Permalink
ver. 0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jo.sy committed Sep 7, 2018
1 parent a4d544f commit 88fdd04
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 9 deletions.
3 changes: 3 additions & 0 deletions HISTORY.md
@@ -1,4 +1,7 @@
# history
## 0.1.8

* `CHANGED` support js style export
## 0.1.7

* `CHANGED` update to react 16.x
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "uxcore-list",
"version": "0.1.7",
"version": "0.1.8",
"description": "uxcore-list component for uxcore.",
"repository": "https://github.com/uxcore/uxcore-list.git",
"author": "eternalsky",
Expand Down
6 changes: 3 additions & 3 deletions src/ActionBar.less
@@ -1,18 +1,18 @@
.@{__list-prefix-cls}-actionbar {
.@{__listPrefixCls}-actionbar {
width: 100%;
margin-bottom: 12px;
padding: 6px 0px 4px;
}

.@{__list-prefix-cls}-actionbar-item {
.@{__listPrefixCls}-actionbar-item {
display: inline-block;
margin-right: 10px;
&.kuma-button {
padding: 0 30px;
}
}

.@{__list-prefix-cls}-searchbar {
.@{__listPrefixCls}-searchbar {
float: right;
position:relative;
width: 270px;
Expand Down
10 changes: 5 additions & 5 deletions src/List.less
Expand Up @@ -5,25 +5,25 @@
* Copyright 2015-2016, Uxcore Team, Alinw.
* All rights reserved.
*/

@__list-prefix-cls: kuma-list;
@__listPrefixCls: kuma-list;
@import "./Actionbar";

.@{__list-prefix-cls}-nodata {
.@{__listPrefixCls}-nodata {
line-height: 50px;
color: @text-primary-color;
background: #fafafa;
text-align: center;
}
.@{__list-prefix-cls}-pager {
.@{__listPrefixCls}-pager {
text-align: right;
padding: 10px 0px;
.kuma-select2-selection__rendered {
text-align: left;
}
}

.@{__list-prefix-cls} .kuma-page {
.@{__listPrefixCls} .kuma-page {
display: inline-block;
}

3 changes: 3 additions & 0 deletions style/index.js
@@ -0,0 +1,3 @@
import '../src/List.less';
import 'uxcore-button/style';
import 'uxcore-pagination/style';
19 changes: 19 additions & 0 deletions webpack.custom.js
@@ -0,0 +1,19 @@
const modifyVars = require('kuma-base/jsvars/orange');

/* eslint-disable no-param-reassign */
module.exports = (config) => {
config.module.rules.forEach((rule) => {
if (rule.test.toString() === /\.less$/.toString()) {
rule.use = [
'style-loader',
'css-loader',
{
loader: 'less-loader',
options: {
modifyVars,
},
},
];
}
});
};

0 comments on commit 88fdd04

Please sign in to comment.