pro-design-vue 1.4.11 → 1.4.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 +29 -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 +29 -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 +9 -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 +9 -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.12 */
|
|
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.12";
|
|
36
36
|
|
|
37
37
|
const makeInstaller = (components = []) => {
|
|
38
38
|
const install = (app) => {
|
|
@@ -10492,10 +10492,18 @@
|
|
|
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
|
+
});
|
|
10502
|
+
console.log("\u{1F680} ~ items ~ items:", items);
|
|
10495
10503
|
return vue.createVNode(antDesignVue.Dropdown, props.dropdownProps, {
|
|
10496
10504
|
default: () => [defaultDom],
|
|
10497
10505
|
overlay: () => vue.createVNode(antDesignVue.Menu, vue.mergeProps(props.menuProps, {
|
|
10498
|
-
"items":
|
|
10506
|
+
"items": items,
|
|
10499
10507
|
"onClick": (...args) => {
|
|
10500
10508
|
var _a2;
|
|
10501
10509
|
return (_a2 = props.onMenuClick) == null ? void 0 : _a2.call(props, ...args, props.data);
|
|
@@ -38866,11 +38874,20 @@
|
|
|
38866
38874
|
const prefixCls = usePrefixCls("page");
|
|
38867
38875
|
const contentHeight = vue.ref(0);
|
|
38868
38876
|
const shouldAutoHeight = vue.ref(false);
|
|
38869
|
-
const { contentOffsetTop, page } = useProConfigInject();
|
|
38877
|
+
const { contentOffsetTop, page, accessCodes } = useProConfigInject();
|
|
38870
38878
|
const tabActiveKey = vue.useModel(__props, "activeKey");
|
|
38871
38879
|
const rootRef = vue.useTemplateRef("root");
|
|
38872
38880
|
const footerRef = vue.useTemplateRef("footer");
|
|
38873
38881
|
const contentRef = vue.useTemplateRef("content");
|
|
38882
|
+
const tabList = vue.computed(
|
|
38883
|
+
() => __props.tabList.filter((item) => {
|
|
38884
|
+
var _a;
|
|
38885
|
+
if (item.accessCode && ((_a = accessCodes == null ? void 0 : accessCodes.value) == null ? void 0 : _a.size)) {
|
|
38886
|
+
return accessCodes == null ? void 0 : accessCodes.value.has(item.accessCode);
|
|
38887
|
+
}
|
|
38888
|
+
return true;
|
|
38889
|
+
})
|
|
38890
|
+
);
|
|
38874
38891
|
const mergeContentPadding = vue.computed(() => {
|
|
38875
38892
|
var _a;
|
|
38876
38893
|
return __props.contentPadding || ((_a = page == null ? void 0 : page.value) == null ? void 0 : _a.contentPadding) || 16;
|
|
@@ -38971,8 +38988,8 @@
|
|
|
38971
38988
|
}
|
|
38972
38989
|
const tabComp = vue.computed(() => {
|
|
38973
38990
|
var _a, _b;
|
|
38974
|
-
if ((_a =
|
|
38975
|
-
const key = (_b = tabActiveKey.value) != null ? _b :
|
|
38991
|
+
if ((_a = tabList.value) == null ? void 0 : _a.length) {
|
|
38992
|
+
const key = (_b = tabActiveKey.value) != null ? _b : tabList.value[0].key;
|
|
38976
38993
|
return slots[key];
|
|
38977
38994
|
}
|
|
38978
38995
|
return null;
|
|
@@ -38987,7 +39004,7 @@
|
|
|
38987
39004
|
"div",
|
|
38988
39005
|
{
|
|
38989
39006
|
ref: "root",
|
|
38990
|
-
class: vue.normalizeClass([vue.unref(prefixCls), ((_a =
|
|
39007
|
+
class: vue.normalizeClass([vue.unref(prefixCls), ((_a = tabList.value) == null ? void 0 : _a.length) ? `is-tabs` : ""]),
|
|
38991
39008
|
style: vue.normalizeStyle((_b = vue.unref(page)) == null ? void 0 : _b.pageStyle)
|
|
38992
39009
|
},
|
|
38993
39010
|
[
|
|
@@ -39050,7 +39067,7 @@
|
|
|
39050
39067
|
6
|
|
39051
39068
|
/* CLASS, STYLE */
|
|
39052
39069
|
)) : vue.createCommentVNode("v-if", true),
|
|
39053
|
-
((_a2 =
|
|
39070
|
+
((_a2 = tabList.value) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock(
|
|
39054
39071
|
"div",
|
|
39055
39072
|
{
|
|
39056
39073
|
key: 1,
|
|
@@ -39066,7 +39083,7 @@
|
|
|
39066
39083
|
(vue.openBlock(true), vue.createElementBlock(
|
|
39067
39084
|
vue.Fragment,
|
|
39068
39085
|
null,
|
|
39069
|
-
vue.renderList(
|
|
39086
|
+
vue.renderList(tabList.value, (tab) => {
|
|
39070
39087
|
return vue.openBlock(), vue.createBlock(
|
|
39071
39088
|
vue.unref(antDesignVue.TabPane),
|
|
39072
39089
|
vue.mergeProps({
|
|
@@ -39105,12 +39122,12 @@
|
|
|
39105
39122
|
},
|
|
39106
39123
|
[
|
|
39107
39124
|
vue.renderSlot(_ctx.$slots, "default", {
|
|
39108
|
-
activeKey: (_b2 = tabActiveKey.value) != null ? _b2 : (_a3 =
|
|
39125
|
+
activeKey: (_b2 = tabActiveKey.value) != null ? _b2 : (_a3 = tabList.value[0]) == null ? void 0 : _a3.key,
|
|
39109
39126
|
offset: offset.value
|
|
39110
39127
|
}),
|
|
39111
|
-
((_c =
|
|
39128
|
+
((_c = tabList.value) == null ? void 0 : _c.length) ? vue.renderSlot(_ctx.$slots, "tabs", {
|
|
39112
39129
|
key: 0,
|
|
39113
|
-
activeKey: (_e = tabActiveKey.value) != null ? _e : (_d =
|
|
39130
|
+
activeKey: (_e = tabActiveKey.value) != null ? _e : (_d = tabList.value[0]) == null ? void 0 : _d.key,
|
|
39114
39131
|
offset: offset.value
|
|
39115
39132
|
}, () => [
|
|
39116
39133
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tabComp.value)))
|