pro-design-vue 1.0.0-rc.3 → 1.0.0-rc.5
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 +18 -11
- package/dist/index.full.min.js +2 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +2 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +18 -11
- package/es/components/table/src/components/Body/Body.vue.mjs +4 -3
- package/es/components/table/src/components/Body/Body.vue.mjs.map +1 -1
- package/es/components/table/src/components/Body/Body.vue2.mjs +2 -2
- package/es/components/table/src/components/Body/Body.vue2.mjs.map +1 -1
- package/es/components/table/src/components/Form/Form.d.ts +3 -0
- package/es/components/table/src/components/Form/Form.mjs +6 -4
- package/es/components/table/src/components/Form/Form.mjs.map +1 -1
- package/es/components/table/src/components/InteralTable.vue.mjs.map +1 -1
- package/es/components/table/src/components/InteralTable.vue2.mjs +3 -0
- package/es/components/table/src/components/InteralTable.vue2.mjs.map +1 -1
- package/es/components/table/src/components/Table.mjs +1 -0
- package/es/components/table/src/components/Table.mjs.map +1 -1
- package/es/components/table/src/components/interface.d.ts +1 -0
- package/es/components/table/src/components/interface.mjs.map +1 -1
- package/es/index.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.js +4 -3
- package/lib/components/table/src/components/Body/Body.vue.js.map +1 -1
- package/lib/components/table/src/components/Body/Body.vue2.js +2 -2
- package/lib/components/table/src/components/Body/Body.vue2.js.map +1 -1
- package/lib/components/table/src/components/Form/Form.d.ts +3 -0
- package/lib/components/table/src/components/Form/Form.js +6 -4
- package/lib/components/table/src/components/Form/Form.js.map +1 -1
- package/lib/components/table/src/components/InteralTable.vue.js.map +1 -1
- package/lib/components/table/src/components/InteralTable.vue2.js +3 -0
- package/lib/components/table/src/components/InteralTable.vue2.js.map +1 -1
- package/lib/components/table/src/components/Table.js +1 -0
- package/lib/components/table/src/components/Table.js.map +1 -1
- package/lib/components/table/src/components/interface.d.ts +1 -0
- package/lib/components/table/src/components/interface.js.map +1 -1
- package/lib/index.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.5 */
|
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.5";
|
20
20
|
|
21
21
|
const makeInstaller = (components = []) => {
|
22
22
|
const install = (app) => {
|
@@ -30481,8 +30481,8 @@
|
|
30481
30481
|
};
|
30482
30482
|
});
|
30483
30483
|
const bodyViewportStyle = vue.computed(() => ({
|
30484
|
-
|
30485
|
-
width: `calc(100% + 0px)`,
|
30484
|
+
width: `calc(100% + ${tableContext.showVerticalScrollbar.value ? tableContext.scrollBarSize.value || 15 : 0}px)`,
|
30485
|
+
// width: `calc(100% + 0px)`,
|
30486
30486
|
overflowX: "hidden",
|
30487
30487
|
overflowY: "auto",
|
30488
30488
|
height: "100%"
|
@@ -30824,7 +30824,8 @@
|
|
30824
30824
|
class: vue.normalizeClass(_ctx.bodyClass),
|
30825
30825
|
style: vue.normalizeStyle(_ctx.bodyStyle),
|
30826
30826
|
onDragstart: _cache[9] || (_cache[9] = (...args) => _ctx.handleDragStart && _ctx.handleDragStart(...args)),
|
30827
|
-
onKeydown: _cache[10] || (_cache[10] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args))
|
30827
|
+
onKeydown: _cache[10] || (_cache[10] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args)),
|
30828
|
+
onResize: _cache[11] || (_cache[11] = (...args) => _ctx.handleBodyResize && _ctx.handleBodyResize(...args))
|
30828
30829
|
},
|
30829
30830
|
[
|
30830
30831
|
vue.createElementVNode("div", _hoisted_1$3, [
|
@@ -31180,7 +31181,7 @@
|
|
31180
31181
|
38
|
31181
31182
|
/* CLASS, STYLE, NEED_HYDRATION */
|
31182
31183
|
)), [
|
31183
|
-
[_directive_resize
|
31184
|
+
[_directive_resize]
|
31184
31185
|
]),
|
31185
31186
|
vue.createVNode(_component_RenderSlot, null, {
|
31186
31187
|
default: vue.withCtx(() => [
|
@@ -31210,7 +31211,7 @@
|
|
31210
31211
|
vue.withDirectives((vue.openBlock(), vue.createElementBlock(
|
31211
31212
|
"div",
|
31212
31213
|
{
|
31213
|
-
onResizeheight: _cache[
|
31214
|
+
onResizeheight: _cache[12] || (_cache[12] = (...args) => _ctx.handleResize && _ctx.handleResize(...args))
|
31214
31215
|
},
|
31215
31216
|
[
|
31216
31217
|
vue.createVNode(_component_RenderVNode, { vnode: _ctx.summary }, null, 8, ["vnode"])
|
@@ -31663,6 +31664,9 @@
|
|
31663
31664
|
const showHorizontalScrollbar = vue.ref(false);
|
31664
31665
|
const debounceFn = debounce(() => {
|
31665
31666
|
showHorizontalScrollbar.value = bodyMaxWidth.value > bodyWidth.value;
|
31667
|
+
if (bodyWidth.value > bodyScrollWidth.value) {
|
31668
|
+
bodyScrollWidth.value = bodyWidth.value;
|
31669
|
+
}
|
31666
31670
|
}, 100);
|
31667
31671
|
vue.watch([bodyMaxWidth, bodyWidth], () => {
|
31668
31672
|
debounceFn();
|
@@ -33399,6 +33403,7 @@
|
|
33399
33403
|
},
|
33400
33404
|
loading: Boolean,
|
33401
33405
|
manual: Boolean,
|
33406
|
+
tableShowCard: Boolean,
|
33402
33407
|
beforeSearchSubmit: {
|
33403
33408
|
type: Function,
|
33404
33409
|
default: (searchParams) => searchParams
|
@@ -33453,14 +33458,15 @@
|
|
33453
33458
|
(_e = (_d = cardProps.value) == null ? void 0 : _d.onTabChange) == null ? void 0 : _e.call(_d, key);
|
33454
33459
|
};
|
33455
33460
|
return () => {
|
33456
|
-
var _a2, _b2, _c2;
|
33461
|
+
var _a2, _b2, _c2, _d;
|
33457
33462
|
const searchDom = vue.createVNode(ProQueryFilter, vue.mergeProps({
|
33458
33463
|
"class": `${props.prefixCls}-form`
|
33459
33464
|
}, omit(props.search || {}, ["cardProps", "tabName"]), {
|
33460
33465
|
"items": props.items,
|
33461
33466
|
"loading": props.loading,
|
33462
33467
|
"style": {
|
33463
|
-
marginBlockEnd: ((_a2 = props.search) == null ? void 0 : _a2.cardProps) !== false ? 0 : "
|
33468
|
+
marginBlockEnd: ((_a2 = props.search) == null ? void 0 : _a2.cardProps) !== false && props.tableShowCard ? 0 : "30px",
|
33469
|
+
...(_b2 = props.search) == null ? void 0 : _b2.style
|
33464
33470
|
},
|
33465
33471
|
"onReset": props.onReset,
|
33466
33472
|
"onFinish": (values) => {
|
@@ -33477,7 +33483,7 @@
|
|
33477
33483
|
submit(values, true);
|
33478
33484
|
}
|
33479
33485
|
}), null);
|
33480
|
-
if (((
|
33486
|
+
if (((_c2 = props.search) == null ? void 0 : _c2.cardProps) !== false && props.tableShowCard) {
|
33481
33487
|
return vue.createVNode(antDesignVue.Card, vue.mergeProps({
|
33482
33488
|
"class": `${props.prefixCls}-search`,
|
33483
33489
|
"activeTabKey": activeTabKey.value,
|
@@ -33485,7 +33491,7 @@
|
|
33485
33491
|
"style": {
|
33486
33492
|
marginBlockEnd: "16px"
|
33487
33493
|
}
|
33488
|
-
}, omit((
|
33494
|
+
}, omit((_d = cardProps.value) != null ? _d : {}, ["onTabChange", "activeTabKey"]), {
|
33489
33495
|
"onTabChange": onTabChange
|
33490
33496
|
}), _isSlot$3(searchDom) ? searchDom : {
|
33491
33497
|
default: () => [searchDom]
|
@@ -33838,6 +33844,7 @@
|
|
33838
33844
|
"items": formItems.value,
|
33839
33845
|
"cardBordered": props.cardBordered,
|
33840
33846
|
"search": props.search,
|
33847
|
+
"tableShowCard": props.cardProps !== false,
|
33841
33848
|
"loading": formSubmitLoading.value,
|
33842
33849
|
"beforeSearchSubmit": props.beforeSearchSubmit,
|
33843
33850
|
"manual": props.manual,
|