Skip to content

Commit

Permalink
Merge pull request #859 from aijunhao/feature/angular14-upgrade
Browse files Browse the repository at this point in the history
Feature/angular14 upgrade
  • Loading branch information
mshmyw authored Dec 4, 2022
2 parents 58715f0 + 09a8c87 commit 1e821a0
Show file tree
Hide file tree
Showing 89 changed files with 254 additions and 254 deletions.
8 changes: 4 additions & 4 deletions components/accordion/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ You can collapse / expand the content area.

### Accordion

Properties | Descrition | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[activeKey]` | Current active Panel key, The first panel key on accordion mode | `Array \| string` | - |
| `[defaultActiveKey]` | Default active key | `string` | - |
| `[accordion]` | Accordion mode | `boolean` | `false` |
| `(onChange)` | Called when collapse Panel is changed | `EventEmitter<string>` | - |

### AccordionPanel

Properties | Descrition | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[key]` | Corresponding activeKey | `string` | - |
| `[header]` | Header content of Panel | `string \| TemplateRef` | - |

Expand Down
8 changes: 4 additions & 4 deletions components/accordion/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ subtitle: 手风琴

### Accordion

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
| `[activeKey]` | 当前激活 tab 面板的 key, accordion模式下默认第一个元素 | `Array \| string` | - |
| `[defaultActiveKey]` | 初始化选中面板的 key | `string` | - |
| `[accordion]` | `手风琴`模式 | `boolean` | `false` |
| `(onChange)` | 切换面板的回调 | `EventEmitter<string>` | - |

### AccordionPanel

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
| `[key]` | 对应 activeKey | `string` | - |
| `[header]` | 面板头内容 | `string \| TemplateRef` | - |

Expand Down
4 changes: 2 additions & 2 deletions components/activity-indicator/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ title: ActivityIndicator

### ActivityIndicator

Properties | Descrition | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[animating]` | Whether to show the indicator | `boolean` | `true` |
| `[size]` | Size of the indicator | `'small' \| 'large'` | `'small'` |
| `[toast]` | Whether to use toast style | `boolean` | `false` |
Expand Down
4 changes: 2 additions & 2 deletions components/activity-indicator/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ subtitle: 活动指示器

### ActivityIndicator

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
| `[animating]` | 显隐状态 | `boolean` | `true` |
| `[size]` | spinner大小 | `'small' \| 'large'` | `'small'` |
| `[toast]` | loading样式类型 | `boolean` | `false` |
Expand Down
4 changes: 2 additions & 2 deletions components/badge/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ The red dot at corner for notification and getting user attention.

## API

Properties | Descrition | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
`[size]` | Size of badge | `'large' \| 'small'` | `'small'`
`[text]` | Text or number inside badge | `string \| number` | -
`[corner]` | Whether is badge at corner position | `boolean` | `false`
Expand Down
4 changes: 2 additions & 2 deletions components/badge/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ subtitle: 徽标数

## API

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
`[size]` | 大小 | `'large' \| 'small'` | `'small'`
`[text]` | 展示的数字或文案,当为数字时候,大于 overflowCount <br/> 时显示为 ${overflowCount}+,为 0 时隐藏 | `string \| number` | -
`[corner]` | 置于角落 | `boolean` | `false`
Expand Down
4 changes: 2 additions & 2 deletions components/button/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ To trigger an operation.

## API

Properties | Descrition | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[type]` | Button type | `'default' \| 'primary' \| 'ghost' \| 'warning'` | `'default'` |
| `[size]` | Button size | `'large' \| 'small'` | `large`|
| `[disabled]` | Set disabled | `boolean` | `false` |
Expand Down
4 changes: 2 additions & 2 deletions components/button/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ subtitle: 按钮

