2 Commits

Author SHA1 Message Date
TianSL 18a037e9b7 fix(uni-app): 🐛 安装类型依赖 2026-05-28 11:54:22 +08:00
TianSL 80debf6d6b chore: 🔨 发布v2.0.0 2026-05-28 11:46:59 +08:00
15 changed files with 94 additions and 6 deletions
+1
View File
@@ -1 +1,2 @@
registry=http://npm.nps.yunvip123.cn
engine-strict=true engine-strict=true
+6
View File
@@ -1,5 +1,11 @@
# @r-utils/common # @r-utils/common
## 2.0.0
### Major Changes
- 添加工具
## 1.4.0 ## 1.4.0
### Minor Changes ### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@r-utils/common", "name": "@r-utils/common",
"version": "1.4.0", "version": "2.0.0",
"private": false, "private": false,
"description": "js通用工具库", "description": "js通用工具库",
"type": "module", "type": "module",
+11
View File
@@ -1,5 +1,16 @@
# @r-utils/uni-app # @r-utils/uni-app
## 2.0.0
### Major Changes
- 添加工具
### Patch Changes
- Updated dependencies
- @r-utils/common@2.0.0
## 1.4.0 ## 1.4.0
### Minor Changes ### Minor Changes
+2 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@r-utils/uni-app", "name": "@r-utils/uni-app",
"version": "1.4.0", "version": "2.0.0",
"private": false, "private": false,
"description": "uni-app工具库", "description": "uni-app工具库",
"type": "module", "type": "module",
@@ -83,6 +83,7 @@
"test": "vitest run" "test": "vitest run"
}, },
"dependencies": { "dependencies": {
"@jonny1994/qqmap-wx-jssdk": "^1.4.0",
"@r-utils/common": "workspace:^", "@r-utils/common": "workspace:^",
"chroma-js": "catalog:", "chroma-js": "catalog:",
"lodash-es": "catalog:", "lodash-es": "catalog:",
+42
View File
@@ -1,3 +1,45 @@
declare namespace WechatMiniprogram {
/** 微信小程序 NFC 适配器 */
interface NFCAdapter {
/** 开始监听 NFC 标签发现事件 */
startDiscovery(options?: {
/** 启动成功回调 */
success?: (res: NFCError) => void;
/** 启动失败回调 */
fail?: (res: NFCError) => void;
}): void;
/** 停止监听 NFC 标签发现事件 */
stopDiscovery(options?: {
/** 停止成功回调 */
success?: (res: NFCError) => void;
/** 停止失败回调 */
fail?: (res: NFCError) => void;
}): void;
/** 注册 NFC 标签发现回调 */
onDiscovered(callback: (res: OnDiscoveredCallbackResult) => void): void;
/** 取消注册 NFC 标签发现回调 */
offDiscovered(callback?: (res: OnDiscoveredCallbackResult) => void): void;
}
/** 微信小程序 NFC 操作结果 */
interface NFCError {
/** 错误码 */
errCode?: number;
/** 错误信息 */
errMsg?: string;
}
/** 微信小程序 NFC 标签发现结果 */
interface OnDiscoveredCallbackResult {
/** NFC 标签 ID */
id: ArrayBuffer;
/** NFC 标签消息列表 */
messages?: unknown[];
/** NFC 支持的技术列表 */
techs?: string[];
}
}
export function startNfcScan(): Promise<number[]>; export function startNfcScan(): Promise<number[]>;
export class WeixinNfcUtil { export class WeixinNfcUtil {
+6
View File
@@ -1,5 +1,11 @@
# @r-utils/uview-plus # @r-utils/uview-plus
## 2.0.0
### Major Changes
- 添加工具
## 1.3.0 ## 1.3.0
### Minor Changes ### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@r-utils/uview-plus", "name": "@r-utils/uview-plus",
"version": "1.3.0", "version": "2.0.0",
"private": false, "private": false,
"description": "uview-plus 组合式 API Hooks", "description": "uview-plus 组合式 API Hooks",
"type": "module", "type": "module",
+6
View File
@@ -1,5 +1,11 @@
# @r-utils/vue2 # @r-utils/vue2
## 2.0.0
### Major Changes
- 添加工具
## 1.4.0 ## 1.4.0
### Minor Changes ### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@r-utils/vue2", "name": "@r-utils/vue2",
"version": "1.4.0", "version": "2.0.0",
"private": false, "private": false,
"description": "Vue2工具库", "description": "Vue2工具库",
"type": "module", "type": "module",
+1 -1
View File
@@ -14,7 +14,7 @@ declare module "vue/types/options" {
export declare function install(Vue: VueConstructor): void; export declare function install(Vue: VueConstructor): void;
/** 页面可见性生命周期插件 */ /** 页面可见性生命周期插件 */
declare const VisibilityPlugin: PluginObject<never> & { declare const VisibilityPlugin: PluginObject<unknown> & {
/** 安装页面可见性生命周期插件 */ /** 安装页面可见性生命周期插件 */
install: typeof install; install: typeof install;
}; };
+11
View File
@@ -1,5 +1,16 @@
# @r-utils/vue3 # @r-utils/vue3
## 2.0.0
### Major Changes
- 添加工具
### Patch Changes
- Updated dependencies
- @r-utils/common@2.0.0
## 1.4.0 ## 1.4.0
### Minor Changes ### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@r-utils/vue3", "name": "@r-utils/vue3",
"version": "1.4.0", "version": "2.0.0",
"private": false, "private": false,
"description": "Vue3 工具", "description": "Vue3 工具",
"type": "module", "type": "module",
+1
View File
@@ -3,6 +3,7 @@ import { ComponentPublicInstance } from "vue";
type CustomClassObj = Record<string, boolean>; type CustomClassObj = Record<string, boolean>;
type CustomClass = string | Array<string> | CustomClassObj; type CustomClass = string | Array<string> | CustomClassObj;
type DistCustomClass = Record<string, true>; type DistCustomClass = Record<string, true>;
export function createCustomClassObj(customClass: string): DistCustomClass; export function createCustomClassObj(customClass: string): DistCustomClass;
export function createCustomClassObj( export function createCustomClassObj(
customClass: Array<string>, customClass: Array<string>,
+3
View File
@@ -153,6 +153,9 @@ importers:
packages/uni-app: packages/uni-app:
dependencies: dependencies:
'@jonny1994/qqmap-wx-jssdk':
specifier: ^1.4.0
version: 1.4.0
'@r-utils/common': '@r-utils/common':
specifier: workspace:^ specifier: workspace:^
version: link:../common version: link:../common