Skip to content

Commit

Permalink
fix(Slider): remove externalClasses props
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Sep 3, 2024
1 parent 437cdcf commit bd472e1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
14 changes: 0 additions & 14 deletions src/slider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,6 @@ t-class-bar-active | 滑道激活态样式类
t-class-bar-disabled | 滑道禁用态样式类
t-class-cursor | 游标样式类

## FAQ

当 slider 外层使用 `hidden` 包裹,需要在 `hidden = false` 时,重新调用组件的 `init` 方法,才能正常渲染(在t-popup/t-dialog中同理)。如下:

```html
<t-slider id="slider" />
```

```js
const $slider = this.selectComponent('#slider');

$slider.init();
```

### CSS Variables

组件提供了下列 CSS 变量,可用于自定义样式。
Expand Down
4 changes: 0 additions & 4 deletions src/slider/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ const props: TdSliderProps = {
type: null,
value: undefined,
},
/** 组件类名,分别用于设置 组件外层元素、滑道底部、滑道激活态、滑道禁用态、游标 等元素类名 */
externalClasses: {
type: Array,
},
/** 滑块当前值文本。<br />值为 true 显示默认文案;值为 false 不显示滑块当前值文本;<br />值为 `${value}%` 则表示组件会根据占位符渲染文案;<br />值类型为函数时,参数 `value` 标识滑块值,参数 `position=start` 表示范围滑块的起始值,参数 `position=end` 表示范围滑块的终点值 */
label: {
type: null,
Expand Down
7 changes: 0 additions & 7 deletions src/slider/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ export interface TdSliderProps {
type: BooleanConstructor;
value?: boolean;
};
/**
* 组件类名,分别用于设置 组件外层元素、滑道底部、滑道激活态、滑道禁用态、游标 等元素类名
*/
externalClasses?: {
type: ArrayConstructor;
value?: ['t-class', 't-class-bar', 't-class-bar-active', 't-class-bar-disabled', 't-class-cursor'];
};
/**
* 滑块当前值文本。<br />值为 true 显示默认文案;值为 false 不显示滑块当前值文本;<br />值为 `${value}%` 则表示组件会根据占位符渲染文案;<br />值类型为函数时,参数 `value` 标识滑块值,参数 `position=start` 表示范围滑块的起始值,参数 `position=end` 表示范围滑块的终点值
* @default false
Expand Down

0 comments on commit bd472e1

Please sign in to comment.