Skip to content

Commit

Permalink
docs: tags doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
rayhomie committed Feb 7, 2025
1 parent 51ca5fe commit c834da6
Show file tree
Hide file tree
Showing 55 changed files with 144 additions and 144 deletions.
2 changes: 1 addition & 1 deletion demo/pages/Tag/index.axml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</ant-container>
<ant-container title="语义标签">
<view class="tag-list">
<ant-tag className="myTag">default</ant-tag>
<ant-tag className="myTag">primary</ant-tag>
<ant-tag
className="myTag"
color="success">
Expand Down
4 changes: 2 additions & 2 deletions src/ActionSheet/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In `index.json` Introducing Components in

### Basic use

> `ant-action-sheet` Components must pass `visible` Property controls the show/hide state.`actions` property passes in the data to drive the options rendering.
> `ant-action-sheet` components must pass through `visible` Property controls the show/hide state.`actions` property passes in the data to drive the options rendering.
```xml
<ant-action-sheet
Expand Down Expand Up @@ -106,7 +106,7 @@ Page({

### Option Status

> [actions](#actionsheetitem) Each of the items provided `icon` `danger` `description` `disabled` Used to set the option state.
> [actions](#actionsheetitem) Each of the provided `icon` `danger` `description` `disabled` Used to set the option state.
```xml
<ant-action-sheet
Expand Down
4 changes: 2 additions & 2 deletions src/AutoResize/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ In `index.json` Introducing Components in
| ----------- | ----------------------------------------------------------------------------------------------------------------------- | ------- | ------ |
| text | Text to be passed in, used to calculate the width | string | - |
| minFontSize | The minimum font size limit can be set according to the business. | number | 30 |
| maxFontSize | The original design font size of the area, the maximum size cannot exceed this font size. | number | 36 |
| maxFontSize | The original design font size of this area, which cannot exceed this font size at most. | number | 36 |
| wrap | Whether to support line feed | boolean | false |
| ratio | Copy width ratio, calculated `maxFontSize / ratio * Copy Length`, there are scenes where the English characters are long but the container width is enough to display, but the font is reduced, which can be increased at this time. |
| ratio | Copy width ratio, calculated `maxFontSize / ratio * Copy length`, there are scenes where the English characters are long but the container width is enough to display, but the font is reduced, which can be increased at this time. |
2 changes: 1 addition & 1 deletion src/Badge/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ In `index.json` Introducing Components in

#### Style Variables

Component provides the following CSS variables, which can be used to customize styles. For details, see ConfigProvider Components.
Component provides the following CSS variables, which can be used to customize styles. For more information, see ConfigProvider Components.

