File tree Expand file tree Collapse file tree
FilterBuilder/WithDataGrid/Vue Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 :data-source =" dataSource"
1717 :filter-value =" gridFilterValue"
1818 :show-borders =" true"
19- :columns =" fields as DxDataGridTypes.Column[] "
19+ :columns =" gridColumns "
2020 :height =" 300"
2121 />
2222 </div >
@@ -30,6 +30,7 @@ import { DataSource, ODataStore } from 'devextreme-vue/common/data';
3030import { filter , fields } from ' ./data.ts' ;
3131
3232const filterValue = ref (filter );
33+ const gridColumns = fields as DxDataGridTypes .Column [];
3334const gridFilterValue = ref (filter );
3435const dataSource = new DataSource ({
3536 store: new ODataStore ({
Original file line number Diff line number Diff line change 1414 :id =" config.id"
1515 :element-attr =" { 'aria-labelledby': config.labelId }"
1616 :selected-index =" 2"
17- :orientation =" orientation as Orientation "
17+ :orientation =" orientation"
1818 :linear =" navigationMode"
1919 :select-on-focus =" selectOnFocus"
2020 :rtl-enabled =" rtlMode"
@@ -75,7 +75,6 @@ import { ref } from 'vue';
7575import { DxStepper , DxItem } from ' devextreme-vue/stepper' ;
7676import { DxButtonGroup , type DxButtonGroupTypes } from ' devextreme-vue/button-group' ;
7777import { DxCheckBox } from ' devextreme-vue/check-box' ;
78- import { type Orientation } from ' devextreme-vue/common' ;
7978import { steps , orientations , navigationModes } from ' ./data.ts' ;
8079
8180const orientation = ref (orientations [0 ].value );
Original file line number Diff line number Diff line change 1+ import { type Orientation } from "devextreme-vue/common" ;
2+
13export const steps = [
24 {
35 text : 'A' ,
@@ -27,7 +29,7 @@ export const steps = [
2729 } ,
2830] ;
2931
30- export const orientations = [
32+ export const orientations : Array < { text : string ; value : Orientation } > = [
3133 { text : 'Horizontal' , value : 'horizontal' } ,
3234 { text : 'Vertical' , value : 'vertical' } ,
3335] ;
You can’t perform that action at this time.
0 commit comments