1
0
mirror of https://github.com/sahadev/vue-component-creater-ui.git synced 2025-09-28 07:13:21 +08:00

将主要逻辑收拢在Main.vue中,可以跑通

This commit is contained in:
Shangbin
2021-04-10 21:03:35 +08:00
parent e87ebafdcb
commit e5a2ed4484
12 changed files with 322 additions and 855 deletions

View File

@@ -59,7 +59,6 @@
// import vant from "../rawComponents/vant";
// import iview from "../rawComponents/iview";
// import quasar from "../rawComponents/quasar";
const { generateColor } = require('random-color-generator2');
export default {
data() {
@@ -170,7 +169,6 @@ export default {
surprise() {
const that = this;
function color() {
that.$refs.help.style = `color:${that.colorPointer.next().value};font-size: 24px;`;
window.requestAnimationFrame(color);
}
@@ -178,7 +176,7 @@ export default {
}
},
created() { this.colorPointer = generateColor(true, 2); },
created() { },
mounted() {
this.init();