br-dionysus 1.7.6 → 1.7.7

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
@@ -2248,10 +2248,16 @@ const list = ref<{ name: string, className: string }[]>([
2248
2248
 
2249
2249
 
2250
2250
 
2251
+
2252
+
2251
2253
  计算获取剩余空间 hook
2252
2254
  =================
2253
2255
 
2254
- ### 1) 所需参数
2256
+ ### 1) 基础用法
2257
+
2258
+
2259
+
2260
+ ### 2) 所需参数
2255
2261
 
2256
2262
  | 名称 | 描述 | 类型 | 可选值 | 默认值 |
2257
2263
  |--------------|------|--------|:---:|:---:|
@@ -2259,13 +2265,13 @@ const list = ref<{ name: string, className: string }[]>([
2259
2265
  | className | 排除空间 | string | - | - |
2260
2266
  | redundancy | 冗余值 | number | - | 0 |
2261
2267
 
2262
- ### 2) 返回值
2268
+ ### 3) 返回值
2263
2269
 
2264
- | 名称 | 描述 | 类型 |
2265
- |--------------|--------------------------------|-------------|
2266
- | height | 计算之后的高度 | ref<number> |
2267
- | tableCovered | 重新进行计算高度 (如弹窗表 抽屉表 等默认无DOM时使用) | function |
2268
- | init | 重新初始化 (如弹窗表 抽屉表 等默认无DOM时使用) | function |
2270
+ | 名称 | 描述 | 类型 |
2271
+ |:------------:|:------------------------------:|:-------------:|
2272
+ | height | 计算之后的高度 | ref\<number\> |
2273
+ | tableCovered | 重新进行计算高度 (如弹窗表 抽屉表 等默认无DOM时使用) | function |
2274
+ | init | 重新初始化 (如弹窗表 抽屉表 等默认无DOM时使用) | function |
2269
2275
 
2270
2276
 
2271
2277
 
@@ -12128,6 +12128,8 @@ const kC = { class: "g-box g-select-table-box" }, AC = {
12128
12128
  })) : []), g = O([]);
12129
12129
  Y(() => c.tabData, () => {
12130
12130
  g.value = [...c.tabData, ...h.value];
12131
+ }), ye(() => {
12132
+ g.value = [...c.tabData, ...h.value];
12131
12133
  }), Y(() => h.value, (P, B) => {
12132
12134
  if (JSON.stringify(P) === JSON.stringify(B))
12133
12135
  return !1;
@@ -12835,8 +12837,13 @@ const kC = { class: "g-box g-select-table-box" }, AC = {
12835
12837
  const o = O(0), l = (u) => !(u != null && u.parentElement) || u.parentElement.className.includes(e) ? u : l(u.parentElement), a = (u) => u.scrollWidth > u.clientWidth, r = () => {
12836
12838
  be(() => {
12837
12839
  var k;
12838
- const u = document.querySelector("." + t), c = ((k = l(u)) == null ? void 0 : k.className) || "", f = document.querySelector("." + e);
12839
- if (!c || !f) {
12840
+ const u = document.querySelector("." + t), c = ((k = l(u)) == null ? void 0 : k.className) || "";
12841
+ if (!c) {
12842
+ o.value = 100;
12843
+ return;
12844
+ }
12845
+ const f = document.querySelector("." + e);
12846
+ if (!f) {
12840
12847
  o.value = 100;
12841
12848
  return;
12842
12849
  }