Skip to content

Commit f875587

Browse files
committed
docs: update storybook
1 parent a5a5d58 commit f875587

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

stories/formbuilder/FormBuilder.stories.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,11 @@ Vue.component('ValidationObserver', ValidationObserver);
3939

4040
export const BasicUsage = () => ({
4141
template: `
42-
<div>
42+
<div class="form-builder-example">
4343
<validation-observer ref="observer" v-slot="{ invalid }">
4444
<el-row :gutter="10">
4545
<el-col :span="12" :xs="24">
4646
<el-form
47-
class="form-builder-example"
4847
label-width="80px"
4948
v-loading="loading"
5049
>
@@ -67,7 +66,7 @@ export const BasicUsage = () => ({
6766
</el-form>
6867
</el-col>
6968
<el-col :span="12" :xs="24">
70-
<el-card>
69+
<el-card header="表单配置">
7170
<el-input type="textarea" v-model="formConfigJSON" rows="45" />
7271
</el-card>
7372
</el-col>
@@ -117,7 +116,11 @@ export const BasicUsage = () => ({
117116
metadata: {},
118117

119118
formShares: {
120-
size: 'medium'
119+
size: 'medium',
120+
121+
props: {
122+
clearable: true
123+
}
121124
},
122125

123126
formConfig: [],

stories/formbuilder/style.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
.form-builder-example {
22
.el-card {
33
margin-bottom: 15px;
4+
5+
.el-card__header {
6+
padding: 10px 20px;
7+
}
48
}
59
}

0 commit comments

Comments
 (0)