@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.
- package/es/index.mjs +104 -100
- package/es/src/ap-download/ap-download.vue.d.ts +41 -0
- package/es/src/ap-download/ap-download.vue.mjs +50 -0
- package/es/src/ap-download/ap-download.vue2.mjs +4 -0
- package/es/src/ap-download/hooks/index.d.ts +8 -0
- package/es/src/ap-download/index.d.ts +4 -0
- package/es/src/ap-download/index.mjs +2 -0
- package/es/src/ap-download/interface.d.ts +20 -0
- package/es/src/ap-download/interface.mjs +1 -0
- package/es/src/ap-download/style/ap-download.css +51 -0
- package/es/src/ap-form/index.d.ts +3 -1
- package/es/src/ap-form/index.mjs +15 -11
- package/es/src/ap-form/interface.d.ts +19 -1
- package/es/src/ap-form/modal-form/index.vue.d.ts +369 -0
- package/es/src/ap-form/modal-form/index.vue.mjs +195 -0
- package/es/src/ap-form/modal-form/index.vue2.mjs +4 -0
- package/es/src/ap-form/style/modal-form.css +17 -0
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +197 -192
- package/es/src/theme/antd-global-overwrite/admin/button.css +8 -1
- package/es/src/theme/antd-global-overwrite/admin/index.css +8 -1
- package/es/src/theme/antd-global-overwrite/aplus/button.css +8 -1
- package/es/src/theme/antd-global-overwrite/aplus/index.css +26 -10
- package/es/src/theme/antd-global-overwrite/aplus/pagination.css +0 -1
- package/es/src/theme/antd-global-overwrite/aplus/table.css +18 -8
- package/es/src/theme/ap-download/ap-download.css +51 -0
- package/es/src/theme/ap-form/modal-form.css +17 -0
- package/es/src/utils/slot.d.ts +7 -1
- package/es/src/utils/slot.mjs +25 -15
- package/lib/index.js +1 -1
- package/lib/src/ap-download/ap-download.vue.d.ts +41 -0
- package/lib/src/ap-download/ap-download.vue.js +1 -0
- package/lib/src/ap-download/ap-download.vue2.js +1 -0
- package/lib/src/ap-download/hooks/index.d.ts +8 -0
- package/lib/src/ap-download/index.d.ts +4 -0
- package/lib/src/ap-download/index.js +1 -0
- package/lib/src/ap-download/interface.d.ts +20 -0
- package/lib/src/ap-download/interface.js +1 -0
- package/lib/src/ap-download/style/ap-download.css +51 -0
- package/lib/src/ap-form/index.d.ts +3 -1
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/interface.d.ts +19 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +369 -0
- package/lib/src/ap-form/modal-form/index.vue.js +1 -0
- package/lib/src/ap-form/modal-form/index.vue2.js +1 -0
- package/lib/src/ap-form/style/modal-form.css +17 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/theme/antd-global-overwrite/admin/button.css +8 -1
- package/lib/src/theme/antd-global-overwrite/admin/index.css +8 -1
- package/lib/src/theme/antd-global-overwrite/aplus/button.css +8 -1
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +26 -10
- package/lib/src/theme/antd-global-overwrite/aplus/pagination.css +0 -1
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +18 -8
- package/lib/src/theme/ap-download/ap-download.css +51 -0
- package/lib/src/theme/ap-form/modal-form.css +17 -0
- package/lib/src/utils/slot.d.ts +7 -1
- package/lib/src/utils/slot.js +1 -1
- 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
|
+
}
|
package/lib/src/utils/slot.d.ts
CHANGED
|
@@ -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
|
package/lib/src/utils/slot.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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;
|