@ithinkdt/ui 4.0.0-42 → 4.0.0-50

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/dist/index.js CHANGED
@@ -1210,7 +1210,7 @@ const AppTenant = /* @__PURE__ */ defineComponent({
1210
1210
  d: "M728 600.2c8.1-13.2 4-30.4-9.1-38.5-30.7-19-63.6-33.8-97.8-44.4 69.4-43 115.6-119.8 115.6-207.4C736.7 175.2 627.5 66 492.8 66S249 175.2 249 309.9c0 88.2 46.8 165.5 117 208.3-12.9 4.1-25.6 8.8-38.1 14.1-51.1 21.8-97 53-136.4 92.7-39.4 39.7-70.3 85.9-91.9 137.4-22.4 53.3-33.7 109.9-33.7 168.2 0 15.5 12.5 28 28 28s28-12.5 28-28c0-207.5 167.4-376.3 373.2-376.3 68.8 0 136.1 19 194.4 55 13.1 8.2 30.4 4.1 38.5-9.1zM305 309.9c0-50.2 19.5-97.4 55-132.8 35.5-35.5 82.7-55 132.8-55 50.2 0 97.4 19.5 132.8 55 35.5 35.5 55 82.7 55 132.8s-19.5 97.4-55 132.8c-35.5 35.5-82.7 55-132.8 55-50.2 0-97.4-19.5-132.8-55-35.5-35.5-55-82.6-55-132.8zM606.2 746.4h325.1c11.3 0 21.5-6.8 25.9-17.3s1.9-22.5-6.1-30.5L844.5 592.1c-10.9-10.9-28.7-10.9-39.6 0-10.9 10.9-10.9 28.7 0 39.6l58.7 58.6H606.2c-15.5 0-28 12.5-28 28s12.6 28.1 28 28.1zM931.4 794.6H606.3c-11.3 0-21.5 6.8-25.9 17.3s-1.9 22.5 6.1 30.5l106.6 106.4c5.5 5.5 12.6 8.2 19.8 8.2 7.2 0 14.4-2.7 19.8-8.2 10.9-10.9 10.9-28.7 0-39.6L674 850.6h257.4c15.5 0 28-12.5 28-28s-12.5-28-28-28z",
1211
1211
  fill: "currentColor"
1212
1212
  }, null)])] }),
1213
- default: () => d.shotName || d.name
1213
+ default: () => d?.shotName || d?.name
1214
1214
  })] });
1215
1215
  };
1216
1216
  }
package/dist/page.js CHANGED
@@ -255,14 +255,16 @@ function createPageFormHelper({ getUserGroups: n, getUsersByGroup: d, getUsersBy
255
255
  let n;
256
256
  return u.value.length === 0 ? void 0 : createVNode(NFlex, {
257
257
  gap: "8",
258
- vertical: !0
258
+ vertical: !0,
259
+ style: "padding: 6px 0"
259
260
  }, _isSlot(n = u.value.map((n) => createVNode("a", {
260
261
  key: n.id,
261
262
  href: n.url,
262
263
  target: "_blank",
263
264
  rel: "noreferrer",
264
265
  title: n.name,
265
- style: "max-width: 100px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline-block"
266
+ download: n.name,
267
+ style: "max-width: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline-block"
266
268
  }, [n.name]))) ? n : { default: () => [n] });
267
269
  }
268
270
  return h(SimpleUpload, {
@@ -272,7 +274,7 @@ function createPageFormHelper({ getUserGroups: n, getUsersByGroup: d, getUsersBy
272
274
  fileList: u.value,
273
275
  onUpdateFileList: (n = []) => {
274
276
  l.clear();
275
- for (let u of n) u.file.fileId && c.set(u.id, u.file.fileId), u.file.fileId ? l.set(u.file.fileId, u) : l.set(u.id, u);
277
+ for (let u of n) u.file?.fileId && c.set(u.id, u.file.fileId), u.file?.fileId ? l.set(u.file.fileId, u) : l.set(u.id, u);
276
278
  u.value = n, y(u.value.map((n) => c.get(n.id) || n.id).join(",") || null);
277
279
  }
278
280
  }, d);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ithinkdt/ui",
3
- "version": "4.0.0-42",
3
+ "version": "4.0.0-50",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "iThinkDT UI",
@@ -64,7 +64,7 @@
64
64
  "sortablejs": "^1.15.6",
65
65
  "@types/sortablejs": "^1.15.9",
66
66
  "nanoid": "^5.1.6",
67
- "@ithinkdt/common": "^4.0.0-40"
67
+ "@ithinkdt/common": "^4.0.0-50"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "@ithinkdt/page": ">=4.0",
@@ -89,7 +89,7 @@
89
89
  "vite": "npm:rolldown-vite@^7.1.19",
90
90
  "vue": "^3.5.22",
91
91
  "vue-router": "^4.6.3",
92
- "@ithinkdt/page": "^4.0.0-40"
92
+ "@ithinkdt/page": "^4.0.0-50"
93
93
  },
94
94
  "scripts": {
95
95
  "dev": "vite build --watch",