pro-design-vue 1.0.0-rc.6 → 1.0.0-rc.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/dist/index.full.js +25 -10
- package/dist/index.full.min.js +8 -8
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +7 -7
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +25 -10
- package/es/components/table/src/components/Body/Body.vue.d.ts +1 -0
- package/es/components/table/src/components/Body/Body.vue.mjs +15 -9
- package/es/components/table/src/components/Body/Body.vue.mjs.map +1 -1
- package/es/components/table/src/components/Body/Body.vue2.mjs +10 -0
- package/es/components/table/src/components/Body/Body.vue2.mjs.map +1 -1
- package/es/components/table/src/components/InteralTable.vue.d.ts +1 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/table/src/components/Body/Body.vue.d.ts +1 -0
- package/lib/components/table/src/components/Body/Body.vue.js +14 -8
- package/lib/components/table/src/components/Body/Body.vue.js.map +1 -1
- package/lib/components/table/src/components/Body/Body.vue2.js +10 -0
- package/lib/components/table/src/components/Body/Body.vue2.js.map +1 -1
- package/lib/components/table/src/components/InteralTable.vue.d.ts +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
package/dist/index.full.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Pro Design Vue v1.0.0-rc.
|
1
|
+
/*! Pro Design Vue v1.0.0-rc.7 */
|
2
2
|
|
3
3
|
(function (global, factory) {
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ant-design-vue'), require('vue')) :
|
@@ -16,7 +16,7 @@
|
|
16
16
|
const SCROLL_FIXED_CLASS = `_scroll__fixed_`;
|
17
17
|
const DEFAULT_NAMESPACE = "pro";
|
18
18
|
|
19
|
-
const version$1 = "1.0.0-rc.
|
19
|
+
const version$1 = "1.0.0-rc.7";
|
20
20
|
|
21
21
|
const makeInstaller = (components = []) => {
|
22
22
|
const install = (app) => {
|
@@ -30300,6 +30300,7 @@
|
|
30300
30300
|
const tableSlotsContext = useInjectSlots();
|
30301
30301
|
const dragRowPlaceholderRef = vue.ref();
|
30302
30302
|
const bodyRef = vue.ref();
|
30303
|
+
const measureDomRef = vue.ref();
|
30303
30304
|
const bodyInnerRef = vue.ref();
|
30304
30305
|
const scrollLayerRef = vue.ref();
|
30305
30306
|
const viewportRef = vue.ref();
|
@@ -30610,6 +30611,13 @@
|
|
30610
30611
|
return summaryStyle.value;
|
30611
30612
|
});
|
30612
30613
|
const emptyStyle = vue.computed(() => ({ width: `${props.bodyWidth}px` }));
|
30614
|
+
useResizeObserver(measureDomRef, (entries) => {
|
30615
|
+
var _a, _b;
|
30616
|
+
console.log("\u{1F680} ~ useResizeObserver ~ entries:", (_a = entries[0]) == null ? void 0 : _a.contentRect);
|
30617
|
+
const contentRect = (_b = entries[0]) == null ? void 0 : _b.contentRect;
|
30618
|
+
emit("update:bodyWidth", contentRect == null ? void 0 : contentRect.width);
|
30619
|
+
emit("update:bodyHeight", contentRect == null ? void 0 : contentRect.height);
|
30620
|
+
});
|
30613
30621
|
return {
|
30614
30622
|
bodyContainerStyle,
|
30615
30623
|
measureDomStyle: vue.computed(() => ({
|
@@ -30660,6 +30668,7 @@
|
|
30660
30668
|
emit("update:bodyScrollWidth", e.detail.width);
|
30661
30669
|
},
|
30662
30670
|
bodyRef,
|
30671
|
+
measureDomRef,
|
30663
30672
|
bodyInnerRef,
|
30664
30673
|
viewportRef,
|
30665
30674
|
summaryViewportRef,
|
@@ -30816,7 +30825,7 @@
|
|
30816
30825
|
_: 1
|
30817
30826
|
/* STABLE */
|
30818
30827
|
}),
|
30819
|
-
vue.
|
30828
|
+
vue.createElementVNode(
|
30820
30829
|
"div",
|
30821
30830
|
{
|
30822
30831
|
key: "body",
|
@@ -30824,8 +30833,7 @@
|
|
30824
30833
|
class: vue.normalizeClass(_ctx.bodyClass),
|
30825
30834
|
style: vue.normalizeStyle(_ctx.bodyStyle),
|
30826
30835
|
onDragstart: _cache[8] || (_cache[8] = (...args) => _ctx.handleDragStart && _ctx.handleDragStart(...args)),
|
30827
|
-
onKeydown: _cache[9] || (_cache[9] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args))
|
30828
|
-
onResize: _cache[10] || (_cache[10] = (...args) => _ctx.handleBodyResize && _ctx.handleBodyResize(...args))
|
30836
|
+
onKeydown: _cache[9] || (_cache[9] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args))
|
30829
30837
|
},
|
30830
30838
|
[
|
30831
30839
|
vue.createElementVNode("div", _hoisted_1$3, [
|
@@ -31135,7 +31143,16 @@
|
|
31135
31143
|
6
|
31136
31144
|
/* CLASS, STYLE */
|
31137
31145
|
),
|
31138
|
-
vue.
|
31146
|
+
vue.createElementVNode(
|
31147
|
+
"div",
|
31148
|
+
{
|
31149
|
+
ref: "measureDomRef",
|
31150
|
+
style: vue.normalizeStyle(_ctx.measureDomStyle)
|
31151
|
+
},
|
31152
|
+
null,
|
31153
|
+
4
|
31154
|
+
/* STYLE */
|
31155
|
+
),
|
31139
31156
|
vue.withDirectives(vue.createElementVNode(
|
31140
31157
|
"div",
|
31141
31158
|
{
|
@@ -31169,9 +31186,7 @@
|
|
31169
31186
|
],
|
31170
31187
|
38
|
31171
31188
|
/* CLASS, STYLE, NEED_HYDRATION */
|
31172
|
-
)
|
31173
|
-
[_directive_resize]
|
31174
|
-
]),
|
31189
|
+
),
|
31175
31190
|
vue.createVNode(_component_RenderSlot, null, {
|
31176
31191
|
default: vue.withCtx(() => [
|
31177
31192
|
_ctx.summary && _ctx.summaryFixed === "bottom" ? (vue.openBlock(), vue.createElementBlock(
|
@@ -31200,7 +31215,7 @@
|
|
31200
31215
|
vue.withDirectives((vue.openBlock(), vue.createElementBlock(
|
31201
31216
|
"div",
|
31202
31217
|
{
|
31203
|
-
onResizeheight: _cache[
|
31218
|
+
onResizeheight: _cache[10] || (_cache[10] = (...args) => _ctx.handleResize && _ctx.handleResize(...args))
|
31204
31219
|
},
|
31205
31220
|
[
|
31206
31221
|
vue.createVNode(_component_RenderVNode, { vnode: _ctx.summary }, null, 8, ["vnode"])
|