Skip to content

Commit 2cd2979

Browse files
committed
[button] loading() is JQuery
1 parent f90db0c commit 2cd2979

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

doc/api.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
"methods": {
111111
"loading": {
112112
"description": "Set loading state of the button.",
113+
"type": "JQuery",
113114
"params": {
114115
"state": {
115116
"type": "boolean",

lib/interface.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export interface IButton {
8989
/**
9090
* Set loading state of the button.
9191
*/
92-
loading(state: boolean)
92+
loading(state: boolean): JQuery
9393
}
9494

9595
export interface ICalendar {

src/components/form-inputs/button/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { IButton } from '../../../../lib/interface'
88
})
99
export class Button extends _ButtonBase implements IButton {
1010

11-
loading(state: boolean) {
11+
loading(state: boolean): JQuery {
1212
let element = $(this.$el)
1313
if (state)
1414
return element.addClass('loading')

src/components/form-inputs/button/schema/props.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"methods": {
66
"loading": {
77
"description": "Set loading state of the button.",
8+
"type": "JQuery",
89
"params": {
910
"state": {
1011
"type": "boolean",

0 commit comments

Comments
 (0)