From 2c605cb794476c8e64104928fc7f173449809a59 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Tue, 4 Jul 2023 21:40:46 +0800 Subject: [PATCH] chore: format code (#13467) --- docs/en-US/component/dialog.md | 44 +++++++++---------- docs/en-US/component/progress.md | 32 +++++++------- packages/theme-chalk/src/checkbox-button.scss | 2 +- 3 files changed, 39 insertions(+), 39 deletions(-) diff --git a/docs/en-US/component/dialog.md b/docs/en-US/component/dialog.md index caa4bf56a5..a3c8a1661c 100644 --- a/docs/en-US/component/dialog.md +++ b/docs/en-US/component/dialog.md @@ -113,28 +113,28 @@ When using `modal` = false, please make sure that `append-to-body` was set to ** ## Attributes -| Name | Description | Type | Accepted Values | Default | -|----------------------------|---------------------------------------------------------------------------------------------------|--------------------------------------------------| --------------- |--------| -| model-value / v-model | visibility of Dialog | boolean | — | — | -| title | title of Dialog. Can also be passed with a named slot (see the following table) | string | — | — | -| width | width of Dialog | string / number | — | 50% | -| fullscreen | whether the Dialog takes up full screen | boolean | — | false | -| top | value for `margin-top` of Dialog CSS | string | — | 15vh | -| modal | whether a mask is displayed | boolean | — | true | -| modal-class | custom class names for mask | string | — | — | -| append-to-body | whether to append Dialog itself to body. A nested Dialog should have this attribute set to `true` | boolean | — | false | -| lock-scroll | whether scroll of body is disabled while Dialog is displayed | boolean | — | true | -| custom-class ^(deprecated) | custom class names for Dialog | string | — | — | -| open-delay | Time(milliseconds) before open | number | — | 0 | -| close-delay | Time(milliseconds) before close | number | — | 0 | -| close-on-click-modal | whether the Dialog can be closed by clicking the mask | boolean | — | true | -| close-on-press-escape | whether the Dialog can be closed by pressing ESC | boolean | — | true | -| show-close | whether to show a close button | boolean | — | true | -| before-close | callback before Dialog closes, and it will prevent Dialog from closing | Function(done) (done is used to close the Dialog) | — | — | -| draggable | enable dragging feature for Dialog | boolean | — | false | -| center | whether to align the header and footer in center | boolean | — | false | -| align-center | whether to align the dialog both horizontally and vertically | boolean | — | false | -| destroy-on-close | Destroy elements in Dialog when closed | boolean | — | false | +| Name | Description | Type | Accepted Values | Default | +| -------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------- | --------------- | ------- | +| model-value / v-model | visibility of Dialog | boolean | — | — | +| title | title of Dialog. Can also be passed with a named slot (see the following table) | string | — | — | +| width | width of Dialog | string / number | — | 50% | +| fullscreen | whether the Dialog takes up full screen | boolean | — | false | +| top | value for `margin-top` of Dialog CSS | string | — | 15vh | +| modal | whether a mask is displayed | boolean | — | true | +| modal-class | custom class names for mask | string | — | — | +| append-to-body | whether to append Dialog itself to body. A nested Dialog should have this attribute set to `true` | boolean | — | false | +| lock-scroll | whether scroll of body is disabled while Dialog is displayed | boolean | — | true | +| custom-class ^(deprecated) | custom class names for Dialog | string | — | — | +| open-delay | Time(milliseconds) before open | number | — | 0 | +| close-delay | Time(milliseconds) before close | number | — | 0 | +| close-on-click-modal | whether the Dialog can be closed by clicking the mask | boolean | — | true | +| close-on-press-escape | whether the Dialog can be closed by pressing ESC | boolean | — | true | +| show-close | whether to show a close button | boolean | — | true | +| before-close | callback before Dialog closes, and it will prevent Dialog from closing | Function(done) (done is used to close the Dialog) | — | — | +| draggable | enable dragging feature for Dialog | boolean | — | false | +| center | whether to align the header and footer in center | boolean | — | false | +| align-center | whether to align the dialog both horizontally and vertically | boolean | — | false | +| destroy-on-close | Destroy elements in Dialog when closed | boolean | — | false | :::warning diff --git a/docs/en-US/component/progress.md b/docs/en-US/component/progress.md index aa907f0243..831b02993b 100644 --- a/docs/en-US/component/progress.md +++ b/docs/en-US/component/progress.md @@ -81,22 +81,22 @@ progress/striped-progress ### Attributes -| Name | Description | Type | Default | -| -------------- | ------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ------- | -| percentage | percentage, **required** | ^[number]`(0-100)` | 0 | -| type | the type of progress bar | ^[enum]`'line' \| 'circle' \| 'dashboard'` | line | -| stroke-width | the width of progress bar | ^[number] | 6 | -| text-inside | whether to place the percentage inside progress bar, only works when `type` is 'line' | ^[boolean] | false | -| status | the current status of progress bar | ^[enum]`'success' \| 'exception' \| 'warning'` | — | -| indeterminate | set indeterminate progress | ^[boolean] | false | -| duration | control the animation duration of indeterminate progress or striped flow progress | ^[number] | 3 | -| color | background color of progress bar. Overrides `status` prop | ^[string] / ^[function]`(percentage: number) => string` / ^[Array]`{ color: string; percentage: number }[]` | '' | -| width | the canvas width of circle progress bar | ^[number] | 126 | -| show-text | whether to show percentage | ^[boolean] | true | -| stroke-linecap | circle/dashboard type shape at the end path | ^[enum]`'butt' \| 'round' \| 'square'` | round | -| format | custom text format | ^[Function]`(percentage: number) => string` | — | -| striped ^(2.3.4) | stripe over the progress bar's color | ^[boolean] | false | -| striped-flow ^(2.3.4) | get the stripes to flow | ^[boolean] | false | +| Name | Description | Type | Default | +| --------------------- | ------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ------- | +| percentage | percentage, **required** | ^[number]`(0-100)` | 0 | +| type | the type of progress bar | ^[enum]`'line' \| 'circle' \| 'dashboard'` | line | +| stroke-width | the width of progress bar | ^[number] | 6 | +| text-inside | whether to place the percentage inside progress bar, only works when `type` is 'line' | ^[boolean] | false | +| status | the current status of progress bar | ^[enum]`'success' \| 'exception' \| 'warning'` | — | +| indeterminate | set indeterminate progress | ^[boolean] | false | +| duration | control the animation duration of indeterminate progress or striped flow progress | ^[number] | 3 | +| color | background color of progress bar. Overrides `status` prop | ^[string] / ^[function]`(percentage: number) => string` / ^[Array]`{ color: string; percentage: number }[]` | '' | +| width | the canvas width of circle progress bar | ^[number] | 126 | +| show-text | whether to show percentage | ^[boolean] | true | +| stroke-linecap | circle/dashboard type shape at the end path | ^[enum]`'butt' \| 'round' \| 'square'` | round | +| format | custom text format | ^[Function]`(percentage: number) => string` | — | +| striped ^(2.3.4) | stripe over the progress bar's color | ^[boolean] | false | +| striped-flow ^(2.3.4) | get the stripes to flow | ^[boolean] | false | ### Slots diff --git a/packages/theme-chalk/src/checkbox-button.scss b/packages/theme-chalk/src/checkbox-button.scss index 804cdc7cbf..3e0a7ae0f4 100644 --- a/packages/theme-chalk/src/checkbox-button.scss +++ b/packages/theme-chalk/src/checkbox-button.scss @@ -26,7 +26,7 @@ map.get($button, 'bg-color') ); border: getCssVar('border'); - border-left-color:transparent; + border-left-color: transparent; color: var( #{getCssVarName('button-text-color')}, map.get($button, 'text-color')