diff --git a/db/TDesign.db b/db/TDesign.db index 80cdfd459..70e8a0552 100644 Binary files a/db/TDesign.db and b/db/TDesign.db differ diff --git a/packages/products/tdesign-miniprogram/src/search/README.md b/packages/products/tdesign-miniprogram/src/search/README.md index 96bf40dad..1520506b9 100644 --- a/packages/products/tdesign-miniprogram/src/search/README.md +++ b/packages/products/tdesign-miniprogram/src/search/README.md @@ -13,7 +13,7 @@ adjust-position | Boolean | true | 键盘弹起时,是否自动上推页面 | always-embed | Boolean | false | 强制 input 处于同层状态,默认 focus 时 input 会切到非同层状态 (仅在 iOS 下生效) | N center | Boolean | false | 是否居中 | N clear-trigger | String | always | 清空图标触发方式,仅在输入框有值时有效。可选项:always / focus | N -clearable | Boolean | true | 是否启用清除控件 | N +clearable | Boolean | true | 是否可清空 | N confirm-hold | Boolean | false | 点击键盘右下角按钮时是否保持键盘不收起 | N confirm-type | String | search | 设置键盘右下角按钮的文字,仅在type='text'时生效。
具体释义:
`send` 右下角按钮为“发送”;
`search` 右下角按钮为“搜索”;
`next` 右下角按钮为“下一个”;
`go` 右下角按钮为“前往”;
`done` 右下角按钮为“完成”。
[小程序官方文档](https://developers.weixin.qq.com/miniprogram/dev/component/input.html)。可选项:send/search/next/go/done | N cursor | Number | -1 | 必需。指定 focus 时的光标位置 | Y diff --git a/packages/products/tdesign-miniprogram/src/search/props.ts b/packages/products/tdesign-miniprogram/src/search/props.ts index dc2970981..cc4792d1e 100644 --- a/packages/products/tdesign-miniprogram/src/search/props.ts +++ b/packages/products/tdesign-miniprogram/src/search/props.ts @@ -31,7 +31,7 @@ const props: TdSearchProps = { type: String, value: 'always', }, - /** 是否启用清除控件 */ + /** 是否可清空 */ clearable: { type: Boolean, value: true, diff --git a/packages/products/tdesign-miniprogram/src/search/type.ts b/packages/products/tdesign-miniprogram/src/search/type.ts index 8a5b86fa1..f20622444 100644 --- a/packages/products/tdesign-miniprogram/src/search/type.ts +++ b/packages/products/tdesign-miniprogram/src/search/type.ts @@ -46,7 +46,7 @@ export interface TdSearchProps { value?: 'always' | 'focus'; }; /** - * 是否启用清除控件 + * 是否可清空 * @default true */ clearable?: { diff --git a/packages/products/tdesign-mobile-react/src/search/defaultProps.ts b/packages/products/tdesign-mobile-react/src/search/defaultProps.ts index 632022085..75f97a0bc 100644 --- a/packages/products/tdesign-mobile-react/src/search/defaultProps.ts +++ b/packages/products/tdesign-mobile-react/src/search/defaultProps.ts @@ -7,11 +7,12 @@ import { TdSearchProps } from './type'; export const searchDefaultProps: TdSearchProps = { action: '', center: false, + clearTrigger: 'always', clearable: true, disabled: false, focus: false, leftIcon: 'search', placeholder: '', - readonly: false, + readonly: undefined, shape: 'square', }; diff --git a/packages/products/tdesign-mobile-react/src/search/search.en-US.md b/packages/products/tdesign-mobile-react/src/search/search.en-US.md index 0fb98f78d..e22fb22c4 100644 --- a/packages/products/tdesign-mobile-react/src/search/search.en-US.md +++ b/packages/products/tdesign-mobile-react/src/search/search.en-US.md @@ -11,20 +11,21 @@ style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProper action | TNode | '' | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N autocompleteOptions | Array | - | autocomplete words list。Typescript:`Array` `type AutocompleteOption = string \| { label: string \| TNode; group?: boolean }`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/search/type.ts) | N center | Boolean | false | \- | N +clearTrigger | String | always | show clear icon, clicked to clear input value。options: always / focus | N clearable | Boolean | true | \- | N disabled | Boolean | false | \- | N focus | Boolean | false | \- | N leftIcon | TNode | 'search' | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N placeholder | String | '' | \- | N prefixIcon | TElement | - | `deprecated`。Typescript:`TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N -readonly | Boolean | false | \- | N +readonly | Boolean | undefined | \- | N shape | String | 'square' | options: square/round | N suffixIcon | TElement | - | `deprecated`。Typescript:`TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N value | String | - | \- | N defaultValue | String | - | uncontrolled property | N -onActionClick | Function | | Typescript:`({}) => void`
| N +onActionClick | Function | | Typescript:`(context: { e: MouseEvent }) => void`
| N onBlur | Function | | Typescript:`(context: { value: string; e: FocusEvent }) => void`
| N -onChange | Function | | Typescript:`(value: string, context: { trigger: 'input-change' \| 'option-click'; e?: InputEvent \| MouseEvent }) => void`
| N +onChange | Function | | Typescript:`(value: string, context: { e?: InputEvent \| MouseEvent }) => void`
| N onClear | Function | | Typescript:`(context: { e: MouseEvent }) => void`
| N onFocus | Function | | Typescript:`(context: { value: string; e: FocusEvent }) => void`
| N onSearch | Function | | Typescript:`(context?: { value: string; trigger: 'submit' \| 'option-click' \| 'clear'; e?: InputEvent \| MouseEvent }) => void`
| N diff --git a/packages/products/tdesign-mobile-react/src/search/search.md b/packages/products/tdesign-mobile-react/src/search/search.md index 0df505319..e4fe8d91a 100644 --- a/packages/products/tdesign-mobile-react/src/search/search.md +++ b/packages/products/tdesign-mobile-react/src/search/search.md @@ -11,20 +11,21 @@ style | Object | - | 样式,TS 类型:`React.CSSProperties` | N action | TNode | '' | 自定义右侧操作按钮文字。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N autocompleteOptions | Array | - | 【讨论中】联想词列表,如果不存在或长度为 0 则不显示联想框。可以使用函数 `label` 自定义联想词为任意内容;也可使用插槽 `option` 定义联想词内容,插槽参数为 `{ option: AutocompleteOption; index: number }`。如果 `group` 值为 `true` 则表示当前项为分组标题。TS 类型:`Array` `type AutocompleteOption = string \| { label: string \| TNode; group?: boolean }`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts)。[详细类型定义](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/search/type.ts) | N center | Boolean | false | 是否居中 | N -clearable | Boolean | true | 是否启用清除控件 | N +clearTrigger | String | always | 清空图标触发方式,仅在输入框有值时有效。可选项:always / focus | N +clearable | Boolean | true | 是否可清空 | N disabled | Boolean | false | 是否禁用 | N focus | Boolean | false | 是否聚焦 | N leftIcon | TNode | 'search' | 左侧图标。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N placeholder | String | '' | 占位符 | N prefixIcon | TElement | - | 已废弃。前置图标,默认为搜索图标。值为 `null` 时则不显示。TS 类型:`TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N -readonly | Boolean | false | 只读状态 | N +readonly | Boolean | undefined | 只读状态 | N shape | String | 'square' | 搜索框形状。可选项:square/round | N suffixIcon | TElement | - | 已废弃。后置图标。TS 类型:`TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N value | String | - | 值 | N defaultValue | String | - | 值。非受控属性 | N -onActionClick | Function | | TS 类型:`({}) => void`
点击右侧操作按钮文字时触发 | N +onActionClick | Function | | TS 类型:`(context: { e: MouseEvent }) => void`
点击搜索框右侧操作内容时触发 | N onBlur | Function | | TS 类型:`(context: { value: string; e: FocusEvent }) => void`
失去焦点时触发 | N -onChange | Function | | TS 类型:`(value: string, context: { trigger: 'input-change' \| 'option-click'; e?: InputEvent \| MouseEvent }) => void`
搜索关键词发生变化时触发,可能场景有:搜索框内容发生变化、点击联想词 | N +onChange | Function | | TS 类型:`(value: string, context: { e?: InputEvent \| MouseEvent }) => void`
搜索关键词发生变化时触发,可能场景有:搜索框内容发生变化、点击联想词 | N onClear | Function | | TS 类型:`(context: { e: MouseEvent }) => void`
点击清除时触发 | N onFocus | Function | | TS 类型:`(context: { value: string; e: FocusEvent }) => void`
获得焦点时触发 | N onSearch | Function | | TS 类型:`(context?: { value: string; trigger: 'submit' \| 'option-click' \| 'clear'; e?: InputEvent \| MouseEvent }) => void`
【讨论中】搜索触发,包含:手机键盘提交健、联想关键词点击、清空按钮点击等 | N diff --git a/packages/products/tdesign-mobile-react/src/search/type.ts b/packages/products/tdesign-mobile-react/src/search/type.ts index 02ad2faad..fe3dcca5e 100644 --- a/packages/products/tdesign-mobile-react/src/search/type.ts +++ b/packages/products/tdesign-mobile-react/src/search/type.ts @@ -23,7 +23,12 @@ export interface TdSearchProps { */ center?: boolean; /** - * 是否启用清除控件 + * 清空图标触发方式,仅在输入框有值时有效 + * @default always + */ + clearTrigger?: 'always' | 'focus'; + /** + * 是否可清空 * @default true */ clearable?: boolean; @@ -49,7 +54,6 @@ export interface TdSearchProps { placeholder?: string; /** * 只读状态 - * @default false */ readonly?: boolean; /** @@ -68,10 +72,10 @@ export interface TdSearchProps { */ defaultValue?: string; /** - * 点击右侧操作按钮文字时触发 + * 点击搜索框右侧操作内容时触发 * @default '' */ - onActionClick?: ({}) => void; + onActionClick?: (context: { e: MouseEvent }) => void; /** * 失去焦点时触发 * @default '' @@ -81,10 +85,7 @@ export interface TdSearchProps { * 搜索关键词发生变化时触发,可能场景有:搜索框内容发生变化、点击联想词 * @default '' */ - onChange?: ( - value: string, - context: { trigger: 'input-change' | 'option-click'; e?: FormEvent | MouseEvent }, - ) => void; + onChange?: (value: string, context: { e?: FormEvent | MouseEvent }) => void; /** * 点击清除时触发 * @default '' diff --git a/packages/products/tdesign-mobile-vue/helper/attributes.json b/packages/products/tdesign-mobile-vue/helper/attributes.json index 31577cf94..21e0d80af 100644 --- a/packages/products/tdesign-mobile-vue/helper/attributes.json +++ b/packages/products/tdesign-mobile-vue/helper/attributes.json @@ -2687,6 +2687,10 @@ "type": "Number", "description": "刷新超时时间\n\ndefault: 3000\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props)" }, + "t-pull-down-refresh/success-duration": { + "type": "String|Number", + "description": "刷新成功提示展示时长,单位 'ms'\n\ndefault: 500\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props)" + }, "t-pull-down-refresh/value": { "type": "Boolean", "description": "组件状态,值为 `true` 表示下拉状态,值为 `false` 表示收起状态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props)" @@ -2976,7 +2980,7 @@ }, "t-search/action": { "type": "String|TNode", - "description": "自定义右侧操作按钮文字,如:“取消”\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" + "description": "自定义右侧操作按钮文字\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" }, "t-search/autocomplete-options": { "type": "Array", @@ -3040,7 +3044,7 @@ }, "t-search/value": { "type": "String", - "description": "值,搜索关键词\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" + "description": "值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" }, "t-search/action-click": { "type": "event", diff --git a/packages/products/tdesign-mobile-vue/helper/tags.json b/packages/products/tdesign-mobile-vue/helper/tags.json index ba0c572ff..4fd9471a5 100644 --- a/packages/products/tdesign-mobile-vue/helper/tags.json +++ b/packages/products/tdesign-mobile-vue/helper/tags.json @@ -847,6 +847,7 @@ "loading-texts", "max-bar-height", "refresh-timeout", + "success-duration", "value", "change", "refresh", diff --git a/packages/products/tdesign-mobile-vue/helper/web-types.json b/packages/products/tdesign-mobile-vue/helper/web-types.json index 58c446093..391260509 100644 --- a/packages/products/tdesign-mobile-vue/helper/web-types.json +++ b/packages/products/tdesign-mobile-vue/helper/web-types.json @@ -6131,6 +6131,13 @@ "type": "number", "default": "3000" }, + { + "name": "success-duration", + "description": "刷新成功提示展示时长,单位 'ms'", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props", + "type": "string | number", + "default": "500" + }, { "name": "value", "description": "组件状态,值为 `true` 表示下拉状态,值为 `false` 表示收起状态", @@ -6787,7 +6794,7 @@ "props": [ { "name": "action", - "description": "自定义右侧操作按钮文字,如:“取消”", + "description": "自定义右侧操作按钮文字", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props", "type": "string | TNode", "default": "''" @@ -6903,7 +6910,7 @@ }, { "name": "value", - "description": "值,搜索关键词", + "description": "值", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props", "type": "string" } @@ -6950,7 +6957,7 @@ "slots": [ { "name": "action", - "description": "自定义右侧操作按钮文字,如:“取消”", + "description": "自定义右侧操作按钮文字", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props" }, { diff --git a/packages/products/tdesign-mobile-vue/src/search/props.ts b/packages/products/tdesign-mobile-vue/src/search/props.ts index d9dba579b..3c5ca64f0 100644 --- a/packages/products/tdesign-mobile-vue/src/search/props.ts +++ b/packages/products/tdesign-mobile-vue/src/search/props.ts @@ -8,7 +8,7 @@ import { TdSearchProps } from './type'; import { PropType } from 'vue'; export default { - /** 自定义右侧操作按钮文字,如:“取消” */ + /** 自定义右侧操作按钮文字 */ action: { type: [String, Function] as PropType, default: '', @@ -19,6 +19,15 @@ export default { }, /** 是否居中 */ center: Boolean, + /** 清空图标触发方式,仅在输入框有值时有效 */ + clearTrigger: { + type: String as PropType, + default: 'always' as TdSearchProps['clearTrigger'], + validator(val: TdSearchProps['clearTrigger']): boolean { + if (!val) return true; + return ['always', 'focus'].includes(val); + }, + }, /** 是否可清空 */ clearable: { type: Boolean, @@ -65,7 +74,7 @@ export default { return ['square', 'round'].includes(val); }, }, - /** 值,搜索关键词 */ + /** 值 */ value: { type: String, default: undefined, @@ -74,7 +83,7 @@ export default { type: String, default: undefined, }, - /** 值,搜索关键词,非受控属性 */ + /** 值,非受控属性 */ defaultValue: { type: String, default: '', diff --git a/packages/products/tdesign-mobile-vue/src/search/search.en-US.md b/packages/products/tdesign-mobile-vue/src/search/search.en-US.md index b001dc078..fab5326f9 100644 --- a/packages/products/tdesign-mobile-vue/src/search/search.en-US.md +++ b/packages/products/tdesign-mobile-vue/src/search/search.en-US.md @@ -1,6 +1,7 @@ :: BASE_DOC :: ## API + ### Search Props name | type | default | description | required @@ -8,6 +9,7 @@ name | type | default | description | required action | String / Slot / Function | '' | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N autocompleteOptions | Array | - | autocomplete words list。Typescript:`Array` `type AutocompleteOption = string \| { label: string \| TNode; group?: boolean }`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/search/type.ts) | N center | Boolean | false | \- | N +clearTrigger | String | always | show clear icon, clicked to clear input value。options: always / focus | N clearable | Boolean | true | \- | N disabled | Boolean | - | \- | N focus | Boolean | false | \- | N diff --git a/packages/products/tdesign-mobile-vue/src/search/search.md b/packages/products/tdesign-mobile-vue/src/search/search.md index 8ce6c6aa5..157294bf1 100644 --- a/packages/products/tdesign-mobile-vue/src/search/search.md +++ b/packages/products/tdesign-mobile-vue/src/search/search.md @@ -1,13 +1,15 @@ :: BASE_DOC :: ## API + ### Search Props 名称 | 类型 | 默认值 | 描述 | 必传 -- | -- | -- | -- | -- -action | String / Slot / Function | '' | 自定义右侧操作按钮文字,如:“取消”。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N +action | String / Slot / Function | '' | 自定义右侧操作按钮文字。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N autocompleteOptions | Array | - | 【讨论中】联想词列表,如果不存在或长度为 0 则不显示联想框。可以使用函数 `label` 自定义联想词为任意内容;也可使用插槽 `option` 定义联想词内容,插槽参数为 `{ option: AutocompleteOption; index: number }`。如果 `group` 值为 `true` 则表示当前项为分组标题。TS 类型:`Array` `type AutocompleteOption = string \| { label: string \| TNode; group?: boolean }`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts)。[详细类型定义](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/search/type.ts) | N center | Boolean | false | 是否居中 | N +clearTrigger | String | always | 清空图标触发方式,仅在输入框有值时有效。可选项:always / focus | N clearable | Boolean | true | 是否可清空 | N disabled | Boolean | - | 禁用状态 | N focus | Boolean | false | 是否聚焦 | N @@ -18,8 +20,8 @@ placeholder | String | '' | 占位符 | N readonly | Boolean | undefined | 只读状态 | N resultList | Array | [] | 预览结果列表。TS 类型:`Array` | N shape | String | 'square' | 搜索框形状。可选项:square/round | N -value | String | - | 值,搜索关键词。支持语法糖 `v-model` 或 `v-model:value` | N -defaultValue | String | - | 值,搜索关键词。非受控属性 | N +value | String | - | 值。支持语法糖 `v-model` 或 `v-model:value` | N +defaultValue | String | - | 值。非受控属性 | N onActionClick | Function | | TS 类型:`(context: { e: MouseEvent }) => void`
点击搜索框右侧操作内容时触发 | N onBlur | Function | | TS 类型:`(context: { value: string; e: FocusEvent }) => void`
失去焦点时触发 | N onChange | Function | | TS 类型:`(value: string, context: { e?: InputEvent \| MouseEvent }) => void`
搜索关键词发生变化时触发,可能场景有:搜索框内容发生变化、点击联想词 | N diff --git a/packages/products/tdesign-mobile-vue/src/search/type.ts b/packages/products/tdesign-mobile-vue/src/search/type.ts index 08334196c..d2a45b834 100644 --- a/packages/products/tdesign-mobile-vue/src/search/type.ts +++ b/packages/products/tdesign-mobile-vue/src/search/type.ts @@ -8,7 +8,7 @@ import { TNode } from '../common'; export interface TdSearchProps { /** - * 自定义右侧操作按钮文字,如:“取消” + * 自定义右侧操作按钮文字 * @default '' */ action?: string | TNode; @@ -21,6 +21,11 @@ export interface TdSearchProps { * @default false */ center?: boolean; + /** + * 清空图标触发方式,仅在输入框有值时有效 + * @default always + */ + clearTrigger?: 'always' | 'focus'; /** * 是否可清空 * @default true @@ -68,17 +73,17 @@ export interface TdSearchProps { */ shape?: 'square' | 'round'; /** - * 值,搜索关键词 + * 值 * @default '' */ value?: string; /** - * 值,搜索关键词,非受控属性 + * 值,非受控属性 * @default '' */ defaultValue?: string; /** - * 值,搜索关键词 + * 值 * @default '' */ modelValue?: string; diff --git a/packages/products/tdesign-vue-next/packages/tdesign-vue-next/global.d.ts b/packages/products/tdesign-vue-next/packages/tdesign-vue-next/global.d.ts index bdc41f7ed..347f9745c 100644 --- a/packages/products/tdesign-vue-next/packages/tdesign-vue-next/global.d.ts +++ b/packages/products/tdesign-vue-next/packages/tdesign-vue-next/global.d.ts @@ -100,7 +100,6 @@ declare module 'vue' { TRangeInputPopup: typeof import('tdesign-vue-next')['RangeInputPopup']; TRate: typeof import('tdesign-vue-next')['Rate']; TRow: typeof import('tdesign-vue-next')['Row']; - TSearch: typeof import('tdesign-vue-next')['Search']; TSelect: typeof import('tdesign-vue-next')['Select']; TSelectInput: typeof import('tdesign-vue-next')['SelectInput']; TSkeleton: typeof import('tdesign-vue-next')['Skeleton']; diff --git a/packages/products/tdesign-vue-next/packages/tdesign-vue-next/helper/attributes.json b/packages/products/tdesign-vue-next/packages/tdesign-vue-next/helper/attributes.json index 03198cbcc..94a6ccb1d 100644 --- a/packages/products/tdesign-vue-next/packages/tdesign-vue-next/helper/attributes.json +++ b/packages/products/tdesign-vue-next/packages/tdesign-vue-next/helper/attributes.json @@ -6300,106 +6300,6 @@ "type": "String", "description": "自定义元素标签\n\ndefault: div\n\n[docs](https://tdesign.tencent.com/vue-next/components/row?tab=api#row-props)" }, - "t-search/auto-width": { - "type": "Boolean", - "description": "搜索框宽度自适应\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/autocomplete-options": { - "type": "Array", - "description": "autocomplete words list\n\n联想词列表,如果不存在或长度为 0 则不显示联想框。可以使用函数 `label` 自定义联想词为任意内容;也可使用插槽 `option` 定义联想词内容,插槽参数为 `{ option: AutocompleteOption; index: number }`。如果 `group` 值为 `true` 则表示当前项为分组标题\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/autofocus": { - "type": "Boolean", - "description": "auto focus as default\n\n是否默认聚焦\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/borderless": { - "type": "Boolean", - "description": "无边框模式\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/clearable": { - "type": "Boolean", - "description": "是否启用清除控件\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/disabled": { - "type": "Boolean", - "description": "是否禁用\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/filter": { - "type": "Function", - "description": "自定义过滤方法,用于对现有数据进行搜索过滤,判断是否过滤某一项数据。其中参数 `keyword` 指当前的搜索词,参数 `option` 指每一项联想词,函数返回 true 则显示当前联想词,函数返回 `false` 则隐藏当前联想词\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/input-props": { - "type": "Object", - "description": "透传 Input 组件全部属性\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/label": { - "type": "String|TNode", - "description": "搜索框内部左侧内容,位于 `prefixIcon` 左侧\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/multiline": { - "type": "Boolean", - "description": "批量搜索模式,也叫多行搜索,输入框表现为类似 `textarea`,允许输入多行搜索内容\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/placeholder": { - "type": "String", - "description": "占位符\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/popup-props": { - "type": "Object", - "description": "透传 Popup 组件全部属性\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/prefix-icon": { - "type": "TNode", - "description": "前置图标\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/readonly": { - "type": "Boolean", - "description": "只读状态\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/select-input-props": { - "type": "Object", - "description": "基于 SelectInput 组件开发,透传组件全部属性\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/suffix": { - "type": "String|TNode", - "description": "搜索框内部右侧内容,位于 `suffixIcon` 右侧\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/suffix-icon": { - "type": "TNode", - "description": "后置图标,默认为搜索图标。值为 `null` 时则不显示\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/textarea-props": { - "type": "Object", - "description": "透传 Textarea 组件全部属性\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/value": { - "type": "String", - "description": "值\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props)" - }, - "t-search/blur": { - "type": "event", - "description": "失去焦点时触发\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-events)" - }, - "t-search/change": { - "type": "event", - "description": "搜索关键词发生变化时触发,可能场景有:搜索框内容发生变化、点击联想词\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-events)" - }, - "t-search/clear": { - "type": "event", - "description": "点击清除时触发\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-events)" - }, - "t-search/enter": { - "type": "event", - "description": "回车键按下时触发\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-events)" - }, - "t-search/focus": { - "type": "event", - "description": "获得焦点时触发\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-events)" - }, - "t-search/search": { - "type": "event", - "description": "搜索触发,包含:Enter 键、联想关键词点击、清空按钮点击、搜索框后置内容点击(含后置图标)、搜索框前置内容点击(含前置图标)等\n\n[docs](https://tdesign.tencent.com/vue-next/components/search?tab=api#search-events)" - }, "t-select/auto-width": { "type": "Boolean", "description": "宽度随内容自适应\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/vue-next/components/select?tab=api#select-props)" diff --git a/packages/products/tdesign-vue-next/packages/tdesign-vue-next/helper/tags.json b/packages/products/tdesign-vue-next/packages/tdesign-vue-next/helper/tags.json index 1dbf818b7..698f0fcec 100644 --- a/packages/products/tdesign-vue-next/packages/tdesign-vue-next/helper/tags.json +++ b/packages/products/tdesign-vue-next/packages/tdesign-vue-next/helper/tags.json @@ -1868,36 +1868,6 @@ ], "description": "Row\n\n栅格-横向\n\n[docs](https://tdesign.tencent.com/vue-next/components/row)" }, - "t-search": { - "attributes": [ - "auto-width", - "autocomplete-options", - "autofocus", - "borderless", - "clearable", - "disabled", - "filter", - "input-props", - "label", - "multiline", - "placeholder", - "popup-props", - "prefix-icon", - "readonly", - "select-input-props", - "suffix", - "suffix-icon", - "textarea-props", - "value", - "blur", - "change", - "clear", - "enter", - "focus", - "search" - ], - "description": "Search\n\n搜索\n\n[docs](https://tdesign.tencent.com/vue-next/components/search)" - }, "t-select": { "attributes": [ "auto-width", diff --git a/packages/products/tdesign-vue-next/packages/tdesign-vue-next/helper/web-types.json b/packages/products/tdesign-vue-next/packages/tdesign-vue-next/helper/web-types.json index c91ee59b3..b72f20606 100644 --- a/packages/products/tdesign-vue-next/packages/tdesign-vue-next/helper/web-types.json +++ b/packages/products/tdesign-vue-next/packages/tdesign-vue-next/helper/web-types.json @@ -14171,206 +14171,6 @@ ], "slots": [] }, - { - "name": "t-search", - "source": { - "symbol": "Search" - }, - "description": "Search\n\n搜索", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search", - "props": [ - { - "name": "auto-width", - "description": "搜索框宽度自适应", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "boolean", - "default": "false" - }, - { - "name": "autocomplete-options", - "description": "autocomplete words list\n\n联想词列表,如果不存在或长度为 0 则不显示联想框。可以使用函数 `label` 自定义联想词为任意内容;也可使用插槽 `option` 定义联想词内容,插槽参数为 `{ option: AutocompleteOption; index: number }`。如果 `group` 值为 `true` 则表示当前项为分组标题", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "Array" - }, - { - "name": "autofocus", - "description": "auto focus as default\n\n是否默认聚焦", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "boolean", - "default": "false" - }, - { - "name": "borderless", - "description": "无边框模式", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "boolean", - "default": "true" - }, - { - "name": "clearable", - "description": "是否启用清除控件", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "boolean", - "default": "true" - }, - { - "name": "disabled", - "description": "是否禁用", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "boolean", - "default": "false" - }, - { - "name": "filter", - "description": "自定义过滤方法,用于对现有数据进行搜索过滤,判断是否过滤某一项数据。其中参数 `keyword` 指当前的搜索词,参数 `option` 指每一项联想词,函数返回 true 则显示当前联想词,函数返回 `false` 则隐藏当前联想词", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "(keyword: string, option: any) => boolean | Promise" - }, - { - "name": "input-props", - "description": "透传 Input 组件全部属性", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "InputProps" - }, - { - "name": "label", - "description": "搜索框内部左侧内容,位于 `prefixIcon` 左侧", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "string | TNode", - "default": "''" - }, - { - "name": "multiline", - "description": "批量搜索模式,也叫多行搜索,输入框表现为类似 `textarea`,允许输入多行搜索内容", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "boolean", - "default": "false" - }, - { - "name": "placeholder", - "description": "占位符", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "string", - "default": "''" - }, - { - "name": "popup-props", - "description": "透传 Popup 组件全部属性", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "PopupProps" - }, - { - "name": "prefix-icon", - "description": "前置图标", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "TNode" - }, - { - "name": "readonly", - "description": "只读状态", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "boolean", - "default": "undefined" - }, - { - "name": "select-input-props", - "description": "基于 SelectInput 组件开发,透传组件全部属性", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "SelectInputProps" - }, - { - "name": "suffix", - "description": "搜索框内部右侧内容,位于 `suffixIcon` 右侧", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "string | TNode", - "default": "''" - }, - { - "name": "suffix-icon", - "description": "后置图标,默认为搜索图标。值为 `null` 时则不显示", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "TNode" - }, - { - "name": "textarea-props", - "description": "透传 Textarea 组件全部属性", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "TextareaProps" - }, - { - "name": "value", - "description": "值", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props", - "type": "string" - } - ], - "js": { - "events": [ - { - "name": "blur", - "description": "失去焦点时触发", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-events" - }, - { - "name": "change", - "description": "搜索关键词发生变化时触发,可能场景有:搜索框内容发生变化、点击联想词", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-events" - }, - { - "name": "clear", - "description": "点击清除时触发", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-events" - }, - { - "name": "enter", - "description": "回车键按下时触发", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-events" - }, - { - "name": "focus", - "description": "获得焦点时触发", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-events" - }, - { - "name": "search", - "description": "搜索触发,包含:Enter 键、联想关键词点击、清空按钮点击、搜索框后置内容点击(含后置图标)、搜索框前置内容点击(含前置图标)等", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-events" - } - ] - }, - "slots": [ - { - "name": "label", - "description": "搜索框内部左侧内容,位于 `prefixIcon` 左侧", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props" - }, - { - "name": "prefixIcon", - "description": "前置图标", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props" - }, - { - "name": "prefix-icon", - "description": "前置图标", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props" - }, - { - "name": "suffix", - "description": "搜索框内部右侧内容,位于 `suffixIcon` 右侧", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props" - }, - { - "name": "suffixIcon", - "description": "后置图标,默认为搜索图标。值为 `null` 时则不显示", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props" - }, - { - "name": "suffix-icon", - "description": "后置图标,默认为搜索图标。值为 `null` 时则不显示", - "doc-url": "https://tdesign.tencent.com/vue-next/components/search?tab=api#search-props" - } - ] - }, { "name": "t-select", "source": { diff --git a/packages/products/tdesign-vue/global.d.ts b/packages/products/tdesign-vue/global.d.ts index 7ae0c3409..d8cd2f08b 100644 --- a/packages/products/tdesign-vue/global.d.ts +++ b/packages/products/tdesign-vue/global.d.ts @@ -100,7 +100,6 @@ declare module '@vue/runtime-core' { TRangeInputPopup: typeof import('tdesign-vue')['RangeInputPopup']; TRate: typeof import('tdesign-vue')['Rate']; TRow: typeof import('tdesign-vue')['Row']; - TSearch: typeof import('tdesign-vue')['Search']; TSelect: typeof import('tdesign-vue')['Select']; TSelectInput: typeof import('tdesign-vue')['SelectInput']; TSkeleton: typeof import('tdesign-vue')['Skeleton']; diff --git a/packages/products/tdesign-vue/helper/attributes.json b/packages/products/tdesign-vue/helper/attributes.json index b333e99ad..85977d40c 100644 --- a/packages/products/tdesign-vue/helper/attributes.json +++ b/packages/products/tdesign-vue/helper/attributes.json @@ -6300,106 +6300,6 @@ "type": "String", "description": "自定义元素标签\n\ndefault: div\n\n[docs](https://tdesign.tencent.com/vue/components/row?tab=api#row-props)" }, - "t-search/auto-width": { - "type": "Boolean", - "description": "搜索框宽度自适应\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/autocomplete-options": { - "type": "Array", - "description": "autocomplete words list\n\n联想词列表,如果不存在或长度为 0 则不显示联想框。可以使用函数 `label` 自定义联想词为任意内容;也可使用插槽 `option` 定义联想词内容,插槽参数为 `{ option: AutocompleteOption; index: number }`。如果 `group` 值为 `true` 则表示当前项为分组标题\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/autofocus": { - "type": "Boolean", - "description": "auto focus as default\n\n是否默认聚焦\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/borderless": { - "type": "Boolean", - "description": "无边框模式\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/clearable": { - "type": "Boolean", - "description": "是否启用清除控件\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/disabled": { - "type": "Boolean", - "description": "是否禁用\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/filter": { - "type": "Function", - "description": "自定义过滤方法,用于对现有数据进行搜索过滤,判断是否过滤某一项数据。其中参数 `keyword` 指当前的搜索词,参数 `option` 指每一项联想词,函数返回 true 则显示当前联想词,函数返回 `false` 则隐藏当前联想词\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/input-props": { - "type": "Object", - "description": "透传 Input 组件全部属性\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/label": { - "type": "String|TNode", - "description": "搜索框内部左侧内容,位于 `prefixIcon` 左侧\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/multiline": { - "type": "Boolean", - "description": "批量搜索模式,也叫多行搜索,输入框表现为类似 `textarea`,允许输入多行搜索内容\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/placeholder": { - "type": "String", - "description": "占位符\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/popup-props": { - "type": "Object", - "description": "透传 Popup 组件全部属性\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/prefix-icon": { - "type": "TNode", - "description": "前置图标\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/readonly": { - "type": "Boolean", - "description": "只读状态\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/select-input-props": { - "type": "Object", - "description": "基于 SelectInput 组件开发,透传组件全部属性\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/suffix": { - "type": "String|TNode", - "description": "搜索框内部右侧内容,位于 `suffixIcon` 右侧\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/suffix-icon": { - "type": "TNode", - "description": "后置图标,默认为搜索图标。值为 `null` 时则不显示\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/textarea-props": { - "type": "Object", - "description": "透传 Textarea 组件全部属性\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/value": { - "type": "String", - "description": "值\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-props)" - }, - "t-search/blur": { - "type": "event", - "description": "失去焦点时触发\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-events)" - }, - "t-search/change": { - "type": "event", - "description": "搜索关键词发生变化时触发,可能场景有:搜索框内容发生变化、点击联想词\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-events)" - }, - "t-search/clear": { - "type": "event", - "description": "点击清除时触发\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-events)" - }, - "t-search/enter": { - "type": "event", - "description": "回车键按下时触发\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-events)" - }, - "t-search/focus": { - "type": "event", - "description": "获得焦点时触发\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-events)" - }, - "t-search/search": { - "type": "event", - "description": "搜索触发,包含:Enter 键、联想关键词点击、清空按钮点击、搜索框后置内容点击(含后置图标)、搜索框前置内容点击(含前置图标)等\n\n[docs](https://tdesign.tencent.com/vue/components/search?tab=api#search-events)" - }, "t-select/auto-width": { "type": "Boolean", "description": "宽度随内容自适应\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/vue/components/select?tab=api#select-props)" diff --git a/packages/products/tdesign-vue/helper/tags.json b/packages/products/tdesign-vue/helper/tags.json index 9d5f6ea47..66ce0e7ab 100644 --- a/packages/products/tdesign-vue/helper/tags.json +++ b/packages/products/tdesign-vue/helper/tags.json @@ -1868,36 +1868,6 @@ ], "description": "Row\n\n栅格-横向\n\n[docs](https://tdesign.tencent.com/vue/components/row)" }, - "t-search": { - "attributes": [ - "auto-width", - "autocomplete-options", - "autofocus", - "borderless", - "clearable", - "disabled", - "filter", - "input-props", - "label", - "multiline", - "placeholder", - "popup-props", - "prefix-icon", - "readonly", - "select-input-props", - "suffix", - "suffix-icon", - "textarea-props", - "value", - "blur", - "change", - "clear", - "enter", - "focus", - "search" - ], - "description": "Search\n\n搜索\n\n[docs](https://tdesign.tencent.com/vue/components/search)" - }, "t-select": { "attributes": [ "auto-width", diff --git a/packages/products/tdesign-vue/helper/web-types.json b/packages/products/tdesign-vue/helper/web-types.json index 2edb1c717..c22ae1624 100644 --- a/packages/products/tdesign-vue/helper/web-types.json +++ b/packages/products/tdesign-vue/helper/web-types.json @@ -14171,206 +14171,6 @@ ], "slots": [] }, - { - "name": "t-search", - "source": { - "symbol": "Search" - }, - "description": "Search\n\n搜索", - "doc-url": "https://tdesign.tencent.com/vue/components/search", - "props": [ - { - "name": "auto-width", - "description": "搜索框宽度自适应", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "boolean", - "default": "false" - }, - { - "name": "autocomplete-options", - "description": "autocomplete words list\n\n联想词列表,如果不存在或长度为 0 则不显示联想框。可以使用函数 `label` 自定义联想词为任意内容;也可使用插槽 `option` 定义联想词内容,插槽参数为 `{ option: AutocompleteOption; index: number }`。如果 `group` 值为 `true` 则表示当前项为分组标题", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "Array" - }, - { - "name": "autofocus", - "description": "auto focus as default\n\n是否默认聚焦", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "boolean", - "default": "false" - }, - { - "name": "borderless", - "description": "无边框模式", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "boolean", - "default": "true" - }, - { - "name": "clearable", - "description": "是否启用清除控件", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "boolean", - "default": "true" - }, - { - "name": "disabled", - "description": "是否禁用", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "boolean", - "default": "false" - }, - { - "name": "filter", - "description": "自定义过滤方法,用于对现有数据进行搜索过滤,判断是否过滤某一项数据。其中参数 `keyword` 指当前的搜索词,参数 `option` 指每一项联想词,函数返回 true 则显示当前联想词,函数返回 `false` 则隐藏当前联想词", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "(keyword: string, option: any) => boolean | Promise" - }, - { - "name": "input-props", - "description": "透传 Input 组件全部属性", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "InputProps" - }, - { - "name": "label", - "description": "搜索框内部左侧内容,位于 `prefixIcon` 左侧", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "string | TNode", - "default": "''" - }, - { - "name": "multiline", - "description": "批量搜索模式,也叫多行搜索,输入框表现为类似 `textarea`,允许输入多行搜索内容", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "boolean", - "default": "false" - }, - { - "name": "placeholder", - "description": "占位符", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "string", - "default": "''" - }, - { - "name": "popup-props", - "description": "透传 Popup 组件全部属性", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "PopupProps" - }, - { - "name": "prefix-icon", - "description": "前置图标", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "TNode" - }, - { - "name": "readonly", - "description": "只读状态", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "boolean", - "default": "undefined" - }, - { - "name": "select-input-props", - "description": "基于 SelectInput 组件开发,透传组件全部属性", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "SelectInputProps" - }, - { - "name": "suffix", - "description": "搜索框内部右侧内容,位于 `suffixIcon` 右侧", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "string | TNode", - "default": "''" - }, - { - "name": "suffix-icon", - "description": "后置图标,默认为搜索图标。值为 `null` 时则不显示", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "TNode" - }, - { - "name": "textarea-props", - "description": "透传 Textarea 组件全部属性", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "TextareaProps" - }, - { - "name": "value", - "description": "值", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props", - "type": "string" - } - ], - "js": { - "events": [ - { - "name": "blur", - "description": "失去焦点时触发", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-events" - }, - { - "name": "change", - "description": "搜索关键词发生变化时触发,可能场景有:搜索框内容发生变化、点击联想词", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-events" - }, - { - "name": "clear", - "description": "点击清除时触发", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-events" - }, - { - "name": "enter", - "description": "回车键按下时触发", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-events" - }, - { - "name": "focus", - "description": "获得焦点时触发", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-events" - }, - { - "name": "search", - "description": "搜索触发,包含:Enter 键、联想关键词点击、清空按钮点击、搜索框后置内容点击(含后置图标)、搜索框前置内容点击(含前置图标)等", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-events" - } - ] - }, - "slots": [ - { - "name": "label", - "description": "搜索框内部左侧内容,位于 `prefixIcon` 左侧", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props" - }, - { - "name": "prefixIcon", - "description": "前置图标", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props" - }, - { - "name": "prefix-icon", - "description": "前置图标", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props" - }, - { - "name": "suffix", - "description": "搜索框内部右侧内容,位于 `suffixIcon` 右侧", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props" - }, - { - "name": "suffixIcon", - "description": "后置图标,默认为搜索图标。值为 `null` 时则不显示", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props" - }, - { - "name": "suffix-icon", - "description": "后置图标,默认为搜索图标。值为 `null` 时则不显示", - "doc-url": "https://tdesign.tencent.com/vue/components/search?tab=api#search-props" - } - ] - }, { "name": "t-select", "source": { diff --git a/packages/scripts/api.json b/packages/scripts/api.json index d07be6bcf..55d817c14 100644 --- a/packages/scripts/api.json +++ b/packages/scripts/api.json @@ -101417,6 +101417,7 @@ { "id": 1542, "platform_framework": [ + "8", "16", "32", "64" @@ -101448,6 +101449,7 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ + "Vue(Mobile)", "React(Mobile)", "Angular(Mobile)", "Miniprogram" @@ -101457,45 +101459,6 @@ "TNode" ] }, - { - "id": 1712657362, - "platform_framework": [ - "8" - ], - "component": "Search", - "field_category": 1, - "field_name": "action", - "field_type": [ - "1", - "64" - ], - "field_default_value": "''", - "field_enum": "", - "field_desc_zh": "自定义右侧操作按钮文字,如:“取消”", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2024-04-09 10:09:22", - "update_time": "2024-04-09 10:09:22", - "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)" - ], - "field_type_text": [ - "String", - "TNode" - ] - }, { "id": 1712031065, "platform_framework": [ @@ -101570,154 +101533,6 @@ "Boolean" ] }, - { - "id": 2864, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 1, - "field_name": "autoWidth", - "field_type": [ - "4" - ], - "field_default_value": "false", - "field_enum": "", - "field_desc_zh": "搜索框宽度自适应", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2022-07-20 15:18:18", - "update_time": "2022-07-20 15:18:18", - "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": 2843, - "platform_framework": [], - "component": "Search", - "field_category": 1, - "field_name": "autocompleteOptions", - "field_type": [ - "16" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "联想词列表,如果不存在或长度为 0 则不显示联想框。支持自定义联想词为任意内容。如果 `group` 值为 `true` 则表示当前项为分组标题", - "field_desc_en": "autocomplete words list", - "field_required": 0, - "event_input": "", - "create_time": "2022-07-18 12:03:33", - "update_time": "2022-07-20 15:34:41", - "event_output": null, - "custom_field_type": "Array【type AutocompleteOption = string | { label: string | TNode; group?: 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": [], - "field_type_text": [ - "Array" - ] - }, - { - "id": 2865, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 1, - "field_name": "autocompleteOptions", - "field_type": [ - "16" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "联想词列表,如果不存在或长度为 0 则不显示联想框。可以使用函数 `label` 自定义联想词为任意内容;也可使用插槽 `option` 定义联想词内容,插槽参数为 `{ option: AutocompleteOption; index: number }`。如果 `group` 值为 `true` 则表示当前项为分组标题", - "field_desc_en": "autocomplete words list", - "field_required": 0, - "event_input": "", - "create_time": "2022-07-20 15:32:55", - "update_time": "2022-07-20 15:35:26", - "event_output": null, - "custom_field_type": "Array【type AutocompleteOption = string | { label: string | TNode; group?: 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": [ - "Array" - ] - }, - { - "id": 2866, - "platform_framework": [], - "component": "Search", - "field_category": 1, - "field_name": "autocompleteOptions", - "field_type": [ - "16" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "【开发中】联想词列表,如果不存在或长度为 0 则不显示联想框。可以使用函数 `label` 自定义联想词为任意内容;也可使用插槽 `option` 定义联想词内容,插槽参数为 `{ option: AutocompleteOption; index: number }`。如果 `group` 值为 `true` 则表示当前项为分组标题", - "field_desc_en": "autocomplete words list", - "field_required": 0, - "event_input": "", - "create_time": "2022-07-20 15:35:45", - "update_time": "2022-07-20 15:35:45", - "event_output": null, - "custom_field_type": "Array【type AutocompleteOption = string | { label: string; group?: 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": [], - "field_type_text": [ - "Array" - ] - }, { "id": 3436, "platform_framework": [ @@ -101759,88 +101574,6 @@ "Array" ] }, - { - "id": 1543, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 1, - "field_name": "autofocus", - "field_type": [ - "4" - ], - "field_default_value": "false", - "field_enum": "", - "field_desc_zh": "是否默认聚焦", - "field_desc_en": "auto focus as default", - "field_required": 0, - "event_input": "", - "create_time": "2021-09-01 08:14:56", - "update_time": "2022-07-18 11:39:43", - "event_output": null, - "custom_field_type": null, - "syntactic_sugar": null, - "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)" - ], - "field_type_text": [ - "Boolean" - ] - }, - { - "id": 2863, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 1, - "field_name": "borderless", - "field_type": [ - "4" - ], - "field_default_value": "true", - "field_enum": "", - "field_desc_zh": "无边框模式", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2022-07-20 15:17:38", - "update_time": "2022-07-20 15:17:38", - "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": 1544, "platform_framework": [ @@ -101928,9 +101661,7 @@ { "id": 2780, "platform_framework": [ - "1", - "2", - "4", + "8", "16", "32", "64" @@ -101943,7 +101674,7 @@ ], "field_default_value": "true", "field_enum": "", - "field_desc_zh": "是否启用清除控件", + "field_desc_zh": "是否可清空", "field_desc_en": null, "field_required": 0, "event_input": "", @@ -101961,9 +101692,7 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)", - "Angular(PC)", + "Vue(Mobile)", "React(Mobile)", "Angular(Mobile)", "Miniprogram" @@ -101972,43 +101701,6 @@ "Boolean" ] }, - { - "id": 1712657403, - "platform_framework": [ - "8" - ], - "component": "Search", - "field_category": 1, - "field_name": "clearable", - "field_type": [ - "4" - ], - "field_default_value": "true", - "field_enum": "", - "field_desc_zh": "是否可清空", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2024-04-09 10:10:03", - "update_time": "2024-04-09 10:10:03", - "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)" - ], - "field_type_text": [ - "Boolean" - ] - }, { "id": 1712030357, "platform_framework": [ @@ -102160,9 +101852,6 @@ { "id": 1541, "platform_framework": [ - "1", - "2", - "4", "16", "32", "64" @@ -102193,9 +101882,6 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)", - "Angular(PC)", "React(Mobile)", "Angular(Mobile)", "Miniprogram" @@ -102241,47 +101927,6 @@ "Boolean" ] }, - { - "id": 2853, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 1, - "field_name": "filter", - "field_type": [ - "32" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "自定义过滤方法,用于对现有数据进行搜索过滤,判断是否过滤某一项数据。其中参数 `keyword` 指当前的搜索词,参数 `option` 指每一项联想词,函数返回 true 则显示当前联想词,函数返回 `false` 则隐藏当前联想词", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2022-07-19 10:28:46", - "update_time": "2022-07-20 15:25:29", - "event_output": null, - "custom_field_type": "(keyword: string, option: any) => boolean | Promise", - "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": [ - "Function" - ] - }, { "id": 2859, "platform_framework": [ @@ -102362,90 +102007,6 @@ "Boolean" ] }, - { - "id": 2845, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 1, - "field_name": "inputProps", - "field_type": [ - "8" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "透传 Input 组件全部属性", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2022-07-18 12:10:29", - "update_time": "2022-07-18 12:10:29", - "event_output": null, - "custom_field_type": "InputProps【import { InputProps } from '@Input'】", - "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": 1546, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 1, - "field_name": "label", - "field_type": [ - "1", - "64" - ], - "field_default_value": "''", - "field_enum": "", - "field_desc_zh": "搜索框内部左侧内容,位于 `prefixIcon` 左侧", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2021-09-01 08:16:49", - "update_time": "2022-07-20 14:49:10", - "event_output": null, - "custom_field_type": null, - "syntactic_sugar": null, - "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)" - ], - "field_type_text": [ - "String", - "TNode" - ] - }, { "id": 3386, "platform_framework": [ @@ -102650,57 +102211,17 @@ "field_category": 1, "field_name": "maxlength", "field_type": [ - "1", - "2" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "用户最多可以输入的文本长度,一个中文等于一个计数长度。默认为空,不限制输入长度。`maxcharacter` 和 `maxlength` 二选一使用", - "field_desc_en": "The maximum length of text that the user can enter. One Chinese character is equal to one count length. By default, it is empty, and the input length is not limited. Use either `maxcharacter` or `maxlength`", - "field_required": 0, - "event_input": "", - "create_time": "2024-12-11 02:17:19", - "update_time": "2024-12-11 02:17:19", - "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)" - ], - "field_type_text": [ - "String", - "Number" - ] - }, - { - "id": 2841, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 1, - "field_name": "multiline", - "field_type": [ - "4" + "1", + "2" ], - "field_default_value": "false", + "field_default_value": "", "field_enum": "", - "field_desc_zh": "批量搜索模式,也叫多行搜索,输入框表现为类似 `textarea`,允许输入多行搜索内容", - "field_desc_en": null, + "field_desc_zh": "用户最多可以输入的文本长度,一个中文等于一个计数长度。默认为空,不限制输入长度。`maxcharacter` 和 `maxlength` 二选一使用", + "field_desc_en": "The maximum length of text that the user can enter. One Chinese character is equal to one count length. By default, it is empty, and the input length is not limited. Use either `maxcharacter` or `maxlength`", "field_required": 0, "event_input": "", - "create_time": "2022-07-18 12:02:02", - "update_time": "2022-07-20 15:11:25", + "create_time": "2024-12-11 02:17:19", + "update_time": "2024-12-11 02:17:19", "event_output": null, "custom_field_type": null, "syntactic_sugar": null, @@ -102713,20 +102234,16 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)", - "Angular(PC)" + "Vue(Mobile)" ], "field_type_text": [ - "Boolean" + "String", + "Number" ] }, { "id": 1540, "platform_framework": [ - "1", - "2", - "4", "8", "16", "32", @@ -102758,9 +102275,6 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)", - "Angular(PC)", "Vue(Mobile)", "React(Mobile)", "Angular(Mobile)", @@ -102844,47 +102358,6 @@ "String" ] }, - { - "id": 2847, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 1, - "field_name": "popupProps", - "field_type": [ - "8" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "透传 Popup 组件全部属性", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2022-07-18 12:19:40", - "update_time": "2022-07-18 12:19:40", - "event_output": null, - "custom_field_type": "PopupProps【import { PopupProps } from '@Popup'】", - "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": 1547, "platform_framework": [], @@ -102959,53 +102432,9 @@ "TNode" ] }, - { - "id": 2854, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 1, - "field_name": "prefixIcon", - "field_type": [ - "64" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "前置图标", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2022-07-20 14:36:43", - "update_time": "2022-07-20 14:36:43", - "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": [ - "TNode" - ] - }, { "id": 2862, "platform_framework": [ - "1", - "2", - "4", "8", "16", "32", @@ -103037,9 +102466,6 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)", - "Angular(PC)", "Vue(Mobile)", "React(Mobile)", "Angular(Mobile)", @@ -103127,47 +102553,6 @@ "TNode" ] }, - { - "id": 2844, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 1, - "field_name": "selectInputProps", - "field_type": [ - "8" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "基于 SelectInput 组件开发,透传组件全部属性", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2022-07-18 12:08:14", - "update_time": "2022-07-21 02:37:08", - "event_output": null, - "custom_field_type": "SelectInputProps【import { SelectInputProps } from '@SelectInput'】", - "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": 1712031040, "platform_framework": [ @@ -103285,49 +102670,6 @@ "String" ] }, - { - "id": 2858, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 1, - "field_name": "suffix", - "field_type": [ - "1", - "64" - ], - "field_default_value": "''", - "field_enum": "", - "field_desc_zh": "搜索框内部右侧内容,位于 `suffixIcon` 右侧", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2022-07-20 14:46:51", - "update_time": "2022-07-20 14:47:48", - "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", - "TNode" - ] - }, { "id": 2855, "platform_framework": [ @@ -103354,118 +102696,39 @@ "readonly": 1, "html_attribute": 0, "trigger_elements": "", - "deprecated": 1, - "version": "", - "test_description": null, - "support_default_value": 0, - "field_category_text": "Props", - "platform_framework_text": [ - "React(Mobile)", - "Angular(Mobile)" - ], - "field_type_text": [ - "TNode" - ] - }, - { - "id": 2856, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 1, - "field_name": "suffixIcon", - "field_type": [ - "64" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "后置图标,默认为搜索图标。值为 `null` 时则不显示", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2022-07-20 14:38:25", - "update_time": "2022-07-20 14:46:08", - "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": [ - "TNode" - ] - }, - { - "id": 2857, - "platform_framework": [], - "component": "Search", - "field_category": 1, - "field_name": "suffixIcon", - "field_type": [ - "1", - "64" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "已废弃。后置图标", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2022-07-20 14:39:48", - "update_time": "2022-07-20 14:39:48", - "event_output": null, - "custom_field_type": null, - "syntactic_sugar": null, - "readonly": 1, - "html_attribute": 0, - "trigger_elements": "", - "deprecated": 0, + "deprecated": 1, "version": "", "test_description": null, "support_default_value": 0, "field_category_text": "Props", - "platform_framework_text": [], + "platform_framework_text": [ + "React(Mobile)", + "Angular(Mobile)" + ], "field_type_text": [ - "String", "TNode" ] }, { - "id": 2867, - "platform_framework": [ - "1", - "2", - "4" - ], + "id": 2857, + "platform_framework": [], "component": "Search", "field_category": 1, - "field_name": "textareaProps", + "field_name": "suffixIcon", "field_type": [ - "8" + "1", + "64" ], "field_default_value": "", "field_enum": "", - "field_desc_zh": "透传 Textarea 组件全部属性", + "field_desc_zh": "已废弃。后置图标", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2022-07-21 02:36:44", - "update_time": "2022-07-21 03:04:07", + "create_time": "2022-07-20 14:39:48", + "update_time": "2022-07-20 14:39:48", "event_output": null, - "custom_field_type": "TextareaProps【import { TextareaProps } from '@Textarea'】", + "custom_field_type": null, "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, @@ -103475,13 +102738,10 @@ "test_description": null, "support_default_value": 0, "field_category_text": "Props", - "platform_framework_text": [ - "Vue(PC)", - "React(PC)", - "Angular(PC)" - ], + "platform_framework_text": [], "field_type_text": [ - "Object" + "String", + "TNode" ] }, { @@ -103524,9 +102784,7 @@ { "id": 1539, "platform_framework": [ - "1", - "2", - "4", + "8", "16", "32" ], @@ -103556,9 +102814,7 @@ "support_default_value": 1, "field_category_text": "Props", "platform_framework_text": [ - "Vue(PC)", - "React(PC)", - "Angular(PC)", + "Vue(Mobile)", "React(Mobile)", "Angular(Mobile)" ], @@ -103587,7 +102843,7 @@ "update_time": "2024-04-09 09:09:42", "event_output": null, "custom_field_type": null, - "syntactic_sugar": "", + "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, "trigger_elements": "", @@ -103603,48 +102859,9 @@ "String" ] }, - { - "id": 1712657638, - "platform_framework": [ - "8" - ], - "component": "Search", - "field_category": 1, - "field_name": "value", - "field_type": [ - "1" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "值,搜索关键词", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2024-04-09 10:13:58", - "update_time": "2024-04-09 10:13:58", - "event_output": null, - "custom_field_type": null, - "syntactic_sugar": "v-model", - "readonly": 1, - "html_attribute": 0, - "trigger_elements": "", - "deprecated": 0, - "version": "", - "test_description": null, - "support_default_value": 1, - "field_category_text": "Props", - "platform_framework_text": [ - "Vue(Mobile)" - ], - "field_type_text": [ - "String" - ] - }, { "id": 2617, "platform_framework": [ - "16", - "32", "64" ], "component": "Search", @@ -103673,8 +102890,6 @@ "support_default_value": 0, "field_category_text": "Events", "platform_framework_text": [ - "React(Mobile)", - "Angular(Mobile)", "Miniprogram" ], "field_type_text": [ @@ -103684,7 +102899,8 @@ { "id": 1712657706, "platform_framework": [ - "8" + "8", + "16" ], "component": "Search", "field_category": 2, @@ -103712,7 +102928,8 @@ "support_default_value": 0, "field_category_text": "Events", "platform_framework_text": [ - "Vue(Mobile)" + "Vue(Mobile)", + "React(Mobile)" ], "field_type_text": [ "String" @@ -103721,9 +102938,6 @@ { "id": 2616, "platform_framework": [ - "1", - "2", - "4", "8", "16", "32" @@ -103754,9 +102968,6 @@ "support_default_value": 0, "field_category_text": "Events", "platform_framework_text": [ - "Vue(PC)", - "React(PC)", - "Angular(PC)", "Vue(Mobile)", "React(Mobile)", "Angular(Mobile)" @@ -103839,55 +103050,11 @@ "String" ] }, - { - "id": 2615, - "platform_framework": [ - "1", - "2", - "4", - "16", - "32" - ], - "component": "Search", - "field_category": 2, - "field_name": "change", - "field_type": [ - "1" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "搜索关键词发生变化时触发,可能场景有:搜索框内容发生变化、点击联想词", - "field_desc_en": null, - "field_required": 0, - "event_input": "(value: string, context: { trigger: 'input-change' | 'option-click'; e?: InputEvent | MouseEvent })", - "create_time": "2022-04-20 03:48:59", - "update_time": "2022-07-20 14:55:55", - "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)", - "React(Mobile)", - "Angular(Mobile)" - ], - "field_type_text": [ - "String" - ] - }, { "id": 1712657796, "platform_framework": [ - "8" + "8", + "16" ], "component": "Search", "field_category": 2, @@ -103915,7 +103082,8 @@ "support_default_value": 0, "field_category_text": "Events", "platform_framework_text": [ - "Vue(Mobile)" + "Vue(Mobile)", + "React(Mobile)" ], "field_type_text": [ "String" @@ -103924,12 +103092,8 @@ { "id": 2614, "platform_framework": [ - "1", - "2", - "4", "8", - "16", - "32" + "16" ], "component": "Search", "field_category": 2, @@ -103957,12 +103121,8 @@ "support_default_value": 0, "field_category_text": "Events", "platform_framework_text": [ - "Vue(PC)", - "React(PC)", - "Angular(PC)", "Vue(Mobile)", - "React(Mobile)", - "Angular(Mobile)" + "React(Mobile)" ], "field_type_text": [ "String" @@ -104005,49 +103165,9 @@ "String" ] }, - { - "id": 2850, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 2, - "field_name": "enter", - "field_type": [], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "回车键按下时触发", - "field_desc_en": null, - "field_required": 0, - "event_input": "(context: { value: string; e: KeyboardEvent })", - "create_time": "2022-07-19 10:18:25", - "update_time": "2022-07-20 14:51:33", - "event_output": null, - "custom_field_type": null, - "syntactic_sugar": null, - "readonly": 1, - "html_attribute": 0, - "trigger_elements": "KeyboardEvent", - "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": 2613, "platform_framework": [ - "1", - "2", - "4", "8", "16", "32" @@ -104078,9 +103198,6 @@ "support_default_value": 0, "field_category_text": "Events", "platform_framework_text": [ - "Vue(PC)", - "React(PC)", - "Angular(PC)", "Vue(Mobile)", "React(Mobile)", "Angular(Mobile)" @@ -104126,47 +103243,6 @@ "String" ] }, - { - "id": 2848, - "platform_framework": [ - "1", - "2", - "4" - ], - "component": "Search", - "field_category": 2, - "field_name": "search", - "field_type": [ - "1" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "搜索触发,包含:Enter 键、联想关键词点击、清空按钮点击、搜索框后置内容点击(含后置图标)、搜索框前置内容点击(含前置图标)等", - "field_desc_en": null, - "field_required": 0, - "event_input": "(context?: { value: string; trigger: 'enter' | 'option-click' | 'clear' | 'suffix-click' | 'prefix-click'; e?: InputEvent | MouseEvent })", - "create_time": "2022-07-18 12:21:33", - "update_time": "2022-07-20 15:03:01", - "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": [ - "String" - ] - }, { "id": 2860, "platform_framework": [ @@ -104208,39 +103284,6 @@ "String" ] }, - { - "id": 2861, - "platform_framework": [], - "component": "Search", - "field_category": 2, - "field_name": "search", - "field_type": [ - "1" - ], - "field_default_value": "", - "field_enum": "", - "field_desc_zh": "搜索触发,包含:手机键盘提交健、联想关键词点击、清空按钮点击等", - "field_desc_en": null, - "field_required": 0, - "event_input": "(context?: { value: string; trigger: 'submit' | 'option-click' | 'clear'; e?: InputEvent | MouseEvent })", - "create_time": "2022-07-20 15:04:09", - "update_time": "2022-07-20 15:04:09", - "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": [], - "field_type_text": [ - "String" - ] - }, { "id": 2612, "platform_framework": [