@aplus-frontend/ui 0.4.34 → 0.4.36
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-form/hooks/use-watch.d.ts +4 -1
- package/es/src/ap-form/hooks/use-watch.mjs +31 -29
- package/es/src/ap-form/index.mjs +1 -1
- package/es/src/ap-form/search-form/index.vue.mjs +14 -15
- package/es/src/ap-modal/enums/modalMessage.d.ts +6 -0
- package/es/src/ap-modal/enums/modalMessage.mjs +4 -0
- package/es/src/ap-modal/index.d.ts +2 -1
- package/es/src/ap-modal/index.mjs +2 -0
- package/es/src/ap-modal/interface.d.ts +126 -1
- package/es/src/ap-modal/utils/createModalStream.d.ts +2 -0
- package/es/src/ap-modal/utils/createModalStream.mjs +99 -0
- package/es/src/ap-modal/utils/index.d.ts +1 -0
- package/es/src/ap-modal/utils/index.mjs +4 -2
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +4 -7
- package/es/src/ap-table/utils.d.ts +1 -4
- package/es/src/ap-table/utils.mjs +43 -41
- package/es/src/business/ap-attachment/ApAttachment.mjs +13 -13
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +13 -13
- package/lib/src/ap-form/hooks/use-watch.d.ts +4 -1
- package/lib/src/ap-form/hooks/use-watch.js +1 -1
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-modal/enums/modalMessage.d.ts +6 -0
- package/lib/src/ap-modal/enums/modalMessage.js +1 -0
- package/lib/src/ap-modal/index.d.ts +2 -1
- package/lib/src/ap-modal/index.js +1 -1
- package/lib/src/ap-modal/interface.d.ts +126 -1
- package/lib/src/ap-modal/utils/createModalStream.d.ts +2 -0
- package/lib/src/ap-modal/utils/createModalStream.js +1 -0
- package/lib/src/ap-modal/utils/index.d.ts +1 -0
- package/lib/src/ap-modal/utils/index.js +1 -1
- package/lib/src/ap-table/components/dynamic-component/index.vue2.js +1 -1
- package/lib/src/ap-table/utils.d.ts +1 -4
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/package.json +5 -5
- package/theme/ap-grid/index.css +302 -0
- package/theme/ap-grid/index.less +65 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const k=require("./constans.js"),f=require("../../ap-download/utils/getFileInfo.js"),G=require("../../ap-download/hooks/index.js"),F=require("lodash-unified"),g=require("@ant-design/icons-vue"),U=require("../../config-provider/hooks/use-namespace.js"),v=require("../../config-provider/hooks/use-global-config.js"),j=require("../../config-provider/hooks/use-locale.js"),z=e.defineComponent({name:"ApAttachment",props:k.ApAttachmentProps(),setup(t){const{b:w,e:l}=U.useNamespace("ap-attachment"),y=v.useGlobalConfig("uiMode"),b=v.useGlobalConfig("apUpload"),N=v.useGlobalConfig("downloadCenterTriggerConfig"),{lang:O,t:r}=j.useLocale(),o=e.ref(!1),c=e.ref(""),d=e.useSlots(),q=e.computed(()=>O.value==="zh-cn"?"zh_CN":"en_US"),u=e.computed(()=>t.attachmentList.length===1),h=e.computed(()=>t.needName?t.attachmentList.length>0&&t.needName&&t.needName.nameKey?t.attachmentList[0][t.needName.nameKey]:"":t.attachmentList.length>0?t.attachmentList[0].fileName:""),T=e.computed(()=>u.value?h.value:r("ap.apAttachment.downloadall")),L=e.computed(()=>t.color?t.color:y.value==="aplus"?"#0070FF":"#1890FF"),x=e.computed(()=>({width:u.value?"auto":"266px"})),V=e.computed(()=>({"--download-main-color":L.value,"--download-main-color-opacity":f.getHexWithOpacity(L.value,.6)})),I=e.computed(()=>{var a;return t.getOssAccess||((a=b.value)==null?void 0:a.getOssAccess)}),P=e.computed(()=>{const a=d.default?d.default()[0]:null;return a?e.cloneVNode(a,{style:{"font-size":"16px"}}):null}),m=F.debounce(async(a,i)=>{var n,C;if(!t.disabled){o.value=!0,i&&(c.value=i);try{const s=F.isArray(e.toRaw(a))?e.toRaw(a):[e.toRaw(a)];if((n=N.value)!=null&&n.trigger){const _=f.getFileInfo(t.needName,s).map(A=>({objectName:A.path,fileName:A.fileName}));(C=N.value)==null||C.trigger(_)}else await(await G.useOssInit(I.value,e.unref(q))).downloadFile(f.getFileInfo(t.needName,s))}catch(s){console.error(s)}finally{o.value=!1,c.value=""}}},500),S=a=>a&&a.length>0?e.createVNode("ul",{class:[l("file-list")],style:V.value},[a.map((i,n)=>e.createVNode("li",{key:n,class:[l("file-item")],onClick:()=>m(i,n+1)},[o.value&&c.value===n+1?e.createVNode("span",{class:[l("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,i.fileName])),e.createVNode("li",{class:[l("down-load-all")],onClick:()=>m(t.attachmentList,"all")},[o.value&&c.value==="all"?e.createVNode("span",{class:[l("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,r("ap.apAttachment.downloadall")])]):null;return()=>{var a;return((a=t.attachmentList)==null?void 0:a.length)>0&&e.createVNode("div",{class:[w()],style:[x.value,V.value]},[e.createVNode(p.Tooltip,{title:T.value,placement:t.textToolTipPlacement,color:t.toolTipBgColor},{default:()=>[e.createVNode("div",{class:[l("content")],onClick:()=>m(u.value?t.attachmentList[0]:t.attachmentList,"global")},[o.value&&c.value==="global"?e.createVNode("div",{class:[l("spin")]},[e.createVNode(g.LoadingOutlined,{spin:!0},null)]):null,d.default?e.createVNode("div",{class:[l("text-render")]},[P.value,e.createTextVNode(" ")]):null,e.createVNode("div",{class:[l("text-inner")]},[h.value])])]}),e.createVNode(p.Popover,{content:S(t.attachmentList),placement:t.fileMorePopoverPlacement,color:"#fff"},{default:()=>[!u.value&&e.createVNode("div",{class:[l("more")]},[r("ap.apAttachment.more")])]})])}}});exports.default=z;
|
|
@@ -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(
|
|
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.4.
|
|
3
|
+
"version": "0.4.36",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -65,17 +65,17 @@
|
|
|
65
65
|
"sortablejs": "^1.15.2",
|
|
66
66
|
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
67
67
|
"vuedraggable": "^4.1.0",
|
|
68
|
-
"@aplus-frontend/
|
|
69
|
-
"@aplus-frontend/
|
|
68
|
+
"@aplus-frontend/utils": "1.0.52",
|
|
69
|
+
"@aplus-frontend/hooks": "1.0.7"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@aplus-frontend/antdv": "^1.0.
|
|
72
|
+
"@aplus-frontend/antdv": "^1.0.13",
|
|
73
73
|
"@aplus-frontend/icon": "^1.2.1",
|
|
74
74
|
"@aplus-frontend/oss": "^1.1.2",
|
|
75
75
|
"vue": "^3.5.13"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@aplus-frontend/antdv": "^1.0.
|
|
78
|
+
"@aplus-frontend/antdv": "^1.0.13",
|
|
79
79
|
"@aplus-frontend/icon": "^1.2.1",
|
|
80
80
|
"@aplus-frontend/oss": "^1.1.2",
|
|
81
81
|
"@types/sortablejs": "^1.15.8",
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
.aplus-ap-form-item-group .ant-form-item-control .ant-picker {
|
|
2
|
+
display: flex;
|
|
3
|
+
}
|
|
4
|
+
.aplus-ap-form-item-group .ant-form-item-control .ant-input-number {
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
.aplus-ap-form-item-group-col-hidden {
|
|
8
|
+
display: none !important;
|
|
9
|
+
}
|
|
10
|
+
.aplus-ap-form-item--bordered {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
border: 1px solid var(--ap-form-bordered-border-color-base, #DEE4ED);
|
|
13
|
+
border-radius: 4px;
|
|
14
|
+
padding-inline: 12px;
|
|
15
|
+
}
|
|
16
|
+
.aplus-ap-form-item--bordered .ant-input-affix-wrapper {
|
|
17
|
+
padding: 0;
|
|
18
|
+
}
|
|
19
|
+
.aplus-ap-form-item--bordered .ant-input {
|
|
20
|
+
padding: 0;
|
|
21
|
+
}
|
|
22
|
+
.aplus-ap-form-item--bordered .ant-input-number-input {
|
|
23
|
+
padding: 0;
|
|
24
|
+
}
|
|
25
|
+
.aplus-ap-form-item--bordered .ant-picker {
|
|
26
|
+
padding: 0;
|
|
27
|
+
}
|
|
28
|
+
.aplus-ap-form-item--bordered .ant-form-item-control-input-content > .ant-input-group > .ant-picker-range:nth-child(1) .ant-picker-clear {
|
|
29
|
+
inset-inline-end: 0;
|
|
30
|
+
}
|
|
31
|
+
.aplus-ap-form-item--bordered .ant-space-compact-block .ant-input {
|
|
32
|
+
padding-left: 11px;
|
|
33
|
+
}
|
|
34
|
+
.aplus-ap-form-item--bordered .ant-select-selector {
|
|
35
|
+
border-width: 0 !important;
|
|
36
|
+
box-shadow: none !important;
|
|
37
|
+
}
|
|
38
|
+
.aplus-ap-form-item--bordered .ant-select-single .ant-select-selector {
|
|
39
|
+
height: 30px !important;
|
|
40
|
+
}
|
|
41
|
+
.aplus-ap-form-item--bordered:has(.ant-select) {
|
|
42
|
+
padding-right: 0px;
|
|
43
|
+
}
|
|
44
|
+
.aplus-ap-form-item--bordered .ant-form-item-label > label {
|
|
45
|
+
padding-right: 16px;
|
|
46
|
+
height: 30px;
|
|
47
|
+
}
|
|
48
|
+
.aplus-ap-form-item--bordered .ant-form-item-label > label::after {
|
|
49
|
+
margin: 0;
|
|
50
|
+
}
|
|
51
|
+
.aplus-ap-form-item--bordered .ant-form-item-control-input {
|
|
52
|
+
min-height: 30px;
|
|
53
|
+
}
|
|
54
|
+
.aplus-ap-form-item--bordered:hover {
|
|
55
|
+
border-color: var(--ap-form-bordered-border-color-hover, #66a9ff);
|
|
56
|
+
}
|
|
57
|
+
.aplus-ap-form-item--bordered:focus {
|
|
58
|
+
border-color: var(--ap-form-bordered-border-color-active, #66a9ff);
|
|
59
|
+
box-shadow: 0 0 0 2px var(--ap-form-bordered-shadow-color, rgba(5, 155, 255, 0.1));
|
|
60
|
+
}
|
|
61
|
+
.aplus-ap-form-item--bordered .aplus-batch-input-group-popover-input__popover {
|
|
62
|
+
width: calc(100% + 12px);
|
|
63
|
+
}
|
|
64
|
+
.aplus-ap-form-item--focused {
|
|
65
|
+
border-color: var(--ap-form-bordered-border-color-active, #66a9ff);
|
|
66
|
+
box-shadow: 0 0 0 2px var(--ap-form-bordered-shadow-color, rgba(5, 155, 255, 0.1));
|
|
67
|
+
}
|
|
68
|
+
.aplus-ap-form-item .ant-form-show-help .ant-form-item-explain-error {
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
line-height: 18px;
|
|
71
|
+
margin-top: 2px;
|
|
72
|
+
}
|
|
73
|
+
.aplus-ap-form-item .ant-col .ant-form-item-extra {
|
|
74
|
+
line-height: 22px;
|
|
75
|
+
min-height: unset;
|
|
76
|
+
margin-top: 4px;
|
|
77
|
+
margin-bottom: 12px;
|
|
78
|
+
}
|
|
79
|
+
.aplus-ap-form-item .ant-input-group .ant-picker:only-child {
|
|
80
|
+
width: 100%;
|
|
81
|
+
}
|
|
82
|
+
.aplus-ap-form-item .ant-input-group .ant-select + .ant-picker {
|
|
83
|
+
padding-inline: 11px;
|
|
84
|
+
flex: 1;
|
|
85
|
+
}
|
|
86
|
+
.aplus-ap-form-drawer-form__resize-bar {
|
|
87
|
+
width: 4px;
|
|
88
|
+
cursor: ew-resize;
|
|
89
|
+
position: absolute;
|
|
90
|
+
top: 0;
|
|
91
|
+
left: 0;
|
|
92
|
+
bottom: 0;
|
|
93
|
+
z-index: 100;
|
|
94
|
+
background-color: transparent;
|
|
95
|
+
}
|
|
96
|
+
.aplus-ap-form-drawer-form__resize-bar--min-disabled {
|
|
97
|
+
cursor: w-resize;
|
|
98
|
+
}
|
|
99
|
+
.aplus-ap-form-drawer-form__resize-bar--max-disabled {
|
|
100
|
+
cursor: e-resize;
|
|
101
|
+
}
|
|
102
|
+
.aplus-ap-form-modal-form .ant-modal-content {
|
|
103
|
+
padding: 0;
|
|
104
|
+
}
|
|
105
|
+
.aplus-ap-form-modal-form .ant-modal-header {
|
|
106
|
+
padding: 15px 20px;
|
|
107
|
+
border-bottom: 1px solid #E9EDF3;
|
|
108
|
+
margin-bottom: 0;
|
|
109
|
+
}
|
|
110
|
+
.aplus-ap-form-modal-form__content {
|
|
111
|
+
padding: 20px 20px 0px;
|
|
112
|
+
}
|
|
113
|
+
.aplus-ap-form-modal-form__footer {
|
|
114
|
+
padding: 12px 20px;
|
|
115
|
+
}
|
|
116
|
+
.aplus-ap-form-modal-form__footer-admin {
|
|
117
|
+
border-top: 1px solid #E9EDF3;
|
|
118
|
+
}
|
|
119
|
+
.aplus-ap-form-modal-form .ant-modal-close {
|
|
120
|
+
top: 16px;
|
|
121
|
+
}
|
|
122
|
+
.aplus-ap-form-search-form .ant-form-item {
|
|
123
|
+
margin-bottom: 16px;
|
|
124
|
+
}
|
|
125
|
+
.aplus-ap-form-search-form .ant-form-item-control .ant-picker {
|
|
126
|
+
display: flex;
|
|
127
|
+
}
|
|
128
|
+
.aplus-ap-form-search-form .ant-form-item-control .ant-input-number {
|
|
129
|
+
width: 100%;
|
|
130
|
+
}
|
|
131
|
+
.aplus-ap-form-item-text-group-compact .ant-select-focused {
|
|
132
|
+
z-index: 1;
|
|
133
|
+
}
|
|
134
|
+
.aplus-ap-form-item-text-group-compact .ant-select:hover {
|
|
135
|
+
z-index: 1;
|
|
136
|
+
}
|
|
137
|
+
.aplus-ap-form-item-text-group-compact .ant-picker-focused {
|
|
138
|
+
z-index: 1;
|
|
139
|
+
}
|
|
140
|
+
.aplus-ap-form-item-text-group-compact .ant-picker:hover {
|
|
141
|
+
z-index: 1;
|
|
142
|
+
}
|
|
143
|
+
.aplus-ap-form-item-text-group-compact .ant-input-number-focused {
|
|
144
|
+
z-index: 1;
|
|
145
|
+
}
|
|
146
|
+
.aplus-ap-form-item-text-group-compact .ant-input-number:hover {
|
|
147
|
+
z-index: 1;
|
|
148
|
+
}
|
|
149
|
+
.aplus-ap-form-item-text-group-compact .ant-form-item:first-child .ant-form-item-control-input-content > :first-child,
|
|
150
|
+
.aplus-ap-form-item-text-group-compact .ant-form-item:first-child .ant-select-selector {
|
|
151
|
+
border-start-end-radius: 0;
|
|
152
|
+
border-end-end-radius: 0;
|
|
153
|
+
}
|
|
154
|
+
.aplus-ap-form-item-text-group-compact .ant-form-item:first-child .ant-form-item-control-input-content > .ant-input-group > :last-child,
|
|
155
|
+
.aplus-ap-form-item-text-group-compact .ant-form-item:first-child .ant-select-selector {
|
|
156
|
+
border-start-end-radius: 0;
|
|
157
|
+
border-end-end-radius: 0;
|
|
158
|
+
}
|
|
159
|
+
.aplus-ap-form-item-text-group-compact .ant-form-item:last-child .ant-form-item-control-input-content > :first-child,
|
|
160
|
+
.aplus-ap-form-item-text-group-compact .ant-form-item:last-child .ant-select-selector {
|
|
161
|
+
border-start-start-radius: 0;
|
|
162
|
+
border-end-start-radius: 0;
|
|
163
|
+
}
|
|
164
|
+
.aplus-ap-form-item-text-group-compact .ant-form-item:last-child .ant-form-item-control-input-content > .ant-input-group > :first-child,
|
|
165
|
+
.aplus-ap-form-item-text-group-compact .ant-form-item:last-child .ant-select-selector {
|
|
166
|
+
border-start-start-radius: 0;
|
|
167
|
+
border-end-start-radius: 0;
|
|
168
|
+
}
|
|
169
|
+
.aplus-ap-form-item-text-group-compact .ant-form-item:not(:first-child):not(:last-child) .ant-form-item-control-input-content > :first-child,
|
|
170
|
+
.aplus-ap-form-item-text-group-compact .ant-form-item:not(:first-child):not(:last-child) .ant-select-selector {
|
|
171
|
+
border-radius: 0;
|
|
172
|
+
}
|
|
173
|
+
.aplus-ap-form-item-text-group-compact .ant-form-item:not(:first-child):not(:last-child) .ant-form-item-control-input-content > .ant-input-group > *,
|
|
174
|
+
.aplus-ap-form-item-text-group-compact .ant-form-item:not(:first-child):not(:last-child) .ant-select-selector {
|
|
175
|
+
border-radius: 0;
|
|
176
|
+
}
|
|
177
|
+
.aplus-ap-form-item-text-group-compact .ant-input-group-addon:first-child {
|
|
178
|
+
border-radius: 0;
|
|
179
|
+
}
|
|
180
|
+
.ant-form-vertical .ant-input-group.ant-input-group-compact > * {
|
|
181
|
+
vertical-align: bottom;
|
|
182
|
+
}
|
|
183
|
+
.aplus-field-checkbox--vertical {
|
|
184
|
+
display: inline-block;
|
|
185
|
+
}
|
|
186
|
+
.aplus-field-checkbox--vertical label.ant-checkbox-wrapper:not(:last-child) {
|
|
187
|
+
display: flex;
|
|
188
|
+
margin-block-end: 16px;
|
|
189
|
+
}
|
|
190
|
+
.aplus-field-number-label-left {
|
|
191
|
+
padding-right: 4px;
|
|
192
|
+
}
|
|
193
|
+
.aplus-field-number-label-right {
|
|
194
|
+
padding-left: 4px;
|
|
195
|
+
}
|
|
196
|
+
.aplus-field-radio--vertical label.ant-radio-wrapper:not(:last-child) {
|
|
197
|
+
display: flex;
|
|
198
|
+
margin-block-end: 16px;
|
|
199
|
+
}
|
|
200
|
+
.aplus-field-text-area {
|
|
201
|
+
white-space: pre-wrap;
|
|
202
|
+
word-wrap: break-word;
|
|
203
|
+
word-break: break-all;
|
|
204
|
+
}
|
|
205
|
+
.aplus-action-item {
|
|
206
|
+
display: inline-block;
|
|
207
|
+
font-size: 14px;
|
|
208
|
+
line-height: 22px;
|
|
209
|
+
cursor: pointer;
|
|
210
|
+
}
|
|
211
|
+
.aplus-action-item--primary {
|
|
212
|
+
color: var(--ap-action-color-primary-base, #0070FF);
|
|
213
|
+
}
|
|
214
|
+
.aplus-action-item--primary:not(.aplus-action-item--disabled):hover {
|
|
215
|
+
color: var(--ap-action-color-primary-hover, #66A9FF);
|
|
216
|
+
}
|
|
217
|
+
.aplus-action-item--success {
|
|
218
|
+
color: var(--ap-action-color-success, #2ED1A3);
|
|
219
|
+
}
|
|
220
|
+
.aplus-action-item--error {
|
|
221
|
+
color: var(--ap-action-color-error, #FF4D4F);
|
|
222
|
+
}
|
|
223
|
+
.aplus-action-item--warn {
|
|
224
|
+
color: var(--ap-action-color-warn, #FFA940);
|
|
225
|
+
}
|
|
226
|
+
.aplus-action-item--loading {
|
|
227
|
+
opacity: 0.35;
|
|
228
|
+
transition: opacity 0.2s;
|
|
229
|
+
cursor: default;
|
|
230
|
+
}
|
|
231
|
+
.aplus-action-item--loading .btn-loading-icon {
|
|
232
|
+
margin-right: 4px;
|
|
233
|
+
}
|
|
234
|
+
.aplus-action-item--disabled {
|
|
235
|
+
color: #CCE2FF;
|
|
236
|
+
cursor: not-allowed;
|
|
237
|
+
}
|
|
238
|
+
.aplus-action-item-dropdown__item .aplus-action-item {
|
|
239
|
+
width: 100%;
|
|
240
|
+
}
|
|
241
|
+
.aplus-action-item-dropdown__wrapper {
|
|
242
|
+
display: inline-flex;
|
|
243
|
+
flex-direction: row;
|
|
244
|
+
align-items: center;
|
|
245
|
+
}
|
|
246
|
+
.aplus-action-item-dropdown__icon {
|
|
247
|
+
color: #0070ff;
|
|
248
|
+
margin-left: 4px;
|
|
249
|
+
font-size: 14px;
|
|
250
|
+
display: inline-flex;
|
|
251
|
+
}
|
|
252
|
+
.aplus-ap-grid-wrapper {
|
|
253
|
+
padding: 16px;
|
|
254
|
+
background-color: #fff;
|
|
255
|
+
}
|
|
256
|
+
.aplus-ap-grid__search-wrapper {
|
|
257
|
+
padding: 16px;
|
|
258
|
+
padding-bottom: 0;
|
|
259
|
+
background-color: #fff;
|
|
260
|
+
margin-bottom: 10px;
|
|
261
|
+
}
|
|
262
|
+
.aplus-ap-grid__table-wrapper {
|
|
263
|
+
flex: 1;
|
|
264
|
+
max-height: 100%;
|
|
265
|
+
display: flex;
|
|
266
|
+
flex-direction: column;
|
|
267
|
+
}
|
|
268
|
+
.aplus-ap-grid__table-wrapper-card {
|
|
269
|
+
padding: 12px 16px 16px;
|
|
270
|
+
background-color: #fff;
|
|
271
|
+
overflow: hidden;
|
|
272
|
+
}
|
|
273
|
+
.aplus-ap-grid-pagination {
|
|
274
|
+
margin-top: 16px;
|
|
275
|
+
display: flex;
|
|
276
|
+
flex-wrap: wrap;
|
|
277
|
+
row-gap: 8px;
|
|
278
|
+
}
|
|
279
|
+
.aplus-ap-grid-pagination .ant-pagination-total-text {
|
|
280
|
+
flex: 1;
|
|
281
|
+
}
|
|
282
|
+
.aplus-ap-grid-pagination-count-text {
|
|
283
|
+
color: var(--ap-table-pagination-total-count-color, #182948);
|
|
284
|
+
}
|
|
285
|
+
.aplus-ap-grid-pagination--total-right {
|
|
286
|
+
padding-left: 12px;
|
|
287
|
+
}
|
|
288
|
+
.aplus-ap-grid-pagination-total-wrapper {
|
|
289
|
+
color: var(--ap-table-pagination-total-color, #526A90);
|
|
290
|
+
}
|
|
291
|
+
.aplus-ap-grid-table-header__title {
|
|
292
|
+
display: -webkit-inline-box;
|
|
293
|
+
-webkit-line-clamp: 2;
|
|
294
|
+
-webkit-box-orient: vertical;
|
|
295
|
+
overflow: hidden;
|
|
296
|
+
text-overflow: ellipsis;
|
|
297
|
+
white-space: normal;
|
|
298
|
+
max-width: 100%;
|
|
299
|
+
vertical-align: middle;
|
|
300
|
+
word-break: break-all;
|
|
301
|
+
flex: 1;
|
|
302
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@import '../mixins/mixins.less';
|
|
2
|
+
// 因为在ApTable里面可能会查询表单因此表单和控件的样式最好直接导入
|
|
3
|
+
@import '../ap-form/index.less';
|
|
4
|
+
@import '../ap-field/index.less';
|
|
5
|
+
@import '../ap-action/item.less';
|
|
6
|
+
@import '../ap-action/item-dropdown.less';
|
|
7
|
+
|
|
8
|
+
.b(ap-grid, {
|
|
9
|
+
&-wrapper {
|
|
10
|
+
padding: 16px;
|
|
11
|
+
background-color: #fff;
|
|
12
|
+
}
|
|
13
|
+
&__search-wrapper {
|
|
14
|
+
padding:16px;
|
|
15
|
+
padding-bottom: 0;
|
|
16
|
+
background-color: #fff;
|
|
17
|
+
margin-bottom: 10px;
|
|
18
|
+
}
|
|
19
|
+
&__table-wrapper {
|
|
20
|
+
flex: 1;
|
|
21
|
+
max-height: 100%;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
}
|
|
25
|
+
&__table-wrapper-card {
|
|
26
|
+
padding: 12px 16px 16px;
|
|
27
|
+
background-color: #fff;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
}
|
|
30
|
+
&-pagination {
|
|
31
|
+
margin-top: 16px;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
row-gap: 8px;
|
|
35
|
+
.ant-pagination-total-text {
|
|
36
|
+
flex: 1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
&-pagination-count-text {
|
|
40
|
+
color: var(--ap-table-pagination-total-count-color, #182948);
|
|
41
|
+
}
|
|
42
|
+
&-pagination--total-right {
|
|
43
|
+
padding-left: 12px;
|
|
44
|
+
}
|
|
45
|
+
&-pagination-total-wrapper {
|
|
46
|
+
color: var(--ap-table-pagination-total-color, #526A90);
|
|
47
|
+
}
|
|
48
|
+
&-header-wrapper {
|
|
49
|
+
}
|
|
50
|
+
// ApTable中Table的Header区域
|
|
51
|
+
&-table-header {
|
|
52
|
+
&__title {
|
|
53
|
+
display: -webkit-inline-box;
|
|
54
|
+
-webkit-line-clamp: 2;
|
|
55
|
+
-webkit-box-orient: vertical;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
white-space: normal;
|
|
59
|
+
max-width: 100%;
|
|
60
|
+
vertical-align: middle;
|
|
61
|
+
word-break: break-all;
|
|
62
|
+
flex: 1;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|