mirror of
https://github.com/halo-dev/plugin-starter.git
synced 2025-10-15 07:32:12 +00:00
chore: update plugin config
This commit is contained in:
@@ -23,7 +23,7 @@ export default definePlugin({
|
|||||||
title: "HelloWorld",
|
title: "HelloWorld",
|
||||||
searchable: true,
|
searchable: true,
|
||||||
menu: {
|
menu: {
|
||||||
name: "迁移",
|
name: "PluginStarter",
|
||||||
group: "From PluginStarter",
|
group: "From PluginStarter",
|
||||||
icon: markRaw(IconGrid),
|
icon: markRaw(IconGrid),
|
||||||
priority: 0,
|
priority: 0,
|
||||||
|
@@ -12,11 +12,20 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="title">Hello World</div>
|
<div class="app">
|
||||||
<img v-permission="['plugin:apples:view']" :src="logo" alt="logo"/>
|
<div class="title">Hello World</div>
|
||||||
|
<img v-permission="['plugin:apples:view']" :src="logo" alt="logo"/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.app {
|
||||||
|
background-color: #fff;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
.title {
|
.title {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
img {
|
||||||
|
width: 64px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@@ -4,6 +4,8 @@ import { defineConfig } from "vite";
|
|||||||
import vue from "@vitejs/plugin-vue";
|
import vue from "@vitejs/plugin-vue";
|
||||||
import vueJsx from "@vitejs/plugin-vue-jsx";
|
import vueJsx from "@vitejs/plugin-vue-jsx";
|
||||||
|
|
||||||
|
const pluginEntryName = "PluginStarter"
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [vue(), vueJsx()],
|
plugins: [vue(), vueJsx()],
|
||||||
@@ -19,7 +21,7 @@ export default defineConfig({
|
|||||||
emptyOutDir: true,
|
emptyOutDir: true,
|
||||||
lib: {
|
lib: {
|
||||||
entry: "src/index.ts",
|
entry: "src/index.ts",
|
||||||
name: "PluginStarter",
|
name: pluginEntryName,
|
||||||
formats: ["iife"],
|
formats: ["iife"],
|
||||||
fileName: () => "main.js",
|
fileName: () => "main.js",
|
||||||
},
|
},
|
||||||
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
.title[data-v-e98165fe]{color:red}.title{font-size:20px}
|
.app[data-v-d2e9f81a]{background-color:#fff;min-height:100%;width:100%}.title[data-v-d2e9f81a]{color:red}img[data-v-d2e9f81a]{width:64px}.title{font-size:20px}
|
||||||
|
Reference in New Issue
Block a user