@aplus-frontend/ui 0.0.1-beta.23 → 0.0.1-beta.24

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 (59) hide show
  1. package/es/index.mjs +104 -100
  2. package/es/src/ap-download/ap-download.vue.d.ts +41 -0
  3. package/es/src/ap-download/ap-download.vue.mjs +50 -0
  4. package/es/src/ap-download/ap-download.vue2.mjs +4 -0
  5. package/es/src/ap-download/hooks/index.d.ts +8 -0
  6. package/es/src/ap-download/index.d.ts +4 -0
  7. package/es/src/ap-download/index.mjs +2 -0
  8. package/es/src/ap-download/interface.d.ts +20 -0
  9. package/es/src/ap-download/interface.mjs +1 -0
  10. package/es/src/ap-download/style/ap-download.css +51 -0
  11. package/es/src/ap-form/index.d.ts +3 -1
  12. package/es/src/ap-form/index.mjs +15 -11
  13. package/es/src/ap-form/interface.d.ts +19 -1
  14. package/es/src/ap-form/modal-form/index.vue.d.ts +369 -0
  15. package/es/src/ap-form/modal-form/index.vue.mjs +195 -0
  16. package/es/src/ap-form/modal-form/index.vue2.mjs +4 -0
  17. package/es/src/ap-form/style/modal-form.css +17 -0
  18. package/es/src/index.d.ts +1 -0
  19. package/es/src/index.mjs +197 -192
  20. package/es/src/theme/antd-global-overwrite/admin/button.css +8 -1
  21. package/es/src/theme/antd-global-overwrite/admin/index.css +8 -1
  22. package/es/src/theme/antd-global-overwrite/aplus/button.css +8 -1
  23. package/es/src/theme/antd-global-overwrite/aplus/index.css +26 -10
  24. package/es/src/theme/antd-global-overwrite/aplus/pagination.css +0 -1
  25. package/es/src/theme/antd-global-overwrite/aplus/table.css +18 -8
  26. package/es/src/theme/ap-download/ap-download.css +51 -0
  27. package/es/src/theme/ap-form/modal-form.css +17 -0
  28. package/es/src/utils/slot.d.ts +7 -1
  29. package/es/src/utils/slot.mjs +25 -15
  30. package/lib/index.js +1 -1
  31. package/lib/src/ap-download/ap-download.vue.d.ts +41 -0
  32. package/lib/src/ap-download/ap-download.vue.js +1 -0
  33. package/lib/src/ap-download/ap-download.vue2.js +1 -0
  34. package/lib/src/ap-download/hooks/index.d.ts +8 -0
  35. package/lib/src/ap-download/index.d.ts +4 -0
  36. package/lib/src/ap-download/index.js +1 -0
  37. package/lib/src/ap-download/interface.d.ts +20 -0
  38. package/lib/src/ap-download/interface.js +1 -0
  39. package/lib/src/ap-download/style/ap-download.css +51 -0
  40. package/lib/src/ap-form/index.d.ts +3 -1
  41. package/lib/src/ap-form/index.js +1 -1
  42. package/lib/src/ap-form/interface.d.ts +19 -1
  43. package/lib/src/ap-form/modal-form/index.vue.d.ts +369 -0
  44. package/lib/src/ap-form/modal-form/index.vue.js +1 -0
  45. package/lib/src/ap-form/modal-form/index.vue2.js +1 -0
  46. package/lib/src/ap-form/style/modal-form.css +17 -0
  47. package/lib/src/index.d.ts +1 -0
  48. package/lib/src/index.js +1 -1
  49. package/lib/src/theme/antd-global-overwrite/admin/button.css +8 -1
  50. package/lib/src/theme/antd-global-overwrite/admin/index.css +8 -1
  51. package/lib/src/theme/antd-global-overwrite/aplus/button.css +8 -1
  52. package/lib/src/theme/antd-global-overwrite/aplus/index.css +26 -10
  53. package/lib/src/theme/antd-global-overwrite/aplus/pagination.css +0 -1
  54. package/lib/src/theme/antd-global-overwrite/aplus/table.css +18 -8
  55. package/lib/src/theme/ap-download/ap-download.css +51 -0
  56. package/lib/src/theme/ap-form/modal-form.css +17 -0
  57. package/lib/src/utils/slot.d.ts +7 -1
  58. package/lib/src/utils/slot.js +1 -1
  59. package/package.json +1 -1
