From ff8aa5eca0dec8717871a422e9f3ead7f2f1d058 Mon Sep 17 00:00:00 2001 From: Stefan Popov Date: Tue, 30 Aug 2022 11:20:11 +0400 Subject: [PATCH] Fix directives --- build/rollup.config.js | 1 + package.json | 2 +- src/components/Input/SFloatInput/SFloatInput.vue | 2 +- src/index.ts | 2 +- src/types/directives.ts | 4 +++- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/build/rollup.config.js b/build/rollup.config.js index 94c6f948..b1695b2c 100644 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -22,6 +22,7 @@ export default { 'src/types/Locale.ts', 'src/types/Theme.ts', 'src/types/components.ts', + 'src/types/directives.ts', 'src/types/index.ts', 'src/locale/index.ts', 'src/plugins/*.ts', diff --git a/package.json b/package.json index ad884445..73687cd5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soramitsu/soramitsu-js-ui", - "version": "1.0.36", + "version": "1.0.37", "private": false, "publishConfig": { "registry": "https://nexus.iroha.tech/repository/npm-soramitsu/" diff --git a/src/components/Input/SFloatInput/SFloatInput.vue b/src/components/Input/SFloatInput/SFloatInput.vue index a7202b04..1e1f7105 100644 --- a/src/components/Input/SFloatInput/SFloatInput.vue +++ b/src/components/Input/SFloatInput/SFloatInput.vue @@ -41,7 +41,7 @@ const decimalsValidator = x => x === undefined || x >= 0 SInput }, directives: { - float: Float as any // TODO: fix type + float: Float } }) export default class SFloatInput extends Vue { diff --git a/src/index.ts b/src/index.ts index 47352684..4ae72434 100644 --- a/src/index.ts +++ b/src/index.ts @@ -56,9 +56,9 @@ import { } from './components' import { Float, Integer, Button } from './directives' import { Components } from './types/components' -import { Directives } from './types/directives' import { setTheme, setDesignSystem, setLocale } from './utils' import DesignSystem from './types/DesignSystem' +import Directives from './types/directives' import Theme from './types/Theme' import Locale from './types/Locale' import { SoramitsuUIStorePlugin, ElementUIPlugin } from './plugins' diff --git a/src/types/directives.ts b/src/types/directives.ts index 7b002d5b..6ce842cd 100644 --- a/src/types/directives.ts +++ b/src/types/directives.ts @@ -1,5 +1,7 @@ -export enum Directives { +enum Directives { Float = 'Float', Integer = 'Integer', Button = 'Button' } + +export default Directives