| Variable name | Default Value | Dark Mode Default | Remarks |
| ------------------------ | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -------------- |
Expand Down
10 changes: 5 additions & 5 deletions src/Button/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ In `index.json` Introducing Components in
}
```

## Code Sample
## Code example

### Basic use

Expand Down Expand Up @@ -111,7 +111,7 @@ The following table describes the API properties for the Button component:
| loading | Whether it is loading or not, it cannot be clicked during loading. | boolean | - |
| size | Button size. Only in `inline` Effective under, optional `small``medium``large` | string | `medium` |
| aide | Whether the button is a secondary button Only default and primary buttons consume this parameter | boolean | false |
| subText | Secondary text, displayed on the second line.`inline` DOWN NOT EFFECTIVE | string | - |
| subText | Secondary text, displayed on the second line.`inline` Do not take effect | string | - |
| #if ALIPAY catchTap | Click the button to trigger this callback, non-bubbling | (e: [Event](https://opendocs.alipay.com/mini/framework/event-object)) => void | - |
| #if ALIPAY onTap | Click the button to trigger this callback | (e: [Event](https://opendocs.alipay.com/mini/framework/event-object)) => void | - |
| #if ALIPAY onDisabledTap | Click Departure Callback when disabled (not supported by WeChat) | (e: [Event](https://opendocs.alipay.com/mini/framework/event-object)) => void | - |
Expand All @@ -123,7 +123,7 @@ The following table describes the API properties for the Button component:

#### Style Variables

Component provides the following CSS variables, which can be used to customize styles. For more information, see ConfigProvider Components.
Component provides the following CSS variables, which can be used to customize styles. For details, see ConfigProvider Components.

| Variable name | Default Value | Dark Mode Default | Remarks |
| ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -------------------- |
Expand All @@ -136,7 +136,7 @@ Component provides the following CSS variables, which can be used to customize s
| --button-primary-color | <div style="width: 150px; height: 40px; background-color: #FFFFFF; color: #333333;">#FFFFFF</div> | <div style="width: 150px; height: 40px; background-color: #FFFFFF; color: #000000;">#FFFFFF</div> | Main button color |
| --button-primary-aide-border-color | <div style="width: 150px; height: 40px; background-color: #E7F1FF; color: #333333;">#E7F1FF</div> | <div style="width: 150px; height: 40px; background-color: #0D2543; color: #FFFFFF;">#0D2543</div> | Primary Secondary Button Border Color |
| --button-primary-aide-color | <div style="width: 150px; height: 40px; background-color: #1677FF;">#1677FF</div> | <div style="width: 150px; height: 40px; background-color: #3086FF;">#3086FF</div> | Primary Auxiliary Button Color |
| --button-default-aide-border-color | <div style="width: 150px; height: 40px; background-color: #F5F5F5; color: #333333;">#F5F5F5</div> | <div style="width: 150px; height: 40px; background-color: #121212; color: #FFFFFF;">#121212</div> | Default Auxiliary Button Border Color |
| --button-default-aide-border-color | <div style="width: 150px; height: 40px; background-color: #F5F5F5; color: #333333;">#F5F5F5</div> | <div style="width: 150px; height: 40px; background-color: #121212; color: #FFFFFF;">#121212</div> | Default Secondary Button Border Color |
| --button-default-aide-background-color | <div style="width: 150px; height: 40px; background-color: #FFFFFF; color: #333333;">#FFFFFF</div> | <div style="width: 150px; height: 40px; background-color: #1a1a1a; color: #FFFFFF;">#1a1a1a</div> | Default Auxiliary Button Background Color |
| --button-default-aide-color | <div style="width: 150px; height: 40px; background-color: #333333; color: #FFFFFF;">#333333</div> | <div style="width: 150px; height: 40px; background-color: #C5CAD1; color: #FFFFFF;">#C5CAD1</div> | Default Auxiliary Button Color |
| --button-primary-danger-background-color | <div style="width: 150px; height: 40px; background-color: #FF3141;">#FF3141</div> | <div style="width: 150px; height: 40px; background-color: #FF4A58;">#FF4A58</div> | Primary Danger Button Background Color |
Expand All @@ -146,7 +146,7 @@ Component provides the following CSS variables, which can be used to customize s
| --button-default-danger-border-color | <div style="width: 150px; height: 40px; background-color: #FF3141;">#FF3141</div> | <div style="width: 150px; height: 40px; background-color: #FF4A58;">#FF4A58</div> | Default Hazard Button Border Color |
| --button-default-danger-color | <div style="width: 150px; height: 40px; background-color: #FF3141;">#FF3141</div> | <div style="width: 150px; height: 40px; background-color: #FF4A58;">#FF4A58</div> | Default Hazard Button Color |
| --button-text-danger-color | <div style="width: 150px; height: 40px; background-color: #FF3141;">#FF3141</div> | <div style="width: 150px; height: 40px; background-color: #FF4A58;">#FF4A58</div> | Hazard button text color |
| --button-danger-default-color | <div style="width: 150px; height: 40px; background-color: #FF3141;">#FF3141</div> | <div style="width: 150px; height: 40px; background-color: #FF4A58;">#FF4A58</div> | Danger Button Default Color |
| --button-danger-default-color | <div style="width: 150px; height: 40px; background-color: #FF3141;">#FF3141</div> | <div style="width: 150px; height: 40px; background-color: #FF4A58;">#FF4A58</div> | Hazard Button Default Color |
| --button-active-bg | <div style="width: 150px; height: 40px; background-color: rgba(255, 255, 255, 0.08);">rgba(255, 255, 255, 0.08)</div> | <div style="width: 150px; height: 40px; background-color: rgba(255, 255, 255, 0.08);">rgba(255, 255, 255, 0.08)</div> | Button to activate background color |

### More Properties
Expand Down
2 changes: 1 addition & 1 deletion src/Card/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ In `index.json` Introducing Components in
| Name | Description |
| ----------- | -------------------- |
| Default Slot | Card Content |
| headerTitle | Custom Title Bar Left Title |
| headerTitle | Custom Title Bar Left Header |
| headerRight | Customize the right content of the title bar |

### Theme customization
Expand Down
2 changes: 1 addition & 1 deletion src/Checkbox/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ Page({

#### Style Variables

Component provides the following CSS variables, which can be used to customize styles. For more information, see ConfigProvider Components.
Component provides the following CSS variables, which can be used to customize styles. For details, see ConfigProvider Components.

| Variable name | Default Value | Dark Mode Default | Remarks |
| ------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -------------------- |
Expand Down
2 changes: 1 addition & 1 deletion src/ConfigProvider/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ For global configuration Ant Design Mini components, provide theme customization
can pass `ConfigProvider` component to globally configure Ant Design Mini components, including:

- Setting the theme globally,[CSS Variables](https://developer.mozilla.org/zh-CN/docs/Web/CSS/Using_CSS_custom_properties) To organize styles, by overwriting these CSS variables, you can customize the theme, dynamically switch the theme and other effects;
- Global setting internationalization, multi-language support by setting Locales;
- Global settings internationalization, through the setting of Locales to achieve multi-language support;

## Introduction

Expand Down
4 changes: 2 additions & 2 deletions src/Container/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ In `index.json` Introducing Components in
}
```

## Code Sample
## Code example

### Basic use

Expand Down Expand Up @@ -75,7 +75,7 @@ The following is `Container` Parameter list for the component:

#### Style Variables

Component provides the following CSS variables, which can be used to customize styles. For more information, see ConfigProvider Components.
Component provides the following CSS variables, which can be used to customize styles. For details, see ConfigProvider Components.

| Variable name | Default Value | Dark Mode Default | Remarks |
| ----------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------ |
Expand Down
4 changes: 2 additions & 2 deletions src/Countdown/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ Page({
| time | Choose one from the countdownEndTime, in seconds | `number` | 0 |
| autoShowDay | Less than one day automatically does not show days | `boolean` | true |
| countdownType | Extra-long countdown requires display days | `string` | - |
| #if ALIPAY onCountdownChange | Callback when the countdown changes | `Function` | - |
| #if ALIPAY onCountdownChange | Callback when countdown changes | `Function` | - |
| #if ALIPAY onCountdownFinish | Countdown End Callback | `Function` | - |
| #if WECHAT bindcountdownchange | Callback when the countdown changes | `Function` | - |
| #if WECHAT bindcountdownchange | Callback when countdown changes | `Function` | - |
| #if WECHAT bindcountdownfinish | Countdown End Callback | `Function` | - |

### Theme customization
Expand Down
Loading

0 comments on commit c834da6

Please sign in to comment.