From 2f7b58bb61179ed30411d0dc5047a38121d5ccab Mon Sep 17 00:00:00 2001 From: RustemYuzlibaev Date: Tue, 21 Dec 2021 06:04:39 +0300 Subject: [PATCH 1/2] Add attributes --- src/components/Input/SInput/SInput.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/Input/SInput/SInput.vue b/src/components/Input/SInput/SInput.vue index d0f59f70..618174f4 100644 --- a/src/components/Input/SInput/SInput.vue +++ b/src/components/Input/SInput/SInput.vue @@ -31,6 +31,8 @@ :tabindex="tabindex" :prefix-icon="prefix" :suffix-icon="suffix" + :rows="rows" + :autosize="autosize" @input="handleInput" @change="handleChange" @blur="handleBlur" @@ -166,6 +168,14 @@ export default class SInput extends Mixins(BorderRadiusMixin, DesignSystemInject * Field size, "big" by default */ @Prop({ default: InputSize.BIG, type: String }) readonly size!: InputSize + /** + * Rows for textarea + */ + @Prop({ default: 2, type: Number }) readonly rows!: number + /** + * Autosize for textarea + */ + @Prop({ default: {}, type: Object }) readonly autosize!: object @Ref('el-input') input!: ElInput @Ref('file') file!: HTMLElement @@ -206,7 +216,7 @@ export default class SInput extends Mixins(BorderRadiusMixin, DesignSystemInject } get isBigInput (): boolean { - return this.type === InputType.TEXT && this.size === InputSize.BIG + return (this.type === InputType.TEXT && this.size === InputSize.BIG) || (this.type === InputType.TEXTAREA) } get computedClasses (): Array { From 019ee338a7bb4d6f50a2ed9b02995210a6ca4da6 Mon Sep 17 00:00:00 2001 From: RustemYuzlibaev Date: Tue, 21 Dec 2021 06:07:26 +0300 Subject: [PATCH 2/2] Up version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 48077786..d75900c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soramitsu/soramitsu-js-ui", - "version": "1.0.24", + "version": "1.0.25", "private": false, "publishConfig": { "registry": "https://nexus.iroha.tech/repository/npm-soramitsu/"