diff --git a/config/storybook/preview.js b/config/storybook/preview.js index bea3f949..32ea951b 100644 --- a/config/storybook/preview.js +++ b/config/storybook/preview.js @@ -2,6 +2,8 @@ import { addParameters, addDecorator } from '@storybook/vue' import { withA11y } from '@storybook/addon-a11y' import { DocsPage } from '@storybook/addon-docs/blocks' +import mainStore from '../../src/store' + addParameters({ options: { showRoots: true @@ -22,5 +24,6 @@ addDecorator(withA11y) addDecorator(() => ({ template: `
-
` + `, + store: mainStore })) diff --git a/package.json b/package.json index 078b48fe..bac110c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soramitsu/soramitsu-js-ui", - "version": "0.6.4", + "version": "0.6.7", "private": false, "publishConfig": { "registry": "https://nexus.iroha.tech/repository/npm-soramitsu-private/" @@ -25,7 +25,9 @@ "v-jsoneditor": "^1.4.1", "vue": "^2.6.11", "vue-class-component": "^7.2.3", - "vue-property-decorator": "^8.4.1" + "vue-property-decorator": "^8.4.1", + "vuex": "^3.1.3", + "vuex-class": "^0.3.2" }, "devDependencies": { "@rollup/plugin-node-resolve": "^6.0.0", diff --git a/src/components/Icon/SIcon.vue b/src/components/Icon/SIcon.vue index da82e129..89244937 100644 --- a/src/components/Icon/SIcon.vue +++ b/src/components/Icon/SIcon.vue @@ -42,7 +42,7 @@ export default class SIcon extends Vue { get computedStyles () { const styles = {} as any if (this.size) { - styles.fontSize = typeof this.size === 'number' ? `${this.size}px` : this.size + styles.fontSize = !isNaN(+this.size) ? `${this.size}px` : this.size } return styles } diff --git a/src/components/Tooltip/STooltip.vue b/src/components/Tooltip/STooltip.vue index 48807ffc..a40eab8b 100644 --- a/src/components/Tooltip/STooltip.vue +++ b/src/components/Tooltip/STooltip.vue @@ -1,7 +1,7 @@