pro-design-vue 1.0.0-rc.11 → 1.0.0-rc.12
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 +20 -9
- package/dist/index.full.min.js +6 -6
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +6 -6
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +20 -9
- package/es/components/drawer/src/drawer.vue2.mjs +1 -1
- package/es/components/drawer/src/drawer.vue2.mjs.map +1 -1
- package/es/components/form/src/components/FormItem.mjs +1 -1
- package/es/components/form/src/components/FormItem.mjs.map +1 -1
- package/es/components/form/src/layouts/QueryFilter.mjs +15 -4
- package/es/components/form/src/layouts/QueryFilter.mjs.map +1 -1
- package/es/components/modal/src/modal.vue2.mjs +1 -1
- package/es/components/modal/src/modal.vue2.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/components/drawer/src/drawer.vue2.js +1 -1
- package/lib/components/drawer/src/drawer.vue2.js.map +1 -1
- package/lib/components/form/src/components/FormItem.js +1 -1
- package/lib/components/form/src/components/FormItem.js.map +1 -1
- package/lib/components/form/src/layouts/QueryFilter.js +15 -4
- package/lib/components/form/src/layouts/QueryFilter.js.map +1 -1
- package/lib/components/modal/src/modal.vue2.js +1 -1
- package/lib/components/modal/src/modal.vue2.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/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.12 */
|
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.12";
|
20
20
|
|
21
21
|
const makeInstaller = (components = []) => {
|
22
22
|
const install = (app) => {
|
@@ -11751,7 +11751,7 @@
|
|
11751
11751
|
__name: "drawer",
|
11752
11752
|
props: {
|
11753
11753
|
description: { type: String, required: false },
|
11754
|
-
showFullscreen: { type: Boolean, required: false, default:
|
11754
|
+
showFullscreen: { type: Boolean, required: false, default: false },
|
11755
11755
|
defaultFullscreen: { type: Boolean, required: false },
|
11756
11756
|
autofocus: { type: Boolean, required: false, default: false },
|
11757
11757
|
closable: { type: Boolean, required: false, default: true },
|
@@ -14951,7 +14951,7 @@
|
|
14951
14951
|
__name: "modal",
|
14952
14952
|
props: {
|
14953
14953
|
description: { type: String, required: false },
|
14954
|
-
showFullscreen: { type: Boolean, required: false, default:
|
14954
|
+
showFullscreen: { type: Boolean, required: false, default: false },
|
14955
14955
|
defaultFullscreen: { type: Boolean, required: false },
|
14956
14956
|
draggable: { type: Boolean, required: false, default: false },
|
14957
14957
|
top: { type: Number, required: false, default: 100 },
|
@@ -17084,6 +17084,7 @@
|
|
17084
17084
|
}
|
17085
17085
|
if (props.defaultColsNumber !== void 0) {
|
17086
17086
|
const oneRowControlsNumber = 24 / spanSize.value.span - 1;
|
17087
|
+
console.log("\u{1F680} ~ showLength ~ oneRowControlsNumber:", oneRowControlsNumber);
|
17087
17088
|
return props.defaultColsNumber > oneRowControlsNumber ? oneRowControlsNumber : props.defaultColsNumber;
|
17088
17089
|
}
|
17089
17090
|
return Math.max(1, 24 / spanSize.value.span - 1);
|
@@ -17120,7 +17121,7 @@
|
|
17120
17121
|
}
|
17121
17122
|
return void 0;
|
17122
17123
|
});
|
17123
|
-
const [collapsed, setCollapsed] = useMergedState$1(() => props.defaultCollapsed, {
|
17124
|
+
const [collapsed, setCollapsed] = useMergedState$1(() => props.defaultCollapsed && !!props.submitter, {
|
17124
17125
|
value: vue.computed(() => props.collapsed),
|
17125
17126
|
onChange: (val) => {
|
17126
17127
|
emit("collapse", val);
|
@@ -17191,7 +17192,7 @@
|
|
17191
17192
|
firstRowFull = colSpan === 24 && !item.hidden;
|
17192
17193
|
}
|
17193
17194
|
const hidden = item.hidden || // 如果收起了
|
17194
|
-
|
17195
|
+
collapsed.value && (firstRowFull || // 如果 超过显示长度 且 总长度超过了 24
|
17195
17196
|
totalSize.value > showLength.value) && !!index;
|
17196
17197
|
if (hidden) {
|
17197
17198
|
if (!props.preserve) {
|
@@ -17219,7 +17220,10 @@
|
|
17219
17220
|
return {
|
17220
17221
|
...item,
|
17221
17222
|
hidden,
|
17222
|
-
formItemProps:
|
17223
|
+
formItemProps: {
|
17224
|
+
...item.title ? formItemFixStyle.value : {},
|
17225
|
+
...item.formItemProps
|
17226
|
+
},
|
17223
17227
|
colProps: {
|
17224
17228
|
span: colSpan
|
17225
17229
|
}
|
@@ -17263,9 +17267,16 @@
|
|
17263
17267
|
}), {
|
17264
17268
|
...slots,
|
17265
17269
|
submitter: ({
|
17270
|
+
props: props2,
|
17271
|
+
action,
|
17266
17272
|
defaultDoms
|
17267
17273
|
}) => {
|
17268
|
-
|
17274
|
+
var _a2;
|
17275
|
+
return vue.createVNode(vue.Fragment, null, [slots.submitter ? (_a2 = slots.submitter) == null ? void 0 : _a2.call(slots, {
|
17276
|
+
props: props2,
|
17277
|
+
action,
|
17278
|
+
defaultDoms
|
17279
|
+
}) : defaultDoms, needCollapse.value !== false && vue.createVNode("a", {
|
17269
17280
|
"class": `${prefixCls}-collapse-button`,
|
17270
17281
|
"onClick": () => setCollapsed(!collapsed.value)
|
17271
17282
|
}, [collapsed.value ? intl.getMessage("form.collapsed", "\u5C55\u5F00") : intl.getMessage("form.expand", "\u6536\u8D77"), !!hiddenNum.value && `(${hiddenNum.value})`, vue.createVNode(DownOutlined, {
|
@@ -36694,7 +36705,7 @@
|
|
36694
36705
|
disabled: ((_e = runFunction((_d = props.item.disabled) != null ? _d : baseProps == null ? void 0 : baseProps.disabled, formData.value, rowData == null ? void 0 : rowData.value)) != null ? _e : allDisabledKeys.value.includes(props.item.key)) ? true : void 0,
|
36695
36706
|
placeholder: (_f = props.item.placeholder) != null ? _f : baseProps == null ? void 0 : baseProps.placeholder,
|
36696
36707
|
options: (_h = (_g = props.item.options) != null ? _g : baseProps == null ? void 0 : baseProps.options) != null ? _h : baseProps == null ? void 0 : baseProps.treeData,
|
36697
|
-
allowClear: (_j = (_i = props.item.allowClear) != null ? _i : baseProps == null ? void 0 : baseProps.allowClear) != null ? _j :
|
36708
|
+
allowClear: (_j = (_i = props.item.allowClear) != null ? _i : baseProps == null ? void 0 : baseProps.allowClear) != null ? _j : true
|
36698
36709
|
};
|
36699
36710
|
return omitUndefined({
|
36700
36711
|
valueEnum: props.item.valueEnum,
|