@yqg/permission 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/extensions.json +3 -0
- package/README.md +5 -0
- package/dist/apply-modal-Ce5S_Tci.js +6821 -0
- package/dist/checkbox-item-CKI49e8K.js +4688 -0
- package/dist/index-Cquyab03.js +6162 -0
- package/dist/index.js +5 -0
- package/dist/index.umd.cjs +271 -0
- package/dist/vite.svg +1 -0
- package/dist/yqg-permission-CnUnm_PT.js +16882 -0
- package/index.html +14 -0
- package/package.json +29 -0
- package/public/vite.svg +1 -0
- package/src/App.vue +79 -0
- package/src/assets/applying.png +0 -0
- package/src/assets/arrow.png +0 -0
- package/src/assets/department.png +0 -0
- package/src/assets/noauthority.png +0 -0
- package/src/axios/axios.ts +59 -0
- package/src/axios/index.ts +15 -0
- package/src/components/apply-modal.vue +177 -0
- package/src/components/approval-steps.vue +67 -0
- package/src/components/checkbox-item.vue +194 -0
- package/src/components/success-modal.vue +51 -0
- package/src/components/yqg-permission.vue +208 -0
- package/src/i18n/en-US.ts +52 -0
- package/src/i18n/index.ts +11 -0
- package/src/i18n/zh-CH.ts +52 -0
- package/src/main.ts +9 -0
- package/src/style.css +81 -0
- package/src/typings/index.d.ts +53 -0
- package/src/utils/index.ts +47 -0
- package/src/vite-env.d.ts +1 -0
- package/src/yqg-permission/index.ts +61 -0
- package/tsconfig.app.json +25 -0
- package/tsconfig.json +10 -0
- package/tsconfig.node.json +23 -0
- package/vite.config.ts +32 -0
package/vite.config.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import vue from '@vitejs/plugin-vue';
|
|
2
|
+
import { defineConfig } from 'vite';
|
|
3
|
+
|
|
4
|
+
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'
|
|
5
|
+
|
|
6
|
+
// https://vite.dev/config/
|
|
7
|
+
export default defineConfig({
|
|
8
|
+
plugins: [vue(), cssInjectedByJsPlugin()],
|
|
9
|
+
resolve: {
|
|
10
|
+
alias: {
|
|
11
|
+
'@': '/src',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
server: {
|
|
15
|
+
proxy: {
|
|
16
|
+
'/admin': {
|
|
17
|
+
target: 'https://crane-test.yangqianguan.com',
|
|
18
|
+
changeOrigin: true,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
build: {
|
|
23
|
+
// 把style.css 内联到js文件中
|
|
24
|
+
cssCodeSplit: false,
|
|
25
|
+
lib: {
|
|
26
|
+
entry: 'src/yqg-permission/index.ts',
|
|
27
|
+
name: 'yqg-permission',
|
|
28
|
+
fileName: 'index',
|
|
29
|
+
formats: ['es', 'umd'],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
});
|