guava-ui 0.0.1 → 0.0.3
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/README.md +27 -7
- package/index.html +25 -0
- package/lib/guava-ui.es.js +57 -0
- package/lib/guava-ui.es.js.map +1 -0
- package/lib/guava-ui.umd.js +3 -0
- package/lib/index.css +1 -0
- package/package.json +80 -30
- package/lib/guava-ui.cjs +0 -1
- package/lib/guava-ui.js +0 -15
package/README.md
CHANGED
|
@@ -17,6 +17,18 @@
|
|
|
17
17
|
|
|
18
18
|
## Version - last >= 3
|
|
19
19
|
|
|
20
|
+
> v0.0.3 : 2025.03.19
|
|
21
|
+
>> 按需导入element-plus组件和样式
|
|
22
|
+
>> 引入国际化多语言i18n
|
|
23
|
+
>> vite.config.js编译与打包优化
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
> v0.0.2 : 2024.11.29
|
|
28
|
+
>> pnpm add vite-plugin-svg-icons -D
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
20
32
|
> v0.0.1 : 2024.11.24
|
|
21
33
|
>> 使用 pnpm create vue@latest 脚手架创建工程
|
|
22
34
|
>> pnpm add sass-embedded -D 添加nodejs解析scss依赖
|
|
@@ -43,10 +55,6 @@ $ pnpm run dev
|
|
|
43
55
|
|
|
44
56
|
# 启动构建生产服务
|
|
45
57
|
$ pnpm run build
|
|
46
|
-
|
|
47
|
-
# 本地预览打包后dist目录应用:
|
|
48
|
-
$ npm install serve -g
|
|
49
|
-
$ serve -s ./dist
|
|
50
58
|
```
|
|
51
59
|
|
|
52
60
|
## Modules
|
|
@@ -65,8 +73,21 @@ $ serve -s ./dist
|
|
|
65
73
|
- `@commitlint/{config-conventional,cli}` git commit注视规范检查插件
|
|
66
74
|
- `lint-staged` 对已经通过 git add 暂存的文件运行linters进行检测
|
|
67
75
|
- `terser` JavaScript 压缩工具,它是 UglifyJS 的一个现代分支,支持更新的 JavaScript 特性(如 ES6+)
|
|
68
|
-
- `stylelint` pnpm add stylelint stylelint-config-standard stylelint-config-standard-scss stylelint-order stylelint-prettier stylelint-config-prettier stylelint-config-recommended-vue stylelint-config-recommended stylelint-config-recess-order stylelint-config-recess-order -D
|
|
69
|
-
|
|
76
|
+
- `stylelint` pnpm add stylelint stylelint-config-standard stylelint-config-standard-scss stylelint-order stylelint-prettier stylelint-config-prettier stylelint-config-recommended-vue stylelint-config-recommended stylelint-config-recess-order stylelint-config-recess-order stylelint-scss -D
|
|
77
|
+
- `dayjs` pnpm add dayjs JavaScript 日期库,支持国际化显示和各种格式的日期和时间的解析和格式化
|
|
78
|
+
- `vite-plugin-style-import` 按需加载组件库的样式
|
|
79
|
+
- `pinia` vuex替换组件,管理全局state状态
|
|
80
|
+
- `pinia-plugin-persistedstate` pinia 状态持久化到localStorage或SessionStorage
|
|
81
|
+
- `vite-plugin-ejs` 支持 EJS(Embedded JavaScript Templates) 模板语法。在 HTML 模板中使用动态数据(`<%=%>`)
|
|
82
|
+
- `vite-plugin-url-copy` Vite 开发服务器启动后,自动复制 URL 到剪贴板,方便你直接粘贴到浏览器或终端中
|
|
83
|
+
- `vite-plugin-svg-icons` Vite 插件,用于自动加载本地 SVG 图标,并将其转换为 SVG Sprite(SVG 精灵图),从而减少 HTTP 请求,提高性能
|
|
84
|
+
- `vite-plugin-purge-icons` Vite 插件,用于按需导入和自动优化 SVG 图标,可以直接使用 Material Icons、FontAwesome、Tabler Icons、Heroicons 等上千个图标库,而不需要手动安装或导入
|
|
85
|
+
- `vite-plugin-full-reload` Vite 插件,用于监听指定文件,并在更改时触发整个页面的刷新(而不仅仅是 HMR 热更新)(修改 vite.config.js 等配置文件后,HMR 不能自动生效)
|
|
86
|
+
- `rollup-plugin-visualizer` Vite 构建体积分析插件.Rollup 插件,用于 Vite、Rollup、Webpack 项目,生成一个 交互式的可视化报告,分析 构建体积、依赖大小、包的嵌套关系
|
|
87
|
+
- `browserslist` 一个工具,用于定义项目要支持的浏览器范围
|
|
88
|
+
- `@vitejs/plugin-legacy` Vite 官方插件,用于让 Vite 项目兼容 旧版浏览器(如 IE11 或较旧的 Chrome、Safari、Firefox 版本)
|
|
89
|
+
- `@rollup/plugin-commonjs` Rollup 官方插件,用于让 Rollup 兼容 CommonJS 模块
|
|
90
|
+
|
|
70
91
|
## Catalog
|
|
71
92
|
|
|
72
93
|
```text
|
|
@@ -111,7 +132,6 @@ $ serve -s ./dist
|
|
|
111
132
|
- refactor 重构(即不是新增功能,也不是修改 BUG 的代码)
|
|
112
133
|
- perf 优化相关,比如提升性能、体验
|
|
113
134
|
- test 添加测试
|
|
114
|
-
- build 编译相关的修改,对项目构建或者依赖的改动
|
|
115
135
|
- ci 持续集成修改
|
|
116
136
|
- chore 构建过程或辅助工具的变动
|
|
117
137
|
- revert 回滚到上一个版本
|
package/index.html
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<link rel="shortcut icon" href="/favicon.ico">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1, user-scalable=no" />
|
|
8
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
9
|
+
<meta http-equiv="Content-Security-Policy" content="default-src *; img-src * 'self' data: https:; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; style-src * 'self' 'unsafe-inline' https: http:*; font-src * 'self' data: https: http: *" />
|
|
10
|
+
|
|
11
|
+
<meta name="mobile-web-app-capable" content="yes">
|
|
12
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
13
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
14
|
+
<!-- EJS 语法 -->
|
|
15
|
+
<title>
|
|
16
|
+
<%= title %>
|
|
17
|
+
</title>
|
|
18
|
+
</head>
|
|
19
|
+
|
|
20
|
+
<body>
|
|
21
|
+
<div id="app"></div>
|
|
22
|
+
<script type="module" src="/src/main.ts"></script>
|
|
23
|
+
</body>
|
|
24
|
+
|
|
25
|
+
</html>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { defineComponent as i, computed as r, watch as m, createVNode as v, resolveComponent as f } from "vue";
|
|
2
|
+
const d = /* @__PURE__ */ i({
|
|
3
|
+
name: "GvButton",
|
|
4
|
+
// --- pass params between parent-child ---
|
|
5
|
+
props: {
|
|
6
|
+
message: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "GvButton",
|
|
9
|
+
request: !1
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
// --- register components ---
|
|
13
|
+
components: {},
|
|
14
|
+
// --- pass events between parent-child ---
|
|
15
|
+
emits: ["click", "submit"],
|
|
16
|
+
setup(e, {
|
|
17
|
+
emit: o,
|
|
18
|
+
slots: n
|
|
19
|
+
}) {
|
|
20
|
+
const c = r(() => {
|
|
21
|
+
var t;
|
|
22
|
+
return (t = n.default) == null ? void 0 : t.call(n);
|
|
23
|
+
});
|
|
24
|
+
m(() => e.message, (t) => {
|
|
25
|
+
console.log("GvButton:" + t);
|
|
26
|
+
});
|
|
27
|
+
const a = (t, u) => {
|
|
28
|
+
alert("this is a child event"), o("click", t, u);
|
|
29
|
+
};
|
|
30
|
+
return () => v(f("el-button"), {
|
|
31
|
+
class: "gv-button",
|
|
32
|
+
onClick: (t) => a(t, e.message)
|
|
33
|
+
}, {
|
|
34
|
+
default: () => {
|
|
35
|
+
var t;
|
|
36
|
+
return [(t = c.value) != null ? t : e.message];
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}), p = (e, o) => {
|
|
41
|
+
const n = e.__vccOpts || e;
|
|
42
|
+
for (const [c, a] of o)
|
|
43
|
+
n[c] = a;
|
|
44
|
+
return n;
|
|
45
|
+
}, l = /* @__PURE__ */ p(d, [["__scopeId", "data-v-73064ac2"]]), g = {
|
|
46
|
+
install(e) {
|
|
47
|
+
e.component(l.name || "GvButton", l);
|
|
48
|
+
}
|
|
49
|
+
}, _ = [g], s = (e) => {
|
|
50
|
+
s.INSTALLED || (s.INSTALLED = !0, _.forEach((o) => o.install(e)));
|
|
51
|
+
}, B = {
|
|
52
|
+
install: s
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
B as default
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=guava-ui.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guava-ui.es.js","sources":["../packages/GvButton/GvButton.vue","../packages/GvButton/index.ts","../packages/index.ts"],"sourcesContent":["<!--\n * @title: GvButton组件,基于el-button封装\n * @author: andy.ten@tom.com & xukaixing@hotmail.com\n * @Date: 2025-02-27 17:07:51\n * @LastEditors: andy.ten@tom.com\n * @LastEditTime: 2025-03-22 10:58:35\n * @version: 1.0.1\n * @copyright: copyright (c) 2025 Andy Xu \n * node: you can not copy and/or use and/or modify this program free,\n * please reserve the segment above.Please mail me if you have any question.\n-->\n\n<script lang=\"tsx\">\n import { defineComponent, computed, watch } from 'vue';\n\n export default defineComponent({\n name: 'GvButton',\n // --- pass params between parent-child ---\n props: {\n message: {\n type: String,\n default: 'GvButton',\n request: false,\n },\n },\n // --- register components ---\n components: {},\n // --- pass events between parent-child ---\n emits: ['click', 'submit'],\n\n setup(props, { emit, slots }) {\n // --- define computed ---\n // get default slot, Note: check if the slot is empty\n const getSlots = computed(() => slots.default?.());\n\n // --- listen data ---\n watch(\n () => props.message,\n (newVal) => {\n console.log('GvButton:' + newVal);\n },\n );\n\n // --- define Methods ---\n const handleClick = (event: MouseEvent, msg: string): void => {\n alert('this is a child event');\n emit('click', event, msg);\n };\n\n // render jsx\n return (): any => (\n <el-button\n class=\"gv-button\"\n onClick={(event) => handleClick(event, props.message)}>\n {getSlots.value ?? props.message}\n </el-button>\n );\n },\n });\n</script>\n\n<style lang=\"scss\" scoped>\n .gv-button {\n &:hover {\n color: red;\n }\n }\n</style>\n","import type { App } from 'vue';\nimport GvButton from './GvButton.vue';\n// Define the install method on the GvButton component\nconst GvButtonPlugin = {\n install(app: App): void {\n app.component(GvButton.name || 'GvButton', GvButton);\n },\n};\nexport default GvButtonPlugin;\n// export { GvButton };\n","/*\n * @title: package lib entry\n * @author: andy.ten@tom.com & xukaixing@hotmail.com\n * @Date: 2024-11-28 18:18:44\n * @LastEditors: andy.ten@tom.com\n * @LastEditTime: 2025-03-19 15:58:41\n * @version: 1.0.1\n * @copyright: copyright (c) 2024 Andy Xu\n * node: you can not copy and/or use and/or modify this program free,\n * please reserve the segment above.Please mail me if you have any question.\n */\nimport type { App } from 'vue';\nimport GvButtonPlugin from './GvButton/index';\n\nconst components = [GvButtonPlugin];\n\n// 定义 install 方法, App 作为参数\nconst install = (app: App): void => {\n if (install['INSTALLED']) return;\n install['INSTALLED'] = true;\n // 遍历注册所有组件\n components.forEach((component) => component.install(app));\n};\n\nconst GuavaUi = {\n install,\n};\n\nexport default GuavaUi;\n\n// 按需加载\n// export { GvButton };\n"],"names":["defineComponent","name","props","message","type","String","default","request","components","emits","setup","emit","slots","getSlots","computed","watch","newVal","console","log","handleClick","event","msg","alert","_createVNode","_resolveComponent","value","_export_sfc","sfc","GvButtonPlugin","app","GvButton","install","component","GuavaUi"],"mappings":";AAeE,MAAeA,sBAAgB;AAAA,EAC7BC,MAAM;AAAA;AAAA,EAENC,OAAO;AAAA,IACLC,SAAS;AAAA,MACPC,MAAMC;AAAAA,MACNC,SAAS;AAAA,MACTC,SAAS;AAAA,IACX;AAAA,EACD;AAAA;AAAA,EAEDC,YAAY,CAAE;AAAA;AAAA,EAEdC,OAAO,CAAC,SAAS,QAAQ;AAAA,EAEzBC,MAAMR,GAAO;AAAA,IAAES,MAAAA;AAAAA,IAAMC,OAAAA;AAAAA,EAAM,GAAG;AAG5B,UAAMC,IAAWC,EAAS;;AAAMF,cAAAA,IAAAA,EAAMN,YAANM,gBAAAA,EAAAA,KAAAA;AAAAA,KAAiB;AAGjDG,IAAAA,EACE,MAAMb,EAAMC,SACXa,CAAAA,MAAW;AACVC,cAAQC,IAAI,cAAcF,CAAM;AAAA,IAClC,CACF;AAGA,UAAMG,IAAcA,CAACC,GAAmBC,MAAsB;AAC5DC,YAAM,uBAAuB,GAC7BX,EAAK,SAASS,GAAOC,CAAG;AAAA,IACzB;AAGD,WAAO,MAAAE,EAAAC,EAAA,WAAA,GAAA;AAAA,MAAA,OAAA;AAAA,MAAA,SAGOJ,CAAAA,MAAUD,EAAYC,GAAOlB,EAAMC,OAAO;AAAA,IAAC,GAAA;AAAA,MAAAG,SAAAA,MAAAA;;AACpDO,iBAAAA,IAAAA,EAASY,UAATZ,OAAAA,IAAkBX,EAAMC,OAAO;AAAA;AAAA,KAEnC;AAAA,EACH;AACF,CAAC,GAACuB,IAAA,CAAAC,GAAAzB,MAAA;;;;;iECvDE0B,IAAiB;AAAA,EACrB,QAAQC,GAAgB;AACtB,IAAAA,EAAI,UAAUC,EAAS,QAAQ,YAAYA,CAAQ;AAAA,EAAA;AAEvD,GCOMtB,IAAa,CAACoB,CAAc,GAG5BG,IAAU,CAACF,MAAmB;AAC9B,EAAAE,EAAQ,cACZA,EAAQ,YAAe,IAEvBvB,EAAW,QAAQ,CAACwB,MAAcA,EAAU,QAAQH,CAAG,CAAC;AAC1D,GAEMI,IAAU;AAAA,EACd,SAAAF;AACF;"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
(function(e,o){typeof exports=="object"&&typeof module!="undefined"?module.exports=o(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o):(e=typeof globalThis!="undefined"?globalThis:e||self,e["guava-ui"]=o(e.Vue))})(this,function(e){"use strict";var o=document.createElement("style");o.textContent=`.gv-button[data-v-73064ac2]:hover{color:red}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(o);const l=((n,c)=>{const a=n.__vccOpts||n;for(const[u,i]of c)a[u]=i;return a})(e.defineComponent({name:"GvButton",props:{message:{type:String,default:"GvButton",request:!1}},components:{},emits:["click","submit"],setup(n,{emit:c,slots:a}){const u=e.computed(()=>{var t;return(t=a.default)==null?void 0:t.call(a)});e.watch(()=>n.message,t=>{console.log("GvButton:"+t)});const i=(t,d)=>{alert("this is a child event"),c("click",t,d)};return()=>e.createVNode(e.resolveComponent("el-button"),{class:"gv-button",onClick:t=>i(t,n.message)},{default:()=>{var t;return[(t=u.value)!=null?t:n.message]}})}}),[["__scopeId","data-v-73064ac2"]]),r=[{install(n){n.component(l.name||"GvButton",l)}}],s=n=>{s.INSTALLED||(s.INSTALLED=!0,r.forEach(c=>c.install(n)))};return{install:s}});
|
|
3
|
+
//# sourceMappingURL=guava-ui.umd.js.map
|
package/lib/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.gv-button[data-v-73064ac2]:hover{color:red}
|
package/package.json
CHANGED
|
@@ -1,25 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "guava-ui",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "vue3 & element-plus & typesScript & vite
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "vue3 & element-plus & typesScript & vite UI platform",
|
|
5
5
|
"author": "Andy <xukaixing@hotmail.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"private": false,
|
|
8
|
+
"main": "index.html",
|
|
8
9
|
"type": "module",
|
|
9
10
|
"scripts": {
|
|
10
11
|
"dev": "pnpm vite --mode dev",
|
|
11
|
-
"build": "pnpm vite build --mode
|
|
12
|
+
"build": "pnpm vite build --mode prod",
|
|
12
13
|
"build:no-cache": "npm clean:cache && npm run build",
|
|
13
|
-
"lib": "pnpm vite build",
|
|
14
|
+
"lib": "pnpm vite build ",
|
|
14
15
|
"prepare": "npx husky install",
|
|
15
16
|
"preview": "pnpm vite preview",
|
|
16
|
-
"clean
|
|
17
|
+
"clean": "rimraf yarn.lock && rimraf package.lock.json && rimraf pnpm-lock.yaml && rimraf node_modules && pnpm install",
|
|
17
18
|
"upgrade": "ncu -u && pnpm install",
|
|
18
19
|
"lint:lint-staged": "lint-staged -c ./.lintstagedrc.mjs",
|
|
19
20
|
"lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore",
|
|
20
21
|
"lint:prettier": "prettier --write --fix --loglevel warn \"./**/*.{js,ts,json,jsx,tsx,css,less,scss,vue,html}\"",
|
|
21
22
|
"lint:stylelint": "stylelint --cache --fix \"src/**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
|
|
22
|
-
"commitlint": "commitlint --
|
|
23
|
+
"commitlint": "commitlint --config .commitlintrc.mjs -e -V"
|
|
24
|
+
},
|
|
25
|
+
"husky": {
|
|
26
|
+
"hooks": {
|
|
27
|
+
"pre-commit": "lint-staged",
|
|
28
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
29
|
+
}
|
|
23
30
|
},
|
|
24
31
|
"lint-staged": {
|
|
25
32
|
"*.js": "eslint --cache --fix",
|
|
@@ -29,27 +36,51 @@
|
|
|
29
36
|
"*.css": "stylelint --fix"
|
|
30
37
|
},
|
|
31
38
|
"dependencies": {
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
39
|
+
"axios": "^1.7.8",
|
|
40
|
+
"dayjs": "^1.11.13",
|
|
41
|
+
"echarts": "^5.5.1",
|
|
42
|
+
"echarts-wordcloud": "^2.1.0",
|
|
43
|
+
"element-plus": "^2.9.2",
|
|
44
|
+
"lodash-es": "^4.17.21",
|
|
45
|
+
"nprogress": "^0.2.0",
|
|
46
|
+
"pinia": "^2.3.0",
|
|
47
|
+
"pinia-plugin-persistedstate": "^4.2.0",
|
|
48
|
+
"qrcode": "^1.5.4",
|
|
49
|
+
"qs": "^6.13.1",
|
|
50
|
+
"vue": "^3.5.13",
|
|
51
|
+
"vue-i18n": "^11.0.1",
|
|
52
|
+
"vue-router": "^4.5.0",
|
|
53
|
+
"vue-types": "^5.1.3"
|
|
35
54
|
},
|
|
36
55
|
"devDependencies": {
|
|
37
56
|
"@commitlint/cli": "^19.6.0",
|
|
38
57
|
"@commitlint/config-conventional": "^19.6.0",
|
|
58
|
+
"@eslint/js": "^9.21.0",
|
|
59
|
+
"@rollup/plugin-commonjs": "^28.0.3",
|
|
60
|
+
"@stylistic/eslint-plugin": "^2.12.1",
|
|
39
61
|
"@tsconfig/node20": "^20.0.0",
|
|
40
|
-
"@types/
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
62
|
+
"@types/echarts": "^4.9.22",
|
|
63
|
+
"@types/lodash-es": "^4.17.12",
|
|
64
|
+
"@types/node": "^22.10.5",
|
|
65
|
+
"@types/qrcode": "^1.5.5",
|
|
66
|
+
"@types/qs": "^6.9.17",
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^8.19.1",
|
|
68
|
+
"@typescript-eslint/parser": "^8.19.1",
|
|
69
|
+
"@vitejs/plugin-legacy": "^6.0.2",
|
|
70
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
71
|
+
"@vitejs/plugin-vue-jsx": "^4.1.1",
|
|
45
72
|
"@vue/eslint-config-typescript": "^14.1.3",
|
|
46
73
|
"@vue/tsconfig": "^0.5.1",
|
|
47
74
|
"autoprefixer": "^10.4.20",
|
|
48
|
-
"
|
|
75
|
+
"browserslist": "^4.24.4",
|
|
76
|
+
"consola": "^3.4.2",
|
|
77
|
+
"eslint": "^9.17.0",
|
|
49
78
|
"eslint-config-prettier": "^9.1.0",
|
|
79
|
+
"eslint-define-config": "^2.1.0",
|
|
50
80
|
"eslint-plugin-oxlint": "^0.11.0",
|
|
51
81
|
"eslint-plugin-prettier": "^5.2.1",
|
|
52
|
-
"eslint-plugin-vue": "^9.
|
|
82
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
83
|
+
"globals": "^15.12.0",
|
|
53
84
|
"husky": "^9.1.7",
|
|
54
85
|
"lint-staged": "^15.2.10",
|
|
55
86
|
"npm-run-all2": "^7.0.1",
|
|
@@ -59,9 +90,12 @@
|
|
|
59
90
|
"postcss-preset-env": "^10.1.1",
|
|
60
91
|
"postcss-px-to-viewport-8-plugin": "^1.2.5",
|
|
61
92
|
"postcss-scss": "^4.0.9",
|
|
62
|
-
"prettier": "^3.
|
|
93
|
+
"prettier": "^3.4.2",
|
|
94
|
+
"rollup": "^4.30.1",
|
|
95
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
63
96
|
"sass-embedded": "^1.81.0",
|
|
64
|
-
"stylelint": "^16.
|
|
97
|
+
"stylelint": "^16.12.0",
|
|
98
|
+
"stylelint-config-html": "^1.1.0",
|
|
65
99
|
"stylelint-config-prettier": "^9.0.5",
|
|
66
100
|
"stylelint-config-recess-order": "^5.1.1",
|
|
67
101
|
"stylelint-config-recommended": "^14.0.1",
|
|
@@ -70,33 +104,49 @@
|
|
|
70
104
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
71
105
|
"stylelint-order": "^6.0.4",
|
|
72
106
|
"stylelint-prettier": "^5.0.2",
|
|
73
|
-
"terser": "^5.
|
|
74
|
-
"typescript": "~5.
|
|
75
|
-
"
|
|
107
|
+
"terser": "^5.39.0",
|
|
108
|
+
"typescript": "~5.7.3",
|
|
109
|
+
"typescript-eslint": "^8.19.1",
|
|
110
|
+
"vite": "^6.0.7",
|
|
111
|
+
"vite-plugin-compression2": "^1.3.3",
|
|
112
|
+
"vite-plugin-ejs": "^1.7.0",
|
|
76
113
|
"vite-plugin-eslint": "^1.8.1",
|
|
114
|
+
"vite-plugin-full-reload": "^1.2.0",
|
|
77
115
|
"vite-plugin-progress": "^0.0.7",
|
|
116
|
+
"vite-plugin-purge-icons": "^0.10.0",
|
|
117
|
+
"vite-plugin-pwa": "^0.21.0",
|
|
118
|
+
"vite-plugin-style-import": "^2.0.0",
|
|
119
|
+
"vite-plugin-svg-icons": "^2.0.1",
|
|
120
|
+
"vite-plugin-url-copy": "^1.1.4",
|
|
78
121
|
"vite-plugin-vue-devtools": "^7.5.4",
|
|
79
|
-
"vue-
|
|
80
|
-
"vue-tsc": "^2.1.10"
|
|
122
|
+
"vue-tsc": "^2.2.0"
|
|
81
123
|
},
|
|
82
124
|
"files": [
|
|
83
125
|
"lib/static",
|
|
84
|
-
"lib/guava-ui.
|
|
85
|
-
"lib/guava-ui.
|
|
86
|
-
"lib/guava-ui.js"
|
|
126
|
+
"lib/guava-ui.es.js",
|
|
127
|
+
"lib/guava-ui.es.js.map",
|
|
128
|
+
"lib/guava-ui.umd.js",
|
|
129
|
+
"lib/guava-ui.umd.map.js",
|
|
130
|
+
"lib/index.css"
|
|
87
131
|
],
|
|
88
|
-
"packageManager": "pnpm@
|
|
132
|
+
"packageManager": "pnpm@10.6.5",
|
|
89
133
|
"engines": {
|
|
90
134
|
"node": "20.18.0",
|
|
91
|
-
"
|
|
135
|
+
"pnpm": ">=10.6.5"
|
|
92
136
|
},
|
|
93
137
|
"keywords": [
|
|
94
138
|
"vue3",
|
|
139
|
+
"typescript",
|
|
95
140
|
"vite",
|
|
141
|
+
"vue-router",
|
|
142
|
+
"pinia",
|
|
96
143
|
"element-plus",
|
|
97
|
-
"
|
|
98
|
-
"guava"
|
|
144
|
+
"i18n",
|
|
145
|
+
"guava-ui"
|
|
99
146
|
],
|
|
147
|
+
"publishConfig": {
|
|
148
|
+
"registry": "https://registry.npmjs.org/"
|
|
149
|
+
},
|
|
100
150
|
"repository": {
|
|
101
151
|
"type": "git",
|
|
102
152
|
"url": "https://gitee.com/xukaixing/guava-ui.git"
|
package/lib/guava-ui.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vue-CKh7LjAU.cjs");exports.useFlag=(t=!1)=>{const r=e.r(t);return{flag:r,setFlag:e=>{r.value=void 0!==e?e:!r.value}}};
|
package/lib/guava-ui.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as ref } from "./vue-DezUuk3_.js";
|
|
2
|
-
const useFlag = (defind = false) => {
|
|
3
|
-
const flag = ref(defind);
|
|
4
|
-
const setFlag = (defind2) => {
|
|
5
|
-
if (typeof defind2 === "undefined") {
|
|
6
|
-
flag.value = !flag.value;
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
flag.value = defind2;
|
|
10
|
-
};
|
|
11
|
-
return { flag, setFlag };
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
useFlag
|
|
15
|
-
};
|