refactor: move components one folder up
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
<div class="checkbox-wrapper" @click="check">
|
||||
<div :class="{ checkbox: true, checked: checked }"></div>
|
||||
<div class="title">{{ title }}</div>
|
||||
<q-btn color="primary">XXX</q-btn>
|
||||
</div>
|
||||
@@ -1,18 +0,0 @@
|
||||
async function initMyCheckbox(path) {
|
||||
const t = await loadTemplateAsync(path)
|
||||
Vue.component('my-checkbox', {
|
||||
name:'my-checkbox',
|
||||
template: t,
|
||||
data() {
|
||||
return { checked: false, title: 'Check me' }
|
||||
},
|
||||
methods: {
|
||||
check() {
|
||||
this.checked = !this.checked;
|
||||
console.log('### checked', this.checked)
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const watchOnly = async () => {
|
||||
Vue.component(VueQrcode.name, VueQrcode)
|
||||
await initMyCheckbox('static/js/components/my-checkbox/my-checkbox.html')
|
||||
await initMyCheckbox('static/components/my-checkbox/my-checkbox.html')
|
||||
|
||||
Vue.filter('reverse', function (value) {
|
||||
// slice to make a copy of array, then reverse the copy
|
||||
@@ -13,7 +13,6 @@ const watchOnly = async () => {
|
||||
mounted: function () {
|
||||
console.log('### mounted')
|
||||
},
|
||||
// components: ['my-checkbox'],
|
||||
data: function () {
|
||||
return {
|
||||
DUST_LIMIT: 546,
|
||||
|
||||
Reference in New Issue
Block a user