Fix types & web-types.json

pull/22922/head
Karlen 2024-07-12 00:27:03 +03:00
parent c345bb453b
commit af96bc113f
16 changed files with 44 additions and 59 deletions

View File

@ -71,8 +71,6 @@ export declare class ElAutocomplete extends ElementUIComponent {
/** Whether to append the dropdown to body */ /** Whether to append the dropdown to body */
popperAppendToBody: boolean popperAppendToBody: boolean
/** /** Focus the Input component */
* Focus the Input component
*/
focus (): void focus (): void
} }

2
types/button.d.ts vendored
View File

@ -1,7 +1,7 @@
import { ElementUIComponent, ElementUIComponentSize } from './component' import { ElementUIComponent, ElementUIComponentSize } from './component'
/** Button type */ /** Button type */
export type ButtonType = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text' export type ButtonType = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text' | 'default'
/** Same as native button's type */ /** Same as native button's type */
export type ButtonNativeType = 'button' | 'submit' | 'reset' | 'menu' export type ButtonNativeType = 'button' | 'submit' | 'reset' | 'menu'

2
types/col.d.ts vendored
View File

@ -12,7 +12,7 @@ export interface ResponsiveColumnProperties {
/** Responsive column property */ /** Responsive column property */
export type ResponsiveColumn = number | ResponsiveColumnProperties export type ResponsiveColumn = number | ResponsiveColumnProperties
/** Colunm Layout Component */ /** Column Layout Component */
export declare class ElCol extends ElementUIComponent { export declare class ElCol extends ElementUIComponent {
/** Number of column the grid spans */ /** Number of column the grid spans */
span: number span: number

View File

@ -117,8 +117,6 @@ export declare class ElDatePicker extends ElementUIComponent {
/** name for the inner native input */ /** name for the inner native input */
name: string name: string
/** /** Focus the Input component */
* Focus the Input component
*/
focus (): void focus (): void
} }

View File

@ -174,7 +174,7 @@ export class CheckboxButton extends ElCheckboxButton {}
/** Checkbox Group Component */ /** Checkbox Group Component */
export class CheckboxGroup extends ElCheckboxGroup {} export class CheckboxGroup extends ElCheckboxGroup {}
/** Colunm Layout Component */ /** Column Layout Component */
export class Col extends ElCol {} export class Col extends ElCol {}
/** Collapse Component */ /** Collapse Component */

View File

@ -40,8 +40,6 @@ export declare class ElInputNumber extends ElementUIComponent {
/** whether input value can only be multiple of step */ /** whether input value can only be multiple of step */
stepStrictly: boolean stepStrictly: boolean
/** /** Focus the Input component */
* Focus the Input component
*/
focus (): void focus (): void
} }

12
types/input.d.ts vendored
View File

@ -90,18 +90,12 @@ export declare class ElInput extends ElementUIComponent {
/** Whether to show wordCount when setting maxLength */ /** Whether to show wordCount when setting maxLength */
showWordLimit: boolean showWordLimit: boolean
/** /** Focus the Input component */
* Focus the Input component
*/
focus (): void focus (): void
/** /** Blur the Input component */
* Blur the Input component
*/
blur (): void blur (): void
/** /** Select the text in input element */
* Select the text in input element
*/
select (): void select (): void
} }

2
types/link.d.ts vendored
View File

