Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import Vue from 'vue'
import { addParameters, addDecorator } from '@storybook/vue'
import { withA11y } from '@storybook/addon-a11y'
import { DocsPage } from '@storybook/addon-docs/blocks'
import ElColorPicker from 'element-ui/lib/color-picker'

import '../../src/styles/index.scss'
import mainStore from '../../src/store'
import { ElementUIPlugin } from '../../src/plugins'

Vue.use(ElementUIPlugin)
Vue.use(ElColorPicker)

addParameters({
options: {
Expand Down
11 changes: 9 additions & 2 deletions src/stories/Intro/Customization.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const themeInputsData = [
'text-file'
]
export const configurable = () => ({
components: { SRow, SCol, SButton, SInput, SDivider },
components: { SRow, SCol, SButton, SDivider, SInput },
template: `<div style="flex: 1;">
<s-row>
<s-col
Expand Down Expand Up @@ -83,9 +83,10 @@ export const configurable = () => ({
<s-input
type="number"
:placeholder="button.label + ' (px)'"
v-model="borderRadiusValues[button.label]"
:border-radius="button.label"
style="margin-right: 10px; margin-right: 10px;"
@change="(value) => handleBorderRadiusChange(button.label, value)"
@input="(value) => handleBorderRadiusChange(button.label, value)"
/>
</div>
</s-col>
Expand All @@ -103,6 +104,12 @@ export const configurable = () => ({
sections: colorsSectionsData,
buttons: differentTypeButtonsData,
borderRadiusButtons: getRadiusData(BorderRadius),
borderRadiusValues: {
[BorderRadius.BIG]: '16',
[BorderRadius.MEDIUM]: '12',
[BorderRadius.SMALL]: '8',
[BorderRadius.MINI]: '4'
},
inputs: themeInputsData
}),
methods: {
Expand Down