diff --git a/db/TDesign.db b/db/TDesign.db index 836038ad0..57e47cfb8 100644 Binary files a/db/TDesign.db and b/db/TDesign.db differ diff --git a/packages/products/tdesign-react/src/typography/defaultProps.ts b/packages/products/tdesign-react/src/typography/defaultProps.ts index b37b1e07a..40632c4ce 100644 --- a/packages/products/tdesign-react/src/typography/defaultProps.ts +++ b/packages/products/tdesign-react/src/typography/defaultProps.ts @@ -2,8 +2,20 @@ * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC * */ -import { TdTextProps, TdTitleProps } from './type'; +import { TdTextProps, TdTitleProps, TdParagraphProps } from './type'; -export const textDefaultProps: TdTextProps = { code: false }; +export const textDefaultProps: TdTextProps = { + code: false, + delete: false, + disabled: false, + ellipsis: false, + italic: false, + keyboard: false, + mark: false, + strong: false, + underline: false, +}; -export const titleDefaultProps: TdTitleProps = { level: 'h1' }; +export const titleDefaultProps: TdTitleProps = { ellipsis: false, level: 'h1' }; + +export const paragraphDefaultProps: TdParagraphProps = { copyable: false, ellipsis: false }; diff --git a/packages/products/tdesign-react/src/typography/type.ts b/packages/products/tdesign-react/src/typography/type.ts index 7286087af..5f3ab1212 100644 --- a/packages/products/tdesign-react/src/typography/type.ts +++ b/packages/products/tdesign-react/src/typography/type.ts @@ -4,6 +4,7 @@ * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC * */ +import { tooltipProps } from '../tooltip'; import { TNode } from '../common'; export interface TdTextProps { @@ -16,6 +17,50 @@ export interface TdTextProps { * @default false */ code?: boolean; + /** + * 是否添加删除线样式 + * @default false + */ + delete?: boolean; + /** + * 是否添加不可用样式 + * @default false + */ + disabled?: boolean; + /** + * 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 + * @default false + */ + ellipsis?: boolean | TypographyEllipsis; + /** + * 文本是否为斜体 + * @default false + */ + italic?: boolean; + /** + * 是否添加键盘样式 + * @default false + */ + keyboard?: boolean; + /** + * 是否添加标记样式,默认为黄色,可通过配置颜色修改标记样式,如#0052D9 + * @default false + */ + mark?: string | boolean; + /** + * 文本是否加粗 + * @default false + */ + strong?: boolean; + /** + * 主题 + */ + theme?: 'primary' | 'secondary' | 'success' | 'warning' | 'error'; + /** + * 是否添加下划线样式 + * @default false + */ + underline?: boolean; } export interface TdTitleProps { @@ -27,6 +72,11 @@ export interface TdTitleProps { * 段落内容 */ content?: TNode; + /** + * 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 + * @default false + */ + ellipsis?: boolean | TypographyEllipsis; /** * 标题等级 * @default h1 @@ -43,4 +93,64 @@ export interface TdParagraphProps { * 段落内容 */ content?: TNode; + /** + * 是否可复制,可通过配置参数自定义复制操作的具体功能和样式 + * @default false + */ + copyable?: boolean | TypographyCopyable; + /** + * 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 + * @default false + */ + ellipsis?: boolean | TypographyEllipsis; +} + +export interface TypographyEllipsis { + /** + * 展开后是否可以重新收起 + * @default true + */ + collapsible?: boolean; + /** + * 是否可展开 + * @default true + */ + expandable?: boolean; + /** + * 省略配置默认展示行数 + * @default 1 + */ + row?: number; + /** + * 自定义省略触发元素,一般用于自定义折叠图标 + */ + suffix?: TNode<{ expanded: boolean }>; + /** + * 光标在省略图标上出现的tooltip的配置 + */ + tooltipProps?: tooltipProps; + /** + * 点击省略按钮的回调 + */ + onExpand?: (expanded: boolean) => void; +} + +export interface TypographyCopyable { + /** + * 复制的文本内容,默认为全部文本 + * @default '' + */ + text?: string; + /** + * 自定义复制触发元素,一般用于自定义复制图标 + */ + suffix?: TNode<{ copied: boolean }>; + /** + * 光标在复制图标上出现的tooltip的配置 + */ + tooltipProps?: tooltipProps; + /** + * 点击复制按钮的回调 + */ + onCopy?: () => void; } diff --git a/packages/products/tdesign-react/src/typography/typography.en-US.md b/packages/products/tdesign-react/src/typography/typography.en-US.md index 87bb7b9e6..637a9cfcb 100644 --- a/packages/products/tdesign-react/src/typography/typography.en-US.md +++ b/packages/products/tdesign-react/src/typography/typography.en-US.md @@ -1,7 +1,6 @@ :: BASE_DOC :: ## API - ### Text Props name | type | default | description | required @@ -10,6 +9,15 @@ className | String | - | 类名 | N style | Object | - | 样式,Typescript:`React.CSSProperties` | N children | TNode | - | children of text。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N code | Boolean | false | add code style | N +delete | Boolean | false | add delete line style | N +disabled | Boolean | false | add disabled style | N +ellipsis | Boolean / Object | false | add ellipsis style。Typescript:`boolean \| TypographyEllipsis` | N +italic | Boolean | false | add italic style | N +keyboard | Boolean | false | add keyboard style | N +mark | String / Boolean | false | add mark style | N +strong | Boolean | false | add bold style | N +theme | String | - | theme of text。options: primary/secondary/success/warning/error | N +underline | Boolean | false | add underline style | N ### Title Props @@ -19,6 +27,7 @@ className | String | - | 类名 | N style | Object | - | 样式,Typescript:`React.CSSProperties` | N children | TNode | - | children of title。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N content | TNode | - | content of title。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N +ellipsis | Boolean / Object | false | add ellipsis style。Typescript:`boolean \| TypographyEllipsis` | N level | String | h1 | level of title。options: h1/h2/h3/h4/h5/h6 | N ### Paragraph Props @@ -29,3 +38,25 @@ className | String | - | 类名 | N style | Object | - | 样式,Typescript:`React.CSSProperties` | N children | TNode | - | children of paragraph。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N content | TNode | - | content of paragraph。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N +copyable | Boolean / Object | false | add copyable style。Typescript:`boolean \| TypographyCopyable` | N +ellipsis | Boolean / Object | false | add ellipsis style。Typescript:`boolean \| TypographyEllipsis` | N + +### TypographyEllipsis + +name | type | default | description | required +-- | -- | -- | -- | -- +collapsible | Boolean | true | collapsible after expanding | N +expandable | Boolean | true | expandable | N +row | Number | 1 | default row number of ellipsis | N +suffix | TElement | - | custom element configuration for ellipsis and collapse icon。Typescript:`TNode<{ expanded: boolean }>`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N +tooltipProps | Object | - | Configuration of the tooltip that appears on the ellipsis icon when the cursor is over it.。Typescript:`tooltipProps`,[Tooltip API Documents](./tooltip?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/typography/type.ts) | N +onExpand | Function | | Typescript:`(expanded:boolean) => void`
| N + +### TypographyCopyable + +name | type | default | description | required +-- | -- | -- | -- | -- + text | String | - | copied content | N +suffix | TElement | - | custom element configuration for copy icon。Typescript:`TNode<{ copied: boolean }>`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N +tooltipProps | Object | - | Configuration of the tooltip that appears on the copy icon when the cursor is over it.。Typescript:`tooltipProps`,[Tooltip API Documents](./tooltip?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/typography/type.ts) | N +onCopy | Function | | Typescript:`() => void`
| N diff --git a/packages/products/tdesign-react/src/typography/typography.md b/packages/products/tdesign-react/src/typography/typography.md index 32b4901e6..3776cb05b 100644 --- a/packages/products/tdesign-react/src/typography/typography.md +++ b/packages/products/tdesign-react/src/typography/typography.md @@ -1,7 +1,6 @@ :: BASE_DOC :: ## API - ### Text Props 名称 | 类型 | 默认值 | 说明 | 必传 @@ -10,6 +9,15 @@ className | String | - | 类名 | N style | Object | - | 样式,TS 类型:`React.CSSProperties` | N children | TNode | - | 文本内容,同content。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N code | Boolean | false | 是否添加代码样式 | N +delete | Boolean | false | 是否添加删除线样式 | N +disabled | Boolean | false | 是否添加不可用样式 | N +ellipsis | Boolean / Object | false | 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式。TS 类型:`boolean \| TypographyEllipsis` | N +italic | Boolean | false | 文本是否为斜体 | N +keyboard | Boolean | false | 是否添加键盘样式 | N +mark | String / Boolean | false | 是否添加标记样式,默认为黄色,可通过配置颜色修改标记样式,如#0052D9 | N +strong | Boolean | false | 文本是否加粗 | N +theme | String | - | 主题。可选项:primary/secondary/success/warning/error | N +underline | Boolean | false | 是否添加下划线样式 | N ### Title Props @@ -19,6 +27,7 @@ className | String | - | 类名 | N style | Object | - | 样式,TS 类型:`React.CSSProperties` | N children | TNode | - | 段落内容,同 content。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N content | TNode | - | 段落内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N +ellipsis | Boolean / Object | false | 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式。TS 类型:`boolean \| TypographyEllipsis` | N level | String | h1 | 标题等级。可选项:h1/h2/h3/h4/h5/h6 | N ### Paragraph Props @@ -29,3 +38,25 @@ className | String | - | 类名 | N style | Object | - | 样式,TS 类型:`React.CSSProperties` | N children | TNode | - | 段落内容,同 content。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N content | TNode | - | 段落内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N +copyable | Boolean / Object | false | 是否可复制,可通过配置参数自定义复制操作的具体功能和样式。TS 类型:`boolean \| TypographyCopyable` | N +ellipsis | Boolean / Object | false | 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式。TS 类型:`boolean \| TypographyEllipsis` | N + +### TypographyEllipsis + +名称 | 类型 | 默认值 | 说明 | 必传 +-- | -- | -- | -- | -- +collapsible | Boolean | true | 展开后是否可以重新收起 | N +expandable | Boolean | true | 是否可展开 | N +row | Number | 1 | 省略配置默认展示行数 | N +suffix | TElement | - | 自定义省略触发元素,一般用于自定义折叠图标。TS 类型:`TNode<{ expanded: boolean }>`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N +tooltipProps | Object | - | 光标在省略图标上出现的tooltip的配置。TS 类型:`tooltipProps`,[Tooltip API Documents](./tooltip?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/typography/type.ts) | N +onExpand | Function | | TS 类型:`(expanded:boolean) => void`
点击省略按钮的回调 | N + +### TypographyCopyable + +名称 | 类型 | 默认值 | 说明 | 必传 +-- | -- | -- | -- | -- + text | String | - | 复制的文本内容,默认为全部文本 | N +suffix | TElement | - | 自定义复制触发元素,一般用于自定义复制图标。TS 类型:`TNode<{ copied: boolean }>`。[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N +tooltipProps | Object | - | 光标在复制图标上出现的tooltip的配置。TS 类型:`tooltipProps`,[Tooltip API Documents](./tooltip?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/typography/type.ts) | N +onCopy | Function | | TS 类型:`() => void`
点击复制按钮的回调 | N diff --git a/packages/products/tdesign-vue-next/src/typography/paragraph-props.ts b/packages/products/tdesign-vue-next/src/typography/paragraph-props.ts index d3189dadd..e8d08c930 100644 --- a/packages/products/tdesign-vue-next/src/typography/paragraph-props.ts +++ b/packages/products/tdesign-vue-next/src/typography/paragraph-props.ts @@ -12,8 +12,18 @@ export default { content: { type: [String, Function] as PropType, }, + /** 是否可复制,可通过配置参数自定义复制操作的具体功能和样式 */ + copyable: { + type: [Boolean, Object] as PropType, + default: false as TdParagraphProps['copyable'], + }, /** 段落内容 */ default: { type: [String, Function] as PropType, }, + /** 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 */ + ellipsis: { + type: [Boolean, Object] as PropType, + default: false as TdParagraphProps['ellipsis'], + }, }; diff --git a/packages/products/tdesign-vue-next/src/typography/text-props.ts b/packages/products/tdesign-vue-next/src/typography/text-props.ts index 00ce14423..f9856cd35 100644 --- a/packages/products/tdesign-vue-next/src/typography/text-props.ts +++ b/packages/products/tdesign-vue-next/src/typography/text-props.ts @@ -18,4 +18,34 @@ export default { default: { type: [String, Function] as PropType, }, + /** 是否添加删除线样式 */ + delete: Boolean, + /** 是否添加不可用样式 */ + disabled: Boolean, + /** 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 */ + ellipsis: { + type: [Boolean, Object] as PropType, + default: false as TdTextProps['ellipsis'], + }, + /** 文本是否为斜体 */ + italic: Boolean, + /** 是否添加键盘样式 */ + keyboard: Boolean, + /** 是否添加标记样式,默认为黄色,可通过配置颜色修改标记样式,如#0052D9 */ + mark: { + type: [String, Boolean] as PropType, + default: false as TdTextProps['mark'], + }, + /** 文本是否加粗 */ + strong: Boolean, + /** 主题 */ + theme: { + type: String as PropType, + validator(val: TdTextProps['theme']): boolean { + if (!val) return true; + return ['primary', 'secondary', 'success', 'warning', 'error'].includes(val); + }, + }, + /** 是否添加下划线样式 */ + underline: Boolean, }; diff --git a/packages/products/tdesign-vue-next/src/typography/title-props.ts b/packages/products/tdesign-vue-next/src/typography/title-props.ts index 9b11509ed..4bc0b80e5 100644 --- a/packages/products/tdesign-vue-next/src/typography/title-props.ts +++ b/packages/products/tdesign-vue-next/src/typography/title-props.ts @@ -16,6 +16,11 @@ export default { default: { type: [String, Function] as PropType, }, + /** 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 */ + ellipsis: { + type: [Boolean, Object] as PropType, + default: false as TdTitleProps['ellipsis'], + }, /** 标题等级 */ level: { type: String as PropType, diff --git a/packages/products/tdesign-vue-next/src/typography/type.ts b/packages/products/tdesign-vue-next/src/typography/type.ts index bd27136f6..6ab812bbe 100644 --- a/packages/products/tdesign-vue-next/src/typography/type.ts +++ b/packages/products/tdesign-vue-next/src/typography/type.ts @@ -4,6 +4,7 @@ * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC * */ +import { tooltipProps } from '../tooltip'; import { TNode } from '../common'; export interface TdTextProps { @@ -20,6 +21,50 @@ export interface TdTextProps { * 文本内容 */ default?: string | TNode; + /** + * 是否添加删除线样式 + * @default false + */ + delete?: boolean; + /** + * 是否添加不可用样式 + * @default false + */ + disabled?: boolean; + /** + * 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 + * @default false + */ + ellipsis?: boolean | TypographyEllipsis; + /** + * 文本是否为斜体 + * @default false + */ + italic?: boolean; + /** + * 是否添加键盘样式 + * @default false + */ + keyboard?: boolean; + /** + * 是否添加标记样式,默认为黄色,可通过配置颜色修改标记样式,如#0052D9 + * @default false + */ + mark?: string | boolean; + /** + * 文本是否加粗 + * @default false + */ + strong?: boolean; + /** + * 主题 + */ + theme?: 'primary' | 'secondary' | 'success' | 'warning' | 'error'; + /** + * 是否添加下划线样式 + * @default false + */ + underline?: boolean; } export interface TdTitleProps { @@ -31,6 +76,11 @@ export interface TdTitleProps { * 标题内容 */ default?: string | TNode; + /** + * 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 + * @default false + */ + ellipsis?: boolean | TypographyEllipsis; /** * 标题等级 * @default h1 @@ -43,8 +93,68 @@ export interface TdParagraphProps { * 段落内容 */ content?: string | TNode; + /** + * 是否可复制,可通过配置参数自定义复制操作的具体功能和样式 + * @default false + */ + copyable?: boolean | TypographyCopyable; /** * 段落内容 */ default?: string | TNode; + /** + * 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 + * @default false + */ + ellipsis?: boolean | TypographyEllipsis; +} + +export interface TypographyEllipsis { + /** + * 展开后是否可以重新收起 + * @default true + */ + collapsible?: boolean; + /** + * 是否可展开 + * @default true + */ + expandable?: boolean; + /** + * 省略配置默认展示行数 + * @default 1 + */ + row?: number; + /** + * 自定义省略触发元素,一般用于自定义折叠图标 + */ + suffix?: TNode<{ expanded: boolean }>; + /** + * 光标在省略图标上出现的tooltip的配置 + */ + tooltipProps?: tooltipProps; + /** + * 点击省略按钮的回调 + */ + onExpand?: (expanded: boolean) => void; +} + +export interface TypographyCopyable { + /** + * 复制的文本内容,默认为全部文本 + * @default '' + */ + text?: string; + /** + * 自定义复制触发元素,一般用于自定义复制图标 + */ + suffix?: TNode<{ copied: boolean }>; + /** + * 光标在复制图标上出现的tooltip的配置 + */ + tooltipProps?: tooltipProps; + /** + * 点击复制按钮的回调 + */ + onCopy?: () => void; } diff --git a/packages/products/tdesign-vue-next/src/typography/typography.en-US.md b/packages/products/tdesign-vue-next/src/typography/typography.en-US.md index 1cc0d382b..30eb5fa20 100644 --- a/packages/products/tdesign-vue-next/src/typography/typography.en-US.md +++ b/packages/products/tdesign-vue-next/src/typography/typography.en-US.md @@ -1,7 +1,6 @@ :: BASE_DOC :: ## API - ### Text Props name | type | default | description | required @@ -9,6 +8,15 @@ name | type | default | description | required code | Boolean | false | add code style | N content | String / Slot / Function | - | content of text。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N default | String / Slot / Function | - | default slot of text。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +delete | Boolean | false | add delete line style | N +disabled | Boolean | false | add disabled style | N +ellipsis | Boolean / Object | false | add ellipsis style。Typescript:`boolean \| TypographyEllipsis` | N +italic | Boolean | false | add italic style | N +keyboard | Boolean | false | add keyboard style | N +mark | String / Boolean | false | add mark style | N +strong | Boolean | false | add bold style | N +theme | String | - | theme of text。options: primary/secondary/success/warning/error | N +underline | Boolean | false | add underline style | N ### Title Props @@ -16,6 +24,7 @@ name | type | default | description | required -- | -- | -- | -- | -- content | String / Slot / Function | - | content of title。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N default | String / Slot / Function | - | default slot of title。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +ellipsis | Boolean / Object | false | add ellipsis style。Typescript:`boolean \| TypographyEllipsis` | N level | String | h1 | level of title。options: h1/h2/h3/h4/h5/h6 | N ### Paragraph Props @@ -23,4 +32,36 @@ level | String | h1 | level of title。options: h1/h2/h3/h4/h5/h6 | N name | type | default | description | required -- | -- | -- | -- | -- content | String / Slot / Function | - | content of paragraph。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +copyable | Boolean / Object | false | add copyable style。Typescript:`boolean \| TypographyCopyable` | N default | String / Slot / Function | - | default slot of paragraph。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +ellipsis | Boolean / Object | false | add ellipsis style。Typescript:`boolean \| TypographyEllipsis` | N + +### TypographyEllipsis + +name | type | default | description | required +-- | -- | -- | -- | -- +collapsible | Boolean | true | collapsible after expanding | N +expandable | Boolean | true | expandable | N +row | Number | 1 | default row number of ellipsis | N +suffix | Slot / Function | - | custom element configuration for ellipsis and collapse icon。Typescript:`TNode<{ expanded: boolean }>`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +tooltipProps | Object | - | Configuration of the tooltip that appears on the ellipsis icon when the cursor is over it.。Typescript:`tooltipProps`,[Tooltip API Documents](./tooltip?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/typography/type.ts) | N +onExpand | Function | | Typescript:`(expanded:boolean) => void`
| N +### TypographyEllipsis + +name | params | description +-- | -- | -- +expand | `(expanded:boolean)` | \- + +### TypographyCopyable + +name | type | default | description | required +-- | -- | -- | -- | -- + text | String | - | copied content | N +suffix | Slot / Function | - | custom element configuration for copy icon。Typescript:`TNode<{ copied: boolean }>`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +tooltipProps | Object | - | Configuration of the tooltip that appears on the copy icon when the cursor is over it.。Typescript:`tooltipProps`,[Tooltip API Documents](./tooltip?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/typography/type.ts) | N +onCopy | Function | | Typescript:`() => void`
| N +### TypographyCopyable + +name | params | description +-- | -- | -- +copy | \- | \- diff --git a/packages/products/tdesign-vue-next/src/typography/typography.md b/packages/products/tdesign-vue-next/src/typography/typography.md index 5efb5bbf6..1c7a51e8f 100644 --- a/packages/products/tdesign-vue-next/src/typography/typography.md +++ b/packages/products/tdesign-vue-next/src/typography/typography.md @@ -1,7 +1,6 @@ :: BASE_DOC :: ## API - ### Text Props 名称 | 类型 | 默认值 | 说明 | 必传 @@ -9,6 +8,15 @@ code | Boolean | false | 是否添加代码样式 | N content | String / Slot / Function | - | 文本内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N default | String / Slot / Function | - | 文本内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +delete | Boolean | false | 是否添加删除线样式 | N +disabled | Boolean | false | 是否添加不可用样式 | N +ellipsis | Boolean / Object | false | 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式。TS 类型:`boolean \| TypographyEllipsis` | N +italic | Boolean | false | 文本是否为斜体 | N +keyboard | Boolean | false | 是否添加键盘样式 | N +mark | String / Boolean | false | 是否添加标记样式,默认为黄色,可通过配置颜色修改标记样式,如#0052D9 | N +strong | Boolean | false | 文本是否加粗 | N +theme | String | - | 主题。可选项:primary/secondary/success/warning/error | N +underline | Boolean | false | 是否添加下划线样式 | N ### Title Props @@ -16,6 +24,7 @@ default | String / Slot / Function | - | 文本内容。TS 类型:`string \| T -- | -- | -- | -- | -- content | String / Slot / Function | - | 段落内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N default | String / Slot / Function | - | 标题内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +ellipsis | Boolean / Object | false | 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式。TS 类型:`boolean \| TypographyEllipsis` | N level | String | h1 | 标题等级。可选项:h1/h2/h3/h4/h5/h6 | N ### Paragraph Props @@ -23,4 +32,36 @@ level | String | h1 | 标题等级。可选项:h1/h2/h3/h4/h5/h6 | N 名称 | 类型 | 默认值 | 说明 | 必传 -- | -- | -- | -- | -- content | String / Slot / Function | - | 段落内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +copyable | Boolean / Object | false | 是否可复制,可通过配置参数自定义复制操作的具体功能和样式。TS 类型:`boolean \| TypographyCopyable` | N default | String / Slot / Function | - | 段落内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +ellipsis | Boolean / Object | false | 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式。TS 类型:`boolean \| TypographyEllipsis` | N + +### TypographyEllipsis + +名称 | 类型 | 默认值 | 说明 | 必传 +-- | -- | -- | -- | -- +collapsible | Boolean | true | 展开后是否可以重新收起 | N +expandable | Boolean | true | 是否可展开 | N +row | Number | 1 | 省略配置默认展示行数 | N +suffix | Slot / Function | - | 自定义省略触发元素,一般用于自定义折叠图标。TS 类型:`TNode<{ expanded: boolean }>`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +tooltipProps | Object | - | 光标在省略图标上出现的tooltip的配置。TS 类型:`tooltipProps`,[Tooltip API Documents](./tooltip?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/typography/type.ts) | N +onExpand | Function | | TS 类型:`(expanded:boolean) => void`
点击省略按钮的回调 | N +### TypographyEllipsis + +名称 | 参数 | 描述 +-- | -- | -- +expand | `(expanded:boolean)` | 点击省略按钮的回调 + +### TypographyCopyable + +名称 | 类型 | 默认值 | 说明 | 必传 +-- | -- | -- | -- | -- + text | String | - | 复制的文本内容,默认为全部文本 | N +suffix | Slot / Function | - | 自定义复制触发元素,一般用于自定义复制图标。TS 类型:`TNode<{ copied: boolean }>`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +tooltipProps | Object | - | 光标在复制图标上出现的tooltip的配置。TS 类型:`tooltipProps`,[Tooltip API Documents](./tooltip?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/typography/type.ts) | N +onCopy | Function | | TS 类型:`() => void`
点击复制按钮的回调 | N +### TypographyCopyable + +名称 | 参数 | 描述 +-- | -- | -- +copy | \- | 点击复制按钮的回调 diff --git a/packages/products/tdesign-vue/src/typography/paragraph-props.ts b/packages/products/tdesign-vue/src/typography/paragraph-props.ts index d3189dadd..3995e23b3 100644 --- a/packages/products/tdesign-vue/src/typography/paragraph-props.ts +++ b/packages/products/tdesign-vue/src/typography/paragraph-props.ts @@ -12,8 +12,18 @@ export default { content: { type: [String, Function] as PropType, }, + /** 是否可复制,可通过配置参数自定义复制操作的具体功能和样式 */ + copyable: { + type: [Boolean, Object] as PropType, + default: false, + }, /** 段落内容 */ default: { type: [String, Function] as PropType, }, + /** 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 */ + ellipsis: { + type: [Boolean, Object] as PropType, + default: false, + }, }; diff --git a/packages/products/tdesign-vue/src/typography/text-props.ts b/packages/products/tdesign-vue/src/typography/text-props.ts index 00ce14423..21b50751f 100644 --- a/packages/products/tdesign-vue/src/typography/text-props.ts +++ b/packages/products/tdesign-vue/src/typography/text-props.ts @@ -18,4 +18,34 @@ export default { default: { type: [String, Function] as PropType, }, + /** 是否添加删除线样式 */ + delete: Boolean, + /** 是否添加不可用样式 */ + disabled: Boolean, + /** 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 */ + ellipsis: { + type: [Boolean, Object] as PropType, + default: false, + }, + /** 文本是否为斜体 */ + italic: Boolean, + /** 是否添加键盘样式 */ + keyboard: Boolean, + /** 是否添加标记样式,默认为黄色,可通过配置颜色修改标记样式,如#0052D9 */ + mark: { + type: [String, Boolean] as PropType, + default: false, + }, + /** 文本是否加粗 */ + strong: Boolean, + /** 主题 */ + theme: { + type: String as PropType, + validator(val: TdTextProps['theme']): boolean { + if (!val) return true; + return ['primary', 'secondary', 'success', 'warning', 'error'].includes(val); + }, + }, + /** 是否添加下划线样式 */ + underline: Boolean, }; diff --git a/packages/products/tdesign-vue/src/typography/title-props.ts b/packages/products/tdesign-vue/src/typography/title-props.ts index 9b11509ed..ee7cd4a35 100644 --- a/packages/products/tdesign-vue/src/typography/title-props.ts +++ b/packages/products/tdesign-vue/src/typography/title-props.ts @@ -16,6 +16,11 @@ export default { default: { type: [String, Function] as PropType, }, + /** 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 */ + ellipsis: { + type: [Boolean, Object] as PropType, + default: false, + }, /** 标题等级 */ level: { type: String as PropType, diff --git a/packages/products/tdesign-vue/src/typography/type.ts b/packages/products/tdesign-vue/src/typography/type.ts index bd27136f6..6ab812bbe 100644 --- a/packages/products/tdesign-vue/src/typography/type.ts +++ b/packages/products/tdesign-vue/src/typography/type.ts @@ -4,6 +4,7 @@ * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC * */ +import { tooltipProps } from '../tooltip'; import { TNode } from '../common'; export interface TdTextProps { @@ -20,6 +21,50 @@ export interface TdTextProps { * 文本内容 */ default?: string | TNode; + /** + * 是否添加删除线样式 + * @default false + */ + delete?: boolean; + /** + * 是否添加不可用样式 + * @default false + */ + disabled?: boolean; + /** + * 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 + * @default false + */ + ellipsis?: boolean | TypographyEllipsis; + /** + * 文本是否为斜体 + * @default false + */ + italic?: boolean; + /** + * 是否添加键盘样式 + * @default false + */ + keyboard?: boolean; + /** + * 是否添加标记样式,默认为黄色,可通过配置颜色修改标记样式,如#0052D9 + * @default false + */ + mark?: string | boolean; + /** + * 文本是否加粗 + * @default false + */ + strong?: boolean; + /** + * 主题 + */ + theme?: 'primary' | 'secondary' | 'success' | 'warning' | 'error'; + /** + * 是否添加下划线样式 + * @default false + */ + underline?: boolean; } export interface TdTitleProps { @@ -31,6 +76,11 @@ export interface TdTitleProps { * 标题内容 */ default?: string | TNode; + /** + * 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 + * @default false + */ + ellipsis?: boolean | TypographyEllipsis; /** * 标题等级 * @default h1 @@ -43,8 +93,68 @@ export interface TdParagraphProps { * 段落内容 */ content?: string | TNode; + /** + * 是否可复制,可通过配置参数自定义复制操作的具体功能和样式 + * @default false + */ + copyable?: boolean | TypographyCopyable; /** * 段落内容 */ default?: string | TNode; + /** + * 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式 + * @default false + */ + ellipsis?: boolean | TypographyEllipsis; +} + +export interface TypographyEllipsis { + /** + * 展开后是否可以重新收起 + * @default true + */ + collapsible?: boolean; + /** + * 是否可展开 + * @default true + */ + expandable?: boolean; + /** + * 省略配置默认展示行数 + * @default 1 + */ + row?: number; + /** + * 自定义省略触发元素,一般用于自定义折叠图标 + */ + suffix?: TNode<{ expanded: boolean }>; + /** + * 光标在省略图标上出现的tooltip的配置 + */ + tooltipProps?: tooltipProps; + /** + * 点击省略按钮的回调 + */ + onExpand?: (expanded: boolean) => void; +} + +export interface TypographyCopyable { + /** + * 复制的文本内容,默认为全部文本 + * @default '' + */ + text?: string; + /** + * 自定义复制触发元素,一般用于自定义复制图标 + */ + suffix?: TNode<{ copied: boolean }>; + /** + * 光标在复制图标上出现的tooltip的配置 + */ + tooltipProps?: tooltipProps; + /** + * 点击复制按钮的回调 + */ + onCopy?: () => void; } diff --git a/packages/products/tdesign-vue/src/typography/typography.en-US.md b/packages/products/tdesign-vue/src/typography/typography.en-US.md index 553574e57..7748d1f06 100644 --- a/packages/products/tdesign-vue/src/typography/typography.en-US.md +++ b/packages/products/tdesign-vue/src/typography/typography.en-US.md @@ -1,7 +1,6 @@ :: BASE_DOC :: ## API - ### Text Props name | type | default | description | required @@ -9,6 +8,15 @@ name | type | default | description | required code | Boolean | false | add code style | N content | String / Slot / Function | - | content of text。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N default | String / Slot / Function | - | default slot of text。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N +delete | Boolean | false | add delete line style | N +disabled | Boolean | false | add disabled style | N +ellipsis | Boolean / Object | false | add ellipsis style。Typescript:`boolean \| TypographyEllipsis` | N +italic | Boolean | false | add italic style | N +keyboard | Boolean | false | add keyboard style | N +mark | String / Boolean | false | add mark style | N +strong | Boolean | false | add bold style | N +theme | String | - | theme of text。options: primary/secondary/success/warning/error | N +underline | Boolean | false | add underline style | N ### Title Props @@ -16,6 +24,7 @@ name | type | default | description | required -- | -- | -- | -- | -- content | String / Slot / Function | - | content of title。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N default | String / Slot / Function | - | default slot of title。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N +ellipsis | Boolean / Object | false | add ellipsis style。Typescript:`boolean \| TypographyEllipsis` | N level | String | h1 | level of title。options: h1/h2/h3/h4/h5/h6 | N ### Paragraph Props @@ -23,4 +32,36 @@ level | String | h1 | level of title。options: h1/h2/h3/h4/h5/h6 | N name | type | default | description | required -- | -- | -- | -- | -- content | String / Slot / Function | - | content of paragraph。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N +copyable | Boolean / Object | false | add copyable style。Typescript:`boolean \| TypographyCopyable` | N default | String / Slot / Function | - | default slot of paragraph。Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N +ellipsis | Boolean / Object | false | add ellipsis style。Typescript:`boolean \| TypographyEllipsis` | N + +### TypographyEllipsis + +name | type | default | description | required +-- | -- | -- | -- | -- +collapsible | Boolean | true | collapsible after expanding | N +expandable | Boolean | true | expandable | N +row | Number | 1 | default row number of ellipsis | N +suffix | Slot / Function | - | custom element configuration for ellipsis and collapse icon。Typescript:`TNode<{ expanded: boolean }>`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N +tooltipProps | Object | - | Configuration of the tooltip that appears on the ellipsis icon when the cursor is over it.。Typescript:`tooltipProps`,[Tooltip API Documents](./tooltip?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/typography/type.ts) | N +onExpand | Function | | Typescript:`(expanded:boolean) => void`
| N +### TypographyEllipsis + +name | params | description +-- | -- | -- +expand | `(expanded:boolean)` | \- + +### TypographyCopyable + +name | type | default | description | required +-- | -- | -- | -- | -- + text | String | - | copied content | N +suffix | Slot / Function | - | custom element configuration for copy icon。Typescript:`TNode<{ copied: boolean }>`。[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N +tooltipProps | Object | - | Configuration of the tooltip that appears on the copy icon when the cursor is over it.。Typescript:`tooltipProps`,[Tooltip API Documents](./tooltip?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/typography/type.ts) | N +onCopy | Function | | Typescript:`() => void`
| N +### TypographyCopyable + +name | params | description +-- | -- | -- +copy | \- | \- diff --git a/packages/products/tdesign-vue/src/typography/typography.md b/packages/products/tdesign-vue/src/typography/typography.md index 14e25da37..8659ad6c0 100644 --- a/packages/products/tdesign-vue/src/typography/typography.md +++ b/packages/products/tdesign-vue/src/typography/typography.md @@ -1,7 +1,6 @@ :: BASE_DOC :: ## API - ### Text Props 名称 | 类型 | 默认值 | 说明 | 必传 @@ -9,6 +8,15 @@ code | Boolean | false | 是否添加代码样式 | N content | String / Slot / Function | - | 文本内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N default | String / Slot / Function | - | 文本内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N +delete | Boolean | false | 是否添加删除线样式 | N +disabled | Boolean | false | 是否添加不可用样式 | N +ellipsis | Boolean / Object | false | 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式。TS 类型:`boolean \| TypographyEllipsis` | N +italic | Boolean | false | 文本是否为斜体 | N +keyboard | Boolean | false | 是否添加键盘样式 | N +mark | String / Boolean | false | 是否添加标记样式,默认为黄色,可通过配置颜色修改标记样式,如#0052D9 | N +strong | Boolean | false | 文本是否加粗 | N +theme | String | - | 主题。可选项:primary/secondary/success/warning/error | N +underline | Boolean | false | 是否添加下划线样式 | N ### Title Props @@ -16,6 +24,7 @@ default | String / Slot / Function | - | 文本内容。TS 类型:`string \| T -- | -- | -- | -- | -- content | String / Slot / Function | - | 段落内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N default | String / Slot / Function | - | 标题内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N +ellipsis | Boolean / Object | false | 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式。TS 类型:`boolean \| TypographyEllipsis` | N level | String | h1 | 标题等级。可选项:h1/h2/h3/h4/h5/h6 | N ### Paragraph Props @@ -23,4 +32,36 @@ level | String | h1 | 标题等级。可选项:h1/h2/h3/h4/h5/h6 | N 名称 | 类型 | 默认值 | 说明 | 必传 -- | -- | -- | -- | -- content | String / Slot / Function | - | 段落内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N +copyable | Boolean / Object | false | 是否可复制,可通过配置参数自定义复制操作的具体功能和样式。TS 类型:`boolean \| TypographyCopyable` | N default | String / Slot / Function | - | 段落内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N +ellipsis | Boolean / Object | false | 是否省略展示,可通过配置参数自定义省略操作的具体功能和样式。TS 类型:`boolean \| TypographyEllipsis` | N + +### TypographyEllipsis + +名称 | 类型 | 默认值 | 说明 | 必传 +-- | -- | -- | -- | -- +collapsible | Boolean | true | 展开后是否可以重新收起 | N +expandable | Boolean | true | 是否可展开 | N +row | Number | 1 | 省略配置默认展示行数 | N +suffix | Slot / Function | - | 自定义省略触发元素,一般用于自定义折叠图标。TS 类型:`TNode<{ expanded: boolean }>`。[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N +tooltipProps | Object | - | 光标在省略图标上出现的tooltip的配置。TS 类型:`tooltipProps`,[Tooltip API Documents](./tooltip?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/typography/type.ts) | N +onExpand | Function | | TS 类型:`(expanded:boolean) => void`
点击省略按钮的回调 | N +### TypographyEllipsis + +名称 | 参数 | 描述 +-- | -- | -- +expand | `(expanded:boolean)` | 点击省略按钮的回调 + +### TypographyCopyable + +名称 | 类型 | 默认值 | 说明 | 必传 +-- | -- | -- | -- | -- + text | String | - | 复制的文本内容,默认为全部文本 | N +suffix | Slot / Function | - | 自定义复制触发元素,一般用于自定义复制图标。TS 类型:`TNode<{ copied: boolean }>`。[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N +tooltipProps | Object | - | 光标在复制图标上出现的tooltip的配置。TS 类型:`tooltipProps`,[Tooltip API Documents](./tooltip?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/typography/type.ts) | N +onCopy | Function | | TS 类型:`() => void`
点击复制按钮的回调 | N +### TypographyCopyable + +名称 | 参数 | 描述 +-- | -- | -- +copy | \- | 点击复制按钮的回调 diff --git a/packages/scripts/api.json b/packages/scripts/api.json index 7c12d9264..ed1a1df7d 100644 --- a/packages/scripts/api.json +++ b/packages/scripts/api.json @@ -68020,6 +68020,49 @@ "TNode" ] }, + { + "id": 1706638324, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "Paragraph", + "field_category": 1, + "field_name": "copyable", + "field_type": [ + "4", + "8" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "是否可复制,可通过配置参数自定义复制操作的具体功能和样式", + "field_desc_en": "add copyable style", + "field_required": 0, + "event_input": "", + "create_time": "2024-01-30 18:12:04", + "update_time": "2024-01-30 18:12:04", + "event_output": null, + "custom_field_type": "boolean | TypographyCopyable", + "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": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)" + ], + "field_type_text": [ + "Boolean", + "Object" + ] + }, { "id": 1706635334, "platform_framework": [ @@ -68059,6 +68102,49 @@ "TNode" ] }, + { + "id": 1706638282, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "Paragraph", + "field_category": 1, + "field_name": "ellipsis", + "field_type": [ + "4", + "8" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "是否省略展示,可通过配置参数自定义省略操作的具体功能和样式", + "field_desc_en": "add ellipsis style", + "field_required": 0, + "event_input": "", + "create_time": "2024-01-30 18:11:22", + "update_time": "2024-01-30 18:11:22", + "event_output": null, + "custom_field_type": "boolean | TypographyEllipsis", + "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": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)" + ], + "field_type_text": [ + "Boolean", + "Object" + ] + }, { "id": 2834, "platform_framework": [ @@ -103125,24 +103211,26 @@ ] }, { - "id": 1719, + "id": 1706635746, "platform_framework": [ - "64" + "1", + "2", + "4" ], - "component": "Textarea", + "component": "Text", "field_category": 1, - "field_name": "adjustPosition", + "field_name": "delete", "field_type": [ "4" ], - "field_default_value": "true", + "field_default_value": "false", "field_enum": "", - "field_desc_zh": "键盘弹起时,是否自动上推页面", - "field_desc_en": null, + "field_desc_zh": "是否添加删除线样式", + "field_desc_en": "add delete line style", "field_required": 0, "event_input": "", - "create_time": "2021-09-22 03:26:45", - "update_time": "2021-09-22 03:26:45", + "create_time": "2024-01-30 17:29:06", + "update_time": "2024-01-30 17:29:06", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -103155,36 +103243,35 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Miniprogram" + "Vue(PC)", + "React(PC)", + "Angular(PC)" ], "field_type_text": [ "Boolean" ] }, { - "id": 2726, + "id": 1706635833, "platform_framework": [ "1", "2", - "4", - "8", - "16", - "32" + "4" ], - "component": "Textarea", + "component": "Text", "field_category": 1, - "field_name": "allowInputOverMax", + "field_name": "disabled", "field_type": [ "4" ], "field_default_value": "false", "field_enum": "", - "field_desc_zh": "超出maxlength或maxcharacter之后是否还允许输入", - "field_desc_en": null, + "field_desc_zh": "是否添加不可用样式", + "field_desc_en": "add disabled style", "field_required": 0, "event_input": "", - "create_time": "2022-06-02 02:16:33", - "update_time": "2022-06-02 02:16:33", + "create_time": "2024-01-30 17:30:33", + "update_time": "2024-01-30 17:30:33", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -103199,88 +103286,78 @@ "platform_framework_text": [ "Vue(PC)", "React(PC)", - "Angular(PC)", - "Vue(Mobile)", - "React(Mobile)", - "Angular(Mobile)" + "Angular(PC)" ], "field_type_text": [ "Boolean" ] }, { - "id": 1058, + "id": 1706636550, "platform_framework": [ "1", "2", - "4", - "8", - "16", - "32", - "64" + "4" ], - "component": "Textarea", + "component": "Text", "field_category": 1, - "field_name": "autofocus", + "field_name": "ellipsis", "field_type": [ - "4" + "4", + "8" ], "field_default_value": "false", "field_enum": "", - "field_desc_zh": "自动聚焦,拉起键盘", - "field_desc_en": null, + "field_desc_zh": "是否省略展示,可通过配置参数自定义省略操作的具体功能和样式", + "field_desc_en": "add ellipsis style", "field_required": 0, "event_input": "", - "create_time": "2021-03-26 04:22:30", - "update_time": "2021-09-22 03:33:12", + "create_time": "2024-01-30 17:42:30", + "update_time": "2024-01-30 17:42:30", "event_output": null, - "custom_field_type": null, - "syntactic_sugar": "", + "custom_field_type": "boolean | TypographyEllipsis", + "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, "trigger_elements": "", "deprecated": 0, - "version": null, + "version": "", "test_description": null, "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ "Vue(PC)", "React(PC)", - "Angular(PC)", - "Vue(Mobile)", - "React(Mobile)", - "Angular(Mobile)", - "Miniprogram" + "Angular(PC)" ], "field_type_text": [ - "Boolean" + "Boolean", + "Object" ] }, { - "id": 1669, + "id": 1706635810, "platform_framework": [ "1", "2", "4" ], - "component": "Textarea", + "component": "Text", "field_category": 1, - "field_name": "autosize", + "field_name": "italic", "field_type": [ - "4", - "8" + "4" ], "field_default_value": "false", "field_enum": "", - "field_desc_zh": "高度自动撑开。 autosize = true 表示组件高度自动撑开,同时,依旧允许手动拖高度。如果设置了 autosize.maxRows 或者 autosize.minRows 则不允许手动调整高度", - "field_desc_en": null, + "field_desc_zh": "文本是否为斜体", + "field_desc_en": "add italic style", "field_required": 0, "event_input": "", - "create_time": "2021-09-13 13:25:17", - "update_time": "2021-09-22 14:13:15", + "create_time": "2024-01-30 17:30:10", + "update_time": "2024-01-30 17:30:10", "event_output": null, - "custom_field_type": "boolean | { minRows?: number; maxRows?: number }", + "custom_field_type": null, "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, @@ -103296,32 +103373,30 @@ "Angular(PC)" ], "field_type_text": [ - "Boolean", - "Object" + "Boolean" ] }, { - "id": 1723, + "id": 1706635845, "platform_framework": [ - "8", - "16", - "32", - "64" + "1", + "2", + "4" ], - "component": "Textarea", + "component": "Text", "field_category": 1, - "field_name": "autosize", + "field_name": "keyboard", "field_type": [ "4" ], "field_default_value": "false", "field_enum": "", - "field_desc_zh": "是否自动增高,值为 autosize 时,style.height 不生效", - "field_desc_en": null, + "field_desc_zh": "是否添加键盘样式", + "field_desc_en": "add keyboard style", "field_required": 0, "event_input": "", - "create_time": "2021-09-22 03:34:58", - "update_time": "2021-09-27 08:40:16", + "create_time": "2024-01-30 17:30:45", + "update_time": "2024-01-30 17:30:45", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -103334,37 +103409,36 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(Mobile)", - "React(Mobile)", - "Angular(Mobile)", - "Miniprogram" + "Vue(PC)", + "React(PC)", + "Angular(PC)" ], "field_type_text": [ "Boolean" ] }, { - "id": 3391, + "id": 1706635902, "platform_framework": [ - "8", - "16", - "32", - "64" + "1", + "2", + "4" ], - "component": "Textarea", + "component": "Text", "field_category": 1, - "field_name": "bordered", + "field_name": "mark", "field_type": [ + "1", "4" ], "field_default_value": "false", "field_enum": "", - "field_desc_zh": "是否显示外边框", - "field_desc_en": null, + "field_desc_zh": "是否添加标记样式,默认为黄色,可通过配置颜色修改标记样式,如#0052D9", + "field_desc_en": "add mark style", "field_required": 0, "event_input": "", - "create_time": "2023-03-13 02:16:41", - "update_time": "2023-03-13 02:16:41", + "create_time": "2024-01-30 17:31:42", + "update_time": "2024-01-30 17:31:42", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -103377,34 +103451,36 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(Mobile)", - "React(Mobile)", - "Angular(Mobile)", - "Miniprogram" + "Vue(PC)", + "React(PC)", + "Angular(PC)" ], "field_type_text": [ + "String", "Boolean" ] }, { - "id": 1720, + "id": 1706635791, "platform_framework": [ - "64" + "1", + "2", + "4" ], - "component": "Textarea", + "component": "Text", "field_category": 1, - "field_name": "confirmHold", + "field_name": "strong", "field_type": [ "4" ], "field_default_value": "false", "field_enum": "", - "field_desc_zh": "点击键盘右下角按钮时是否保持键盘不收起点", - "field_desc_en": null, + "field_desc_zh": "文本是否加粗", + "field_desc_en": "add bold style", "field_required": 0, "event_input": "", - "create_time": "2021-09-22 03:27:46", - "update_time": "2021-09-22 03:27:46", + "create_time": "2024-01-30 17:29:51", + "update_time": "2024-01-30 17:29:51", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -103417,33 +103493,37 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Miniprogram" + "Vue(PC)", + "React(PC)", + "Angular(PC)" ], "field_type_text": [ "Boolean" ] }, { - "id": 1721, + "id": 1706635970, "platform_framework": [ - "64" + "1", + "2", + "4" ], - "component": "Textarea", + "component": "Text", "field_category": 1, - "field_name": "confirmType", + "field_name": "theme", "field_type": [ "1" ], - "field_default_value": "done", - "field_enum": "send/search/next/go/done", - "field_desc_zh": "设置键盘右下角按钮的文字,仅在 type='text'时生效", - "field_desc_en": null, + "field_default_value": "", + "field_enum": "primary/secondary/success/warning/error", + "field_desc_zh": "主题", + "field_desc_en": "theme of text", "field_required": 0, "event_input": "", - "create_time": "2021-09-22 03:28:54", - "update_time": "2021-09-22 03:28:54", + "create_time": "2024-01-30 17:32:50", + "update_time": "2024-01-30 17:32:50", "event_output": null, - "custom_field_type": "'send' | 'search' | 'next' | 'go' | 'done'", + "custom_field_type": null, "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, @@ -103454,31 +103534,35 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Miniprogram" + "Vue(PC)", + "React(PC)", + "Angular(PC)" ], "field_type_text": [ "String" ] }, { - "id": 3392, + "id": 1706635764, "platform_framework": [ - "64" + "1", + "2", + "4" ], - "component": "Textarea", + "component": "Text", "field_category": 1, - "field_name": "cursor", + "field_name": "underline", "field_type": [ - "2" + "4" ], - "field_default_value": "-1", + "field_default_value": "false", "field_enum": "", - "field_desc_zh": "指定 focus 时的光标位置", - "field_desc_en": null, + "field_desc_zh": "是否添加下划线样式", + "field_desc_en": "add underline style", "field_required": 0, "event_input": "", - "create_time": "2023-03-13 02:16:41", - "update_time": "2023-03-13 02:16:41", + "create_time": "2024-01-30 17:29:24", + "update_time": "2024-01-30 17:29:24", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -103491,31 +103575,33 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Miniprogram" + "Vue(PC)", + "React(PC)", + "Angular(PC)" ], "field_type_text": [ - "Number" + "Boolean" ] }, { - "id": 3393, + "id": 1719, "platform_framework": [ "64" ], "component": "Textarea", "field_category": 1, - "field_name": "cursorSpacing", + "field_name": "adjustPosition", "field_type": [ - "2" + "4" ], - "field_default_value": "0", + "field_default_value": "true", "field_enum": "", - "field_desc_zh": "指定光标与键盘的距离。取textarea距离底部的距离和cursor-spacing指定的距离的最小值作为光标与键盘的距离", + "field_desc_zh": "键盘弹起时,是否自动上推页面", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2023-03-13 02:16:41", - "update_time": "2023-03-13 02:16:41", + "create_time": "2021-09-22 03:26:45", + "update_time": "2021-09-22 03:26:45", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -103531,28 +103617,33 @@ "Miniprogram" ], "field_type_text": [ - "Number" + "Boolean" ] }, { - "id": 3394, + "id": 2726, "platform_framework": [ - "64" + "1", + "2", + "4", + "8", + "16", + "32" ], "component": "Textarea", "field_category": 1, - "field_name": "disableDefaultPadding", + "field_name": "allowInputOverMax", "field_type": [ "4" ], "field_default_value": "false", "field_enum": "", - "field_desc_zh": "是否去掉 iOS 下的默认内边距", + "field_desc_zh": "超出maxlength或maxcharacter之后是否还允许输入", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2023-03-13 02:16:41", - "update_time": "2023-03-13 02:16:41", + "create_time": "2022-06-02 02:16:33", + "update_time": "2022-06-02 02:16:33", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -103565,14 +103656,19 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Miniprogram" + "Vue(PC)", + "React(PC)", + "Angular(PC)", + "Vue(Mobile)", + "React(Mobile)", + "Angular(Mobile)" ], "field_type_text": [ "Boolean" ] }, { - "id": 963, + "id": 1058, "platform_framework": [ "1", "2", @@ -103584,18 +103680,381 @@ ], "component": "Textarea", "field_category": 1, - "field_name": "disabled", + "field_name": "autofocus", "field_type": [ "4" ], "field_default_value": "false", "field_enum": "", - "field_desc_zh": "是否禁用文本框", + "field_desc_zh": "自动聚焦,拉起键盘", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2021-02-21 14:03:07", - "update_time": "2021-09-22 14:13:27", + "create_time": "2021-03-26 04:22:30", + "update_time": "2021-09-22 03:33:12", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": "", + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": null, + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)", + "Vue(Mobile)", + "React(Mobile)", + "Angular(Mobile)", + "Miniprogram" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1669, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "Textarea", + "field_category": 1, + "field_name": "autosize", + "field_type": [ + "4", + "8" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "高度自动撑开。 autosize = true 表示组件高度自动撑开,同时,依旧允许手动拖高度。如果设置了 autosize.maxRows 或者 autosize.minRows 则不允许手动调整高度", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2021-09-13 13:25:17", + "update_time": "2021-09-22 14:13:15", + "event_output": null, + "custom_field_type": "boolean | { minRows?: number; maxRows?: number }", + "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": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)" + ], + "field_type_text": [ + "Boolean", + "Object" + ] + }, + { + "id": 1723, + "platform_framework": [ + "8", + "16", + "32", + "64" + ], + "component": "Textarea", + "field_category": 1, + "field_name": "autosize", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "是否自动增高,值为 autosize 时,style.height 不生效", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2021-09-22 03:34:58", + "update_time": "2021-09-27 08:40:16", + "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": [ + "Vue(Mobile)", + "React(Mobile)", + "Angular(Mobile)", + "Miniprogram" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 3391, + "platform_framework": [ + "8", + "16", + "32", + "64" + ], + "component": "Textarea", + "field_category": 1, + "field_name": "bordered", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "是否显示外边框", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2023-03-13 02:16:41", + "update_time": "2023-03-13 02:16:41", + "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": [ + "Vue(Mobile)", + "React(Mobile)", + "Angular(Mobile)", + "Miniprogram" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1720, + "platform_framework": [ + "64" + ], + "component": "Textarea", + "field_category": 1, + "field_name": "confirmHold", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "点击键盘右下角按钮时是否保持键盘不收起点", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2021-09-22 03:27:46", + "update_time": "2021-09-22 03:27: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": [ + "Boolean" + ] + }, + { + "id": 1721, + "platform_framework": [ + "64" + ], + "component": "Textarea", + "field_category": 1, + "field_name": "confirmType", + "field_type": [ + "1" + ], + "field_default_value": "done", + "field_enum": "send/search/next/go/done", + "field_desc_zh": "设置键盘右下角按钮的文字,仅在 type='text'时生效", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2021-09-22 03:28:54", + "update_time": "2021-09-22 03:28:54", + "event_output": null, + "custom_field_type": "'send' | 'search' | 'next' | 'go' | 'done'", + "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": 3392, + "platform_framework": [ + "64" + ], + "component": "Textarea", + "field_category": 1, + "field_name": "cursor", + "field_type": [ + "2" + ], + "field_default_value": "-1", + "field_enum": "", + "field_desc_zh": "指定 focus 时的光标位置", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2023-03-13 02:16:41", + "update_time": "2023-03-13 02:16:41", + "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": [ + "Number" + ] + }, + { + "id": 3393, + "platform_framework": [ + "64" + ], + "component": "Textarea", + "field_category": 1, + "field_name": "cursorSpacing", + "field_type": [ + "2" + ], + "field_default_value": "0", + "field_enum": "", + "field_desc_zh": "指定光标与键盘的距离。取textarea距离底部的距离和cursor-spacing指定的距离的最小值作为光标与键盘的距离", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2023-03-13 02:16:41", + "update_time": "2023-03-13 02:16:41", + "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": [ + "Number" + ] + }, + { + "id": 3394, + "platform_framework": [ + "64" + ], + "component": "Textarea", + "field_category": 1, + "field_name": "disableDefaultPadding", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "是否去掉 iOS 下的默认内边距", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2023-03-13 02:16:41", + "update_time": "2023-03-13 02:16:41", + "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": [ + "Boolean" + ] + }, + { + "id": 963, + "platform_framework": [ + "1", + "2", + "4", + "8", + "16", + "32", + "64" + ], + "component": "Textarea", + "field_category": 1, + "field_name": "disabled", + "field_type": [ + "4" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "是否禁用文本框", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2021-02-21 14:03:07", + "update_time": "2021-09-22 14:13:27", "event_output": null, "custom_field_type": null, "syntactic_sugar": "", @@ -107453,6 +107912,49 @@ "TNode" ] }, + { + "id": 1706638273, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "Title", + "field_category": 1, + "field_name": "ellipsis", + "field_type": [ + "4", + "8" + ], + "field_default_value": "false", + "field_enum": "", + "field_desc_zh": "是否省略展示,可通过配置参数自定义省略操作的具体功能和样式", + "field_desc_en": "add ellipsis style", + "field_required": 0, + "event_input": "", + "create_time": "2024-01-30 18:11:13", + "update_time": "2024-01-30 18:11:13", + "event_output": null, + "custom_field_type": "boolean | TypographyEllipsis", + "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": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)" + ], + "field_type_text": [ + "Boolean", + "Object" + ] + }, { "id": 1706635230, "platform_framework": [ @@ -116724,6 +117226,408 @@ "String" ] }, + { + "id": 1706638036, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "TypographyCopyable", + "field_category": 1, + "field_name": " text", + "field_type": [ + "1" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "复制的文本内容,默认为全部文本", + "field_desc_en": "copied content", + "field_required": 0, + "event_input": "", + "create_time": "2024-01-30 18:07:16", + "update_time": "2024-01-30 18:07:16", + "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": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1706638088, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "TypographyCopyable", + "field_category": 1, + "field_name": "suffix", + "field_type": [ + "64" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "自定义复制触发元素,一般用于自定义复制图标", + "field_desc_en": "custom element configuration for copy icon", + "field_required": 0, + "event_input": "", + "create_time": "2024-01-30 18:08:08", + "update_time": "2024-01-30 18:08:08", + "event_output": null, + "custom_field_type": "TNode<{ copied: boolean }>", + "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": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)" + ], + "field_type_text": [ + "TNode" + ] + }, + { + "id": 1706638172, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "TypographyCopyable", + "field_category": 1, + "field_name": "tooltipProps", + "field_type": [ + "8" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "光标在复制图标上出现的tooltip的配置", + "field_desc_en": "Configuration of the tooltip that appears on the copy icon when the cursor is over it.", + "field_required": 0, + "event_input": "", + "create_time": "2024-01-30 18:09:32", + "update_time": "2024-01-30 18:09:32", + "event_output": null, + "custom_field_type": "tooltipProps【import { tooltipProps } from '@Tooltip'】", + "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": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)" + ], + "field_type_text": [ + "Object" + ] + }, + { + "id": 1706638129, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "TypographyCopyable", + "field_category": 2, + "field_name": "copy", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "点击复制按钮的回调", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2024-01-30 18:08:49", + "update_time": "2024-01-30 18:08:49", + "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": "Events", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)" + ], + "field_type_text": [] + }, + { + "id": 1706637229, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "TypographyEllipsis", + "field_category": 1, + "field_name": "collapsible", + "field_type": [ + "4" + ], + "field_default_value": "true", + "field_enum": "", + "field_desc_zh": "展开后是否可以重新收起", + "field_desc_en": "collapsible after expanding", + "field_required": 0, + "event_input": "", + "create_time": "2024-01-30 17:53:49", + "update_time": "2024-01-30 17:53:49", + "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": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1706637150, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "TypographyEllipsis", + "field_category": 1, + "field_name": "expandable", + "field_type": [ + "4" + ], + "field_default_value": "true", + "field_enum": "", + "field_desc_zh": "是否可展开", + "field_desc_en": "expandable", + "field_required": 0, + "event_input": "", + "create_time": "2024-01-30 17:52:30", + "update_time": "2024-01-30 17:52:30", + "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": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)" + ], + "field_type_text": [ + "Boolean" + ] + }, + { + "id": 1706637000, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "TypographyEllipsis", + "field_category": 1, + "field_name": "row", + "field_type": [ + "2" + ], + "field_default_value": "1", + "field_enum": "", + "field_desc_zh": "省略配置默认展示行数", + "field_desc_en": "default row number of ellipsis ", + "field_required": 0, + "event_input": "", + "create_time": "2024-01-30 17:50:00", + "update_time": "2024-01-30 17:50:00", + "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": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)" + ], + "field_type_text": [ + "Number" + ] + }, + { + "id": 1706637830, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "TypographyEllipsis", + "field_category": 1, + "field_name": "suffix", + "field_type": [ + "64" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "自定义省略触发元素,一般用于自定义折叠图标", + "field_desc_en": "custom element configuration for ellipsis and collapse icon", + "field_required": 0, + "event_input": "", + "create_time": "2024-01-30 18:03:50", + "update_time": "2024-01-30 18:03:50", + "event_output": null, + "custom_field_type": "TNode<{ expanded: boolean }>", + "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": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)" + ], + "field_type_text": [ + "TNode" + ] + }, + { + "id": 1706637302, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "TypographyEllipsis", + "field_category": 1, + "field_name": "tooltipProps", + "field_type": [ + "8" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "光标在省略图标上出现的tooltip的配置", + "field_desc_en": "Configuration of the tooltip that appears on the ellipsis icon when the cursor is over it.", + "field_required": 0, + "event_input": "", + "create_time": "2024-01-30 17:55:02", + "update_time": "2024-01-30 17:55:02", + "event_output": null, + "custom_field_type": "tooltipProps【import { tooltipProps } from '@Tooltip'】", + "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": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)" + ], + "field_type_text": [ + "Object" + ] + }, + { + "id": 1706637464, + "platform_framework": [ + "1", + "2", + "4" + ], + "component": "TypographyEllipsis", + "field_category": 2, + "field_name": "expand", + "field_type": [], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "点击省略按钮的回调", + "field_desc_en": null, + "field_required": 0, + "event_input": "(expanded:boolean)", + "create_time": "2024-01-30 17:57:44", + "update_time": "2024-01-30 17:57:44", + "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": "Events", + "platform_framework_text": [ + "Vue(PC)", + "React(PC)", + "Angular(PC)" + ], + "field_type_text": [] + }, { "id": 2995, "platform_framework": [ diff --git a/packages/scripts/config/files-combine.js b/packages/scripts/config/files-combine.js index fcdff3c53..d6bc6f55a 100644 --- a/packages/scripts/config/files-combine.js +++ b/packages/scripts/config/files-combine.js @@ -130,7 +130,7 @@ const COMPONENT_API_MD_MAP = { excludes: ['Miniprogram'] }, Popup: ['Popup','$Popup'], - Typography: ['Text', 'Title','Paragraph'], + Typography: ['Text', 'Title', 'Paragraph', 'TypographyEllipsis', 'TypographyCopyable'], }; // 输出 TS 类型文件时,哪些需要文件需要合并输出,数据内容为组件/插件名称 @@ -294,7 +294,7 @@ const TYPES_COMBINE_MAP = { excludes: ['Miniprogram'] }, Typography: { - list: ['Typography','Text', 'Title','Paragraph'], + list: ['Typography','Text', 'Title','Paragraph','TypographyEllipsis','TypographyCopyable'], } }; diff --git a/packages/scripts/map.json b/packages/scripts/map.json index f69916831..208a8e6b7 100644 --- a/packages/scripts/map.json +++ b/packages/scripts/map.json @@ -999,6 +999,16 @@ "value": "Typography", "label": "排版" }, + { + "value": "TypographyCopyable", + "label": "排版复制配置", + "type": "TS" + }, + { + "value": "TypographyEllipsis", + "label": "排版省略配置", + "type": "TS" + }, { "value": "Upload", "label": "上传" diff --git a/packages/server/controllers/ComponentApi/const.ts b/packages/server/controllers/ComponentApi/const.ts index c22751575..e4622685e 100644 --- a/packages/server/controllers/ComponentApi/const.ts +++ b/packages/server/controllers/ComponentApi/const.ts @@ -239,6 +239,8 @@ export const COMPONENTS_PC: Array = [ { value: "AvatarGroup", label: "头像组" }, { value: "Carousel", label: "走马灯" }, { value: "Typography", label: "排版" }, + { value: "TypographyEllipsis", label: "排版省略配置", type: "TS" }, + { value: "TypographyCopyable", label: "排版复制配置", type: "TS" }, { value: "Space", label: "间距" }, { value: "Swiper", label: "轮播" }, { value: "SwiperItem", label: "轮播项" },