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

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.
Files changed (48) hide show
  1. package/es/src/ap-form/hooks/use-watch.d.ts +4 -1
  2. package/es/src/ap-form/hooks/use-watch.mjs +31 -29
  3. package/es/src/ap-form/index.mjs +1 -1
  4. package/es/src/ap-form/search-form/index.vue.mjs +14 -15
  5. package/es/src/ap-grid/index.vue.d.ts +44 -0
  6. package/es/src/ap-grid/index.vue.mjs +261 -279
  7. package/es/src/ap-grid/interface.d.ts +2 -18
  8. package/es/src/ap-grid/utils/table.mjs +12 -12
  9. package/es/src/ap-modal/enums/modalMessage.d.ts +6 -0
  10. package/es/src/ap-modal/enums/modalMessage.mjs +4 -0
  11. package/es/src/ap-modal/index.d.ts +2 -1
  12. package/es/src/ap-modal/index.mjs +2 -0
  13. package/es/src/ap-modal/interface.d.ts +126 -1
  14. package/es/src/ap-modal/utils/createModalStream.d.ts +2 -0
  15. package/es/src/ap-modal/utils/createModalStream.mjs +99 -0
  16. package/es/src/ap-modal/utils/index.d.ts +1 -0
  17. package/es/src/ap-modal/utils/index.mjs +4 -2
  18. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +4 -7
  19. package/es/src/ap-table/utils.d.ts +1 -4
  20. package/es/src/ap-table/utils.mjs +43 -41
  21. package/es/src/business/ap-attachment/ApAttachment.mjs +13 -13
  22. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +13 -13
  23. package/lib/src/ap-form/hooks/use-watch.d.ts +4 -1
  24. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  25. package/lib/src/ap-form/index.js +1 -1
  26. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  27. package/lib/src/ap-grid/index.vue.d.ts +44 -0
  28. package/lib/src/ap-grid/index.vue.js +1 -1
  29. package/lib/src/ap-grid/interface.d.ts +2 -18
  30. package/lib/src/ap-grid/utils/table.js +1 -1
  31. package/lib/src/ap-modal/enums/modalMessage.d.ts +6 -0
  32. package/lib/src/ap-modal/enums/modalMessage.js +1 -0
  33. package/lib/src/ap-modal/index.d.ts +2 -1
  34. package/lib/src/ap-modal/index.js +1 -1
  35. package/lib/src/ap-modal/interface.d.ts +126 -1
  36. package/lib/src/ap-modal/utils/createModalStream.d.ts +2 -0
  37. package/lib/src/ap-modal/utils/createModalStream.js +1 -0
  38. package/lib/src/ap-modal/utils/index.d.ts +1 -0
  39. package/lib/src/ap-modal/utils/index.js +1 -1
  40. package/lib/src/ap-table/components/dynamic-component/index.vue2.js +1 -1
  41. package/lib/src/ap-table/utils.d.ts +1 -4
  42. package/lib/src/ap-table/utils.js +1 -1
  43. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  44. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
  45. package/package.json +4 -4
  46. package/theme/ap-grid/index.css +31 -0
  47. package/theme/ap-grid/index.less +41 -0
  48. package/theme/index.css +31 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("@ant-design/icons-vue"),s=require("@aplus-frontend/antdv"),f={style:{display:"flex","align-items":"center"}},p=e.defineComponent({__name:"MenuItemGroup",props:{selectedRows:{},buttonProps:{},menuList:{}},setup(a){const r=a,c=e.ref({});async function t(l,u){var o;const n=(l==null?void 0:l.id)||u;c.value[n]=!0;try{await((o=l==null?void 0:l.onClick)==null?void 0:o.call(l,{selectedRows:r==null?void 0:r.selectedRows}))}finally{c.value[n]=!1}}return(l,u)=>(e.openBlock(),e.createBlock(e.unref(s.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.menuList,(n,o)=>(e.openBlock(),e.createBlock(e.unref(s.MenuItem),e.mergeProps({key:(n==null?void 0:n.id)||o,ref_for:!0},{...n,onClick:()=>t(n,o),disabled:c.value[(n==null?void 0:n.id)||o]??(n==null?void 0:n.disabled)??!1}),{default:e.withCtx(()=>[e.createElementVNode("div",f,[e.withDirectives(e.createVNode(e.unref(d.LoadingOutlined),{style:{"margin-right":"10px"}},null,512),[[e.vShow,c.value[(n==null?void 0:n.id)||o]]]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[n==null?void 0:n.content]))))])]),_:2},1040))),128))]),_:1}))}});exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("@ant-design/icons-vue"),s=require("@aplus-frontend/antdv"),f={style:{display:"flex","align-items":"center"}},p=e.defineComponent({__name:"MenuItemGroup",props:{selectedRows:{},buttonProps:{},menuList:{}},setup(a){const r=a,c=e.ref({});async function t(o,u){var l;const n=(o==null?void 0:o.id)||u;c.value[n]=!0;try{await((l=o==null?void 0:o.onClick)==null?void 0:l.call(o,{selectedRows:r==null?void 0:r.selectedRows}))}finally{c.value[n]=void 0}}return(o,u)=>(e.openBlock(),e.createBlock(e.unref(s.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.menuList,(n,l)=>(e.openBlock(),e.createBlock(e.unref(s.MenuItem),e.mergeProps({key:(n==null?void 0:n.id)||l,ref_for:!0},{...n,onClick:()=>t(n,l),disabled:c.value[(n==null?void 0:n.id)||l]??(n==null?void 0:n.disabled)??!1}),{default:e.withCtx(()=>[e.createElementVNode("div",f,[e.withDirectives(e.createVNode(e.unref(d.LoadingOutlined),{style:{"margin-right":"10px"}},null,512),[[e.vShow,c.value[(n==null?void 0:n.id)||l]]]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[n==null?void 0:n.content]))))])]),_:2},1040))),128))]),_:1}))}});exports.default=p;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.5.0-beta.0",
