@aplus-frontend/ui 0.5.0-beta.2 → 0.5.1
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/es/src/ap-action/item-popconfirm/index.vue.d.ts +13 -0
- package/es/src/ap-grid/constants.d.ts +4 -4
- package/es/src/ap-grid/constants.mjs +8 -8
- package/es/src/ap-grid/index.vue.mjs +169 -154
- package/es/src/ap-table/ap-table.vue2.mjs +148 -144
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +13 -0
- package/es/src/business/ap-ladder/index.d.ts +39 -0
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +36 -38
- package/es/src/business/ap-table-modal/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/es/src/config-provider/config-provider.mjs +23 -23
- package/es/src/utils/config-provider-preset.d.ts +41 -0
- package/es/src/utils/config-provider-preset.mjs +24 -15
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +13 -0
- package/lib/src/ap-grid/constants.d.ts +4 -4
- package/lib/src/ap-grid/constants.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +13 -0
- package/lib/src/business/ap-ladder/index.d.ts +39 -0
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +41 -0
- package/lib/src/utils/config-provider-preset.js +1 -1
- package/package.json +3 -3
- package/theme/ap-grid/index.css +2 -1
- package/theme/ap-grid/index.less +2 -1
- package/theme/index.css +2 -1
|
@@ -49,10 +49,10 @@ declare const ApTableModal: {
|
|
|
49
49
|
records: any[];
|
|
50
50
|
total: number;
|
|
51
51
|
}>;
|
|
52
|
+
maskClosable: boolean;
|
|
52
53
|
confirmLoading: boolean;
|
|
53
54
|
closable: boolean;
|
|
54
55
|
centered: boolean;
|
|
55
|
-
maskClosable: boolean;
|
|
56
56
|
forceRender: boolean;
|
|
57
57
|
destroyOnClose: boolean;
|
|
58
58
|
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
@@ -135,10 +135,10 @@ declare const ApTableModal: {
|
|
|
135
135
|
records: any[];
|
|
136
136
|
total: number;
|
|
137
137
|
}>;
|
|
138
|
+
maskClosable: boolean;
|
|
138
139
|
confirmLoading: boolean;
|
|
139
140
|
closable: boolean;
|
|
140
141
|
centered: boolean;
|
|
141
|
-
maskClosable: boolean;
|
|
142
142
|
forceRender: boolean;
|
|
143
143
|
destroyOnClose: boolean;
|
|
144
144
|
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
@@ -191,10 +191,10 @@ declare const ApTableModal: {
|
|
|
191
191
|
records: any[];
|
|
192
192
|
total: number;
|
|
193
193
|
}>;
|
|
194
|
+
maskClosable: boolean;
|
|
194
195
|
confirmLoading: boolean;
|
|
195
196
|
closable: boolean;
|
|
196
197
|
centered: boolean;
|
|
197
|
-
maskClosable: boolean;
|
|
198
198
|
forceRender: boolean;
|
|
199
199
|
destroyOnClose: boolean;
|
|
200
200
|
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
@@ -44,10 +44,10 @@ declare const _default: DefineComponent<__VLS_Props, {
|
|
|
44
44
|
records: any[];
|
|
45
45
|
total: number;
|
|
46
46
|
}>;
|
|
47
|
+
maskClosable: boolean;
|
|
47
48
|
confirmLoading: boolean;
|
|
48
49
|
closable: boolean;
|
|
49
50
|
centered: boolean;
|
|
50
|
-
maskClosable: boolean;
|
|
51
51
|
forceRender: boolean;
|
|
52
52
|
destroyOnClose: boolean;
|
|
53
53
|
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),P=require("@aplus-frontend/antdv"),a=require("./hooks/use-global-config.js"),b=require("./config-provider-props.js"),l=require("../utils/config-provider-preset.js"),o=require("./css-var.js"),d=require("./constants.js");function V(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!r.isVNode(e)}const t=r.ref({}),M=r.defineComponent({name:"AplusConfigProvider",props:b.configProviderProps(),setup(e,{slots:f}){const u=a.useGlobalConfig("namespace"),c=a.useGlobalConfig("uiMode"),g=r.computed(()=>e.namespace?e.namespace:r.unref(u)?r.unref(u):d.DEFAULT_NAMESPACE),s=r.computed(()=>e.uiMode?e.uiMode:r.unref(c)?r.unref(c):d.DEFAULT_UIMODE),C=r.computed(()=>({namespace:r.unref(g),aplusLocale:e.aplusLocale,api:e.api,uiMode:r.unref(s),apUpload:e.apUpload,apDescriptions:e.apDescriptions,valueTypeMap:e.valueTypeMap,downloadCenterTriggerConfig:e.downloadCenterTriggerConfig,exportField:e.exportField,scrollYDomName:e.scrollYDomName})),i=a.provideGlobalConfig(C);return r.watch(()=>e,n=>{t.value=l.mergeAntdProviderConfigWithCache(l.mergeAntdProvideConfig(n),t.value)},{deep:!0,immediate:!0}),typeof window<"u"&&r.watch(()=>[r.unref(s),e.cssVar],([n,m])=>{const v=o.generateCssVar(m),p={...n==="aplus"?o.aplusCssVar:o.adminCssVar,...v};o.setCSSVariables(p)},{immediate:!0}),()=>{let n;return r.createVNode(P.ConfigProvider,t.value,V(n=r.renderSlot(f,"default",{config:i==null?void 0:i.value}))?n:{default:()=>[n]})}}});exports.ConfigProvider=M;exports.globalConfigCached=t;
|
|
@@ -76,3 +76,44 @@ export declare function mergeAntdProvideConfig(config: ConfigProviderProps): {
|
|
|
76
76
|
componentDisabled?: boolean | undefined;
|
|
77
77
|
virtual?: boolean | undefined;
|
|
78
78
|
};
|
|
79
|
+
export declare function mergeAntdProviderConfigWithCache(newConfig: ConfigProviderProps, cachedConfig: ConfigProviderProps): {
|
|
80
|
+
input?: {
|
|
81
|
+
autocomplete?: string;
|
|
82
|
+
} | undefined;
|
|
83
|
+
select?: {
|
|
84
|
+
showSearch?: boolean;
|
|
85
|
+
} | undefined;
|
|
86
|
+
form?: {
|
|
87
|
+
validateMessages?: ValidateMessages;
|
|
88
|
+
requiredMark?: RequiredMark;
|
|
89
|
+
colon?: boolean;
|
|
90
|
+
} | undefined;
|
|
91
|
+
space?: {
|
|
92
|
+
size?: ButtonSize | number;
|
|
93
|
+
} | undefined;
|
|
94
|
+
direction?: "ltr" | "rtl" | undefined;
|
|
95
|
+
pagination?: {
|
|
96
|
+
showSizeChanger?: boolean;
|
|
97
|
+
} | undefined;
|
|
98
|
+
csp?: CSPConfig | undefined;
|
|
99
|
+
locale?: Locale | undefined;
|
|
100
|
+
pageHeader?: {
|
|
101
|
+
ghost?: boolean;
|
|
102
|
+
} | undefined;
|
|
103
|
+
dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
104
|
+
theme?: ThemeConfig | undefined;
|
|
105
|
+
wave?: {
|
|
106
|
+
disabled?: boolean;
|
|
107
|
+
} | undefined;
|
|
108
|
+
iconPrefixCls?: string | undefined;
|
|
109
|
+
getTargetContainer?: (() => HTMLElement | Window) | undefined;
|
|
110
|
+
getPopupContainer?: ((triggerNode?: HTMLElement) => HTMLElement) | undefined;
|
|
111
|
+
prefixCls?: string | undefined;
|
|
112
|
+
getPrefixCls?: ((suffixCls?: string, customizePrefixCls?: string) => string) | undefined;
|
|
113
|
+
renderEmpty?: __DTS_DEFAULT_0__ | undefined;
|
|
114
|
+
transformCellText?: ((tableProps: TransformCellTextProps) => any) | undefined;
|
|
115
|
+
autoInsertSpaceInButton?: boolean | undefined;
|
|
116
|
+
componentSize?: ButtonSize;
|
|
117
|
+
componentDisabled?: boolean | undefined;
|
|
118
|
+
virtual?: boolean | undefined;
|
|
119
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("lodash-unified");function i(e,n){var t,r;return e!=null&&e.parentElement?e.parentElement.classList.contains(n)?(t=e.parentElement)!=null&&t.parentElement?(r=e.parentElement.parentElement.className)==null?void 0:r.includes("basic-table"):!1:i(e.parentElement,n):!1}const u=e=>i(e,"ant-form")&&(e==null?void 0:e.parentNode)||(document==null?void 0:document.body),f=({text:e})=>{const n=t=>t==null||t==="";return Array.isArray(e)?n(e[0])?"--":e[0]:n(e)?"--":e},c=!1,s={getPopupContainer:u,transformCellText:f,autoInsertSpaceInButton:c};function l(e){const n={...e},t=Object.keys(s);for(const r of t)a.isUndefined(n[r])&&(n[r]=s[r]);return n}function d(e,n){const t={...n},r=Object.keys(e);for(const o of r)a.isUndefined(e[o])||(t[o]=e[o]);return t}exports.antdConfigProviderPresets=s;exports.autoInsertSpaceInButton=c;exports.getPopupContainer=u;exports.mergeAntdProvideConfig=l;exports.mergeAntdProviderConfigWithCache=d;exports.transformCellText=f;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"sortablejs": "^1.15.2",
|
|
66
66
|
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
67
67
|
"vuedraggable": "^4.1.0",
|
|
68
|
-
"vxe-pc-ui": "^4.3.
|
|
69
|
-
"vxe-table": "4.
|
|
68
|
+
"vxe-pc-ui": "^4.3.98",
|
|
69
|
+
"vxe-table": "4.11.14",
|
|
70
70
|
"@aplus-frontend/hooks": "1.0.7",
|
|
71
71
|
"@aplus-frontend/utils": "1.0.52"
|
|
72
72
|
},
|
package/theme/ap-grid/index.css
CHANGED
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
}
|
|
273
273
|
.aplus-ap-grid-sticky:has(.aplus-scroll-bar) .aplus-ap-grid-pagination-wrapper ul.ant-pagination {
|
|
274
274
|
margin-top: 0;
|
|
275
|
-
padding: 8px
|
|
275
|
+
padding-top: 8px;
|
|
276
276
|
}
|
|
277
277
|
.aplus-ap-grid-sticky:has(.aplus-scroll-bar) .vxe-table--scroll-x-wrapper {
|
|
278
278
|
opacity: 0;
|
|
@@ -293,6 +293,7 @@
|
|
|
293
293
|
.aplus-ap-grid__table-wrapper {
|
|
294
294
|
flex: 1;
|
|
295
295
|
max-height: 100%;
|
|
296
|
+
width: 100%;
|
|
296
297
|
display: flex;
|
|
297
298
|
flex-direction: column;
|
|
298
299
|
}
|
package/theme/ap-grid/index.less
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
bottom: 0;
|
|
37
37
|
ul.ant-pagination {
|
|
38
38
|
margin-top: 0;
|
|
39
|
-
padding: 8px
|
|
39
|
+
padding-top: 8px;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
.vxe-table--scroll-x-wrapper {
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
&__table-wrapper {
|
|
61
61
|
flex: 1;
|
|
62
62
|
max-height: 100%;
|
|
63
|
+
width: 100%;
|
|
63
64
|
display: flex;
|
|
64
65
|
flex-direction: column;
|
|
65
66
|
}
|
package/theme/index.css
CHANGED
|
@@ -2182,7 +2182,7 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
2182
2182
|
}
|
|
2183
2183
|
.aplus-ap-grid-sticky:has(.aplus-scroll-bar) .aplus-ap-grid-pagination-wrapper ul.ant-pagination {
|
|
2184
2184
|
margin-top: 0;
|
|
2185
|
-
padding: 8px
|
|
2185
|
+
padding-top: 8px;
|
|
2186
2186
|
}
|
|
2187
2187
|
.aplus-ap-grid-sticky:has(.aplus-scroll-bar) .vxe-table--scroll-x-wrapper {
|
|
2188
2188
|
opacity: 0;
|
|
@@ -2203,6 +2203,7 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
2203
2203
|
.aplus-ap-grid__table-wrapper {
|
|
2204
2204
|
flex: 1;
|
|
2205
2205
|
max-height: 100%;
|
|
2206
|
+
width: 100%;
|
|
2206
2207
|
display: flex;
|
|
2207
2208
|
flex-direction: column;
|
|
2208
2209
|
}
|