From f1d96c24a083b9da44a16bb838ab7bb9760eceac Mon Sep 17 00:00:00 2001 From: mertsincan Date: Sun, 27 Sep 2020 22:16:24 +0300 Subject: [PATCH] Refactor #506 - Update InputNumber doc --- src/components/inputnumber/InputNumber.d.ts | 3 ++- src/views/inputnumber/InputNumberDoc.vue | 23 +++++++++++++++++++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/components/inputnumber/InputNumber.d.ts b/src/components/inputnumber/InputNumber.d.ts index e395a4d9f..55ec1c497 100755 --- a/src/components/inputnumber/InputNumber.d.ts +++ b/src/components/inputnumber/InputNumber.d.ts @@ -23,4 +23,5 @@ export declare class InputNumber extends Vue { max?: number; step?: number; $emit(eventName: string, value: number | Event): this; -} \ No newline at end of file + $emit(eventName: 'input', e: {originalEvent: Event, value: any}): this; +} diff --git a/src/views/inputnumber/InputNumberDoc.vue b/src/views/inputnumber/InputNumberDoc.vue index 0e2c54cc5..28e85996a 100755 --- a/src/views/inputnumber/InputNumberDoc.vue +++ b/src/views/inputnumber/InputNumberDoc.vue @@ -277,7 +277,26 @@ Vertical
Events
-

Any valid event such as focus, blur and input are passed to the underlying input element.

+

Any valid event such as focus and blur are passed to the underlying input element. Following are the additional events to configure the component.

+
+ + + + + + + + + + + + + + + +
NameParametersDescription
inputevent.originalEvent: Browser event
+ event.value: New value
Callback to invoke when the value is entered.
+
Styling

Following is the list of structural style classes, for theming classes visit theming page.

@@ -475,4 +494,4 @@ export default { - \ No newline at end of file +