@moubing/bing-ui 0.12.1 → 0.12.2
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.
|
@@ -2,6 +2,6 @@ import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
|
2
2
|
import t from "./BingSplitPane.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region src/components/BingSplitPane/BingSplitPane.vue
|
|
5
|
-
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-b7854b2d"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
|
@@ -114,6 +114,13 @@ var p = { class: "bing-split-pane__main" }, m = [
|
|
|
114
114
|
n !== null && (e.preventDefault(), Y(O(n, P.value, N.value), "keyboard"));
|
|
115
115
|
}
|
|
116
116
|
function Q(e) {
|
|
117
|
+
return e.isConnected && e.getClientRects().length > 0;
|
|
118
|
+
}
|
|
119
|
+
function $(e) {
|
|
120
|
+
if (e <= 0 && y.value && !Q(y.value)) {
|
|
121
|
+
B("container");
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
117
124
|
E && E.width !== null && e < E.width && B("container"), w.value = Math.max(0, e);
|
|
118
125
|
}
|
|
119
126
|
return f(() => [
|
|
@@ -123,9 +130,9 @@ var p = { class: "bing-split-pane__main" }, m = [
|
|
|
123
130
|
_.minMainSize,
|
|
124
131
|
_.disabled
|
|
125
132
|
], () => B("props")), s(() => {
|
|
126
|
-
y.value && (
|
|
133
|
+
y.value && ($(y.value.clientWidth), T = new ResizeObserver((e) => {
|
|
127
134
|
let t = e[0];
|
|
128
|
-
t &&
|
|
135
|
+
t && $(t.contentRect.width);
|
|
129
136
|
}), T.observe(y.value));
|
|
130
137
|
}), o(() => {
|
|
131
138
|
B("unmount"), T?.disconnect();
|