## API

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
| `[type]` | 按钮类型 | `'default' \| 'primary' \| 'ghost' \| 'warning'` | `'default'` |
| `[size]` | 按钮大小 | `'large' \| 'small'` | `large`|
| `[disabled]` | 设置禁用 | `boolean` | `false` |
Expand Down
4 changes: 2 additions & 2 deletions components/calendar/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Used to select a date range.

## API

Properties | Description | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[enterDirection]` | Enter direction | `'horizontal' \| 'vertical'` | `'vertical'` |
| `[locale]` | Locale | `DateModels.Locale` | - |
| `[pickTime]` | If pick time | `boolean` | `false` |
Expand Down
4 changes: 2 additions & 2 deletions components/calendar/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ subtitle: 日历

## API

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
| `[enterDirection]` | 入场方向 | `'horizontal' \| 'vertical'` | `'vertical'` |
| `[locale]` | 本地化 | `DateModels.Locale` | - |
| `[pickTime]` |是否选择时间 | `boolean` | `false` |
Expand Down
12 changes: 6 additions & 6 deletions components/card/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ Card can be used to organize information and operations, usually also as an entr

### Card

Properties | Descrition | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[full]` | Whether is full column | `boolean` | `false` |

### CardHeader

Properties | Descrition | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[title]` | Title for `CardHeader` | `string \| TemplateRef` | - |
| `[thumb]` | Thumb to render in the left of `CardHeader` | `string \| TemplateRef` | - |
| `[thumbStyle]` | Style of thumb | `object` | `{}` |
| `[extra]` | Extra content to render in the right of `CardHeader` | `string \| TemplateRef` | - |

### CardFooter

Properties | Descrition | Type | Default
-----------|------------|------|--------z
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[content]` | Content of `CardFooter` | `string \| TemplateRef` | - |
| `[extra]` | Extra content of `CardFooter` | `string \| TemplateRef` | - |
12 changes: 6 additions & 6 deletions components/card/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ subtitle: 卡片

### Card

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
| `[full]` | 是否通栏 | `boolean` | `false` |

### CardHeader

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
| `[title]` | 卡片标题 | `string \| TemplateRef` | - |
| `[thumb]` | 卡片标题图片 | `string \| TemplateRef` | - |
| `[thumbStyle]` | 标题图片样式 | `object` | `{}` |
| `[extra]` | 卡片标题辅助内容 | `string \| TemplateRef` | - |

### CardFooter

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
| `[content]` | 尾部内容 | `string \| TemplateRef` | - |
| `[extra]` | 尾部辅助内容 | `string \| TemplateRef` | - |
4 changes: 2 additions & 2 deletions components/carousel/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ title: Carousel

## API

Properties | Descrition | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[selectedIndex]` | current selected index | `number` | `0` |
| `[dots]` | whether to display the indication dots | `boolean` | `true` |
| `[vertical]` | this prop controls the content display direction | `boolean` | `false` |
Expand Down
4 changes: 2 additions & 2 deletions components/carousel/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ subtitle: 走马灯

## API

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
| `[selectedIndex]` | 手动设置当前显示的索引 | `number` | `0` |
| `[dots]` | 是否显示面板指示点 | `boolean` | `true` |
| `[vertical]` | 垂直显示 | `boolean` | `false` |
Expand Down
6 changes: 3 additions & 3 deletions components/checkbox/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Checkbox

### Checkbox

| Properties | Descrition | Type | Default |
| Properties | Description | Type | Default |
| ---------- | ---------- | ---- | ------- |
| `[name]` | name | `string` | - |
| `[value]` | value | `string` | - |
Expand All @@ -22,7 +22,7 @@ Checkbox

The encapsulation about `Checkbox` based on `ListItem`, the property `thumb` of `ListItem` will be passed to `Checkbox`, while other properties remain the same (except for onClick, which has been changed to onChange).

| Properties | Descrition | Type | Default |
| Properties | Description | Type | Default |
| ---------- | ---------- | ---- | ------- |
| `[name]` | name | `string` | - |
| `[value]` | value | `string` | - |
Expand All @@ -34,7 +34,7 @@ The encapsulation about `Checkbox` based on `ListItem`, the property `thumb` of

Almost the same as CheckboxItem and be used for special scenes. See demo for details.

| Properties | Descrition | Type | Default |
| Properties | Description | Type | Default |
| ---------- | ---------- | ---- | ------- |
| `[name]` | name | `string` | - |
| `[value]` | value | `string` | - |
Expand Down
4 changes: 2 additions & 2 deletions components/date-picker-view/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ DatePickerView's functions like DatePicker, but it is rendered directly in the a

## API

Properties | Descrition | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[mode]`| Mode value | `'year' \| 'month' \| 'date' \| 'time' \| 'datetime'` | `'date'` |
| `[minDate]` | Minimum date | `Date` | `2000-1-1` |
| `[maxDate]` | Maximum date | `Date` | `2030-1-1` |
Expand Down
4 changes: 2 additions & 2 deletions components/date-picker-view/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ DatePickerView 的功能类似于 DatePicker ,但它是直接渲染在区域