@@ -0,0 +1,51 @@
1
+ .aplus-download-wrapper {
2
+ text-wrap: nowrap;
3
+ display: inline-block;
4
+ display: flex;
5
+ }
6
+ .aplus-download-inner-wrapper {
7
+ display: inline-block;
8
+ color: var(--tag-main-color);
9
+ cursor: pointer;
10
+ display: flex;
11
+ align-items: center;
12
+ }
13
+ .aplus-download-inner-wrapper .icon {
14
+ position: relative;
15
+ font-size: 18px;
16
+ }
17
+ .aplus-download-inner-wrapper .text {
18
+ margin-left: 5px;
19
+ }
20
+ .aplus-download-inner-wrapper:hover {
21
+ color: var(--tag-main-color-opacity);
22
+ }
23
+ .aplus-download-inner-wrapper--large {
24
+ line-height: 26px;
25
+ height: 28px;
26
+ font-size: 16px;
27
+ }
28
+ .aplus-download-inner-wrapper--middle {
29
+ line-height: 22px;
30
+ height: 24px;
31
+ font-size: 14px;
32
+ }
33
+ .aplus-download-inner-wrapper--small {
34
+ line-height: 19px;
35
+ height: 20px;
36
+ font-size: 12px;
37
+ }
38
+ .aplus-download-inner-wrapper--disabled {
39
+ color: #8896b0;
40
+ cursor: not-allowed;
41
+ }
42
+ .aplus-download-inner-wrapper--disabled:hover {
43
+ color: #8896b0;
44
+ }
45
+ .aplus-download-inner-wrapper--disabled-admin {
46
+ cursor: not-allowed;
47
+ color: #999;
48
+ }
49
+ .aplus-download-inner-wrapper--disabled-admin:hover {
50
+ color: #999;
51
+ }
@@ -0,0 +1,17 @@
1
+ .aplus-ap-form-modal-form .ant-modal-content {
2
+ padding: 0;
3
+ }
4
+ .aplus-ap-form-modal-form .ant-modal-header {
5
+ padding: 15px 20px;
6
+ border-bottom: 1px solid #E9EDF3;
7
+ margin-bottom: 0;
8
+ }
9
+ .aplus-ap-form-modal-form .ant-modal-body {
10
+ padding: 20px;
11
+ }
12
+ .aplus-ap-form-modal-form__footer {
13
+ padding-top: 20px;
14
+ }
15
+ .aplus-ap-form-modal-form .ant-modal-close {
16
+ top: 16px;
17
+ }
@@ -5,9 +5,15 @@ type SlotOptions = FormRenderOpts;
5
5
  /**
6
6
  * @description: Get slot to prevent empty error
7
7
  */
8
- export declare function getSlot(slots: Slots, slot?: string, data?: Record<string, any>, opts?: SlotOptions): VNode<RendererNode, RendererElement, {
8
+ export declare function getSlot(slots: Slots, slot?: string, data?: Record<string, any>, opts?: SlotOptions): VNode< RendererNode, RendererElement, {
9
9
  [key: string]: any;
10
10
  }>[] | null;
11
+ /**
12
+ * 获取某个插槽下的唯一VNode
13
+ * @param slot
14
+ * @returns
15
+ */
16
+ export declare function getSingleVNode(slot: any): VNode | undefined;
11
17
  /**
12
18
  * extends slots
13
19
  * @param slots
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@fruits-chain/utils");function o(n,t="default",u,r){if(!n||!Reflect.has(n,t))return null;if(!c.isFunction(n[t]))return console.error(`${t} is not a function!`),null;const e=n[t];if(!e)return null;const i={...u,...r};return e(i)}function l(n,t=[]){const u=Object.keys(n),r={};return u.map(e=>{if(t.includes(e))return null;r[e]=i=>o(n,e,i)}),r}exports.extendSlots=l;exports.getSlot=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@fruits-chain/utils"),l=require("lodash-unified");function c(n,e="default",i,r){if(!n||!Reflect.has(n,e))return null;if(!o.isFunction(n[e]))return console.error(`${e} is not a function!`),null;const t=n[e];if(!t)return null;const u={...i,...r};return t(u)}function f(n){if(!n||!o.isFunction(n)){console.error(`${n} is not a function!`);return}const e=n();return l.isArray(e)?e[0]:e}function s(n,e=[]){const i=Object.keys(n),r={};return i.map(t=>{if(e.includes(t))return null;r[t]=u=>c(n,t,u)}),r}exports.extendSlots=s;exports.getSingleVNode=f;exports.getSlot=c;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.0.1-beta.23",
3
+ "version": "0.0.1-beta.24",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "files": [