pro-design-vue 1.0.0-rc.6 → 1.0.0-rc.8
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 +24 -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 +24 -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 +9 -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 +9 -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.8 */
|
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.8";
|
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,12 @@
|
|
30610
30611
|
return summaryStyle.value;
|
30611
30612
|
});
|
30612
30613
|
const emptyStyle = vue.computed(() => ({ width: `${props.bodyWidth}px` }));
|
30614
|
+
useResizeObserver(measureDomRef, (entries) => {
|
30615
|
+
var _a;
|
30616
|
+
const contentRect = (_a = entries[0]) == null ? void 0 : _a.contentRect;
|
30617
|
+
emit("update:bodyWidth", (contentRect == null ? void 0 : contentRect.width) || 0);
|
30618
|
+
emit("update:bodyHeight", (contentRect == null ? void 0 : contentRect.height) || 0);
|
30619
|
+
});
|
30613
30620
|
return {
|
30614
30621
|
bodyContainerStyle,
|
30615
30622
|
measureDomStyle: vue.computed(() => ({
|
@@ -30660,6 +30667,7 @@
|
|
30660
30667
|
emit("update:bodyScrollWidth", e.detail.width);
|
30661
30668
|
},
|
30662
30669
|
bodyRef,
|
30670
|
+
measureDomRef,
|
30663
30671
|
bodyInnerRef,
|
30664
30672
|
viewportRef,
|
30665
30673
|
summaryViewportRef,
|
@@ -30816,7 +30824,7 @@
|
|
30816
30824
|
_: 1
|
30817
30825
|
/* STABLE */
|
30818
30826
|
}),
|
30819
|
-
vue.
|
30827
|
+
vue.createElementVNode(
|
30820
30828
|
"div",
|
30821
30829
|
{
|
30822
30830
|
key: "body",
|
@@ -30824,8 +30832,7 @@
|
|
30824
30832
|
class: vue.normalizeClass(_ctx.bodyClass),
|
30825
30833
|
style: vue.normalizeStyle(_ctx.bodyStyle),
|
30826
30834
|
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))
|
30835
|
+
onKeydown: _cache[9] || (_cache[9] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args))
|
30829
30836
|
},
|
30830
30837
|
[
|
30831
30838
|
vue.createElementVNode("div", _hoisted_1$3, [
|
@@ -31135,7 +31142,16 @@
|
|
31135
31142
|
6
|
31136
31143
|
/* CLASS, STYLE */
|
31137
31144
|
),
|
31138
|
-
vue.
|
31145
|
+
vue.createElementVNode(
|
31146
|
+
"div",
|
31147
|
+
{
|
31148
|
+
ref: "measureDomRef",
|
31149
|
+
style: vue.normalizeStyle(_ctx.measureDomStyle)
|
31150
|
+
},
|
31151
|
+
null,
|
31152
|
+
4
|
31153
|
+
/* STYLE */
|
31154
|
+
),
|
31139
31155
|
vue.withDirectives(vue.createElementVNode(
|
31140
31156
|
"div",
|
31141
31157
|
{
|
@@ -31169,9 +31185,7 @@
|
|
31169
31185
|
],
|
31170
31186
|
38
|
31171
31187
|
/* CLASS, STYLE, NEED_HYDRATION */
|
31172
|
-
)
|
31173
|
-
[_directive_resize]
|
31174
|
-
]),
|
31188
|
+
),
|
31175
31189
|
vue.createVNode(_component_RenderSlot, null, {
|
31176
31190
|
default: vue.withCtx(() => [
|
31177
31191
|
_ctx.summary && _ctx.summaryFixed === "bottom" ? (vue.openBlock(), vue.createElementBlock(
|
@@ -31200,7 +31214,7 @@
|
|
31200
31214
|
vue.withDirectives((vue.openBlock(), vue.createElementBlock(
|
31201
31215
|
"div",
|
31202
31216
|
{
|
31203
|
-
onResizeheight: _cache[
|
31217
|
+
onResizeheight: _cache[10] || (_cache[10] = (...args) => _ctx.handleResize && _ctx.handleResize(...args))
|
31204
31218
|
},
|
31205
31219
|
[
|
31206
31220
|
vue.createVNode(_component_RenderVNode, { vnode: _ctx.summary }, null, 8, ["vnode"])
|