mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-11-03 13:25:24 +00:00
format
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './index.vue'
|
||||
import CCP from 'cc-plugin/src/ccp/entry-render';
|
||||
import pluginConfig from '../../cc-plugin.config'
|
||||
import ccui from '@xuyanfeng/cc-ui';
|
||||
import '@xuyanfeng/cc-ui/dist/ccui.css';
|
||||
import '@xuyanfeng/cc-ui/iconfont/iconfont.css';
|
||||
import CCP from 'cc-plugin/src/ccp/entry-render';
|
||||
import { createApp } from 'vue';
|
||||
import pluginConfig from '../../cc-plugin.config';
|
||||
import App from './index.vue';
|
||||
|
||||
export default CCP.init(pluginConfig, {
|
||||
ready: function (rootElement: any, args: any) {
|
||||
const app = createApp(App)
|
||||
app.use(ccui)
|
||||
app.mount(rootElement)
|
||||
}
|
||||
ready: function (rootElement: any, args: any) {
|
||||
const app = createApp(App)
|
||||
app.use(ccui)
|
||||
app.mount(rootElement)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -5,16 +5,16 @@
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent, onMounted, ref, provide, nextTick } from 'vue';
|
||||
import PluginConfig from '../../cc-plugin.config';
|
||||
import ccui from '@xuyanfeng/cc-ui';
|
||||
import ccui from "@xuyanfeng/cc-ui";
|
||||
import { defineComponent, nextTick, onMounted, provide, ref } from "vue";
|
||||
import PluginConfig from "../../cc-plugin.config";
|
||||
const { CCInput, CCButton } = ccui.components;
|
||||
export default defineComponent({
|
||||
name: 'index',
|
||||
name: "index",
|
||||
components: { CCButton },
|
||||
setup(props, { emit }) {
|
||||
onMounted(() => {
|
||||
console.log('hi ~~~');
|
||||
console.log("hi ~~~");
|
||||
});
|
||||
const msg = ref(PluginConfig.manifest.name);
|
||||
const count = ref(0);
|
||||
@@ -23,7 +23,7 @@ export default defineComponent({
|
||||
count,
|
||||
onClickBtn() {
|
||||
count.value++;
|
||||
console.log('click btn');
|
||||
console.log("click btn");
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user