3
+ "version": "0.5.0-beta.2",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [
@@ -68,16 +68,16 @@
68
68
  "vxe-pc-ui": "^4.3.88",
69
69
  "vxe-table": "4.10.14",
70
70
  "@aplus-frontend/hooks": "1.0.7",
71
- "@aplus-frontend/utils": "1.0.51"
71
+ "@aplus-frontend/utils": "1.0.52"
72
72
  },
73
73
  "peerDependencies": {
74
- "@aplus-frontend/antdv": "^1.0.12",
74
+ "@aplus-frontend/antdv": "^1.0.13",
75
75
  "@aplus-frontend/icon": "^1.2.1",
76
76
  "@aplus-frontend/oss": "^1.1.2",
77
77
  "vue": "^3.5.13"
78
78
  },
79
79
  "devDependencies": {
80
- "@aplus-frontend/antdv": "^1.0.12",
80
+ "@aplus-frontend/antdv": "^1.0.13",
81
81
  "@aplus-frontend/icon": "^1.2.1",
82
82
  "@aplus-frontend/oss": "^1.1.2",
83
83
  "@types/sortablejs": "^1.15.8",
@@ -249,6 +249,37 @@
249
249
  font-size: 14px;
250
250
  display: inline-flex;
251
251
  }
252
+ .aplus-ap-grid-adaptive {
253
+ height: 100%;
254
+ display: flex;
255
+ }
256
+ .aplus-ap-grid-adaptive .aplus-ap-grid-vxe-wrapper {
257
+ min-height: 0;
258
+ flex: 1;
259
+ }
260
+ .aplus-ap-grid .aplus-ap-grid-pagination-wrapper ul.ant-pagination {
261
+ margin: 16px 0px 0px;
262
+ }
263
+ .aplus-ap-grid-sticky .aplus-ap-grid-pagination-wrapper {
264
+ background-color: #fff;
265
+ z-index: 10;
266
+ position: sticky;
267
+ bottom: 0;
268
+ padding-bottom: 16px;
269
+ }
270
+ .aplus-ap-grid-sticky:has(.aplus-scroll-bar) .aplus-ap-grid-pagination-wrapper {
271
+ bottom: 0;
272
+ }
273
+ .aplus-ap-grid-sticky:has(.aplus-scroll-bar) .aplus-ap-grid-pagination-wrapper ul.ant-pagination {
274
+ margin-top: 0;
275
+ padding: 8px 0px 16px;
276
+ }
277
+ .aplus-ap-grid-sticky:has(.aplus-scroll-bar) .vxe-table--scroll-x-wrapper {
278
+ opacity: 0;
279
+ }
280
+ .aplus-ap-grid-sticky:has(.aplus-scroll-bar) .vxe-table .vxe-table--scroll-x-virtual {
281
+ height: 0px !important;
282
+ }
252
283
  .aplus-ap-grid-wrapper {
253
284
  padding: 16px;
254
285
  background-color: #fff;
@@ -5,7 +5,48 @@
5
5
  @import '../ap-action/item.less';
6
6
  @import '../ap-action/item-dropdown.less';
7
7
 
8
+ @vxe: ~'@{ns}-ap-grid-vxe-wrapper';
9
+ @pg: ~'@{ns}-ap-grid-pagination-wrapper';
10
+ @sb: ~'@{ns}-scroll-bar';
11
+
8
12
  .b(ap-grid, {
13
+ &-adaptive {
14
+ height: 100%;
15
+ display: flex;
16
+ .@{vxe} {
17
+ min-height: 0;
18
+ flex: 1;
19
+ }
20
+ }
21
+ .@{pg} {
22
+ ul.ant-pagination {
23
+ margin: 16px 0px 0px;
24
+ }
25
+ }
26
+ &-sticky {
27
+ .@{pg} {
28
+ background-color: #fff;
29
+ z-index: 10;
30
+ position: sticky;
31
+ bottom: 0;
32
+ padding-bottom: 16px;
33
+ }
34
+ &:has(.@{sb}) {
35
+ .@{pg} {
36
+ bottom: 0;
37
+ ul.ant-pagination {
38
+ margin-top: 0;
39
+ padding: 8px 0px 16px;
40
+ }
41
+ }
42
+ .vxe-table--scroll-x-wrapper {
43
+ opacity: 0;
44
+ }
45
+ .vxe-table .vxe-table--scroll-x-virtual {
46
+ height: 0px !important;
47
+ }
48
+ }
49
+ }
9
50
  &-wrapper {
10
51
  padding: 16px;
11
52
  background-color: #fff;
package/theme/index.css CHANGED
@@ -2159,6 +2159,37 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
2159
2159
  width: 100vw;
2160
2160
  height: 100vh;
2161
2161
  }
2162
+ .aplus-ap-grid-adaptive {
2163
+ height: 100%;
2164
+ display: flex;
2165
+ }
2166
+ .aplus-ap-grid-adaptive .aplus-ap-grid-vxe-wrapper {
2167
+ min-height: 0;
2168
+ flex: 1;
2169
+ }
2170
+ .aplus-ap-grid .aplus-ap-grid-pagination-wrapper ul.ant-pagination {
2171
+ margin: 16px 0px 0px;
2172
+ }
2173
+ .aplus-ap-grid-sticky .aplus-ap-grid-pagination-wrapper {
2174
+ background-color: #fff;
2175
+ z-index: 10;
2176
+ position: sticky;
2177
+ bottom: 0;
2178
+ padding-bottom: 16px;
2179
+ }
2180
+ .aplus-ap-grid-sticky:has(.aplus-scroll-bar) .aplus-ap-grid-pagination-wrapper {
2181
+ bottom: 0;
2182
+ }
2183
+ .aplus-ap-grid-sticky:has(.aplus-scroll-bar) .aplus-ap-grid-pagination-wrapper ul.ant-pagination {
2184
+ margin-top: 0;
2185
+ padding: 8px 0px 16px;
2186
+ }
2187
+ .aplus-ap-grid-sticky:has(.aplus-scroll-bar) .vxe-table--scroll-x-wrapper {
2188
+ opacity: 0;
2189
+ }
2190
+ .aplus-ap-grid-sticky:has(.aplus-scroll-bar) .vxe-table .vxe-table--scroll-x-virtual {
2191
+ height: 0px !important;
2192
+ }
2162
2193
  .aplus-ap-grid-wrapper {
2163
2194
  padding: 16px;
2164
2195
  background-color: #fff;