## API

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
| `[mode]`| 日期选择的类型 | `'year' \| 'month' \| 'date' \| 'time' \| 'datetime'` | `'date'` |
| `[minDate]` | 最小可选日期 | `Date` | `2000-1-1` |
| `[maxDate]` | 最大可选日期 | `Date` | `2030-1-1` |
Expand Down
4 changes: 2 additions & 2 deletions components/date-picker/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Used to select a date or time.

## API

Properties | Descrition | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[mode]`| Mode value | `'year' \| 'month' \| 'date' \| 'time' \| 'datetime'` | `'date'` |
| `[minDate]` | Minimum date | `Date` | `2000-1-1` |
| `[maxDate]` | Maximum date | `Date` | `2030-1-1` |
Expand Down
4 changes: 2 additions & 2 deletions components/date-picker/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ subtitle: 日期选择

## API

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
| `[mode]`| 日期选择的类型 | `'year' \| 'month' \| 'date' \| 'time' \| 'datetime'` | `'date'` |
| `[minDate]` | 最小可选日期 | `Date` | `2000-1-1` |
| `[maxDate]` | 最大可选日期 | `Date` | `2030-1-1` |
Expand Down
4 changes: 2 additions & 2 deletions components/drawer/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Drawer is a panel that displays the app's navigation options on the left edge of

## API

Properties | Descrition | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[sidebar]` | The sidebar content | `TemplateRef` | - |
| `[open]` | If the sidebar should be open | `boolean` | `false` |
| `[position]` | Position of `Drawer` | `'left' \| 'right' \| 'top' \| 'bottom'` | `'left'` |
Expand Down
4 changes: 2 additions & 2 deletions components/drawer/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ subtitle: 抽屉

## API

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
| `[sidebar]` | 抽屉里的内容 | `TemplateRef` | - |
| `[open]` | 开关状态 | `boolean` | `false` |
| `[position]` | 抽屉所在位置 | `'left' \| 'right' \| 'top' \| 'bottom'` | `'left'` |
Expand Down
4 changes: 2 additions & 2 deletions components/flex/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Flex is a wrap of Flexible Box.

### Flex

Properties | Descrition | Type | Default
----|-----|------|------
| Properties | Description | Type | Default |
|----|-----|------|------|
| `[direction]` | how flex items are placed in the flex container | `'row' \| 'row-reverse' \| 'column' \| 'column-reverse'` | `'row'` |
| `[wrap]` | the wrap way of sub-elements | `'nowrap' \| 'wrap' \| 'wrap-reverse'` | `'nowrap'` |
| `[justify]` | the way of alignment for sub-elements of main axis | `'start' \| 'end' \| 'center' \| 'between' \| 'around'` | `'start'` |
Expand Down
4 changes: 2 additions & 2 deletions components/flex/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Flex 是 CSS flex 布局的一个封装。

