Skip to content

Commit 74e395a

Browse files
committed
[F] imperium text diff expand_lines option
1 parent 63bad4b commit 74e395a

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/components/ImperiumDiff.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,26 @@
2020
<v-switch
2121
v-model="showIndex"
2222
label="Show index"
23-
color="indigo"
23+
color="indigo" hide-details
2424
></v-switch>
2525
<v-switch
2626
v-model="showType"
2727
label="Show type"
28-
color="indigo"
28+
color="indigo" hide-details
2929
></v-switch>
3030
<v-switch
3131
v-model="cellLines"
3232
label="One cell one line (better for long text)"
33-
color="indigo"
33+
color="indigo" hide-details
3434
></v-switch>
3535
<v-radio-group v-model="outputFormat">
36+
<template v-slot:label>
37+
<div>Diff display type</div>
38+
</template>
3639
<v-radio :value="'line-by-line'" label="Line by line" color="indigo"></v-radio>
3740
<v-radio :value="'side-by-side'" label="Side by side" color="indigo"></v-radio>
3841
</v-radio-group>
42+
<v-text-field v-model="expandLines" type="number" label="Expand lines"></v-text-field>
3943
</v-flex>
4044
<v-flex v-else>
4145
<div class="v-subheader pa-0">Treeview Diff Option</div>
@@ -92,7 +96,8 @@
9296
showIndex: true,
9397
showType: false,
9498
cellLines: false,
95-
outputFormat: 'line-by-line'
99+
outputFormat: 'line-by-line',
100+
expandLines: 0
96101
}
97102
},
98103
created() {
@@ -114,7 +119,8 @@
114119
new: new_id,
115120
show_index: this.showIndex,
116121
show_type: this.showType,
117-
cell_lines: this.cellLines
122+
cell_lines: this.cellLines,
123+
expand_lines: this.expandLines
118124
}
119125
}).then(response => {
120126
//console.log(response.data);

0 commit comments

Comments
 (0)