mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 22:51:25 +08:00
iconpicker 调整
This commit is contained in:
parent
bc60eb9b3e
commit
64321fb03a
@ -18,7 +18,7 @@
|
|||||||
/>
|
/>
|
||||||
<q-img
|
<q-img
|
||||||
class="commandLogo"
|
class="commandLogo"
|
||||||
@click="showIconPicker"
|
@click="showIconPicker = true"
|
||||||
width="64px"
|
width="64px"
|
||||||
:src="currentCommand.features.icon"
|
:src="currentCommand.features.icon"
|
||||||
/>
|
/>
|
||||||
@ -257,11 +257,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<q-dialog v-model="showIconPicker" position="left">
|
||||||
<iconPicker
|
<iconPicker
|
||||||
@iconChanged="(dataUrl) => (currentCommand.features.icon = dataUrl)"
|
@iconChanged="(dataUrl) => (currentCommand.features.icon = dataUrl)"
|
||||||
position="left"
|
|
||||||
ref="icon"
|
ref="icon"
|
||||||
/>
|
/>
|
||||||
|
</q-dialog>
|
||||||
</q-scroll-area>
|
</q-scroll-area>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -296,6 +297,7 @@ export default {
|
|||||||
outputTypesOptions: Object.keys(outputTypes),
|
outputTypesOptions: Object.keys(outputTypes),
|
||||||
specialVar: "{{}}",
|
specialVar: "{{}}",
|
||||||
allQuickCommandTags: this.$parent.allQuickCommandTags,
|
allQuickCommandTags: this.$parent.allQuickCommandTags,
|
||||||
|
showIconPicker: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@ -411,10 +413,6 @@ export default {
|
|||||||
}
|
}
|
||||||
return updateData;
|
return updateData;
|
||||||
},
|
},
|
||||||
|
|
||||||
showIconPicker() {
|
|
||||||
this.$refs.icon.showIconPicker = true;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
|
||||||
<q-dialog v-model="showIconPicker" class="q-gutter" :position="position">
|
|
||||||
<q-card>
|
<q-card>
|
||||||
<q-card-section class="text-h5 text-center">更改图标</q-card-section>
|
<q-card-section class="text-h5 text-center">更改图标</q-card-section>
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
@ -22,9 +20,7 @@
|
|||||||
>
|
>
|
||||||
<template v-slot:no-option>
|
<template v-slot:no-option>
|
||||||
<q-item>
|
<q-item>
|
||||||
<q-item-section class="text-grey">
|
<q-item-section class="text-grey"> 键入关键词搜索 </q-item-section>
|
||||||
键入关键词搜索
|
|
||||||
</q-item-section>
|
|
||||||
</q-item>
|
</q-item>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:selected>
|
<template v-slot:selected>
|
||||||
@ -78,13 +74,9 @@
|
|||||||
></q-input>
|
></q-input>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-card-actions align="right">
|
<q-card-actions align="right">
|
||||||
<q-btn flat color="primary" @click="showIconPicker = false"
|
<q-btn flat color="primary" v-close-popup>确定</q-btn>
|
||||||
>确定</q-btn
|
|
||||||
>
|
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -94,7 +86,6 @@ import pictureCompress from "picture-compressor";
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showIconPicker: false,
|
|
||||||
localIconFile: ref(null),
|
localIconFile: ref(null),
|
||||||
icon8sIcon: ref(null),
|
icon8sIcon: ref(null),
|
||||||
netWorkIconUrl: "",
|
netWorkIconUrl: "",
|
||||||
|
@ -4,9 +4,7 @@
|
|||||||
<div class="row q-gutter-md">
|
<div class="row q-gutter-md">
|
||||||
<div class="col-auto justify-center content-center flex q-pa-md">
|
<div class="col-auto justify-center content-center flex q-pa-md">
|
||||||
<q-avatar square class="commandLogo">
|
<q-avatar square class="commandLogo">
|
||||||
<q-img
|
<q-img :src="features.icon" @click="showIconPicker = true"
|
||||||
:src="features.icon"
|
|
||||||
@click="$refs.icon.showIconPicker = true"
|
|
||||||
/></q-avatar>
|
/></q-avatar>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
@ -42,11 +40,12 @@
|
|||||||
<q-btn flat label="取消" color="grey" v-close-popup />
|
<q-btn flat label="取消" color="grey" v-close-popup />
|
||||||
<q-btn flat label="确定" color="primary" v-close-popup @click="markTag" />
|
<q-btn flat label="确定" color="primary" v-close-popup @click="markTag" />
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
<IconPicker
|
<q-dialog v-model="showIconPicker" position="right">
|
||||||
ref="icon"
|
<iconPicker
|
||||||
@iconChanged="(dataUrl) => (features.icon = dataUrl)"
|
@iconChanged="(dataUrl) => (features.icon = dataUrl)"
|
||||||
position="right"
|
ref="icon"
|
||||||
/>
|
/>
|
||||||
|
</q-dialog>
|
||||||
</q-card>
|
</q-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -64,6 +63,7 @@ export default {
|
|||||||
platform: ["win32", "darwin", "linux"],
|
platform: ["win32", "darwin", "linux"],
|
||||||
code: `panel_${window.hexEncode(this.currentTag)}`,
|
code: `panel_${window.hexEncode(this.currentTag)}`,
|
||||||
},
|
},
|
||||||
|
showIconPicker: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user