joy-admin-components 0.1.23 → 0.1.24
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/package.json +15 -3
- package/src/components/CmpDictionary/index.d.ts +4 -0
- package/src/components/ConfrimButton/index.d.ts +4 -0
- package/src/components/ImportButton/index.d.ts +4 -0
- package/src/components/LayOutForm/index.d.ts +4 -0
- package/src/components/ListPage/index.d.ts +4 -0
- package/src/components/SearchBar/index.d.ts +4 -0
- package/.nvmrc +0 -1
- package/index.html +0 -23
- package/src/App.vue +0 -12
- package/src/index.js +0 -3
- package/src/main.js +0 -16
- package/vite.config.js +0 -38
package/package.json
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joy-admin-components",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"main": "./
|
|
3
|
+
"version": "0.1.24",
|
|
4
|
+
"main": "./dist/joy-admin-components.umd.js",
|
|
5
|
+
"module": "./dist/joy-admin-components.es.js",
|
|
6
|
+
"types": "./src/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
"./components/*": {
|
|
9
|
+
"types": "./src/components/*/index.d.ts",
|
|
10
|
+
"import": "./src/components/*/index.vue"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"src/components"
|
|
15
|
+
],
|
|
5
16
|
"scripts": {
|
|
6
17
|
"dev": "vite",
|
|
7
18
|
"build": "vite build",
|
|
@@ -15,7 +26,8 @@
|
|
|
15
26
|
"vue": "^3.3.4",
|
|
16
27
|
"element-plus": "^2.3.8",
|
|
17
28
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
18
|
-
"vite": "^4.4.6"
|
|
29
|
+
"vite": "^4.4.6",
|
|
30
|
+
"vue-i18n": "^9.10.1"
|
|
19
31
|
},
|
|
20
32
|
"devDependencies": {}
|
|
21
33
|
}
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
v18.18.0
|
package/index.html
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" href="/favicon.ico" />
|
|
6
|
-
<link rel="stylesheet" href="//at.alicdn.com/t/font_2570680_gkyjimtz1d.css" />
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
-
<!-- <script src="https://cdn.staticfile.net/translate.js/3.1.2/translate.js"></script> -->
|
|
9
|
-
<title></title>
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
<div id="app"></div>
|
|
13
|
-
<script type="module" src="/src/main.js"></script>
|
|
14
|
-
<!-- <script>
|
|
15
|
-
translate.language.setLocal('chinese_simplified'); //设置本地语种(当前网页的语种)。如果不设置,默认自动识别当前网页显示文字的语种。 可填写如 'english'、'chinese_simplified' 等,具体参见文档下方关于此的说明。
|
|
16
|
-
translate.service.use('client.edge'); //设置机器翻译服务通道,直接客户端本身,不依赖服务端 。相关说明参考 http://translate.zvo.cn/43086.html
|
|
17
|
-
translate.execute(); //进行翻译
|
|
18
|
-
document.body.addEventListener('click', () => {
|
|
19
|
-
translate.execute(); //进行翻译
|
|
20
|
-
});
|
|
21
|
-
</script> -->
|
|
22
|
-
</body>
|
|
23
|
-
</html>
|
package/src/App.vue
DELETED
package/src/index.js
DELETED
package/src/main.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Date: 2022-05-22 20:44:25
|
|
3
|
-
* @Description:
|
|
4
|
-
*/
|
|
5
|
-
import { createApp } from 'vue';
|
|
6
|
-
import App from './App.vue';
|
|
7
|
-
import JoyAdminComponents from './index.js';
|
|
8
|
-
import ElementPlus from "element-plus";
|
|
9
|
-
import "element-plus/theme-chalk/display.css"; // 引入基于断点的隐藏类
|
|
10
|
-
import "element-plus/dist/index.css";
|
|
11
|
-
|
|
12
|
-
const app = createApp(App);
|
|
13
|
-
app.use(JoyAdminComponents);
|
|
14
|
-
app.use(ElementPlus);
|
|
15
|
-
|
|
16
|
-
app.mount("#app");
|
package/vite.config.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import vue from '@vitejs/plugin-vue'
|
|
3
|
-
|
|
4
|
-
// https://vitejs.dev/config/
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
plugins: [vue()],
|
|
7
|
-
define: {
|
|
8
|
-
// enable hydration mismatch details in production build
|
|
9
|
-
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: "true",
|
|
10
|
-
},
|
|
11
|
-
base: "./",
|
|
12
|
-
build: {
|
|
13
|
-
lib: {
|
|
14
|
-
entry: "./src/index.js",
|
|
15
|
-
name: "JoyAdminComponents",
|
|
16
|
-
fileName: (format) => `joy-admin-components.${format}.js`,
|
|
17
|
-
},
|
|
18
|
-
rollupOptions: {
|
|
19
|
-
external: ["vue", "element-plus"],
|
|
20
|
-
output: {
|
|
21
|
-
globals: {
|
|
22
|
-
vue: "Vue",
|
|
23
|
-
"element-plus": "ElementPlus",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
server: {
|
|
29
|
-
watch: {
|
|
30
|
-
usePolling: true, // 修复HMR热更新失效
|
|
31
|
-
overlay: true,
|
|
32
|
-
},
|
|
33
|
-
port: 3008,
|
|
34
|
-
host: "0.0.0.0",
|
|
35
|
-
hmr: true,
|
|
36
|
-
open: true,
|
|
37
|
-
},
|
|
38
|
-
});
|