pro-design-vue 1.4.11 → 1.4.13
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 +28 -12
- package/dist/index.full.min.js +5 -5
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +5 -5
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +28 -12
- package/es/components/button/index.d.ts +9 -3
- package/es/components/button/src/Button.d.ts +9 -3
- package/es/components/page/src/types.d.ts +1 -0
- package/es/components/table/src/components/AutoHeightHeader/Header.vue.d.ts +9 -3
- package/es/components/table/src/components/AutoHeightHeader/HeaderRow.vue.d.ts +9 -3
- package/es/components/table/src/components/Filter/FilterDropdown.vue.d.ts +9 -3
- package/es/components/table/src/components/Header/Header.vue.d.ts +9 -3
- package/es/components/table/src/components/Header/HeaderCell.vue.d.ts +9 -3
- package/es/components/table/src/components/Header/HeaderRows.vue.d.ts +9 -3
- package/es/components/table/src/components/Header/HeaderRowsWrap.vue.d.ts +9 -3
- package/es/components/table/src/components/InteralTable.vue.d.ts +18 -6
- package/es/index.d.ts +10 -3
- package/es/packages/components/button/src/Button.mjs +8 -1
- package/es/packages/components/button/src/Button.mjs.map +1 -1
- package/es/packages/components/page/src/page.vue2.mjs +18 -9
- package/es/packages/components/page/src/page.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/button/index.d.ts +9 -3
- package/lib/components/button/src/Button.d.ts +9 -3
- package/lib/components/page/src/types.d.ts +1 -0
- package/lib/components/table/src/components/AutoHeightHeader/Header.vue.d.ts +9 -3
- package/lib/components/table/src/components/AutoHeightHeader/HeaderRow.vue.d.ts +9 -3
- package/lib/components/table/src/components/Filter/FilterDropdown.vue.d.ts +9 -3
- package/lib/components/table/src/components/Header/Header.vue.d.ts +9 -3
- package/lib/components/table/src/components/Header/HeaderCell.vue.d.ts +9 -3
- package/lib/components/table/src/components/Header/HeaderRows.vue.d.ts +9 -3
- package/lib/components/table/src/components/Header/HeaderRowsWrap.vue.d.ts +9 -3
- package/lib/components/table/src/components/InteralTable.vue.d.ts +18 -6
- package/lib/index.d.ts +10 -3
- package/lib/packages/components/button/src/Button.js +8 -1
- package/lib/packages/components/button/src/Button.js.map +1 -1
- package/lib/packages/components/page/src/page.vue2.js +18 -9
- package/lib/packages/components/page/src/page.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.4.
|
|
1
|
+
/*! Pro Design Vue v1.4.13 */
|
|
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.4.
|
|
35
|
+
const version$1 = "1.4.13";
|
|
36
36
|
|
|
37
37
|
const makeInstaller = (components = []) => {
|
|
38
38
|
const install = (app) => {
|
|
@@ -10492,10 +10492,17 @@
|
|
|
10492
10492
|
});
|
|
10493
10493
|
}
|
|
10494
10494
|
if (props.mode === "dropdown") {
|
|
10495
|
+
const items = props.items.filter((item) => {
|
|
10496
|
+
var _a2;
|
|
10497
|
+
if (item.accessCode && ((_a2 = accessCodes == null ? void 0 : accessCodes.value) == null ? void 0 : _a2.size)) {
|
|
10498
|
+
return accessCodes == null ? void 0 : accessCodes.value.has(item.accessCode);
|
|
10499
|
+
}
|
|
10500
|
+
return true;
|
|
10501
|
+
});
|
|
10495
10502
|
return vue.createVNode(antDesignVue.Dropdown, props.dropdownProps, {
|
|
10496
10503
|
default: () => [defaultDom],
|
|
10497
10504
|
overlay: () => vue.createVNode(antDesignVue.Menu, vue.mergeProps(props.menuProps, {
|
|
10498
|
-
"items":
|
|
10505
|
+
"items": items,
|
|
10499
10506
|
"onClick": (...args) => {
|
|
10500
10507
|
var _a2;
|
|
10501
10508
|
return (_a2 = props.onMenuClick) == null ? void 0 : _a2.call(props, ...args, props.data);
|
|
@@ -38866,11 +38873,20 @@
|
|
|
38866
38873
|
const prefixCls = usePrefixCls("page");
|
|
38867
38874
|
const contentHeight = vue.ref(0);
|
|
38868
38875
|
const shouldAutoHeight = vue.ref(false);
|
|
38869
|
-
const { contentOffsetTop, page } = useProConfigInject();
|
|
38876
|
+
const { contentOffsetTop, page, accessCodes } = useProConfigInject();
|
|
38870
38877
|
const tabActiveKey = vue.useModel(__props, "activeKey");
|
|
38871
38878
|
const rootRef = vue.useTemplateRef("root");
|
|
38872
38879
|
const footerRef = vue.useTemplateRef("footer");
|
|
38873
38880
|
const contentRef = vue.useTemplateRef("content");
|
|
38881
|
+
const tabList = vue.computed(
|
|
38882
|
+
() => __props.tabList.filter((item) => {
|
|
38883
|
+
var _a;
|
|
38884
|
+
if (item.accessCode && ((_a = accessCodes == null ? void 0 : accessCodes.value) == null ? void 0 : _a.size)) {
|
|
38885
|
+
return accessCodes == null ? void 0 : accessCodes.value.has(item.accessCode);
|
|
38886
|
+
}
|
|
38887
|
+
return true;
|
|
38888
|
+
})
|
|
38889
|
+
);
|
|
38874
38890
|
const mergeContentPadding = vue.computed(() => {
|
|
38875
38891
|
var _a;
|
|
38876
38892
|
return __props.contentPadding || ((_a = page == null ? void 0 : page.value) == null ? void 0 : _a.contentPadding) || 16;
|
|
@@ -38971,8 +38987,8 @@
|
|
|
38971
38987
|
}
|
|
38972
38988
|
const tabComp = vue.computed(() => {
|
|
38973
38989
|
var _a, _b;
|
|
38974
|
-
if ((_a =
|
|
38975
|
-
const key = (_b = tabActiveKey.value) != null ? _b :
|
|
38990
|
+
if ((_a = tabList.value) == null ? void 0 : _a.length) {
|
|
38991
|
+
const key = (_b = tabActiveKey.value) != null ? _b : tabList.value[0].key;
|
|
38976
38992
|
return slots[key];
|
|
38977
38993
|
}
|
|
38978
38994
|
return null;
|
|
@@ -38987,7 +39003,7 @@
|
|
|
38987
39003
|
"div",
|
|
38988
39004
|
{
|
|
38989
39005
|
ref: "root",
|
|
38990
|
-
class: vue.normalizeClass([vue.unref(prefixCls), ((_a =
|
|
39006
|
+
class: vue.normalizeClass([vue.unref(prefixCls), ((_a = tabList.value) == null ? void 0 : _a.length) ? `is-tabs` : ""]),
|
|
38991
39007
|
style: vue.normalizeStyle((_b = vue.unref(page)) == null ? void 0 : _b.pageStyle)
|
|
38992
39008
|
},
|
|
38993
39009
|
[
|
|
@@ -39050,7 +39066,7 @@
|
|
|
39050
39066
|
6
|
|
39051
39067
|
/* CLASS, STYLE */
|
|
39052
39068
|
)) : vue.createCommentVNode("v-if", true),
|
|
39053
|
-
((_a2 =
|
|
39069
|
+
((_a2 = tabList.value) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock(
|
|
39054
39070
|
"div",
|
|
39055
39071
|
{
|
|
39056
39072
|
key: 1,
|
|
@@ -39066,7 +39082,7 @@
|
|
|
39066
39082
|
(vue.openBlock(true), vue.createElementBlock(
|
|
39067
39083
|
vue.Fragment,
|
|
39068
39084
|
null,
|
|
39069
|
-
vue.renderList(
|
|
39085
|
+
vue.renderList(tabList.value, (tab) => {
|
|
39070
39086
|
return vue.openBlock(), vue.createBlock(
|
|
39071
39087
|
vue.unref(antDesignVue.TabPane),
|
|
39072
39088
|
vue.mergeProps({
|
|
@@ -39105,12 +39121,12 @@
|
|
|
39105
39121
|
},
|
|
39106
39122
|
[
|
|
39107
39123
|
vue.renderSlot(_ctx.$slots, "default", {
|
|
39108
|
-
activeKey: (_b2 = tabActiveKey.value) != null ? _b2 : (_a3 =
|
|
39124
|
+
activeKey: (_b2 = tabActiveKey.value) != null ? _b2 : (_a3 = tabList.value[0]) == null ? void 0 : _a3.key,
|
|
39109
39125
|
offset: offset.value
|
|
39110
39126
|
}),
|
|
39111
|
-
((_c =
|
|
39127
|
+
((_c = tabList.value) == null ? void 0 : _c.length) ? vue.renderSlot(_ctx.$slots, "tabs", {
|
|
39112
39128
|
key: 0,
|
|
39113
|
-
activeKey: (_e = tabActiveKey.value) != null ? _e : (_d =
|
|
39129
|
+
activeKey: (_e = tabActiveKey.value) != null ? _e : (_d = tabList.value[0]) == null ? void 0 : _d.key,
|
|
39114
39130
|
offset: offset.value
|
|
39115
39131
|
}, () => [
|
|
39116
39132
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tabComp.value)))
|