Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #15

Merged
merged 142 commits into from
Aug 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
492c10d
temp(*): add ts code
youluna May 23, 2019
35de235
Merge branch 'master' into typescript-opt
youluna Jun 5, 2019
9ceb94a
fix(Input): fix ts property
nianxiongdi Jul 2, 2019
ac270ea
fix(Input): fix textarea
nianxiongdi Jul 2, 2019
10a5191
Merge branch 'master' into typescript-opt
youluna Jul 11, 2019
a858e60
chore(*): add typescript files
youluna Jul 12, 2019
0c7f49c
feat(*): Add Next Adaptor
myronliu347 Jul 22, 2019
0f72ef6
fix(Transfer): fix that Transfer component cannot be dragged in firefox
jinchanz Jul 23, 2019
1df9bb0
Merge branch 'master' into typescript-opt
youluna Jul 24, 2019
d7ed621
temp(*): remove images
myronliu347 Jul 24, 2019
cbb0f91
chore(*): add CommonProps for affix
youluna Jul 24, 2019
7c65c44
Merge pull request #13 from alibaba-fusion/typescript-opt
nianxiongdi Jul 24, 2019
1cb4b6c
chore(*): add CommonProps for components
youluna Jul 24, 2019
8e339bc
temp(Calendar): add date parse
myronliu347 Jul 24, 2019
fc0d576
chore(typescript): add CommonProps
nianxiongdi Jul 24, 2019
0a8dbdf
Merge branch 'master' into feat-adaptor
myronliu347 Jul 24, 2019
f81ffa8
Merge pull request #918 from nianxiongdi/typescript-opt
youluna Jul 25, 2019
8296375
Merge pull request #917 from alibaba-fusion/ts-opt
youluna Jul 25, 2019
20ac774
fix(Tree): Still can check after disableChecked
myronliu347 Jul 26, 2019
fee18b8
test(Tree): add test
myronliu347 Jul 26, 2019
443eecf
fix(Typescript): add a tags ts.
nianxiongdi Jul 25, 2019
807e258
feat(*): Add Next Adaptor (#903)
myronliu347 Jul 26, 2019
fc035b1
temp(*): add istanbul ignore
myronliu347 Jul 26, 2019
f4535d3
feat(*): time-function & duration update
myronliu347 Jul 28, 2019
4c05cdd
temp(*): fix adaptor can`t render
myronliu347 Jul 28, 2019
1fa1c20
temp(*): update label
myronliu347 Jul 28, 2019
93645ec
Merge branch 'feat-adaptor' of https://github.com/myronliu347/next in…
myronliu347 Jul 28, 2019
49336dd
Merge pull request #922 from nianxiongdi/typescript-opt
youluna Jul 29, 2019
632dea7
fix(Transfer): pass test case
jinchanz Jul 29, 2019
7213606
chore(*): add array of number for dataSource
youluna Jul 30, 2019
6adb1be
Merge branch 'master' into typescript-opt
youluna Jul 30, 2019
2c4ad4c
fix(TypeScript): correct Upload Dragger props, close #936
monkindey Jul 30, 2019
a7df8c5
style(Tree): eslint fix
myronliu347 Jul 30, 2019
8c368f1
feat(TimePicker): add renderTimeMenuItems prop
myronliu347 Jul 31, 2019
01ffb72
Merge branch 'master' into feat/1.17.0
youluna Jul 31, 2019
5beedd8
fix(*): add name and value
youluna Jul 31, 2019
e194520
Merge branch 'typescript-opt' of github.com:alibaba-fusion/next into …
youluna Jul 31, 2019
c7c2b68
temp(*): merge feat/1.17.0
myronliu347 Jul 31, 2019
ac03213
feat(Range): range component support touch event
byeval Jul 31, 2019
1ae682f
chore(Range): remove redundant code
byeval Jul 31, 2019
c82a5f1
Merge branch 'master' into feature/range_support_touch
byeval Aug 1, 2019
1356e25
Merge pull request #944 from myronliu347/feat-adaptor
youluna Aug 1, 2019
703ebf7
Merge pull request #942 from myronliu347/feat/time-picker
youluna Aug 1, 2019
05f5a87
fix(Range): prevent arrow keyup event when disabled
byeval Aug 1, 2019
7d5739e
Merge branch 'master' into feature/range_support_touch
byeval Aug 1, 2019
6e2c85a
feat(Range): add touch test case for Range
byeval Aug 1, 2019
66f463a
feat(Dialog): add max-width to fit phone
youluna Aug 1, 2019
1933847
Merge branch 'feat/1.17.0' into feature/range_support_touch
byeval Aug 1, 2019
79c8ea4
Merge branch 'master' into feature/range_support_touch
byeval Aug 1, 2019
dc2c34a
Merge branch 'master' into feat/1.17.0
byeval Aug 1, 2019
84c312d
Merge branch 'feat/1.17.0' into feature/range_support_touch
byeval Aug 1, 2019
0b1dc66
chore(Slider): draggable & touchable
youluna Aug 5, 2019
2f9ea90
feat(DatePicker): support set Array defaultValue
myronliu347 Aug 5, 2019
210d84e
temp(Tree): delete repeat code, change method name
myronliu347 Aug 5, 2019
bce29cf
test(DatePicker): add test case
myronliu347 Aug 5, 2019
56d17ed
Merge pull request #956 from myronliu347/feat/date-picker
youluna Aug 5, 2019
f07260f
feat(Form): force set labelAlign=top while device=phone
bindoon Aug 5, 2019
0666869
feat(NumberPicker): force set type=inline while device=phone
bindoon Aug 5, 2019
737f7e4
feat(Select): add api popupComponent to custom Popup
bindoon Aug 5, 2019
3c356bf
feat(Tab): support device touchable
myronliu347 Aug 5, 2019
7c53a71
Merge pull request #962 from myronliu347/feat/tab
youluna Aug 5, 2019
dd998f3
Merge pull request #951 from alibaba-fusion/feature/range_support_touch
youluna Aug 5, 2019
39db197
Merge pull request #925 from myronliu347/fix-tree
youluna Aug 5, 2019
2829996
Merge branch 'feat/1.17.0' into typescript-opt
youluna Aug 5, 2019
5feb398
fix(Tab): only focus after first render
byeval Aug 6, 2019
d0b7ca3
Merge branch 'master' into bugfix/fix_editable_tab_focus_lost
byeval Aug 6, 2019
cfb8a9c
Merge pull request #964 from youluna/capable-with-phone
youluna Aug 6, 2019
c09ddc1
Merge pull request #919 from alibaba-fusion/typescript-opt
youluna Aug 7, 2019
1aa7e42
Merge branch 'feat/1.17.0' into feat/transition
myronliu347 Aug 7, 2019
2ca6f17
feat(Drawer): add new component Drawer
youluna Aug 7, 2019
18a7f17
fix(Menu): string in Group/SubMenu causes error, close #952
youluna Aug 7, 2019
1115687
fix(Menu): paddingLeft should only be related to inline mode
youluna Aug 7, 2019
3eca52f
fix(Nav): subNav should be selected if it has selected child, close #520
youluna Aug 7, 2019
67161a1
feat(ConfigProvider): add device prop
myronliu347 Aug 7, 2019
46bb2ff
Merge pull request #966 from youluna/feat-nav-phone
youluna Aug 7, 2019
940fd63
Merge pull request #974 from youluna/subNav-shwo-child-selected
youluna Aug 7, 2019
71d7943
fix(Select): popupComponent do not need syncWidth
bindoon Aug 7, 2019
247c220
Merge pull request #961 from bindoon/responsive-form
youluna Aug 7, 2019
24deee9
typescript(Drawer): add d.ts
youluna Aug 7, 2019
9ce0323
feat(Breadcrumb): maxNode support `auto`
myronliu347 Aug 8, 2019
ec15d75
Merge pull request #982 from myronliu347/feat/breadcrumb
youluna Aug 8, 2019
827ef3e
Merge pull request #943 from myronliu347/feat/transition
youluna Aug 8, 2019
eabd9b3
Merge branch 'feat/1.17.0' of github.com:alibaba-fusion/next into fea…
youluna Aug 8, 2019
878e20d
chore(Drawer): remove body
youluna Aug 8, 2019
baa106c
Merge pull request #978 from myronliu347/feat/config-provider
youluna Aug 8, 2019
7a955e8
Merge pull request #912 from mark-ck/master
youluna Aug 8, 2019
7c9be84
Merge pull request #973 from youluna/feat/drawer
youluna Aug 8, 2019
e14fae6
Merge branch 'master' into feat/1.17.0
youluna Aug 8, 2019
95ccbfc
typescript(*): export props of component in lib
youluna Aug 8, 2019
cf3ced4
Merge pull request #985 from nianxiongdi/master
youluna Aug 8, 2019
b465ce2
Merge pull request #986 from alibaba-fusion/fix-lib-ts
youluna Aug 8, 2019
909031c
chore(*): remove focus
youluna Aug 8, 2019
fe1349e
Merge pull request #970 from alibaba-fusion/bugfix/fix_editable_tab_f…
youluna Aug 8, 2019
d9a2c2c
Merge branch 'feat/1.17.0'
youluna Aug 8, 2019
e7e840a
chore(*): Release-1.17.0
youluna Aug 8, 2019
27b1b59
chore(*): fix didn't generate min file
youluna Aug 8, 2019
8b68d4b
chore(*): Release-1.17.1
youluna Aug 8, 2019
e39c9b7
chore(*): Release-1.17.2
youluna Aug 9, 2019
c8f072f
fix(Select): width should be in outer dom
youluna Aug 9, 2019
53fe002
chore(*): correct motion import
youluna Aug 9, 2019
01a9217
Merge branch 'master' of github.com:alibaba-fusion/next into fix-sele…
youluna Aug 9, 2019
61b4cac
Merge pull request #989 from youluna/fix-select-virtual-width
youluna Aug 9, 2019
be7e4c6
Merge pull request #991 from alibaba-fusion/fix-motion-import
youluna Aug 9, 2019
80db4f0
chore(*): Release-1.17.3
youluna Aug 9, 2019
d4dba8e
docs(Upload): update docs for dragerupload. Close #902
bindoon Aug 12, 2019
522a2f0
docs(Field): fix api of validate. close ##843
bindoon Aug 12, 2019
e10368d
temp(Rating): fix rating adaptor
myronliu347 Aug 12, 2019
17ad2c1
temp(Radio): fix radio label
myronliu347 Aug 12, 2019
d1e5507
fix(Tag): closable can`t set `data-xx` prop
myronliu347 Aug 12, 2019
bd784e7
fix(Menu): child-selected should work in popup mode
youluna Aug 12, 2019
4a91abe
typescript(*): fix d.ts and remove some warning
youluna Aug 12, 2019
3db277c
Merge pull request #996 from bindoon/fix-upload
youluna Aug 12, 2019
0e1a0ff
Merge pull request #997 from myronliu347/fix-adaptor
youluna Aug 12, 2019
e1801b6
chore(*): prevent warning from react 16.9.0
youluna Aug 12, 2019
a76b05c
fix(Field): bug of resetToDefault withtou initValue. close #1001
bindoon Aug 13, 2019
530c7d3
Merge pull request #1002 from bindoon/fix-field
jdkahn Aug 13, 2019
0ecc5c2
fix(Input): support null to reset value
bindoon Aug 13, 2019
44b1266
test(Nav): add test case for popup mode
youluna Aug 13, 2019
5019b7a
chore(*): set dist-tags when publish
youluna Aug 13, 2019
cf66a80
Merge pull request #999 from youluna/fix-iconOnly-highlight
youluna Aug 13, 2019
16c9cfe
Merge pull request #998 from youluna/fix-warning-and-ts
youluna Aug 13, 2019
2bec304
chore(*): Release-1.17.4
youluna Aug 13, 2019
5e01809
temp(TimePicker): fix time-picker autoFocus
myronliu347 Aug 13, 2019
cc9b8e3
temp(DatePicker): can set autoFocus
myronliu347 Aug 13, 2019
59b0988
chore(*): add beta publish
youluna Aug 13, 2019
0e92ade
fix(Pagination): react warning use setTimout event
myronliu347 Aug 14, 2019
407dc5b
feat(Animate): add slide animations
youluna Aug 14, 2019
fbc4ad2
feat(Drawer): make drawer configurable
youluna Aug 14, 2019
1be3ea8
feat(Locale): add Drawer words
youluna Aug 14, 2019
fe15e71
chore(*): fix warning when using popupComponent
youluna Aug 14, 2019
b63598d
Merge pull request #1006 from myronliu347/fix-adaptor
youluna Aug 14, 2019
8c26b1a
Merge pull request #1003 from bindoon/fix-input-null
youluna Aug 14, 2019
179cb6b
Merge pull request #1004 from alibaba-fusion/fix-release-script
youluna Aug 14, 2019
56aa237
test(*): fix test case
youluna Aug 14, 2019
cfb251f
Merge pull request #1007 from alibaba-fusion/fix/1.16.x
youluna Aug 14, 2019
069a9e4
Merge pull request #1010 from myronliu347/master
youluna Aug 14, 2019
bf28447
Merge pull request #1013 from youluna/feat-drawer-config
myronliu347 Aug 14, 2019
9138cc3
chore(*): release-1.17.5
myronliu347 Aug 14, 2019
fef80cd
fix(Menu): value in selectedKeys doesn't exit in k2n
youluna Aug 14, 2019
2c94f68
test(Nav): add test cases
youluna Aug 15, 2019
567469f
Merge pull request #1015 from alibaba-fusion/hotfix-menu-childselecte…
youluna Aug 15, 2019
00bbfe6
chore(*): Release-1.17.6
youluna Aug 15, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .fusion
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"line": "lib/core/style/_line.scss",
"shadow": "lib/core/style/_shadow.scss",
"icon": "lib/core/style/_icon.scss",
"motion": "lib/core/style/_motion.scss",
"form-element": "lib/core/utility/_form-element.scss",
"popup": "lib/core/utility/_popup.scss",
"mask": "lib/core/utility/_mask.scss",
Expand All @@ -79,6 +80,7 @@
"collapse": "lib/collapse/scss/variable.scss",
"time-picker": "lib/time-picker/scss/variable.scss",
"date-picker": "lib/date-picker/scss/variable.scss",
"drawer": "lib/drawer/scss/variable.scss",
"message": "lib/message/scss/variable.scss",
"dialog": "lib/dialog/scss/variable.scss",
"grid": "lib/grid/scss/variable.scss",
Expand Down
104 changes: 104 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,109 @@
# Change Log

## [1.17.6](https://github.com/alibaba-fusion/next/compare/1.17.5...1.17.6) (2019-08-15)


### Bug Fixes

* **Menu:** value in selectedKeys doesn't exit in k2n ([fef80cd](https://github.com/alibaba-fusion/next/commit/fef80cd))




## [1.17.5](https://github.com/alibaba-fusion/next/compare/1.17.4...1.17.5) (2019-08-14)


### Bug Fixes

* **Field:** bug of resetToDefault withtou initValue. close [#1001](https://github.com/alibaba-fusion/next/issues/1001) ([a76b05c](https://github.com/alibaba-fusion/next/commit/a76b05c))
* **Input:** support null to reset value ([0ecc5c2](https://github.com/alibaba-fusion/next/commit/0ecc5c2))
* **Pagination:** react warning use setTimout event ([0e92ade](https://github.com/alibaba-fusion/next/commit/0e92ade))


### Features

* **Animate:** add slide animations ([407dc5b](https://github.com/alibaba-fusion/next/commit/407dc5b))
* **Drawer:** make drawer configurable ([fbc4ad2](https://github.com/alibaba-fusion/next/commit/fbc4ad2))
* **Locale:** add Drawer words ([1be3ea8](https://github.com/alibaba-fusion/next/commit/1be3ea8))




## [1.17.4](https://github.com/alibaba-fusion/next/compare/1.17.3...1.17.4) (2019-08-13)


### Bug Fixes

* **Menu:** child-selected should work in popup mode ([bd784e7](https://github.com/alibaba-fusion/next/commit/bd784e7))
* **Tag:** closable can`t set `data-xx` prop ([d1e5507](https://github.com/alibaba-fusion/next/commit/d1e5507))




## [1.17.3](https://github.com/alibaba-fusion/next/compare/1.17.2...1.17.3) (2019-08-09)


### Bug Fixes

* **Select:** width should be in outer dom ([c8f072f](https://github.com/alibaba-fusion/next/commit/c8f072f))




## [1.17.2](https://github.com/alibaba-fusion/next/compare/1.17.1...1.17.2) (2019-08-09)




## [1.17.1](https://github.com/alibaba-fusion/next/compare/1.17.0...1.17.1) (2019-08-08)




# [1.17.0](https://github.com/alibaba-fusion/next/compare/1.16.6...1.17.0) (2019-08-08)


### Bug Fixes

* add name and value ([5beedd8](https://github.com/alibaba-fusion/next/commit/5beedd8))
* **Input:** fix textarea ([ac270ea](https://github.com/alibaba-fusion/next/commit/ac270ea))
* **Input:** fix ts property ([9ceb94a](https://github.com/alibaba-fusion/next/commit/9ceb94a))
* **Menu:** paddingLeft should only be related to inline mode ([1115687](https://github.com/alibaba-fusion/next/commit/1115687))
* **Menu:** string in Group/SubMenu causes error, close [#952](https://github.com/alibaba-fusion/next/issues/952) ([18a7f17](https://github.com/alibaba-fusion/next/commit/18a7f17))
* **Nav:** subNav should be selected if it has selected child, close [#520](https://github.com/alibaba-fusion/next/issues/520) ([3eca52f](https://github.com/alibaba-fusion/next/commit/3eca52f))
* **Range:** prevent arrow keyup event when disabled ([05f5a87](https://github.com/alibaba-fusion/next/commit/05f5a87))
* **Search:** onSearch ts ([35d33dc](https://github.com/alibaba-fusion/next/commit/35d33dc))
* **Select:** popupComponent do not need syncWidth ([71d7943](https://github.com/alibaba-fusion/next/commit/71d7943))
* **Tab:** only focus after first render ([5feb398](https://github.com/alibaba-fusion/next/commit/5feb398))
* **Transfer:** fix that Transfer component cannot be dragged in firefox ([0f72ef6](https://github.com/alibaba-fusion/next/commit/0f72ef6))
* **Transfer:** pass test case ([632dea7](https://github.com/alibaba-fusion/next/commit/632dea7))
* **Tree:** Still can check after disableChecked ([20ac774](https://github.com/alibaba-fusion/next/commit/20ac774))
* **Typescript:** add a tags ts. ([443eecf](https://github.com/alibaba-fusion/next/commit/443eecf))
* **TypeScript:** correct Upload Dragger props, close [#936](https://github.com/alibaba-fusion/next/issues/936) ([2c4ad4c](https://github.com/alibaba-fusion/next/commit/2c4ad4c))


### Features

* Add Next Adaptor ([0c7f49c](https://github.com/alibaba-fusion/next/commit/0c7f49c))
* Add Next Adaptor ([#903](https://github.com/alibaba-fusion/next/issues/903)) ([807e258](https://github.com/alibaba-fusion/next/commit/807e258))
* time-function & duration update ([f4535d3](https://github.com/alibaba-fusion/next/commit/f4535d3))
* **Breadcrumb:** maxNode support `auto` ([9ce0323](https://github.com/alibaba-fusion/next/commit/9ce0323))
* **ConfigProvider:** add device prop ([67161a1](https://github.com/alibaba-fusion/next/commit/67161a1))
* **DatePicker:** support set Array defaultValue ([2f9ea90](https://github.com/alibaba-fusion/next/commit/2f9ea90))
* **Dialog:** add max-width to fit phone ([66f463a](https://github.com/alibaba-fusion/next/commit/66f463a))
* **Drawer:** add new component Drawer ([2ca6f17](https://github.com/alibaba-fusion/next/commit/2ca6f17))
* **Form:** force set labelAlign=top while device=phone ([f07260f](https://github.com/alibaba-fusion/next/commit/f07260f))
* **NumberPicker:** force set type=inline while device=phone ([0666869](https://github.com/alibaba-fusion/next/commit/0666869))
* **Pagination:** support device ([52054e1](https://github.com/alibaba-fusion/next/commit/52054e1))
* **Range:** add touch test case for Range ([6e2c85a](https://github.com/alibaba-fusion/next/commit/6e2c85a))
* **Range:** range component support touch event ([ac03213](https://github.com/alibaba-fusion/next/commit/ac03213))
* **Select:** add api popupComponent to custom Popup ([737f7e4](https://github.com/alibaba-fusion/next/commit/737f7e4))
* **Tab:** support device touchable ([3c356bf](https://github.com/alibaba-fusion/next/commit/3c356bf))
* **TimePicker:** add renderTimeMenuItems prop ([8c368f1](https://github.com/alibaba-fusion/next/commit/8c368f1))




## [1.16.6](https://github.com/alibaba-fusion/next/compare/1.16.5...1.16.6) (2019-08-01)


Expand Down
4 changes: 2 additions & 2 deletions LATESTLOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Latest Log

## [1.16.6](https://github.com/alibaba-fusion/next/compare/1.16.5...1.16.6) (2019-08-01)
## [1.17.6](https://github.com/alibaba-fusion/next/compare/1.17.5...1.17.6) (2019-08-15)


### Bug Fixes

* **Typescript:** fix menu-button & split-button ([0cfe939](https://github.com/alibaba-fusion/next/commit/0cfe939))
* **Menu:** value in selectedKeys doesn't exit in k2n ([fef80cd](https://github.com/alibaba-fusion/next/commit/fef80cd))


83 changes: 83 additions & 0 deletions docs/adaptor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
import Badge from './badge/adaptor';
import Balloon from './balloon/adaptor';
import Breadcrumb from './breadcrumb/adaptor';
import Button from './button/adaptor';
import Calendar from './calendar/adaptor';
import Card from './card/adaptor';
import Cascader from './cascader/adaptor';
import CascaderSelect from './cascader-select/adaptor';
import Checkbox from './checkbox/adaptor';
import Collapse from './collapse/adaptor';
import DatePicker from './date-picker/adaptor';
import Dialog from './dialog/adaptor';
import Input from './input/adaptor';
import Loading from './loading/adaptor';
import Menu from './menu/adaptor';
import MenuButton from './menu-button/adaptor';
import Message from './message/adaptor';
import Nav from './nav/adaptor';
import NumberPicker from './number-picker/adaptor';
import Pagination from './pagination/adaptor';
import Paragraph from './paragraph/adaptor';
import Progress from './progress/adaptor';
import Radio from './radio/adaptor';
import Range from './range/adaptor';
import Rating from './rating/adaptor';
import Search from './search/adaptor';
import Select from './select/adaptor';
import Slider from './slider/adaptor';
import SplitButton from './split-button/adaptor';
import Step from './step/adaptor';
import Switch from './switch/adaptor';
import Tab from './tab/adaptor';
import Table from './table/adaptor';
import Tag from './tag/adaptor';
import TimePicker from './time-picker/adaptor';
import Timeline from './timeline/adaptor';
import Transfer from './transfer/adaptor';
import Tree from './tree/adaptor';
import TreeSelect from './tree-select/adaptor';
import Upload from './upload/adaptor';

module.exports = {
Badge,
Balloon,
Breadcrumb,
Button,
Calendar,
Card,
Cascader,
CascaderSelect,
Checkbox,
Collapse,
DatePicker,
Dialog,
Input,
Loading,
Menu,
MenuButton,
Message,
Nav,
NumberPicker,
Pagination,
Paragraph,
Progress,
Radio,
Range,
Rating,
Search,
Select,
Slider,
SplitButton,
Step,
Switch,
Tab,
Table,
Tag,
TimePicker,
Timeline,
Transfer,
Tree,
TreeSelect,
Upload,
};
14 changes: 7 additions & 7 deletions docs/affix/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

### Affix

| 参数 | 说明 | 类型 | 默认值 |
| ------------ | ------------------------------------------------------------------------------------------------------------------- | -------- | ------------ |
| container | 设置 Affix 需要监听滚动事件的容器元素<br><br>**签名**:<br>Function() => ReactElement<br>**返回值**:<br>{ReactElement} 目标容器元素的实例<br> | Function | () => window |
| offsetTop | 距离窗口顶部达到指定偏移量后触发 | Number | - |
| offsetBottom | 距离窗口底部达到制定偏移量后触发 | Number | - |
| onAffix | 当元素的样式发生固钉样式变化时触发的回调函数<br><br>**签名**:<br>Function(元素是否被固钉: Boolean) => void<br>**参数**:<br>_元素是否被固钉_: {Boolean} null | Function | func.noop |
| useAbsolute | 是否启用绝对布局实现 affix | Boolean | - |
| 参数 | 说明 | 类型 | 默认值 |
| ------------ | ---------------------------------------------------------------------------------------------------------------------- | -------- | ------------ |
| container | 设置 Affix 需要监听滚动事件的容器元素<br><br>**签名**:<br>Function() => ReactElement<br>**返回值**:<br>{ReactElement} 目标容器元素的实例<br> | Function | () => window |
| offsetTop | 距离窗口顶部达到指定偏移量后触发 | Number | - |
| offsetBottom | 距离窗口底部达到制定偏移量后触发 | Number | - |
| onAffix | 当元素的样式发生固钉样式变化时触发的回调函数<br><br>**签名**:<br>Function(affixed: Boolean) => void<br>**参数**:<br>_affixed_: {Boolean} 元素是否被固钉 | Function | func.noop |
| useAbsolute | 是否启用绝对布局实现 affix | Boolean | - |
6 changes: 5 additions & 1 deletion docs/animate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
| component | 包裹子元素的标签 | any | 'div' |
| singleMode | 是否只有单个子元素,如果有多个子元素,请设置为 false | Boolean | true |
| children | 子元素 | ReactElement/Array&lt;ReactElement> | - |
| beforeAppear | 执行第一次挂载动画前触发的回调函数<br><br>**签名**:<br>Function() => void | Function | () => {} |
| beforeAppear | 执行第一次挂载动画前触发的回调函数<br><br>**签名**:<br>Function(node: HTMLElement) => void<br>**参数**:<br>_node_: {HTMLElement} 执行动画的 dom 元素 | Function | () => {} |
| onAppear | 执行第一次挂载动画,添加 xxx-appear-active 类名后触发的回调函数<br><br>**签名**:<br>Function(node: HTMLElement) => void<br>**参数**:<br>_node_: {HTMLElement} 执行动画的 dom 元素 | Function | () => {} |
| afterAppear | 执行完第一次挂载动画后触发的函数<br><br>**签名**:<br>Function(node: HTMLElement) => void<br>**参数**:<br>_node_: {HTMLElement} 执行动画的 dom 元素 | Function | () => {} |
| beforeEnter | 执行进场动画前触发的回调函数<br><br>**签名**:<br>Function(node: HTMLElement) => void<br>**参数**:<br>_node_: {HTMLElement} 执行动画的 dom 元素 | Function | () => {} |
Expand All @@ -42,6 +42,10 @@
| fadeInLeft | fadeOutLeft |
| fadeInRight | fadeOutRight |
| fadeInUp | fadeOutUp |
| slideInDown | slideOutUp |
| slideInLeft | slideOutLeft |
| slideInRight | slideOutRight |
| slideInUp | slideOutDown |
| zoomIn | zoomOut |
| expandInDown | expandOutUp |
| expandInUp | expandOutDown |
Expand Down
50 changes: 50 additions & 0 deletions docs/badge/adaptor/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import React from 'react';
import { Badge } from '@alifd/next';
import { Types } from '@alifd/adaptor-helper';

export default {
name: 'Badge',
editor: () => ({
props: [{
name: 'level',
label: 'Type',
type: Types.enum,
options: ['dot', 'number'],
default: 'dot'
}, {
name: 'count',
type: Types.number,
default: 12,
}]
}),
adaptor: ({ level, count, ...others }) => {
return <Badge {...others} dot={level=== 'dot'} count={level === 'number' ? count : 0} />;
},
content: () => ({
options: [{
name: 'use',
options: ['independent', 'withOthers'],
default: 'withOthers'
}],
transform: (props, { use }) => {
if (use === 'withOthers') {
return {
...props,
children: {
adaptor: 'div',
props: {
style: {
width: '42px',
height: '42px',
borderRadius: '50%',
background: '#eee',
display: 'inline-block'
}
}
}
};
}
return props;
}
})
};
87 changes: 87 additions & 0 deletions docs/balloon/adaptor/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import React from 'react';
import { Balloon } from '@alifd/next';
import { Types } from '@alifd/adaptor-helper';

const ALIGN_LIST = [
{ label: 'Top', value: 'b' }, // (上)
{ label: 'Right', value: 'l' }, // (右)
{ label: 'Bottom', value: 't' }, // (下)
{ label: 'Left', value: 'r' }, // (左)
{ label: 'Top Left', value: 'br' }, // (上左)
{ label: 'Top Right', value: 'bl' }, // (上右)
{ label: 'Bottom Left', value: 'tr' }, // (下左)
{ label: 'Bottom Right', value: 'tl' }, // (下右)
{ label: 'Left Top', value: 'rt' }, // (左上)
{ label: 'Left Bottom', value: 'rb' }, // (左下)
{ label: 'Right Top', value: 'lt' }, // (右上)
{ label: 'Right Bottom', value: 'lb' }, // (右下 及其 两两组合)
];


export default {
name: 'Balloon',
shape: [{
label: 'Balloon',
value: 'balloon'
}, {
label: 'Tooltip',
value: 'tooltip'
}],
editor: (shape) => {
return {
props: [
shape === 'balloon' && {
name: 'level',
type: Types.enum,
options: ['normal', 'primary'],
default: 'normal',
},
{
name: 'direction',
label: 'Align',
type: Types.enum,
options: ALIGN_LIST,
default: 'b',
},
shape === 'balloon' ?
{
name: 'closable',
type: Types.bool,
default: true
} :
null
].filter(v => !!v),
data: {
default: `${shape.substring(0, 1).toUpperCase() + shape.substring(1)} content replace holder.`
}
};
},
adaptor: ({ shape, level, direction, closable, data, style, ...others }) => {
return (
<Balloon.Inner {...others} type={level} style={{position: 'relative', ...style }} isTooltip={shape === 'tooltip'} align={direction} closable={shape === 'balloon' && closable}>
{data}
</Balloon.Inner>
);
},
content: (shape) => ({
options: [
{
name: 'direction',
options: ALIGN_LIST,
default: 'b'
},
shape === 'balloon' && {
name: 'closable',
options: ['yes', 'no'],
default: 'yes'
}
].filter(v => !!v),
transform: (props, { direction, closable }) => {
return {
...props,
direction,
closable: closable === 'yes',
}
}
})
};
Loading