Skip to content

Commit

Permalink
release: 1.0.3
Browse files Browse the repository at this point in the history
- 新增:级联选择器 `<Cascader />` 组件;
- 新增:进度条 `<Progress />` 组件;
- 新增:`<Tree />` 组件增加点击事件;
- 修复:修正 `<NavMenu />` 不动态更新的 bug;
- 修复:修改 `<DatePicker />` 依赖 date-fns,修改范围选择结束时间;
- 修复:修正文档语言切换的 bug;
- 文档:工作流优化,增加 sass-lint,所有组件无需单独引用样式。
  • Loading branch information
sivan authored Nov 15, 2018
2 parents cd8a6cf + 4ba3f5c commit ec281a7
Show file tree
Hide file tree
Showing 146 changed files with 5,210 additions and 1,635 deletions.
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# MIFE dotfiles

# Output files
# npmignore
dist/
docs/
site/

# Editor generate files
.idea/
Expand Down
168 changes: 168 additions & 0 deletions .sass-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
# sass-lint config generated by make-sass-lint-config v0.1.2
#
# The following scss-lint Linters are not yet supported by sass-lint:
# ChainedClasses, DisableLinterReason, ElsePlacement, PrivateNamingConvention
# PropertyCount, PseudoElement, SelectorDepth, SpaceAfterVariableColon
# SpaceAroundOperator, TrailingWhitespace, UnnecessaryParentReference, VendorPrefixes
#
# The following settings/values are unsupported by sass-lint:
# Linter Indentation, option "allow_non_nested_indentation"
# Linter Indentation, option "character"
# Linter NestingDepth, option "ignore_parent_selectors"
# Linter PropertySortOrder, option "min_properties"
# Linter PropertySortOrder, option "separate_groups"
# Linter SpaceBeforeBrace, option "allow_single_line_padding"

files:
include: '**/*.scss'
options:
formatter: stylish
merge-default-rules: false
rules:
# class 名称规则
class-name-format:
- 1
- convention: hyphenatedbem
bem-depth:
- 0
- max-depth: 1
border-zero:
- 1
- convention: zero
brace-style:
- 1
- allow-single-line: false
clean-import-paths:
- 1
- filename-extension: true
leading-underscore: false
empty-line-between-blocks:
- 1
- ignore-single-line-rulesets: true
extends-before-declarations: 1
extends-before-mixins: 1
final-newline:
- 1
- include: true
force-attribute-nesting: 0
force-element-nesting: 0
force-pseudo-nesting: 0
function-name-format:
- 1
- allow-leading-underscore: true
convention: hyphenatedlowercase
hex-length:
- 1
- style: short
hex-notation:
- 1
- style: lowercase
id-name-format:
- 1
- convention: hyphenatedlowercase
indentation:
- 1
- size: 2
leading-zero:
- 1
- include: true
mixin-name-format:
- 1
- allow-leading-underscore: true
convention: hyphenatedlowercase
mixins-before-declarations: 1
nesting-depth:
- 1
- max-depth: 3
no-color-keywords: 1
no-color-literals: 0
no-css-comments: 0
no-debug: 1
no-duplicate-properties: 0
no-empty-rulesets: 1
no-extends: 0
no-ids: 1
no-important: 0
no-invalid-hex: 1
no-mergeable-selectors: 0
no-misspelled-properties:
- 1
- extra-properties: []
no-qualifying-elements:
- 1
- allow-element-with-attribute: false
allow-element-with-class: false
allow-element-with-id: false
no-trailing-zero: 1
no-transition-all: 0
no-url-protocols: 0
placeholder-in-extend: 1
placeholder-name-format:
- 1
- convention: hyphenatedlowercase
property-sort-order:
- 0
- ignore-custom-properties: false
property-units:
- 0
- global:
- ch
- em
- ex
- rem
- cm
- in
- mm
- pc
- pt
- px
- q
- vh
- vw
- vmin
- vmax
- deg
- grad
- rad
- turn
- ms
- s
- Hz
- kHz
- dpi
- dpcm
- dppx
- '%'
per-property: {}
quotes:
- 1
- style: single
shorthand-values: 1
single-line-per-selector: 1
space-after-bang:
- 1
- include: false
space-after-colon:
- 1
- include: true
space-after-comma: 1
space-before-bang:
- 1
- include: true
space-before-brace:
- 1
- include: true
space-before-colon: 1
space-between-parens:
- 1
- include: false
trailing-semicolon: 1
url-quotes: 1
variable-for-property:
- 0
- properties: []
variable-name-format:
- 1
- allow-leading-underscore: true
convention: hyphenatedlowercase
zero-unit: 1
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
> 1. 修订号:当你做了向下兼容的问题修正。
> 先行版本号及版本编译信息可以加到“主版本号.次版本号.修订号”的后面,作为延伸。
## 1.0.3
- 新增:级联选择器 `<Cascader />` 组件;
- 新增:进度条 `<Progress />` 组件;
- 新增:`<Tree />` 组件增加点击事件;
- 修复:修正 `<NavMenu />` 不动态更新的 bug;
- 修复:修改 `<DatePicker />` 依赖 date-fns,修改范围选择结束时间;
- 修复:修正文档语言切换的 bug;
- 文档:工作流优化,增加 sass-lint,所有组件无需单独引用样式。

## 1.0.2

- 更新:`<Stepper />` 组件,支持主题切换;
Expand All @@ -18,4 +27,4 @@
## 1.0.0

- 第一个公开版本,发布基本组件;
- 发布 HIUI 首页和文档。
- 发布 HIUI 首页和文档。
1 change: 1 addition & 0 deletions components/alert/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import './style/index'

class Alert extends Component {
static propTypes = {
Expand Down
1 change: 1 addition & 0 deletions components/alert/style/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import './index.scss'
import '../../style/icon/index.scss'
1 change: 0 additions & 1 deletion components/alert/style/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import '../../style/index.scss';
@import '../../style/icon/index.scss';

.hi-alert {
position: relative;
Expand Down
1 change: 1 addition & 0 deletions components/badge/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import './style/index'

class Badge extends Component {
static propTypes = {
Expand Down
1 change: 1 addition & 0 deletions components/button/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Button from './Button'
import ButtonGroup from './ButtonGroup'
import './style/index'

Button.Group = ButtonGroup
export default Button
1 change: 1 addition & 0 deletions components/button/style/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import './index.scss'
import '../../style/icon/index.scss'
Loading

0 comments on commit ec281a7

Please sign in to comment.