@aplus-frontend/ui 0.5.0-beta.2 → 0.5.0

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.
@@ -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 i=require("lodash-unified");function s(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:s(e.parentElement,n):!1}const a=e=>s(e,"ant-form")&&(e==null?void 0:e.parentNode)||(document==null?void 0:document.body),u=({text:e})=>{const n=t=>t==null||t==="";return Array.isArray(e)?n(e[0])?"--":e[0]:n(e)?"--":e},f=!1,o={getPopupContainer:a,transformCellText:u,autoInsertSpaceInButton:f};function l(e){const n={...e},t=Object.keys(o);for(const r of t)i.isUndefined(n[r])&&(n[r]=o[r]);return n}exports.antdConfigProviderPresets=o;exports.autoInsertSpaceInButton=f;exports.getPopupContainer=a;exports.mergeAntdProvideConfig=l;exports.transformCellText=u;
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.0-beta.2",
3
+ "version": "0.5.0",
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.88",
69
- "vxe-table": "4.10.14",
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
  },
@@ -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 0px 16px;
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
  }
@@ -36,7 +36,7 @@
36
36
  bottom: 0;
37
37
  ul.ant-pagination {
38
38
  margin-top: 0;
39
- padding: 8px 0px 16px;
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 0px 16px;
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
  }