@ -1,7 +1,7 @@
import { ElementUIComponent } from './component' import { ElementUIComponent } from './component'
/** Button type */ /** Button type */
export type LinkType = 'primary' | 'success' | 'warning' | 'danger' | 'info' export type LinkType = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'default'
/** Link Component */ /** Link Component */
export declare class ElLink extends ElementUIComponent { export declare class ElLink extends ElementUIComponent {

6
types/row.d.ts vendored
View File

@ -3,8 +3,8 @@ import { ElementUIComponent } from './component'
/** Horizontal alignment of flex layout */ /** Horizontal alignment of flex layout */
export type HorizontalAlignment = 'start' | 'end' | 'center' | 'space-around' | 'space-between' export type HorizontalAlignment = 'start' | 'end' | 'center' | 'space-around' | 'space-between'
/** vertical alignment of flex layout */ /** Vertical alignment of flex layout */
export type VertialAlignment = 'top' | 'middle' | 'bottom' export type VerticalAlignment = 'top' | 'middle' | 'bottom'
/** Row Layout Component */ /** Row Layout Component */
export declare class ElRow extends ElementUIComponent { export declare class ElRow extends ElementUIComponent {
@ -18,7 +18,7 @@ export declare class ElRow extends ElementUIComponent {
justify: HorizontalAlignment justify: HorizontalAlignment
/** Vertical alignment of flex layout */ /** Vertical alignment of flex layout */
align: VertialAlignment align: VerticalAlignment
/** Custom element tag */ /** Custom element tag */
tag: string tag: string

8
types/select.d.ts vendored
View File

@ -78,13 +78,9 @@ export declare class ElSelect extends ElementUIComponent {
/** Whether to append the popper menu to body */ /** Whether to append the popper menu to body */
popperAppendToBody: boolean popperAppendToBody: boolean
/** /** Focus the Input component */
* Focus the Input component
*/
focus (): void focus (): void
/** /** Blur the Input component, and hide the dropdown */
* Blur the Input component, and hide the dropdown
*/
blur (): void blur (): void
} }

2
types/skeleton.d.ts vendored
View File

@ -25,7 +25,7 @@ export declare class ElSkeleton extends ElementUIComponent {
/** numbers of the row, only useful when no template slot were given; default: 4 */ /** numbers of the row, only useful when no template slot were given; default: 4 */
rows: boolean rows: boolean
/** Rendering delay in millseconds; default: 0 */ /** Rendering delay in milliseconds; default: 0 */
throttle: number throttle: number
$slots: ElSkeletonSlots $slots: ElSkeletonSlots

2
types/tag.d.ts vendored
View File

@ -1,6 +1,6 @@
import { ElementUIComponent, ElementUIComponentSize } from './component' import { ElementUIComponent, ElementUIComponentSize } from './component'
export type TagType = 'primary' | 'gray' | 'success' | 'warning' | 'danger' export type TagType = 'success' | 'info' | 'warning' | 'danger'
export type TagTheme = 'dark' | 'light' | 'plain' export type TagTheme = 'dark' | 'light' | 'plain'
/** Tag Component */ /** Tag Component */

View File

@ -56,8 +56,6 @@ export declare class ElTimePicker extends ElementUIComponent {
/** Range separator */ /** Range separator */
rangeSeparator: string rangeSeparator: string
/** /** Focus the Input component */
* Focus the Input component
*/
focus (): void focus (): void
} }

View File

@ -49,8 +49,6 @@ export declare class ElTimeSelect extends ElementUIComponent {
/** Additional options, check the table below */ /** Additional options, check the table below */
pickerOptions: TimeSelectOptions pickerOptions: TimeSelectOptions
/** /** Focus the Input component */
* Focus the Input component
*/
focus (): void focus (): void
} }

4
types/tree.d.ts vendored
View File

@ -158,7 +158,7 @@ export declare class ElTree<K, D extends TreeData> extends ElementUIComponent {
/** /**
* Set certain nodes to be checked. Only works when `node-key` is assigned * Set certain nodes to be checked. Only works when `node-key` is assigned
* *
* @param nodes An array of nodes to be checked * @param data An array of nodes to be checked
* @param leafOnly If the parameter is true, it only returns the currently selected array of sub-nodes * @param leafOnly If the parameter is true, it only returns the currently selected array of sub-nodes
*/ */
setCheckedNodes(data: D[], leafOnly?: boolean): void; setCheckedNodes(data: D[], leafOnly?: boolean): void;
@ -218,7 +218,7 @@ export declare class ElTree<K, D extends TreeData> extends ElementUIComponent {
/** /**
* Set highlighted node, only works when node-key is assigned * Set highlighted node, only works when node-key is assigned
* *
* @param node The node to be highlighted * @param data The node to be highlighted
*/ */
setCurrentNode(data: D): void; setCurrentNode(data: D): void;

View File

@ -96,7 +96,7 @@
{ {
"name": "focus", "name": "focus",
"description": "Focus the Input component", "description": "Focus the Input component",
"type": "function(): void" "type": "() => void"
}, },
{ {
"name": "selectWhenUnmatched", "name": "selectWhenUnmatched",
@ -1045,7 +1045,7 @@
{ {
"name": "value", "name": "value",
"description": "The value of the date picker", "description": "The value of the date picker",
"type": "Date|string|Date[]|string[]" "type": "Date|string|Date[]|string[]|number|number[]"
}, },
{ {
"name": "rangeSeparator", "name": "rangeSeparator",
@ -1290,14 +1290,14 @@
"doc-url": "https://element.eleme.io/#/en-US/component/divider", "doc-url": "https://element.eleme.io/#/en-US/component/divider",
"props": [ "props": [
{ {
"name": "vertical", "name": "direction",
"description": "enable vertical divider", "description": "Set divider's direction",
"type": "boolean" "type": "'horizontal' | 'vertical'"
}, },
{ {
"name": "posiiton", "name": "content-position",
"description": "customize the content on the divider line", "description": "Customize the content on the divider line",
"type": "ContentPosition" "type": "'left' | 'right' | 'center'"
} }
] ]
}, },
@ -1386,7 +1386,8 @@
{ {
"name": "type", "name": "type",
"description": "Menu button type. only works when split-button is true", "description": "Menu button type. only works when split-button is true",
"type": "ButtonType" "type": "ButtonType",
"default": "'default'"
}, },
{ {
"name": "tabindex", "name": "tabindex",
@ -2135,12 +2136,12 @@
{ {
"name": "title", "name": "title",
"description": "title", "description": "title",
"type": "String" "type": "string"
}, },
{ {
"name": "content", "name": "content",
"description": "content", "description": "content",
"type": "String" "type": "string"
} }
], ],
"slots": [ "slots": [
@ -2299,7 +2300,7 @@
}, },
{ {
"name": "cancelButtonType", "name": "cancelButtonType",
"description": "Popconfirm cancal type", "description": "Popconfirm cancel type",
"type": "string" "type": "string"
}, },
{ {
@ -2720,7 +2721,7 @@
{ {
"name": "align", "name": "align",
"description": "Vertical alignment of flex layout", "description": "Vertical alignment of flex layout",
"type": "VertialAlignment" "type": "VerticalAlignment"
}, },
{ {
"name": "justify", "name": "justify",
@ -3308,7 +3309,7 @@
{ {
"name": "defaultExpandAll", "name": "defaultExpandAll",
"description": "Whether expand all rows by default. Only works when the table has a column `type=\"expand\"`", "description": "Whether expand all rows by default. Only works when the table has a column `type=\"expand\"`",
"type": "Boolean" "type": "boolean"
}, },
{ {
"name": "height", "name": "height",
@ -3358,7 +3359,7 @@
{ {
"name": "emptyText", "name": "emptyText",
"description": "Displayed text when data is empty. You can customize this area with `slot=\"empty\"`", "description": "Displayed text when data is empty. You can customize this area with `slot=\"empty\"`",
"type": "String" "type": "string"
}, },
{ {
"name": "maxHeight", "name": "maxHeight",
@ -3480,7 +3481,7 @@
{ {
"name": "filterMultiple", "name": "filterMultiple",
"description": "Whether data filtering supports multiple options", "description": "Whether data filtering supports multiple options",
"type": "Boolean" "type": "boolean"
}, },
{ {
"name": "resizable", "name": "resizable",
@ -3554,7 +3555,7 @@
{ {
"name": "stretch", "name": "stretch",
"description": "Whether width of tab automatically fits its container", "description": "Whether width of tab automatically fits its container",
"type": "Boolean" "type": "boolean"
}, },
{ {
"name": "value", "name": "value",
@ -3847,7 +3848,7 @@
{ {
"name": "content", "name": "content",
"description": "Display content, can be overridden by slot#content", "description": "Display content, can be overridden by slot#content",
"type": "String" "type": "string"
}, },
{ {
"name": "enterable", "name": "enterable",
@ -4172,6 +4173,10 @@
{ {
"name": "fullscreen", "name": "fullscreen",
"type": "boolean" "type": "boolean"
},
{
"name": "lock",
"type": "boolean"
} }
] ]
}, },