Skip to content

Commit

Permalink
fix(Slider): remove externalClasses and style props
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Sep 3, 2024
1 parent 9650de0 commit 92cce2b
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 243 deletions.
Binary file modified db/TDesign.db
Binary file not shown.
30 changes: 30 additions & 0 deletions packages/products/tdesign-miniprogram/src/step-item/props.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* eslint-disable */

/**
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* */

import { TdStepItemProps } from './type';
const props: TdStepItemProps = {
/** 步骤描述 */
content: {
type: String,
value: '',
},
/** 图标。传入 slot 代表使用插槽,其他字符串代表使用内置图标 */
icon: {
type: String,
},
/** 当前步骤的状态:默认状态(未开始)、进行中状态、完成状态、错误状态 */
status: {
type: String,
value: 'default',
},
/** 标题 */
title: {
type: String,
value: '',
},
};

export default props;
41 changes: 41 additions & 0 deletions packages/products/tdesign-miniprogram/src/step-item/type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/* eslint-disable */

/**
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* */

export interface TdStepItemProps {
/**
* 步骤描述
* @default ''
*/
content?: {
type: StringConstructor;
value?: string;
};
/**
* 图标。传入 slot 代表使用插槽,其他字符串代表使用内置图标
*/
icon?: {
type: StringConstructor;
value?: string;
};
/**
* 当前步骤的状态:默认状态(未开始)、进行中状态、完成状态、错误状态
* @default default
*/
status?: {
type: StringConstructor;
value?: StepStatus;
};
/**
* 标题
* @default ''
*/
title?: {
type: StringConstructor;
value?: string;
};
}

