pro-design-vue 1.3.28 → 1.3.29
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.css +1 -1
- package/dist/index.full.js +56 -81
- package/dist/index.full.min.js +5 -5
- 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 +56 -81
- package/es/packages/components/table/src/components/Form/Form.mjs +31 -57
- package/es/packages/components/table/src/components/Form/Form.mjs.map +1 -1
- package/es/packages/components/table/src/components/Table.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/packages/components/table/src/components/Form/Form.js +30 -56
- package/lib/packages/components/table/src/components/Form/Form.js.map +1 -1
- package/lib/packages/components/table/src/components/Table.js.map +1 -1
- 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/theme-chalk/index.css +1 -1
- package/theme-chalk/src/table/table.less +19 -0
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Pro Design Vue v1.3.
|
|
1
|
+
/*! Pro Design Vue v1.3.29 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ant-design-vue'), require('vue'), require('ant-design-vue/es/locale/zh_CN.js')) :
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
const DEFAULT_NAMESPACE = "pro";
|
|
33
33
|
const DEFAULT_LOCALE = "zh-CN";
|
|
34
34
|
|
|
35
|
-
const version$1 = "1.3.
|
|
35
|
+
const version$1 = "1.3.29";
|
|
36
36
|
|
|
37
37
|
const makeInstaller = (components = []) => {
|
|
38
38
|
const install = (app) => {
|
|
@@ -10261,7 +10261,7 @@
|
|
|
10261
10261
|
|
|
10262
10262
|
const ProIcon = withInstall(_sfc_main$W);
|
|
10263
10263
|
|
|
10264
|
-
function _isSlot$
|
|
10264
|
+
function _isSlot$8(s) {
|
|
10265
10265
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
10266
10266
|
}
|
|
10267
10267
|
var Button = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -10428,7 +10428,7 @@
|
|
|
10428
10428
|
})();
|
|
10429
10429
|
defaultDom = vue.createVNode(antDesignVue.Tooltip, vue.mergeProps(props.tooltipProps, {
|
|
10430
10430
|
"title": props.tooltip
|
|
10431
|
-
}), _isSlot$
|
|
10431
|
+
}), _isSlot$8(defaultDom) ? defaultDom : {
|
|
10432
10432
|
default: () => [_defaultDom]
|
|
10433
10433
|
});
|
|
10434
10434
|
}
|
|
@@ -10436,7 +10436,7 @@
|
|
|
10436
10436
|
return vue.createVNode(antDesignVue.Popconfirm, vue.mergeProps(props.popconfirmProps, {
|
|
10437
10437
|
"onConfirm": props.onConfirm,
|
|
10438
10438
|
"onCancel": props.onCancel
|
|
10439
|
-
}), _isSlot$
|
|
10439
|
+
}), _isSlot$8(defaultDom) ? defaultDom : {
|
|
10440
10440
|
default: () => [defaultDom]
|
|
10441
10441
|
});
|
|
10442
10442
|
}
|
|
@@ -14001,7 +14001,7 @@
|
|
|
14001
14001
|
return vue.inject(FormContextKey, {});
|
|
14002
14002
|
};
|
|
14003
14003
|
|
|
14004
|
-
function _isSlot$
|
|
14004
|
+
function _isSlot$7(s) {
|
|
14005
14005
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
14006
14006
|
}
|
|
14007
14007
|
var FieldReadonly = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -14080,7 +14080,7 @@
|
|
|
14080
14080
|
if (props.copy && props.text) {
|
|
14081
14081
|
return vue.createVNode(ProClipboard, {
|
|
14082
14082
|
"text": props.text
|
|
14083
|
-
}, _isSlot$
|
|
14083
|
+
}, _isSlot$7(dom) ? dom : {
|
|
14084
14084
|
default: () => [dom]
|
|
14085
14085
|
});
|
|
14086
14086
|
}
|
|
@@ -14091,7 +14091,7 @@
|
|
|
14091
14091
|
"placement": "topLeft",
|
|
14092
14092
|
"title": title,
|
|
14093
14093
|
"getPopupContainer": getPopupContainer
|
|
14094
|
-
}, _isSlot$
|
|
14094
|
+
}, _isSlot$7(dom) ? dom : {
|
|
14095
14095
|
default: () => [dom]
|
|
14096
14096
|
});
|
|
14097
14097
|
}
|
|
@@ -15211,7 +15211,7 @@
|
|
|
15211
15211
|
}
|
|
15212
15212
|
});
|
|
15213
15213
|
|
|
15214
|
-
function _isSlot$
|
|
15214
|
+
function _isSlot$6(s) {
|
|
15215
15215
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
15216
15216
|
}
|
|
15217
15217
|
var FieldRadioGroup = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -15275,7 +15275,7 @@
|
|
|
15275
15275
|
"value": props.value
|
|
15276
15276
|
}, attrs, {
|
|
15277
15277
|
"onChange": onChange
|
|
15278
|
-
}), _isSlot$
|
|
15278
|
+
}), _isSlot$6(_slot = mergeOptions.value.map((option) => {
|
|
15279
15279
|
var _a2;
|
|
15280
15280
|
return vue.createVNode(antDesignVue.Radio, {
|
|
15281
15281
|
"value": option.value,
|
|
@@ -17996,7 +17996,7 @@
|
|
|
17996
17996
|
}
|
|
17997
17997
|
});
|
|
17998
17998
|
|
|
17999
|
-
function _isSlot$
|
|
17999
|
+
function _isSlot$5(s) {
|
|
18000
18000
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
18001
18001
|
}
|
|
18002
18002
|
var FormGroup = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -18096,7 +18096,7 @@
|
|
|
18096
18096
|
}, null)]), vue.createVNode("div", null, [vue.createVNode(FormRowWrapper, {
|
|
18097
18097
|
"rowProps": props.rowProps,
|
|
18098
18098
|
"grid": props.grid
|
|
18099
|
-
}, _isSlot$
|
|
18099
|
+
}, _isSlot$5(defaultDom) ? defaultDom : {
|
|
18100
18100
|
default: () => [defaultDom]
|
|
18101
18101
|
})])])]
|
|
18102
18102
|
});
|
|
@@ -18571,7 +18571,7 @@
|
|
|
18571
18571
|
}
|
|
18572
18572
|
});
|
|
18573
18573
|
|
|
18574
|
-
function _isSlot$
|
|
18574
|
+
function _isSlot$4(s) {
|
|
18575
18575
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
18576
18576
|
}
|
|
18577
18577
|
var FormListContainer = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -18792,7 +18792,7 @@
|
|
|
18792
18792
|
}, restProps, {
|
|
18793
18793
|
"loading": loading.value,
|
|
18794
18794
|
"onClick": onAdd
|
|
18795
|
-
}), _isSlot$
|
|
18795
|
+
}), _isSlot$4(creatorButtonText) ? creatorButtonText : {
|
|
18796
18796
|
default: () => [creatorButtonText]
|
|
18797
18797
|
});
|
|
18798
18798
|
if (slots.creator) {
|
|
@@ -20135,7 +20135,7 @@
|
|
|
20135
20135
|
}
|
|
20136
20136
|
});
|
|
20137
20137
|
|
|
20138
|
-
function _isSlot$
|
|
20138
|
+
function _isSlot$3(s) {
|
|
20139
20139
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
20140
20140
|
}
|
|
20141
20141
|
var FormSubmitter = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -20230,7 +20230,7 @@
|
|
|
20230
20230
|
}
|
|
20231
20231
|
(_a = resetButtonProps.onClick) == null ? void 0 : _a.call(resetButtonProps, e);
|
|
20232
20232
|
}
|
|
20233
|
-
}), _isSlot$
|
|
20233
|
+
}), _isSlot$3(resetText) ? resetText : {
|
|
20234
20234
|
default: () => [resetText]
|
|
20235
20235
|
});
|
|
20236
20236
|
});
|
|
@@ -20256,7 +20256,7 @@
|
|
|
20256
20256
|
}
|
|
20257
20257
|
(_a = submitButtonProps.onClick) == null ? void 0 : _a.call(submitButtonProps, e);
|
|
20258
20258
|
}
|
|
20259
|
-
}), _isSlot$
|
|
20259
|
+
}), _isSlot$3(submitText) ? submitText : {
|
|
20260
20260
|
default: () => [submitText]
|
|
20261
20261
|
});
|
|
20262
20262
|
});
|
|
@@ -20310,7 +20310,7 @@
|
|
|
20310
20310
|
return transformerMap;
|
|
20311
20311
|
}
|
|
20312
20312
|
|
|
20313
|
-
function _isSlot$
|
|
20313
|
+
function _isSlot$2(s) {
|
|
20314
20314
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
20315
20315
|
}
|
|
20316
20316
|
let requestFormCacheId = 0;
|
|
@@ -20481,7 +20481,7 @@
|
|
|
20481
20481
|
return vue.createVNode(vue.Teleport, {
|
|
20482
20482
|
"defer": true,
|
|
20483
20483
|
"to": submitterProps.value.teleport
|
|
20484
|
-
}, _isSlot$
|
|
20484
|
+
}, _isSlot$2(dom) ? dom : {
|
|
20485
20485
|
default: () => [dom]
|
|
20486
20486
|
});
|
|
20487
20487
|
}
|
|
@@ -21369,7 +21369,7 @@
|
|
|
21369
21369
|
}
|
|
21370
21370
|
});
|
|
21371
21371
|
|
|
21372
|
-
function _isSlot$
|
|
21372
|
+
function _isSlot$1(s) {
|
|
21373
21373
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
21374
21374
|
}
|
|
21375
21375
|
const StepsLayoutStrategy = {
|
|
@@ -21386,7 +21386,7 @@
|
|
|
21386
21386
|
}, {
|
|
21387
21387
|
default: () => [vue.createVNode(antDesignVue.Col, {
|
|
21388
21388
|
"span": 24
|
|
21389
|
-
}, _isSlot$
|
|
21389
|
+
}, _isSlot$1(stepsDom) ? stepsDom : {
|
|
21390
21390
|
default: () => [stepsDom]
|
|
21391
21391
|
})]
|
|
21392
21392
|
}), vue.createVNode(antDesignVue.Row, {
|
|
@@ -21398,7 +21398,7 @@
|
|
|
21398
21398
|
}, {
|
|
21399
21399
|
default: () => [vue.createVNode(antDesignVue.Col, {
|
|
21400
21400
|
"span": 24
|
|
21401
|
-
}, _isSlot$
|
|
21401
|
+
}, _isSlot$1(formDom) ? formDom : {
|
|
21402
21402
|
default: () => [formDom]
|
|
21403
21403
|
})]
|
|
21404
21404
|
})]);
|
|
@@ -21424,7 +21424,7 @@
|
|
|
21424
21424
|
"md": 8,
|
|
21425
21425
|
"sm": 10,
|
|
21426
21426
|
"xs": 12
|
|
21427
|
-
}, _isSlot$
|
|
21427
|
+
}, _isSlot$1(_slot = cloneElement(stepsDom, {
|
|
21428
21428
|
style: {
|
|
21429
21429
|
height: "100%"
|
|
21430
21430
|
}
|
|
@@ -21512,7 +21512,7 @@
|
|
|
21512
21512
|
"onClick": () => {
|
|
21513
21513
|
onSubmit();
|
|
21514
21514
|
}
|
|
21515
|
-
}), _isSlot$
|
|
21515
|
+
}), _isSlot$1(_slot2 = intl.getMessage("stepsForm.next", "\u4E0B\u4E00\u6B65")) ? _slot2 : {
|
|
21516
21516
|
default: () => [_slot2]
|
|
21517
21517
|
});
|
|
21518
21518
|
});
|
|
@@ -21525,7 +21525,7 @@
|
|
|
21525
21525
|
"onClick": () => {
|
|
21526
21526
|
prePage();
|
|
21527
21527
|
}
|
|
21528
|
-
}), _isSlot$
|
|
21528
|
+
}), _isSlot$1(_slot3 = intl.getMessage("stepsForm.prev", "\u4E0A\u4E00\u6B65")) ? _slot3 : {
|
|
21529
21529
|
default: () => [_slot3]
|
|
21530
21530
|
});
|
|
21531
21531
|
});
|
|
@@ -21540,7 +21540,7 @@
|
|
|
21540
21540
|
"onClick": () => {
|
|
21541
21541
|
onSubmit();
|
|
21542
21542
|
}
|
|
21543
|
-
}), _isSlot$
|
|
21543
|
+
}), _isSlot$1(_slot4 = intl.getMessage("stepsForm.submit", "\u63D0\u4EA4")) ? _slot4 : {
|
|
21544
21544
|
default: () => [_slot4]
|
|
21545
21545
|
});
|
|
21546
21546
|
});
|
|
@@ -37518,9 +37518,6 @@
|
|
|
37518
37518
|
}
|
|
37519
37519
|
var Alert = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3]]);
|
|
37520
37520
|
|
|
37521
|
-
function _isSlot$1(s) {
|
|
37522
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
37523
|
-
}
|
|
37524
37521
|
var FormRender = /* @__PURE__ */ vue.defineComponent({
|
|
37525
37522
|
props: {
|
|
37526
37523
|
prefixCls: String,
|
|
@@ -37570,84 +37567,62 @@
|
|
|
37570
37567
|
setup: (props, {
|
|
37571
37568
|
slots
|
|
37572
37569
|
}) => {
|
|
37573
|
-
var _a, _b, _c;
|
|
37574
|
-
const activeTabKey = vue.ref(((_a = props.search) == null ? void 0 : _a.cardProps) !== false ? (_c = (_b = props.search) == null ? void 0 : _b.cardProps) == null ? void 0 : _c.activeTabKey : "");
|
|
37575
|
-
const cardProps = vue.computed(() => {
|
|
37576
|
-
var _a2, _b2;
|
|
37577
|
-
if (!((_a2 = props.search) == null ? void 0 : _a2.cardProps)) {
|
|
37578
|
-
return {};
|
|
37579
|
-
}
|
|
37580
|
-
return (_b2 = props.search) == null ? void 0 : _b2.cardProps;
|
|
37581
|
-
});
|
|
37582
37570
|
const submit = async (values, firstLoad) => {
|
|
37583
|
-
var
|
|
37584
|
-
const tabParams = ((_b2 = (_a2 = cardProps.value) == null ? void 0 : _a2.tabList) == null ? void 0 : _b2.length) ? {
|
|
37585
|
-
[(_d = (_c2 = props.search) == null ? void 0 : _c2.tabName) != null ? _d : "tab"]: cardProps.value.activeTabKey || ((_g = (_f = (_e = cardProps.value) == null ? void 0 : _e.tabList) == null ? void 0 : _f[0]) == null ? void 0 : _g.key)
|
|
37586
|
-
} : {};
|
|
37571
|
+
var _a;
|
|
37587
37572
|
const submitParams = omitUndefined(props.beforeSearchSubmit({
|
|
37588
|
-
...values
|
|
37589
|
-
...tabParams
|
|
37573
|
+
...values
|
|
37590
37574
|
}));
|
|
37591
|
-
(
|
|
37575
|
+
(_a = props.onFormSearchSubmit) == null ? void 0 : _a.call(props, submitParams);
|
|
37592
37576
|
if (props.onSubmit && !firstLoad) {
|
|
37593
37577
|
props.onSubmit(submitParams);
|
|
37594
37578
|
}
|
|
37595
37579
|
};
|
|
37596
|
-
const
|
|
37597
|
-
var
|
|
37598
|
-
|
|
37599
|
-
|
|
37600
|
-
|
|
37601
|
-
}
|
|
37602
|
-
|
|
37603
|
-
|
|
37580
|
+
const isCard = vue.computed(() => {
|
|
37581
|
+
var _a;
|
|
37582
|
+
return ((_a = props.search) == null ? void 0 : _a.cardProps) !== false && props.tableShowCard;
|
|
37583
|
+
});
|
|
37584
|
+
const className = vue.computed(() => ({
|
|
37585
|
+
[`${props.prefixCls}-search`]: true,
|
|
37586
|
+
[`${props.prefixCls}-card`]: isCard.value,
|
|
37587
|
+
[`${props.prefixCls}-card-bordered`]: isCard.value && isBordered("search", props.cardBordered)
|
|
37588
|
+
}));
|
|
37604
37589
|
return () => {
|
|
37605
|
-
var
|
|
37606
|
-
|
|
37590
|
+
var _a, _b;
|
|
37591
|
+
return vue.createVNode("div", {
|
|
37592
|
+
"class": className.value,
|
|
37593
|
+
"style": {
|
|
37594
|
+
marginBlockEnd: isCard.value ? "16px" : ""
|
|
37595
|
+
}
|
|
37596
|
+
}, [vue.createVNode(ProQueryFilter, vue.mergeProps({
|
|
37607
37597
|
"class": `${props.prefixCls}-form`
|
|
37608
37598
|
}, omit(props.search || {}, ["cardProps", "tabName", "items", "loading", "onReset", "onFinish", "onValuesChange", "onInit", "onCollapse"]), {
|
|
37609
37599
|
"items": props.items,
|
|
37610
37600
|
"loading": props.loading,
|
|
37611
37601
|
"style": {
|
|
37612
|
-
marginBlockEnd: ((
|
|
37613
|
-
...(
|
|
37602
|
+
marginBlockEnd: ((_a = props.search) == null ? void 0 : _a.cardProps) !== false && props.tableShowCard ? 0 : "16px",
|
|
37603
|
+
...(_b = props.search) == null ? void 0 : _b.style
|
|
37614
37604
|
},
|
|
37615
37605
|
"onReset": props.onReset,
|
|
37616
37606
|
"onFinish": (values) => {
|
|
37617
|
-
var
|
|
37607
|
+
var _a2, _b2;
|
|
37618
37608
|
submit(values, false);
|
|
37619
|
-
(
|
|
37609
|
+
(_b2 = (_a2 = props.search) == null ? void 0 : _a2.onFinish) == null ? void 0 : _b2.call(_a2, values);
|
|
37620
37610
|
},
|
|
37621
37611
|
"onValuesChange": (values) => {
|
|
37622
|
-
var
|
|
37623
|
-
if (((
|
|
37612
|
+
var _a2, _b2, _c;
|
|
37613
|
+
if (((_a2 = props.search) == null ? void 0 : _a2.submitter) === false) {
|
|
37624
37614
|
submit(values, true);
|
|
37625
37615
|
}
|
|
37626
|
-
(
|
|
37616
|
+
(_c = (_b2 = props.search) == null ? void 0 : _b2.onValuesChange) == null ? void 0 : _c.call(_b2, values);
|
|
37627
37617
|
},
|
|
37628
37618
|
"onInit": (values, action) => {
|
|
37629
|
-
var
|
|
37619
|
+
var _a2, _b2, _c;
|
|
37630
37620
|
submit(values, true);
|
|
37631
|
-
(
|
|
37632
|
-
(
|
|
37621
|
+
(_a2 = props.setFormAction) == null ? void 0 : _a2.call(props, action);
|
|
37622
|
+
(_c = (_b2 = props.search) == null ? void 0 : _b2.onInit) == null ? void 0 : _c.call(_b2, values, action);
|
|
37633
37623
|
},
|
|
37634
37624
|
"onCollapse": props.onCollapse
|
|
37635
|
-
}), slots);
|
|
37636
|
-
if (((_c2 = props.search) == null ? void 0 : _c2.cardProps) !== false && props.tableShowCard) {
|
|
37637
|
-
return vue.createVNode(antDesignVue.Card, vue.mergeProps({
|
|
37638
|
-
"class": `${props.prefixCls}-search`,
|
|
37639
|
-
"activeTabKey": activeTabKey.value,
|
|
37640
|
-
"bordered": isBordered("search", props.cardBordered),
|
|
37641
|
-
"style": {
|
|
37642
|
-
marginBlockEnd: "16px"
|
|
37643
|
-
}
|
|
37644
|
-
}, omit((_d = cardProps.value) != null ? _d : {}, ["onTabChange", "activeTabKey"]), {
|
|
37645
|
-
"onTabChange": onTabChange
|
|
37646
|
-
}), _isSlot$1(searchDom) ? searchDom : {
|
|
37647
|
-
default: () => [searchDom]
|
|
37648
|
-
});
|
|
37649
|
-
}
|
|
37650
|
-
return searchDom;
|
|
37625
|
+
}), slots)]);
|
|
37651
37626
|
};
|
|
37652
37627
|
}
|
|
37653
37628
|
});
|