sunyard-szyy-ui 0.2.8 → 0.3.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/README.md CHANGED
@@ -3,7 +3,8 @@
3
3
  > 企业级 Vue 3 组件库 - 基于 Element Plus 的二次封装
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/sunyard-szyy-ui.svg)](https://www.npmjs.com/package/sunyard-szyy-ui)
6
- [![license](https://img.shields.io/npm/l/sunyard-szyy-ui.svg)](https://github.com/your-org/sunyard-szyy-ui/blob/main/LICENSE)
6
+
7
+ <!-- [![license](https://img.shields.io/npm/l/sunyard-szyy-ui.svg)](https://github.com/your-org/sunyard-szyy-ui/blob/main/LICENSE) -->
7
8
 
8
9
  ## ✨ 特性
9
10
 
@@ -130,61 +131,6 @@ sunyard-szyy-ui/
130
131
  | `@sunyard-szyy-ui/utils` | 工具函数 | ✅ 可以 |
131
132
  | `@sunyard-szyy-ui/theme-chalk` | 样式主题 | ❌ 不推荐 |
132
133
 
133
- ## 🎨 组件列表
134
-
135
- ### 表单组件
136
-
137
- - **SySearchBar** - 搜索栏组件
138
-
139
- > 更多组件正在开发中...
140
-
141
- ## 🎣 Hooks
142
-
143
- - **useNamespace** - BEM 命名空间工具
144
- - **useDebounce** - 防抖 Hook
145
- - **useToggle** - 布尔值切换 Hook
146
- - **useLocalStorage** - 本地存储 Hook
147
-
148
- ## 🛠️ 工具函数
149
-
150
- - **withInstall** - Vue 组件插件包装器
151
- - **debounce** - 防抖函数
152
- - **throttle** - 节流函数
153
- - **formatDate** - 日期格式化
154
- - **deepClone** - 深拷贝
155
- - **SunyardSzyyUIResolver** - 自动导入解析器
156
-
157
- ## 📖 文档
158
-
159
- 完整文档请访问:[文档地址](../../docs/index.md)
160
-
161
- - [快速开始](../../docs/guide/getting-started.md)
162
- - [使用方式](../../docs/guide/usage.md)
163
- - [组件 API](../../docs/api/component-api.md)
164
- - [主题定制](../../docs/guide/usage.md#统一ui规范配置)
165
-
166
- ## 🔧 开发
167
-
168
- ```bash
169
- # 安装依赖
170
- pnpm install
171
-
172
- # 启动开发服务器
173
- pnpm dev
174
-
175
- # 构建所有包
176
- pnpm build
177
-
178
- # 类型检查
179
- pnpm typecheck
180
-
181
- # 代码检查
182
- pnpm lint
183
-
184
- # 代码格式化
185
- pnpm format
186
- ```
187
-
188
134
  ## 📦 发布产物
189
135
 
190
136
  安装 `sunyard-szyy-ui` 后,包含以下内容:
@@ -225,27 +171,3 @@ sunyard-szyy-ui
225
171
 
226
172
  - `vue` ^3.0.0
227
173
  - `element-plus` ^2.0.0
228
-
229
- ## 🌍 浏览器支持
230
-
231
- 支持所有现代浏览器:
232
-
233
- - Chrome >= 90
234
- - Firefox >= 88
235
- - Safari >= 14
236
- - Edge >= 90
237
-
238
- ## 📄 版本管理
239
-
240
- 本项目采用语义化版本号:
241
-
242
- ```bash
243
- # 查看当前版本
244
- pnpm version:check
245
-
246
- # 更新版本号
247
- pnpm version:set 0.3.0
248
-
249
- # 生成 CHANGELOG
250
- pnpm changelog
251
- ```
@@ -1,4 +1,4 @@
1
1
  (function(e,u){typeof exports=="object"&&typeof module!="undefined"?u(exports,require("element-plus"),require("vue"),require("@sunyard-szyy-ui/hooks"),require("@sunyard-szyy-ui/utils")):typeof define=="function"&&define.amd?define(["exports","element-plus","vue","@sunyard-szyy-ui/hooks","@sunyard-szyy-ui/utils"],u):(e=typeof globalThis!="undefined"?globalThis:e||self,u(e.SunyardSzyyUI={},e.ElementPlus,e.Vue,e.hooks,e.utils))})(this,function(e,u,n,i,d){"use strict";/*!
2
- * sunyard-szyy-ui v0.2.8
2
+ * sunyard-szyy-ui v0.3.0
3
3
  * (c) 2026 Sunyard SZYY Base Team
4
4
  */const y=n.defineComponent({name:"SySearchBar",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:"请输入关键字"},buttonText:{type:String,default:"搜索"}},emits:["update:modelValue","search"],setup(r,{emit:s}){const l=i.useNamespace("search-bar"),a=n.ref(r.modelValue);n.watch(()=>r.modelValue,t=>{t!==a.value&&(a.value=t)});function o(){s("search",a.value)}return()=>n.h("div",{class:l.b()},[n.h(u.ElInput,{class:l.e("input"),modelValue:a.value,placeholder:r.placeholder,clearable:!0,"onUpdate:modelValue":t=>{a.value=t,s("update:modelValue",t)},onKeydown:t=>{t.key==="Enter"&&o()}}),n.h(u.ElButton,{class:l.e("button"),type:"primary",onClick:o},()=>r.buttonText)])}}),c=d.withInstall(y);e.SySearchBar=c,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
@@ -3,7 +3,7 @@ import { defineComponent as d, ref as m, watch as i, h as o } from "vue";
3
3
  import { useNamespace as p } from "@sunyard-szyy-ui/hooks";
4
4
  import { withInstall as s } from "@sunyard-szyy-ui/utils";
5
5
  /*!
6
- * sunyard-szyy-ui v0.2.8
6
+ * sunyard-szyy-ui v0.3.0
7
7
  * (c) 2026 Sunyard SZYY Base Team
8
8
  */
9
9
  const h = d({
package/es/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import{SySearchBar as t}from"@sunyard-szyy-ui/components";import{SySearchBar as f}from"@sunyard-szyy-ui/components";import{version as e}from"./version.mjs";export*from"@sunyard-szyy-ui/hooks";export*from"@sunyard-szyy-ui/utils";import{makeInstaller as S}from"./make-installer.mjs";/*!
2
- * sunyard-szyy-ui v0.2.8
2
+ * sunyard-szyy-ui v0.3.0
3
3
  * (c) 2026 Sunyard SZYY UI Team
4
4
  */const r=[t],a=n=>{if(typeof window!="undefined"&&(console.log(`%c[Sunyard SZYY UI]%c v${e} %cinstalled`,"color: #409eff; font-weight: bold","color: #67c23a","color: #909399"),window.__SUNYARD_SZYY_UI_VERSION__=e,window.__SUNYARD_SZYY_UI__={version:e,components:r.map(o=>o.name||"Unknown")}),r.forEach(o=>n.use(o)),typeof window!="undefined"){const o=window.__VUE_DEVTOOLS_GLOBAL_HOOK__;o&&o.emit("app:init",n,e,{label:"Sunyard SZYY UI",packageName:"sunyard-szyy-ui",homepage:"https://github.com/your-org/sunyard-szyy-ui"})}},c={version:e,install:a};export{f as SySearchBar,c as default,a as install,S as makeInstaller,e as version};
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * sunyard-szyy-ui v0.2.8
2
+ * sunyard-szyy-ui v0.3.0
3
3
  * (c) 2026 Sunyard SZYY UI Team
4
4
  */const n=Symbol("SUNYARD_SZYY_UI_INSTALLED"),o=(r=[],e="0.0.0")=>({version:e,install:t=>{t[n]||(t[n]=!0,r.forEach(l=>t.use(l)))}});export{o as makeInstaller};
package/es/version.d.ts CHANGED
@@ -3,5 +3,5 @@
3
3
  * 请勿手动修改
4
4
  * 通过 pnpm version:set 命令更新版本号
5
5
  */
6
- export declare const version = "0.2.8";
6
+ export declare const version = "0.3.0";
7
7
  //# sourceMappingURL=version.d.ts.map
package/es/version.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * sunyard-szyy-ui v0.2.8
2
+ * sunyard-szyy-ui v0.3.0
3
3
  * (c) 2026 Sunyard SZYY UI Team
4
- */const o="0.2.8";export{o as version};
4
+ */const o="0.3.0";export{o as version};
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";/*!
2
- * sunyard-szyy-ui v0.2.8
2
+ * sunyard-szyy-ui v0.3.0
3
3
  * (c) 2026 Sunyard SZYY UI Team
4
4
  */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("@sunyard-szyy-ui/components"),r=require("./version.js"),n=require("@sunyard-szyy-ui/hooks"),t=require("@sunyard-szyy-ui/utils"),c=require("./make-installer.js"),i=[s.SySearchBar],a=e=>{if(typeof window!="undefined"&&(console.log(`%c[Sunyard SZYY UI]%c v${r.version} %cinstalled`,"color: #409eff; font-weight: bold","color: #67c23a","color: #909399"),window.__SUNYARD_SZYY_UI_VERSION__=r.version,window.__SUNYARD_SZYY_UI__={version:r.version,components:i.map(o=>o.name||"Unknown")}),i.forEach(o=>e.use(o)),typeof window!="undefined"){const o=window.__VUE_DEVTOOLS_GLOBAL_HOOK__;o&&o.emit("app:init",e,r.version,{label:"Sunyard SZYY UI",packageName:"sunyard-szyy-ui",homepage:"https://github.com/your-org/sunyard-szyy-ui"})}},l={version:r.version,install:a};Object.defineProperty(exports,"SySearchBar",{enumerable:!0,get:()=>s.SySearchBar});exports.version=r.version;exports.makeInstaller=c.makeInstaller;exports.default=l;exports.install=a;Object.keys(n).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>n[e]})});Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});
@@ -1,4 +1,4 @@
1
1
  "use strict";/*!
2
- * sunyard-szyy-ui v0.2.8
2
+ * sunyard-szyy-ui v0.3.0
3
3
  * (c) 2026 Sunyard SZYY UI Team
4
4
  */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Symbol("SUNYARD_SZYY_UI_INSTALLED"),s=(l=[],r="0.0.0")=>({version:r,install:t=>{t[e]||(t[e]=!0,l.forEach(n=>t.use(n)))}});exports.makeInstaller=s;
package/lib/version.d.ts CHANGED
@@ -3,5 +3,5 @@
3
3
  * 请勿手动修改
4
4
  * 通过 pnpm version:set 命令更新版本号
5
5
  */
6
- export declare const version = "0.2.8";
6
+ export declare const version = "0.3.0";
7
7
  //# sourceMappingURL=version.d.ts.map
package/lib/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";/*!
2
- * sunyard-szyy-ui v0.2.8
2
+ * sunyard-szyy-ui v0.3.0
3
3
  * (c) 2026 Sunyard SZYY UI Team
4
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.2.8";exports.version=e;
4
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.3.0";exports.version=e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sunyard-szyy-ui",
3
- "version": "0.2.8",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.mjs",
@@ -83,9 +83,9 @@
83
83
  "vue": "^3.0.0"
84
84
  },
85
85
  "dependencies": {
86
- "@sunyard-szyy-ui/components": "0.2.8",
87
- "@sunyard-szyy-ui/hooks": "0.2.8",
88
- "@sunyard-szyy-ui/utils": "0.2.8"
86
+ "@sunyard-szyy-ui/components": "0.3.0",
87
+ "@sunyard-szyy-ui/hooks": "0.3.0",
88
+ "@sunyard-szyy-ui/utils": "0.3.0"
89
89
  },
90
90
  "publishConfig": {
91
91
  "access": "public"