uniky 1.0.25 → 1.0.27

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uniky",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "uni-app 开发工具库,包含 hooks、http 请求和 vite 插件",
5
5
  "type": "module",
6
6
  "main": "./src/lib/index.ts",
@@ -124,11 +124,23 @@ export * from './plugin/index.js';
124
124
  const skillsSourceDir = join(__dirname, '..', 'src', 'plugin', '.skills');
125
125
  const skillsTargetDir = join(projectRoot, '.skills');
126
126
  if (existsSync(skillsSourceDir)) {
127
- const skillsCopied = copyDirectorySkipExisting(skillsSourceDir, skillsTargetDir);
127
+ if (!existsSync(skillsTargetDir)) {
128
+ mkdirSync(skillsTargetDir, { recursive: true });
129
+ }
130
+ const sourceFiles = readdirSync(skillsSourceDir).filter(f => statSync(join(skillsSourceDir, f)).isFile());
131
+ let skillsCopied = 0;
132
+ sourceFiles.forEach(file => {
133
+ const targetPath = join(skillsTargetDir, file);
134
+ if (!existsSync(targetPath)) {
135
+ copyFileSync(join(skillsSourceDir, file), targetPath);
136
+ skillsCopied++;
137
+ console.log(`[uniky] .skills 新增文件: ${file}`);
138
+ }
139
+ });
128
140
  if (skillsCopied > 0) {
129
141
  console.log(`[uniky] ✅ .skills 拷贝了 ${skillsCopied} 个新文件到 ${skillsTargetDir}`);
130
142
  } else {
131
- console.log(`[uniky] .skills 文件已存在,跳过拷贝`);
143
+ console.log(`[uniky] .skills 所有文件已存在,跳过拷贝`);
132
144
  }
133
145
  }
134
146
  } catch (error) {
@@ -30,7 +30,7 @@ description: 根据给出路径去创建一个uni-app 的页面
30
30
  }
31
31
  ```
32
32
 
33
- 如果路径以`pages-`开头 例如pages-order/list/query则作为子报添加到 subPackages 子模块中
33
+ 如果路径以`pages-`开头, 例如pages-order/list/query则作为子报添加到 subPackages 子模块中
34
34
 
35
35
  ```jsonc
36
36
  {
@@ -47,11 +47,11 @@ src/component/icon.vue 基础示例如下
47
47
  </template>
48
48
 
49
49
  <script lang="ts" setup>
50
+ // created by zhuxietong on 2026-02-25 16:52
50
51
  import { ref, watch } from "vue";
51
52
 
52
53
  let IconMap = {
53
54
  delete: "&#xe604;",
54
- addFill: "&#xe606;",
55
55
  };
56
56
 
57
57
  type IconName = keyof typeof IconMap;
@@ -60,7 +60,7 @@ const props = defineProps<{
60
60
  name: IconName;
61
61
  }>();
62
62
 
63
- let value = IconMap[props.name] || "&#xe604;";
63
+ let value = IconMap[props.name] || "&#xe68f;";
64
64
  value = value.replace("&#x", "%u").replace(";", "");
65
65
  value = unescape(value);
66
66
  const icon = ref(value);
@@ -70,7 +70,6 @@ watch(
70
70
  (val) => {
71
71
  let iconStr = IconMap[val];
72
72
  iconStr = iconStr.replace("&#x", "%u").replace(";", "");
73
- iconStr = iconStr.replace("&#x", "%u").replace(";", "");
74
73
  iconStr = unescape(iconStr);
75
74
  icon.value = iconStr;
76
75
  },
@@ -81,24 +80,16 @@ watch(
81
80
  @font-face {
82
81
  font-family: "iconfont";
83
82
  /* #ifdef H5 */
84
- src: url("/h5/static/iconfont.woff2") format("woff2");
83
+ src: url("/static/iconfont.woff2") format("woff2");
85
84
  /* #endif */
86
85
  /* #ifdef MP-WEIXIN */
87
- //src: url('//at.alicdn.com/t/c/font_2942740_av9lw25yela.woff2?t=1707276070685') format('woff2');
88
86
  src: url("/static/iconfont.woff2") format("woff2");
89
-
90
87
  /* #endif */
91
88
  /* #ifdef APP-PLUS */
92
89
  src: url("/static/iconfont.woff2") format("woff2");
93
90
  /* #endif */
94
91
  }
95
92
 
96
- /*!* 在线链接服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 *!*/
97
- /*@font-face {*/
98
- /* font-family: 'iconfont'; !* Project id 2942740 *!*/
99
- /* src: url('//at.alicdn.com/t/c/font_2942740_oa0mdid0yx.woff2?t=1694135753186') format('woff2');*/
100
- /*}*/
101
-
102
93
  .me-font {
103
94
  font-family: iconfont;
104
95
  text-align: center;
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: zed-editor-compatible
3
+ description: zed编辑器适配尝试
4
+ ---
5
+
6
+ ## 如果编辑中vue路径不能完整适配查找问题的修复
7
+ 如果编辑器中光标移动到vue文件路径时按住cmd ,弹出:module "*.vue" 而非完整路径则可进行以下尝试【试过有效】
8
+
9
+ 1. 升级 `typescript` 从 4.9 → 5.9,`vue-tsc` 从 1.x → 2.x
10
+ 2. 移除已废弃的 `preserveValueImports` / `importsNotUsedAsValues`,改用 `verbatimModuleSyntax
11
+ 3. 安装 `@vue/typescript-plugin` 使 Volar v2 能正确推导 `.vue` 模块类型