Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
myronliu347 committed Oct 10, 2019
2 parents b05cddf + a93fc2d commit bea6173
Show file tree
Hide file tree
Showing 167 changed files with 8,127 additions and 2,279 deletions.
6 changes: 4 additions & 2 deletions .fusion
Expand Up @@ -3,8 +3,8 @@
"publish-template": "@alifd/next-theme-template@2x",
"class-prefix": ".next",
"icon": {
"iconfont-project-id": "544230",
"iconfont-path": "//at.alicdn.com/t/font_t6jzs3l3nwtmaemi"
"iconfont-project-id": "515771",
"iconfont-path": "//at.alicdn.com/t/font_515771_7u6frotlpa6"
},
"import": {
"sources": {
Expand Down Expand Up @@ -95,6 +95,7 @@
"range": "lib/range/scss/variable.scss",
"rating": "lib/rating/scss/variable.scss",
"search": "lib/search/scss/variable.scss",
"shell": "lib/shell/scss/variable.scss",
"slider": "lib/slider/scss/variable.scss",
"split-button": "lib/split-button/scss/variable.scss",
"step": "lib/step/scss/variable.scss",
Expand All @@ -105,6 +106,7 @@
"transfer": "lib/transfer/scss/variable.scss",
"tree": "lib/tree/scss/variable.scss",
"tree-select": "lib/tree-select/scss/variable.scss",
"typography": "lib/typography/scss/variable.scss",
"upload": "lib/upload/scss/variable.scss"
}
}
66 changes: 66 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,71 @@
# Change Log

## [1.18.3](https://github.com/alibaba-fusion/next/compare/1.18.2...1.18.3) (2019-09-30)


### Bug Fixes

