Skip to content

Commit 8650934

Browse files
authored
Fix profile form adaptability (#116)
1 parent 2eb150d commit 8650934

11 files changed

+15
-14
lines changed

templates/react/sample-pages/profile/profile.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,16 @@ export default () => {
4141
defaultFormData={employee}
4242
onFieldDataChanged={e => e.dataField === 'Notes' && setNotes(e.value)}
4343
labelLocation={'top'}
44-
minColWidth={233}
45-
colCount={'auto'}
44+
colCountByScreen={colCountByScreen}
4645
/>
4746
</div>
4847
</React.Fragment>
4948
);
5049
};
50+
51+
const colCountByScreen = {
52+
xs: 1,
53+
sm: 2,
54+
md: 3,
55+
lg: 4
56+
};

templates/vue/sample-pages/profile.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
<dx-form
1414
id="form"
1515
label-location="top"
16-
col-count="auto"
1716
:form-data="formData"
18-
:min-col-width="233"
17+
:colCountByScreen="colCountByScreen"
1918
/>
2019
</div>
2120
</div>
@@ -48,6 +47,12 @@ export default {
4847
"\r\n\r\n" +
4948
"Sandra has 2 daughters both of whom are accomplished gymnasts.",
5049
Address: "4600 N Virginia Rd."
50+
},
51+
colCountByScreen: {
52+
xs: 1,
53+
sm: 2,
54+
md: 3,
55+
lg: 4
5156
}
5257
};
5358
},
-1.3 KB
Loading
-1.22 KB
Loading
-860 Bytes
Loading
-1.37 KB
Loading
-1.34 KB
Loading
-1.06 KB
Loading
-821 Bytes
Loading
-1.24 KB
Loading

0 commit comments

Comments
 (0)