Skip to content

Commit

Permalink
Merge pull request ABI-Software#201 from alan-wu/remove-warning
Browse files Browse the repository at this point in the history
Remove warning.
  • Loading branch information
alan-wu authored Oct 23, 2024
2 parents 63e292f + 3903376 commit 6eda335
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export {}
declare module 'vue' {
export interface GlobalComponents {
DynamicLegends: typeof import('./components/legends/DynamicLegends.vue')['default']
ElAutocomplete: typeof import('element-plus/es')['ElAutocomplete']
ElButton: typeof import('element-plus/es')['ElButton']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
Expand All @@ -23,6 +24,7 @@ declare module 'vue' {
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElRow: typeof import('element-plus/es')['ElRow']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
FlatmapVuer: typeof import('./components/FlatmapVuer.vue')['default']
MultiFlatmapVuer: typeof import('./components/MultiFlatmapVuer.vue')['default']
SelectionsGroup: typeof import('./components/SelectionsGroup.vue')['default']
Expand Down
16 changes: 8 additions & 8 deletions src/components/FlatmapVuer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,8 @@ Please use `const` to assign meaningful names to them...
class="flatmap-radio"
@change="setFlightPath3D"
>
<el-radio :label="false">2D</el-radio>
<el-radio :label="true">3D</el-radio>
<el-radio :value="false">2D</el-radio>
<el-radio :value="true">3D</el-radio>
</el-radio-group>
</el-row>
<el-row class="backgroundSpacer"></el-row>
Expand All @@ -531,8 +531,8 @@ Please use `const` to assign meaningful names to them...
class="flatmap-radio"
@change="setColour"
>
<el-radio :label="true">Colour</el-radio>
<el-radio :label="false">Greyscale</el-radio>
<el-radio :value="true">Colour</el-radio>
<el-radio :value="false">Greyscale</el-radio>
</el-radio-group>
</el-row>
<el-row class="backgroundSpacer"></el-row>
Expand All @@ -543,8 +543,8 @@ Please use `const` to assign meaningful names to them...
class="flatmap-radio"
@change="setOutlines"
>
<el-radio :label="true">Show</el-radio>
<el-radio :label="false">Hide</el-radio>
<el-radio :value="true">Show</el-radio>
<el-radio :value="false">Hide</el-radio>
</el-radio-group>
</el-row>
<el-row class="backgroundSpacer"></el-row>
Expand Down Expand Up @@ -1202,7 +1202,7 @@ export default {
setColour: function (flag) {
this.colourRadio = flag
if (this.mapImp) {
this.mapImp.setColour({ colour: flag, outline: this.outlinesRadio })
this.mapImp.setPaint({ colour: flag, outline: this.outlinesRadio })
}
},
/**
Expand All @@ -1214,7 +1214,7 @@ export default {
setOutlines: function (flag) {
this.outlineRadio = flag
if (this.mapImp) {
this.mapImp.setColour({ colour: this.colourRadio, outline: flag })
this.mapImp.setPaint({ colour: this.colourRadio, outline: flag })
}
},
/**
Expand Down
1 change: 1 addition & 0 deletions src/components/SelectionsGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<el-checkbox
class="my-checkbox"
:label="item[identifierKey]"
:value="item[identifierKey]"
@change="visibilityToggle(item[identifierKey], $event)"
@click="onCheckboxNativeChange"
:checked="!('enabled' in item) || item.enabled === true"
Expand Down

0 comments on commit 6eda335

Please sign in to comment.