* **Icon:** correct eye/eye-close's width ([19b7d04](https://github.com/alibaba-fusion/next/commit/19b7d04))
* **NumberPicker:** corner config ([db5929f](https://github.com/alibaba-fusion/next/commit/db5929f))
* **NumberPicker:** fix display valueunder controlled. fix [#1163](https://github.com/alibaba-fusion/next/issues/1163) ([7207532](https://github.com/alibaba-fusion/next/commit/7207532))
* **NumberPicker:** up down key ([6edc9a6](https://github.com/alibaba-fusion/next/commit/6edc9a6))
* **Progress:** backgroundColor is invalid ([#1180](https://github.com/alibaba-fusion/next/issues/1180)) ([b4ee796](https://github.com/alibaba-fusion/next/commit/b4ee796))
* **Typescript:** add field ([01fdcd2](https://github.com/alibaba-fusion/next/commit/01fdcd2))




## [1.18.2](https://github.com/alibaba-fusion/next/compare/1.18.1...1.18.2) (2019-09-26)




## [1.18.2](https://github.com/alibaba-fusion/next/compare/1.18.1...1.18.2) (2019-09-26)




## [1.18.2](https://github.com/alibaba-fusion/next/compare/1.18.1...1.18.2) (2019-09-26)




## [1.18.1](https://github.com/alibaba-fusion/next/compare/1.17.12...1.18.1) (2019-09-26)


### Bug Fixes

* **ConfigProvider:** support component created by React.forwardRef() ([cc6d002](https://github.com/alibaba-fusion/next/commit/cc6d002))
* **Dialog:** fullscreen mask click. fix [#927](https://github.com/alibaba-fusion/next/issues/927) ([#932](https://github.com/alibaba-fusion/next/issues/932)) ([e9b5d28](https://github.com/alibaba-fusion/next/commit/e9b5d28))
* **Dialog:** option.type can only be set as alert or confirm ([be7d644](https://github.com/alibaba-fusion/next/commit/be7d644))
* **Field:** spliceArray can remove a obj in array. close [#1091](https://github.com/alibaba-fusion/next/issues/1091) ([8cc5546](https://github.com/alibaba-fusion/next/commit/8cc5546))
* **NumberPicker:** add variable for button corner. close [#1151](https://github.com/alibaba-fusion/next/issues/1151) ([882fa89](https://github.com/alibaba-fusion/next/commit/882fa89))
* **Overlay:** fullscreen mask click issue with pr [#932](https://github.com/alibaba-fusion/next/issues/932) ([e117487](https://github.com/alibaba-fusion/next/commit/e117487))
* **Tab:** all key should use string ([#1070](https://github.com/alibaba-fusion/next/issues/1070)) ([0d8396f](https://github.com/alibaba-fusion/next/commit/0d8396f))
* **TimePicker:** support format HH ([e5924c2](https://github.com/alibaba-fusion/next/commit/e5924c2))

### Deprecated

* **ConfigProvider(pure):** deprecated API pure ([434e6e0](https://github.com/alibaba-fusion/next/commit/434e6e0))


### Features

* **Field** use field and validate npm packages ([6e70255](https://github.com/alibaba-fusion/next/commit/6e70255))
* **Card:** add free card ([5ee79c7](https://github.com/alibaba-fusion/next/commit/5ee79c7))
* **ConfigProvider:** add popupContainer ([6631a55](https://github.com/alibaba-fusion/next/commit/6631a55))
* **Field:** add api addArrayValue/deleteArrayValue for spliceArray ([ccc95e9](https://github.com/alibaba-fusion/next/commit/ccc95e9))
* **Form:** add fullWidth prop ([c9e6ded](https://github.com/alibaba-fusion/next/commit/c9e6ded))
* **Form:** api field={false} to disable inner field. fix [#1162](https://github.com/alibaba-fusion/next/issues/1162) ([4ed9cde](https://github.com/alibaba-fusion/next/commit/4ed9cde))
* **Icon:** add new icon, close [#1114](https://github.com/alibaba-fusion/next/issues/1114) ([9651f2f](https://github.com/alibaba-fusion/next/commit/9651f2f))
* **Transfer:** support customer panel ([7bef81e](https://github.com/alibaba-fusion/next/commit/7bef81e)) ([6a57e62](https://github.com/alibaba-fusion/next/commit/6a57e62))
* **Notification:** add Notification Component ([f135a67](https://github.com/alibaba-fusion/next/commit/f135a67))
* **Shell:** add Shell ([#1175](https://github.com/alibaba-fusion/next/issues/1175)) ([dd03a64](https://github.com/alibaba-fusion/next/commit/dd03a64))
* **Typography:** add Typography, deprecated Paragraph ([ed3afce](https://github.com/alibaba-fusion/next/commit/ed3afce))




## [1.17.12](https://github.com/alibaba-fusion/next/compare/1.17.11...1.17.12) (2019-09-19)


Expand Down
14 changes: 7 additions & 7 deletions LATESTLOG.md
@@ -1,15 +1,15 @@
# Latest Log

## [1.17.12](https://github.com/alibaba-fusion/next/compare/1.17.11...1.17.12) (2019-09-19)
## [1.18.3](https://github.com/alibaba-fusion/next/compare/1.18.2...1.18.3) (2019-09-30)


### Bug Fixes

* **Input:** border should collapse in input group, close [#1127](https://github.com/alibaba-fusion/next/issues/1127) ([ac4e604](https://github.com/alibaba-fusion/next/commit/ac4e604))
* **Overlay:** wrong object of reference in safari ([cba0d1e](https://github.com/alibaba-fusion/next/commit/cba0d1e))
* **Rating:** click offset in allowHalf, close [#1123](https://github.com/alibaba-fusion/next/issues/1123) ([b4278c4](https://github.com/alibaba-fusion/next/commit/b4278c4))
* **Select:** popupStyle width should override autoWidth, close [#1075](https://github.com/alibaba-fusion/next/issues/1075) ([0e75a2f](https://github.com/alibaba-fusion/next/commit/0e75a2f))
* **Tab:** fix tab nav border in fusion cool ([43d2013](https://github.com/alibaba-fusion/next/commit/43d2013))
* **Util:** copy react node directly, close [#1132](https://github.com/alibaba-fusion/next/issues/1132) ([04618b0](https://github.com/alibaba-fusion/next/commit/04618b0))
* **Icon:** correct eye/eye-close's width ([19b7d04](https://github.com/alibaba-fusion/next/commit/19b7d04))
* **NumberPicker:** corner config ([db5929f](https://github.com/alibaba-fusion/next/commit/db5929f))
* **NumberPicker:** fix display valueunder controlled. fix [#1163](https://github.com/alibaba-fusion/next/issues/1163) ([7207532](https://github.com/alibaba-fusion/next/commit/7207532))
* **NumberPicker:** up down key ([6edc9a6](https://github.com/alibaba-fusion/next/commit/6edc9a6))
* **Progress:** backgroundColor is invalid ([#1180](https://github.com/alibaba-fusion/next/issues/1180)) ([b4ee796](https://github.com/alibaba-fusion/next/commit/b4ee796))
* **Typescript:** add field ([01fdcd2](https://github.com/alibaba-fusion/next/commit/01fdcd2))


2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -6,7 +6,7 @@ English | [简体中文](./README.zh-cn.md)
</a>
</p>

<p align="center">An enterprise-class UI solution for backend system, amied of settling the problems like cooperation between designers and front-developers, consistency of product experience and development efficiency.</p>
<p align="center">An enterprise-class UI solution for backend system, aimed at settling the problems like cooperation between designers and front-developers, consistency of product experience and development efficiency.</p>

---

Expand Down
111 changes: 111 additions & 0 deletions docs/card/demo/free.md
@@ -0,0 +1,111 @@
# 自定义卡片

- order: 5

与子组件的组合来自定义卡片样式

:::lang=en-us
# Free Mode

- order: 5

Combination with subcomponents to customize card styles

:::

---

````jsx
import { Card, Button } from '@alifd/next';

ReactDOM.render(
<div>
<Card
className="free-card custom"
free
>
<Card.Media image="https://img.alicdn.com/tfs/TB1FNIOSFXXXXaWXXXXXXXXXXXX-260-188.png" />
<div className="free-card-main">
<Card.Header title="Title" subTitle="Sub Title" extra={<Button type="primary" text>Link</Button>} />
<Card.Divider />
<Card.Content>
Lorem ipsum dolor sit amet, est viderer iuvaret perfecto et.
</Card.Content>
<Card.Actions>
<Button type="primary" key="action1" text>Action 1</Button>
<Button type="primary" key="action2" text>Action 2</Button>
</Card.Actions>
</div>
</Card>
<br/>
<Card
className="free-card"
free
>
<Card.Media style={{ height: 140 }} image="https://img.alicdn.com/tfs/TB1FNIOSFXXXXaWXXXXXXXXXXXX-260-188.png" />
<Card.BulletHeader title="Title" subTitle="Sub Title" extra={<Button type="primary" text>Link</Button>} />
<Card.CollaspeContent contentHeight="auto">
Lorem ipsum dolor sit amet, est viderer iuvaret perfecto et. Ne petentium quaerendum nec, eos ex recteque mediocritatem, ex usu assum legendos temporibus. Ius feugiat pertinacia an, cu verterem praesent quo.
</Card.CollaspeContent>
<Card.Actions>
<Button type="primary" key="action1" text>Action 1</Button>
<Button type="primary" key="action2" text>Action 2</Button>
</Card.Actions>
</Card>

<Card
className="free-card"
free
>
<Card.Media style={{ height: 140 }} image="https://img.alicdn.com/tfs/TB1FNIOSFXXXXaWXXXXXXXXXXXX-260-188.png" />
<Card.Header title="Title" subTitle="Sub Title" extra={<Button type="primary" text>Link</Button>} />
<Card.Divider />
<Card.Content>
Lorem ipsum dolor sit amet, est viderer iuvaret perfecto et. Ne petentium quaerendum nec, eos ex recteque mediocritatem, ex usu assum legendos temporibus. Ius feugiat pertinacia an, cu verterem praesent quo.
</Card.Content>
<Card.Actions>
<Button type="primary" key="action1" text>Action 1</Button>
<Button type="primary" key="action2" text>Action 2</Button>
</Card.Actions>
</Card>
</div>
, mountNode);
````

````css
.free-card {
display: inline-block;
width: 300px;
vertical-align: top;
}
.free-card + .free-card {
margin-left: 20px;
}

.free-card.custom {
display: flex;
justify-content: space-between;
width: 500px;
height: 200px;
}

.free-card.custom .next-card-media {
height: 100%;
width: 200px;
flex-shrink: 0;
}

.free-card-main {
display: flex;
flex-direction: column;
align-items: stretch;
}

.free-card-main .next-card-content-container {
flex: 1;
}

.free-card-main .next-card-actions {
text-align: right;
}
````
50 changes: 50 additions & 0 deletions docs/card/demo/media.md
@@ -0,0 +1,50 @@
# 多媒体内容

- order: 4

下面是一个使用图像来增强内容的卡片示例。

:::lang=en-us
# Media Content

- order: 4

Here is an example of a card that uses images to enhance content.

:::

---

````jsx
import { Card, Button } from '@alifd/next';

ReactDOM.render(
<Card
className="media-card"
media={<img src="https://img.alicdn.com/tfs/TB1FNIOSFXXXXaWXXXXXXXXXXXX-260-188.png" />}
contentHeight="auto"
title="Title"
subTitle="Sub Title"
extra={[
<Button type="primary" key="action1" text>More</Button>
]}
actions={[
<Button type="primary" key="action1" text>Action 1</Button>,
<Button type="primary" key="action2" text>Action 2</Button>
]}
>
Lorem ipsum dolor sit amet, est viderer iuvaret perfecto et. Ne petentium quaerendum nec, eos ex recteque mediocritatem, ex usu assum legendos temporibus. Ius feugiat pertinacia an, cu verterem praesent quo.

</Card>
, mountNode);
````

````css
.media-card {
width: 300px;
}

.custom-card p {
color: #999;
}
````
38 changes: 38 additions & 0 deletions docs/card/index.en-us.md
Expand Up @@ -27,3 +27,41 @@ A card could contain a photo, text, and a link about a single subject.
| showHeadDivider | If show head divider | Boolean | true |
| contentHeight | Height of content | String/Number | 120 |
| extra | Extra of card header | ReactNode | - |
| media | Media content | ReactNode | - |
| actions | Actions of card | ReactNode | - |
| free | Whether to open free mode, if opened, can`t set title subTitle ..., must use Card.Header Card.Content ... to set Card | Boolean | - |

### Card.Actions

| 参数 | 说明 | 类型 | 默认值 |
| --------- | ------ | ------ | ----- |
| component | The html tag to be rendered | custom | 'div' |

### Card.Content

| 参数 | 说明 | 类型 | 默认值 |
| --------- | ------ | ------ | ----- |
| component | The html tag to be rendered | custom | 'div' |

### Card.Divider

| 参数 | 说明 | 类型 | 默认值 |
| --------- | ------ | ------ | ---- |
| component | The html tag to be rendered | custom | 'hr' |

### Card.Header

| 参数 | 说明 | 类型 | 默认值 |
| --------- | ------------ | --------- | ----- |
| title | Title of card | ReactNode | - |
| subTitle | Sub Title of Card | ReactNode | - |
| extra | Extra of card header | ReactNode | - |
| component | The html tag to be rendered | custom | 'div' |

### Card.Media

| 参数 | 说明 | 类型 | 默认值 |
| --------- | ------- | ------ | ----- |
| component | The html tag to be rendered | custom | 'div' |
| image | Media background image | String | - |
| src | Media source URL | String | - |
54 changes: 46 additions & 8 deletions docs/card/index.md
Expand Up @@ -19,11 +19,49 @@

### Card

| 参数 | 说明 | 类型 | 默认值 |
| --------------- | ------------ | ------------- | ---- |
| title | 卡片的标题 | ReactNode | - |
| subTitle | 卡片的副标题 | ReactNode | - |
| showTitleBullet | 是否显示标题的项目符号 | Boolean | true |
| showHeadDivider | 是否展示头部的分隔线 | Boolean | true |
| contentHeight | 内容区域的固定高度 | String/Number | 120 |
| extra | 标题区域的用户自定义内容 | ReactNode | - |
| 参数 | 说明 | 类型 | 默认值 |
| --------------- | ------------------------------------------------------------ | ------------- | ----- |
| media | 卡片的上的图片 / 视频 | ReactNode | - |
| title | 卡片的标题 | ReactNode | - |
| subTitle | 卡片的副标题 | ReactNode | - |
| actions | 卡片操作组,位置在卡片底部 | ReactNode | - |
| showTitleBullet | 是否显示标题的项目符号 | Boolean | true |
| showHeadDivider | 是否展示头部的分隔线 | Boolean | true |
| contentHeight | 内容区域的固定高度 | String/Number | 120 |
| extra | 标题区域的用户自定义内容 | ReactNode | - |
| free | 是否开启自由模式,开启后card 将使用子组件配合使用, 设置此项后 title, subtitle, 等等属性都将失效 | Boolean | false |

### Card.Media

| 参数 | 说明 | 类型 | 默认值 |
| --------- | ------- | ------ | ----- |
| component | 设置标签类型 | custom | 'div' |
| image | 背景图片地址 | String | - |
| src | 媒体源文件地址 | String | - |

### Card.Header

| 参数 | 说明 | 类型 | 默认值 |
| --------- | ------------ | --------- | ----- |
| title | 卡片的标题 | ReactNode | - |
| subTitle | 卡片的副标题 | ReactNode | - |
| extra | 标题区域的用户自定义内容 | ReactNode | - |
| component | 设置标签类型 | custom | 'div' |

### Card.Content

| 参数 | 说明 | 类型 | 默认值 |
| --------- | ------ | ------ | ----- |
| component | 设置标签类型 | custom | 'div' |

### Card.Divider

| 参数 | 说明 | 类型 | 默认值 |
| --------- | ------ | ------ | ---- |
| component | 设置标签类型 | custom | 'hr' |

### Card.Actions

| 参数 | 说明 | 类型 | 默认值 |
| --------- | ------ | ------ | ----- |
| component | 设置标签类型 | custom | 'div' |

0 comments on commit bea6173

Please sign in to comment.