Skip to content

Commit ec281a7

Browse files
authored
release: 1.0.3
- 新增:级联选择器 `<Cascader />` 组件; - 新增:进度条 `<Progress />` 组件; - 新增:`<Tree />` 组件增加点击事件; - 修复:修正 `<NavMenu />` 不动态更新的 bug; - 修复:修改 `<DatePicker />` 依赖 date-fns,修改范围选择结束时间; - 修复:修正文档语言切换的 bug; - 文档:工作流优化,增加 sass-lint,所有组件无需单独引用样式。
2 parents cd8a6cf + 4ba3f5c commit ec281a7

File tree

146 files changed

+5210
-1635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+5210
-1635
lines changed

.npmignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# MIFE dotfiles
22

3-
# Output files
3+
# npmignore
44
dist/
5+
docs/
6+
site/
57

68
# Editor generate files
79
.idea/

.sass-lint.yml

+168
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
# sass-lint config generated by make-sass-lint-config v0.1.2
2+
#
3+
# The following scss-lint Linters are not yet supported by sass-lint:
4+
# ChainedClasses, DisableLinterReason, ElsePlacement, PrivateNamingConvention
5+
# PropertyCount, PseudoElement, SelectorDepth, SpaceAfterVariableColon
6+
# SpaceAroundOperator, TrailingWhitespace, UnnecessaryParentReference, VendorPrefixes
7+
#
8+
# The following settings/values are unsupported by sass-lint:
9+
# Linter Indentation, option "allow_non_nested_indentation"
10+
# Linter Indentation, option "character"
11+
# Linter NestingDepth, option "ignore_parent_selectors"
12+
# Linter PropertySortOrder, option "min_properties"
13+
# Linter PropertySortOrder, option "separate_groups"
14+
# Linter SpaceBeforeBrace, option "allow_single_line_padding"
15+
16+
files:
17+
include: '**/*.scss'
18+
options:
19+
formatter: stylish
20+
merge-default-rules: false
21+
rules:
22+
# class 名称规则
23+
class-name-format:
24+
- 1
25+
- convention: hyphenatedbem
26+
bem-depth:
27+
- 0
28+
- max-depth: 1
29+
border-zero:
30+
- 1
31+
- convention: zero
32+
brace-style:
33+
- 1
34+
- allow-single-line: false
35+
clean-import-paths:
36+
- 1
37+
- filename-extension: true
38+
leading-underscore: false
39+
empty-line-between-blocks:
40+
- 1
41+
- ignore-single-line-rulesets: true
42+
extends-before-declarations: 1
43+
extends-before-mixins: 1
44+
final-newline:
45+
- 1
46+
- include: true
47+
force-attribute-nesting: 0
48+
force-element-nesting: 0
49+
force-pseudo-nesting: 0
50+
function-name-format:
51+
- 1
52+
- allow-leading-underscore: true
53+
convention: hyphenatedlowercase
54+
hex-length:
55+
- 1
56+
- style: short
57+
hex-notation:
58+
- 1
59+
- style: lowercase
60+
id-name-format:
61+
- 1
62+
- convention: hyphenatedlowercase
63+
indentation:
64+
- 1
65+
- size: 2
66+
leading-zero:
67+
- 1
68+
- include: true
69+
mixin-name-format:
70+
- 1
71+
- allow-leading-underscore: true
72+
convention: hyphenatedlowercase
73+
mixins-before-declarations: 1
74+
nesting-depth:
75+
- 1
76+
- max-depth: 3
77+
no-color-keywords: 1
78+
no-color-literals: 0
79+
no-css-comments: 0
80+
no-debug: 1
81+
no-duplicate-properties: 0
82+
no-empty-rulesets: 1
83+
no-extends: 0
84+
no-ids: 1
85+
no-important: 0
86+
no-invalid-hex: 1
87+
no-mergeable-selectors: 0
88+
no-misspelled-properties:
89+
- 1
90+
- extra-properties: []
91+
no-qualifying-elements:
92+
- 1
93+
- allow-element-with-attribute: false
94+
allow-element-with-class: false
95+
allow-element-with-id: false
96+
no-trailing-zero: 1
97+
no-transition-all: 0
98+
no-url-protocols: 0
99+
placeholder-in-extend: 1
100+
placeholder-name-format:
101+
- 1
102+
- convention: hyphenatedlowercase
103+
property-sort-order:
104+
- 0
105+
- ignore-custom-properties: false
106+
property-units:
107+
- 0
108+
- global:
109+
- ch
110+
- em
111+
- ex
112+
- rem
113+
- cm
114+
- in
115+
- mm
116+
- pc
117+
- pt
118+
- px
119+
- q
120+
- vh
121+
- vw
122+
- vmin
123+
- vmax
124+
- deg
125+
- grad
126+
- rad
127+
- turn
128+
- ms
129+
- s
130+
- Hz
131+
- kHz
132+
- dpi
133+
- dpcm
134+
- dppx
135+
- '%'
136+
per-property: {}
137+
quotes:
138+
- 1
139+
- style: single
140+
shorthand-values: 1
141+
single-line-per-selector: 1
142+
space-after-bang:
143+
- 1
144+
- include: false
145+
space-after-colon:
146+
- 1
147+
- include: true
148+
space-after-comma: 1
149+
space-before-bang:
150+
- 1
151+
- include: true
152+
space-before-brace:
153+
- 1
154+
- include: true
155+
space-before-colon: 1
156+
space-between-parens:
157+
- 1
158+
- include: false
159+
trailing-semicolon: 1
160+
url-quotes: 1
161+
variable-for-property:
162+
- 0
163+
- properties: []
164+
variable-name-format:
165+
- 1
166+
- allow-leading-underscore: true
167+
convention: hyphenatedlowercase
168+
zero-unit: 1

CHANGELOG.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
> 1. 修订号:当你做了向下兼容的问题修正。
99
> 先行版本号及版本编译信息可以加到“主版本号.次版本号.修订号”的后面,作为延伸。
1010
11+
## 1.0.3
12+
- 新增:级联选择器 `<Cascader />` 组件;
13+
- 新增:进度条 `<Progress />` 组件;
14+
- 新增:`<Tree />` 组件增加点击事件;
15+
- 修复:修正 `<NavMenu />` 不动态更新的 bug;
16+
- 修复:修改 `<DatePicker />` 依赖 date-fns,修改范围选择结束时间;
17+
- 修复:修正文档语言切换的 bug;
18+
- 文档:工作流优化,增加 sass-lint,所有组件无需单独引用样式。
19+
1120
## 1.0.2
1221

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

2029
- 第一个公开版本,发布基本组件;
21-
- 发布 HIUI 首页和文档。
30+
- 发布 HIUI 首页和文档。

components/alert/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { Component } from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4+
import './style/index'
45

56
class Alert extends Component {
67
static propTypes = {

components/alert/style/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
import './index.scss'
2+
import '../../style/icon/index.scss'

components/alert/style/index.scss

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@import '../../style/index.scss';
2-
@import '../../style/icon/index.scss';
32

43
.hi-alert {
54
position: relative;

components/badge/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { Component } from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
4+
import './style/index'
45

56
class Badge extends Component {
67
static propTypes = {

components/button/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Button from './Button'
22
import ButtonGroup from './ButtonGroup'
3+
import './style/index'
34

45
Button.Group = ButtonGroup
56
export default Button

components/button/style/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
import './index.scss'
2+
import '../../style/icon/index.scss'

0 commit comments

Comments
 (0)