### Flex

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
| `[direction]` | 项目定位方向 | `'row' \| 'row-reverse' \| 'column' \| 'column-reverse'` | `'row'` |
| `[wrap]` | 子元素的换行方式 | `'nowrap' \| 'wrap' \| 'wrap-reverse'` | `'nowrap'` |
| `[justify]` | 子元素在主轴上的对齐方式 | `'start' \| 'end' \| 'center' \| 'between' \| 'around'` | `'start'` |
Expand Down
4 changes: 2 additions & 2 deletions components/grid/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ We divided the design area into a number of aliquots in horizontal and vertical.

## API

Properties | Description | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[data]` | Data record array to be rendered | `Array<{icon: string, text: string}>` | `[]` |
| `[columnNum]` | The number of columns | `number` | `4` |
| `[hasLine]` | Whether to show border | `boolean` | `true` |
Expand Down
2 changes: 1 addition & 1 deletion components/grid/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ subtitle: 宫格
## API

属性 | 说明 | 类型 | 默认值
----|-----|------|------
|----|-----|------|------|
| `[data]` | 传入的菜单数据 | `Array<{icon: string, text: string}>` | `[]` |
| `[columnNum]` | 列数 | `number` | `4` |
| `[hasLine]` | 是否有边框 | `boolean` | `true` |
Expand Down
4 changes: 2 additions & 2 deletions components/image-picker/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Note: Just for selecting picture. Generally `ImagePicker` is used to select pict

## API

Properties | Descrition | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[files]` | Picture files array which includes `url`(required) in each object | `Array` | `[]` |
| `[selectable]` | Whether to show selector button | `boolean` | `true` |
| `[multiple]` | Whether support choose multi images at once | `boolean` | `false` |
Expand Down
2 changes: 1 addition & 1 deletion components/image-picker/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ subtitle: 图片选择器
## API

属性 | 说明 | 类型 | 默认值
----|-----|------|------
|----|-----|------|------|
| `[files]` | 图片文件数组,元素为对象,包含属性 url(必选, 可能还有id, orientation, 以及业务需要的其它属性 | `Array` | `[]` |
| `[selectable]` | 是否显示添加按钮 | `boolean` | `true` |
| `[multiple]` | 是否支持多选 | `boolean` | `false` |
Expand Down
4 changes: 2 additions & 2 deletions components/input-item/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ A foundational component for inputting text into the app via a keyboard.

## API

Properties | Descrition | Type | Default
-----------|------------|------|--------
| Properties | Description | Type | Default |
|-----------|------------|------|--------|
| `[type]` | Can be `bankCard`; `phone`(which the maxLength is 11 and setting will be ignored); `password`; `number`(in order to evoke the 'numeric keyboard with decimal', this type is not a native number, but `<input type="text" pattern="[0-9]*"/>`); `digit`(represent the native type number); `money`; As well as other standard html input type values | `string` | `'text'` |
| `[value]` | The value of input for more information about controled component | `string` | - |
| `[defaultValue]` | Provides an initial value that will change when the user starts typing | `string` | - |
Expand Down
4 changes: 2 additions & 2 deletions components/input-item/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ subtitle: 文本输入

## API

参数 | 说明 | 类型 | 默认值
----|-----|------|------
| 参数 | 说明 | 类型 | 默认值 |
|----|-----|------|------|
| `[type]` | 可以是银行卡`bankCard`; 手机号`phone`(此时最大长度固定为11,`maxLength`设置无效); 密码`password`; 数字`number`(为了尽量唤起`带小数点`的数字键盘,此类型并不是原生 number,而是`<input type="text" pattern="[0-9]*" />`); `digit`(表示原生的 number 类型); `money` 以及其他标准 html input type 类型 | `string` | `'text'` |
| `[value]` | value | `string` | - |
| `[defaultValue]` | 设置初始默认值 | `string` | - |
Expand Down
Loading

0 comments on commit 1e821a0

Please sign in to comment.