export type StepStatus = 'default' | 'process' | 'finish' | 'error';
15 changes: 3 additions & 12 deletions packages/products/tdesign-miniprogram/src/steps/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ const props: TdStepsProps = {
type: String,
value: 'process',
},
/** 组件类名,用于设置组件外层元素元素类名 */
externalClasses: {
type: Array,
},
/** 步骤条方向,有两种:横向和纵向 */
layout: {
type: String,
Expand All @@ -34,15 +30,10 @@ const props: TdStepsProps = {
type: Boolean,
value: false,
},
/** 步骤条分割符 */
separator: {
type: String,
value: 'line',
},
/** 自定义组件样式 */
style: {
/** 步骤条顺序 */
sequence: {
type: String,
value: '',
value: 'positive',
},
/** 步骤条风格 */
theme: {
Expand Down
87 changes: 4 additions & 83 deletions packages/products/tdesign-miniprogram/src/steps/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ export interface TdStepsProps {
type: StringConstructor;
value?: 'default' | 'process' | 'finish' | 'error';
};
/**
* 组件类名,用于设置组件外层元素元素类名
*/
externalClasses?: {
type: ArrayConstructor;
value?: ['t-class'];
};
/**
* 步骤条方向,有两种:横向和纵向
* @default horizontal
Expand All @@ -51,20 +44,12 @@ export interface TdStepsProps {
value?: boolean;
};
/**
* 步骤条分割符
* @default line
*/
separator?: {
type: StringConstructor;
value?: 'line' | 'dashed' | 'arrow';
};
/**
* 自定义组件样式
* @default ''
* 步骤条顺序
* @default positive
*/
style?: {
sequence?: {
type: StringConstructor;
value?: string;
value?: 'positive' | 'reverse';
};
/**
* 步骤条风格
Expand All @@ -75,67 +60,3 @@ export interface TdStepsProps {
value?: 'default' | 'dot';
};
}

export interface TdStepItemProps {
/**
* 步骤描述
* @default ''
*/
content?: {
type: StringConstructor;
value?: string;
};
/**
* 组件类名,用于设置组件外层元素元素类名
*/
externalClasses?: {
type: ArrayConstructor;
value?: ['t-class', 't-class-content', 't-class-title', 't-class-description', 't-class-extra'];
};
/**
* 图标。传入 slot 代表使用插槽,其他字符串代表使用内置图标
*/
icon?: {
type: StringConstructor;
value?: string;
};
/**
* 当前步骤的状态:默认状态(未开始)、进行中状态、完成状态、错误状态
* @default default
*/
status?: {
type: StringConstructor;
value?: StepStatus;
};
/**
* 自定义组件样式
* @default ''
*/
style?: {
type: StringConstructor;
value?: string;
};
/**
* 子步骤条,仅支持 layout = 'vertical' 时
* @default []
*/
subStepItems?: {
type: ArrayConstructor;
value?: SubStepItem[];
};
/**
* 标题
* @default ''
*/
title?: {
type: StringConstructor;
value?: string;
};
}

export type StepStatus = 'default' | 'process' | 'finish' | 'error';

export interface SubStepItem {
status: StepStatus;
title: string;
}
148 changes: 0 additions & 148 deletions packages/scripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -103360,43 +103360,6 @@
"TNode"
]
},
{
"id": 1814,
"platform_framework": [
"64"
],
"component": "StepItem",
"field_category": 1,
"field_name": "externalClasses",
"field_type": [
"16"
],
"field_default_value": "",
"field_enum": "",
"field_desc_zh": "组件类名,用于设置组件外层元素元素类名",
"field_desc_en": null,
"field_required": 0,
"event_input": "",
"create_time": "2021-09-30 03:11:59",
"update_time": "2021-09-30 03:31:01",
"event_output": null,
"custom_field_type": "['t-class', 't-class-content', 't-class-title', 't-class-description', 't-class-extra']",
"syntactic_sugar": null,
"readonly": 1,
"html_attribute": 0,
"trigger_elements": "",
"deprecated": 0,
"version": "",
"test_description": null,
"support_default_value": 0,
"field_category_text": "Props",
"platform_framework_text": [
"Miniprogram"
],
"field_type_text": [
"Array"
]
},
{
"id": 620,
"platform_framework": [
Expand Down Expand Up @@ -103577,43 +103540,6 @@
"String"
]
},
{
"id": 3056,
"platform_framework": [
"64"
],
"component": "StepItem",
"field_category": 1,
"field_name": "style",
"field_type": [
"1"
],
"field_default_value": "",
"field_enum": "",
"field_desc_zh": "自定义组件样式",
"field_desc_en": null,
"field_required": 0,
"event_input": "",
"create_time": "2022-10-31 11:30:46",
"update_time": "2022-10-31 11:30:46",
"event_output": null,
"custom_field_type": null,
"syntactic_sugar": null,
"readonly": 1,
"html_attribute": 0,
"trigger_elements": "",
"deprecated": 0,
"version": "",
"test_description": null,
"support_default_value": 0,
"field_category_text": "Props",
"platform_framework_text": [
"Miniprogram"
],
"field_type_text": [
"String"
]
},
{
"id": 2475,
"platform_framework": [
Expand Down Expand Up @@ -105003,43 +104929,6 @@
"String"
]
},
{
"id": 1813,
"platform_framework": [
"64"
],
"component": "Steps",
"field_category": 1,
"field_name": "externalClasses",
"field_type": [
"16"
],
"field_default_value": "",
"field_enum": "",
"field_desc_zh": "组件类名,用于设置组件外层元素元素类名",
"field_desc_en": null,
"field_required": 0,
"event_input": "",
"create_time": "2021-09-30 03:11:37",
"update_time": "2021-09-30 03:11:37",
"event_output": null,
"custom_field_type": "['t-class']",
"syntactic_sugar": null,
"readonly": 1,
"html_attribute": 0,
"trigger_elements": "",
"deprecated": 0,
"version": "",
"test_description": null,
"support_default_value": 0,
"field_category_text": "Props",
"platform_framework_text": [
"Miniprogram"
],
"field_type_text": [
"Array"
]
},
{
"id": 613,
"platform_framework": [
Expand Down Expand Up @@ -105232,43 +105121,6 @@
"String"
]
},
{
"id": 3055,
"platform_framework": [
"64"
],
"component": "Steps",
"field_category": 1,
"field_name": "style",
"field_type": [
"1"
],
"field_default_value": "",
"field_enum": "",
"field_desc_zh": "自定义组件样式",
"field_desc_en": null,
"field_required": 0,
"event_input": "",
"create_time": "2022-10-31 11:30:36",
"update_time": "2022-10-31 11:30:36",
"event_output": null,
"custom_field_type": null,
"syntactic_sugar": null,
"readonly": 1,
"html_attribute": 0,
"trigger_elements": "",
"deprecated": 0,
"version": "",
"test_description": null,
"support_default_value": 0,
"field_category_text": "Props",
"platform_framework_text": [
"Miniprogram"
],
"field_type_text": [
"String"
]
},
{
"id": 624,
"platform_framework": [
Expand Down

0 comments on commit 92cce2b

Please sign in to comment.