@aplus-frontend/ui 0.0.1-beta.24 → 0.0.1-beta.26
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-download/ap-download.vue.mjs +33 -27
- package/es/src/ap-download/hooks/index.d.ts +1 -0
- package/es/src/ap-download/hooks/index.mjs +20 -0
- package/es/src/ap-download/interface.d.ts +14 -1
- package/es/src/ap-download/style/ap-download.css +2 -2
- package/es/src/theme/antd-global-overwrite/admin/button.css +14 -2
- package/es/src/theme/antd-global-overwrite/admin/index.css +14 -2
- package/es/src/theme/antd-global-overwrite/aplus/button.css +14 -2
- package/es/src/theme/antd-global-overwrite/aplus/index.css +14 -2
- package/es/src/theme/ap-download/ap-download.css +2 -2
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/hooks/index.d.ts +1 -0
- package/lib/src/ap-download/hooks/index.js +1 -0
- package/lib/src/ap-download/interface.d.ts +14 -1
- package/lib/src/ap-download/style/ap-download.css +2 -2
- package/lib/src/theme/antd-global-overwrite/admin/button.css +14 -2
- package/lib/src/theme/antd-global-overwrite/admin/index.css +14 -2
- package/lib/src/theme/antd-global-overwrite/aplus/button.css +14 -2
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +14 -2
- package/lib/src/theme/ap-download/ap-download.css +2 -2
- package/package.json +3 -3
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as _, computed as n, onMounted as y, openBlock as z, createElementBlock as I, normalizeStyle as O, normalizeClass as i, createElementVNode as a, renderSlot as v, toDisplayString as B } from "vue";
|
|
2
2
|
import "../config-provider/index.mjs";
|
|
3
|
+
import { useOssInit as M, useOss as N } from "./hooks/index.mjs";
|
|
3
4
|
import "./style/ap-download.css";
|
|
4
|
-
import { useGlobalConfig as
|
|
5
|
-
import { useNamespace as
|
|
6
|
-
const F = { class: "icon" },
|
|
5
|
+
import { useGlobalConfig as k } from "../config-provider/hooks/use-global-config.mjs";
|
|
6
|
+
import { useNamespace as A } from "../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
const F = { class: "icon" }, W = { class: "text" }, q = /* @__PURE__ */ _({
|
|
7
8
|
name: "ApDownload",
|
|
8
9
|
__name: "ap-download",
|
|
9
10
|
props: {
|
|
@@ -11,40 +12,45 @@ const F = { class: "icon" }, M = { class: "text" }, G = /* @__PURE__ */ b({
|
|
|
11
12
|
color: { default: "#0070FF" },
|
|
12
13
|
size: { default: "middle" },
|
|
13
14
|
disabled: { type: Boolean, default: !1 },
|
|
14
|
-
|
|
15
|
+
fileName: {},
|
|
16
|
+
getOssAccess: {}
|
|
15
17
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
function c(
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
return `#${
|
|
18
|
+
setup(l) {
|
|
19
|
+
const t = l, p = k("uiMode"), { b: o, bm: s } = A("download");
|
|
20
|
+
function c(e, r) {
|
|
21
|
+
e.length === 4 && (e = `#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`);
|
|
22
|
+
const w = parseInt(e.slice(1, 3), 16), S = parseInt(e.slice(3, 5), 16), $ = parseInt(e.slice(5, 7), 16), b = Math.round(r * 255).toString(16).padStart(2, "0");
|
|
23
|
+
return `#${w.toString(16).padStart(2, "0")}${S.toString(16).padStart(2, "0")}${$.toString(16).padStart(2, "0")}${b}`;
|
|
22
24
|
}
|
|
23
25
|
const d = n(() => ({
|
|
24
|
-
"--
|
|
25
|
-
"--
|
|
26
|
-
})), u = n(() => [
|
|
27
|
-
const
|
|
28
|
-
return
|
|
29
|
-
})
|
|
30
|
-
|
|
26
|
+
"--download-main-color": t.color,
|
|
27
|
+
"--download-main-color-opacity": c(t.color, 0.6)
|
|
28
|
+
})), u = n(() => [o("wrapper"), s("wrapper", t.size)].filter(Boolean)), m = n(() => {
|
|
29
|
+
const e = [o("inner-wrapper"), s("inner-wrapper", t.size)];
|
|
30
|
+
return t.disabled && (p.value === "aplus" ? e.push(s("inner-wrapper", "disabled")) : e.push(s("inner-wrapper", "disabled-admin"))), e;
|
|
31
|
+
});
|
|
32
|
+
y(() => {
|
|
33
|
+
t.disabled || M(t.getOssAccess);
|
|
34
|
+
});
|
|
35
|
+
const { client: f } = N(), g = () => {
|
|
36
|
+
t.disabled || f.downloadFile(t.fileName);
|
|
31
37
|
};
|
|
32
|
-
return (
|
|
33
|
-
style:
|
|
34
|
-
class:
|
|
38
|
+
return (e, r) => (z(), I("span", {
|
|
39
|
+
style: O(d.value),
|
|
40
|
+
class: i(u.value),
|
|
35
41
|
onClick: g
|
|
36
42
|
}, [
|
|
37
|
-
|
|
38
|
-
class:
|
|
43
|
+
a("span", {
|
|
44
|
+
class: i(m.value)
|
|
39
45
|
}, [
|
|
40
|
-
|
|
41
|
-
|
|
46
|
+
a("span", F, [
|
|
47
|
+
v(e.$slots, "icon")
|
|
42
48
|
]),
|
|
43
|
-
|
|
49
|
+
a("span", W, B(e.text), 1)
|
|
44
50
|
], 2)
|
|
45
51
|
], 6));
|
|
46
52
|
}
|
|
47
53
|
});
|
|
48
54
|
export {
|
|
49
|
-
|
|
55
|
+
q as default
|
|
50
56
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { client as t } from "@aplus-frontend/oss";
|
|
2
|
+
function i() {
|
|
3
|
+
return { client: t };
|
|
4
|
+
}
|
|
5
|
+
async function e(n) {
|
|
6
|
+
if (!n)
|
|
7
|
+
throw new Error("请传入getOssAccess");
|
|
8
|
+
return await t.initOssClient({
|
|
9
|
+
getOssAccess: n,
|
|
10
|
+
onFailure: (s) => {
|
|
11
|
+
throw new Error(
|
|
12
|
+
typeof (s == null ? void 0 : s.message) == "string" ? s.message : "获取oss临时权限失败"
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
}), i();
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
i as useOss,
|
|
19
|
+
e as useOssInit
|
|
20
|
+
};
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
interface accessCreate {
|
|
2
|
+
bucket: string;
|
|
3
|
+
regionId: string;
|
|
4
|
+
endpoint: string;
|
|
5
|
+
accessKeyId: string;
|
|
6
|
+
accessKeySecret: string;
|
|
7
|
+
expiration: number;
|
|
8
|
+
extInformation: string;
|
|
9
|
+
fileProvideType: string;
|
|
10
|
+
callbackUrl: string;
|
|
11
|
+
}
|
|
1
12
|
export interface ApDownLoadProps {
|
|
2
13
|
/**
|
|
3
14
|
* 标签内容
|
|
@@ -16,5 +27,7 @@ export interface ApDownLoadProps {
|
|
|
16
27
|
* @default false
|
|
17
28
|
*/
|
|
18
29
|
disabled?: boolean;
|
|
19
|
-
|
|
30
|
+
fileName: string;
|
|
31
|
+
getOssAccess: () => Promise<accessCreate>;
|
|
20
32
|
}
|
|
33
|
+
export {};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
}
|
|
6
6
|
.aplus-download-inner-wrapper {
|
|
7
7
|
display: inline-block;
|
|
8
|
-
color: var(--
|
|
8
|
+
color: var(--download-main-color);
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
margin-left: 5px;
|
|
19
19
|
}
|
|
20
20
|
.aplus-download-inner-wrapper:hover {
|
|
21
|
-
color: var(--
|
|
21
|
+
color: var(--download-main-color-opacity);
|
|
22
22
|
}
|
|
23
23
|
.aplus-download-inner-wrapper--large {
|
|
24
24
|
line-height: 26px;
|
|
@@ -2,12 +2,24 @@
|
|
|
2
2
|
min-width: 88px;
|
|
3
3
|
box-shadow: none;
|
|
4
4
|
}
|
|
5
|
-
.ant-btn[disabled],
|
|
6
|
-
.ant-btn[disabled]:hover {
|
|
5
|
+
.ant-btn-default[disabled],
|
|
6
|
+
.ant-btn-default[disabled]:hover {
|
|
7
7
|
color: #bfbfbf !important;
|
|
8
8
|
background: #fafafa !important;
|
|
9
9
|
border-color: #d9d9d9 !important;
|
|
10
10
|
}
|
|
11
|
+
.ant-btn-primary[disabled],
|
|
12
|
+
.ant-btn-primary[disabled]:hover {
|
|
13
|
+
color: #ffffff !important;
|
|
14
|
+
background: #d6f1e5 !important;
|
|
15
|
+
border-color: #d6f1e5 !important;
|
|
16
|
+
}
|
|
17
|
+
.ant-btn-link[disabled],
|
|
18
|
+
.ant-btn-link[disabled]:hover,
|
|
19
|
+
.ant-btn-text[disabled],
|
|
20
|
+
.ant-btn-text[disabled]:hover {
|
|
21
|
+
color: rgba(24, 144, 255, 0.2) !important;
|
|
22
|
+
}
|
|
11
23
|
.ant-form-item-control-input-content [text='重置'],
|
|
12
24
|
.ant-form-item-control-input-content [text='查询'],
|
|
13
25
|
.ant-form-item-control-input-content [text='Reset'],
|
|
@@ -23,12 +23,24 @@
|
|
|
23
23
|
min-width: 88px;
|
|
24
24
|
box-shadow: none;
|
|
25
25
|
}
|
|
26
|
-
.ant-btn[disabled],
|
|
27
|
-
.ant-btn[disabled]:hover {
|
|
26
|
+
.ant-btn-default[disabled],
|
|
27
|
+
.ant-btn-default[disabled]:hover {
|
|
28
28
|
color: #bfbfbf !important;
|
|
29
29
|
background: #fafafa !important;
|
|
30
30
|
border-color: #d9d9d9 !important;
|
|
31
31
|
}
|
|
32
|
+
.ant-btn-primary[disabled],
|
|
33
|
+
.ant-btn-primary[disabled]:hover {
|
|
34
|
+
color: #ffffff !important;
|
|
35
|
+
background: #d6f1e5 !important;
|
|
36
|
+
border-color: #d6f1e5 !important;
|
|
37
|
+
}
|
|
38
|
+
.ant-btn-link[disabled],
|
|
39
|
+
.ant-btn-link[disabled]:hover,
|
|
40
|
+
.ant-btn-text[disabled],
|
|
41
|
+
.ant-btn-text[disabled]:hover {
|
|
42
|
+
color: rgba(24, 144, 255, 0.2) !important;
|
|
43
|
+
}
|
|
32
44
|
.ant-form-item-control-input-content [text='重置'],
|
|
33
45
|
.ant-form-item-control-input-content [text='查询'],
|
|
34
46
|
.ant-form-item-control-input-content [text='Reset'],
|
|
@@ -2,12 +2,24 @@
|
|
|
2
2
|
min-width: 88px;
|
|
3
3
|
box-shadow: none;
|
|
4
4
|
}
|
|
5
|
-
.ant-btn[disabled],
|
|
6
|
-
.ant-btn[disabled]:hover {
|
|
5
|
+
.ant-btn-default[disabled],
|
|
6
|
+
.ant-btn-default[disabled]:hover {
|
|
7
7
|
color: #abb7cc !important;
|
|
8
8
|
background: #f9f9fa !important;
|
|
9
9
|
border-color: #dee4ed !important;
|
|
10
10
|
}
|
|
11
|
+
.ant-btn-primary[disabled],
|
|
12
|
+
.ant-btn-primary[disabled]:hover {
|
|
13
|
+
color: #ffffff !important;
|
|
14
|
+
background: #cce2ff !important;
|
|
15
|
+
border-color: #cce2ff !important;
|
|
16
|
+
}
|
|
17
|
+
.ant-btn-link[disabled],
|
|
18
|
+
.ant-btn-link[disabled]:hover,
|
|
19
|
+
.ant-btn-text[disabled],
|
|
20
|
+
.ant-btn-text[disabled]:hover {
|
|
21
|
+
color: #cce2ff !important;
|
|
22
|
+
}
|
|
11
23
|
.ant-form-item-control-input-content [text='重置'],
|
|
12
24
|
.ant-form-item-control-input-content [text='查询'],
|
|
13
25
|
.ant-form-item-control-input-content [text='Reset'],
|
|
@@ -23,12 +23,24 @@
|
|
|
23
23
|
min-width: 88px;
|
|
24
24
|
box-shadow: none;
|
|
25
25
|
}
|
|
26
|
-
.ant-btn[disabled],
|
|
27
|
-
.ant-btn[disabled]:hover {
|
|
26
|
+
.ant-btn-default[disabled],
|
|
27
|
+
.ant-btn-default[disabled]:hover {
|
|
28
28
|
color: #abb7cc !important;
|
|
29
29
|
background: #f9f9fa !important;
|
|
30
30
|
border-color: #dee4ed !important;
|
|
31
31
|
}
|
|
32
|
+
.ant-btn-primary[disabled],
|
|
33
|
+
.ant-btn-primary[disabled]:hover {
|
|
34
|
+
color: #ffffff !important;
|
|
35
|
+
background: #cce2ff !important;
|
|
36
|
+
border-color: #cce2ff !important;
|
|
37
|
+
}
|
|
38
|
+
.ant-btn-link[disabled],
|
|
39
|
+
.ant-btn-link[disabled]:hover,
|
|
40
|
+
.ant-btn-text[disabled],
|
|
41
|
+
.ant-btn-text[disabled]:hover {
|
|
42
|
+
color: #cce2ff !important;
|
|
43
|
+
}
|
|
32
44
|
.ant-form-item-control-input-content [text='重置'],
|
|
33
45
|
.ant-form-item-control-input-content [text='查询'],
|
|
34
46
|
.ant-form-item-control-input-content [text='Reset'],
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
}
|
|
6
6
|
.aplus-download-inner-wrapper {
|
|
7
7
|
display: inline-block;
|
|
8
|
-
color: var(--
|
|
8
|
+
color: var(--download-main-color);
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
margin-left: 5px;
|
|
19
19
|
}
|
|
20
20
|
.aplus-download-inner-wrapper:hover {
|
|
21
|
-
color: var(--
|
|
21
|
+
color: var(--download-main-color-opacity);
|
|
22
22
|
}
|
|
23
23
|
.aplus-download-inner-wrapper--large {
|
|
24
24
|
line-height: 26px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../config-provider/index.js");require("./style/ap-download.css");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../config-provider/index.js");const o=require("./hooks/index.js");require("./style/ap-download.css");const $=require("../config-provider/hooks/use-global-config.js"),_=require("../config-provider/hooks/use-namespace.js"),y={class:"icon"},v={class:"text"},N=t.defineComponent({name:"ApDownload",__name:"ap-download",props:{text:{},color:{default:"#0070FF"},size:{default:"middle"},disabled:{type:Boolean,default:!1},fileName:{},getOssAccess:{}},setup(i){const s=i,l=$.useGlobalConfig("uiMode"),{b:a,bm:n}=_.useNamespace("download");function c(e,r){e.length===4&&(e=`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`);const g=parseInt(e.slice(1,3),16),w=parseInt(e.slice(3,5),16),S=parseInt(e.slice(5,7),16),b=Math.round(r*255).toString(16).padStart(2,"0");return`#${g.toString(16).padStart(2,"0")}${w.toString(16).padStart(2,"0")}${S.toString(16).padStart(2,"0")}${b}`}const d=t.computed(()=>({"--download-main-color":s.color,"--download-main-color-opacity":c(s.color,.6)})),p=t.computed(()=>[a("wrapper"),n("wrapper",s.size)].filter(Boolean)),u=t.computed(()=>{const e=[a("inner-wrapper"),n("inner-wrapper",s.size)];return s.disabled&&(l.value==="aplus"?e.push(n("inner-wrapper","disabled")):e.push(n("inner-wrapper","disabled-admin"))),e});t.onMounted(()=>{s.disabled||o.useOssInit(s.getOssAccess)});const{client:m}=o.useOss(),f=()=>{s.disabled||m.downloadFile(s.fileName)};return(e,r)=>(t.openBlock(),t.createElementBlock("span",{style:t.normalizeStyle(d.value),class:t.normalizeClass(p.value),onClick:f},[t.createElementVNode("span",{class:t.normalizeClass(u.value)},[t.createElementVNode("span",y,[t.renderSlot(e.$slots,"icon")]),t.createElementVNode("span",v,t.toDisplayString(e.text),1)],2)],6))}});exports.default=N;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/oss");function n(){return{client:e.client}}async function i(t){if(!t)throw new Error("请传入getOssAccess");return await e.client.initOssClient({getOssAccess:t,onFailure:s=>{throw new Error(typeof(s==null?void 0:s.message)=="string"?s.message:"获取oss临时权限失败")}}),n()}exports.useOss=n;exports.useOssInit=i;
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
interface accessCreate {
|
|
2
|
+
bucket: string;
|
|
3
|
+
regionId: string;
|
|
4
|
+
endpoint: string;
|
|
5
|
+
accessKeyId: string;
|
|
6
|
+
accessKeySecret: string;
|
|
7
|
+
expiration: number;
|
|
8
|
+
extInformation: string;
|
|
9
|
+
fileProvideType: string;
|
|
10
|
+
callbackUrl: string;
|
|
11
|
+
}
|
|
1
12
|
export interface ApDownLoadProps {
|
|
2
13
|
/**
|
|
3
14
|
* 标签内容
|
|
@@ -16,5 +27,7 @@ export interface ApDownLoadProps {
|
|
|
16
27
|
* @default false
|
|
17
28
|
*/
|
|
18
29
|
disabled?: boolean;
|
|
19
|
-
|
|
30
|
+
fileName: string;
|
|
31
|
+
getOssAccess: () => Promise<accessCreate>;
|
|
20
32
|
}
|
|
33
|
+
export {};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
}
|
|
6
6
|
.aplus-download-inner-wrapper {
|
|
7
7
|
display: inline-block;
|
|
8
|
-
color: var(--
|
|
8
|
+
color: var(--download-main-color);
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
margin-left: 5px;
|
|
19
19
|
}
|
|
20
20
|
.aplus-download-inner-wrapper:hover {
|
|
21
|
-
color: var(--
|
|
21
|
+
color: var(--download-main-color-opacity);
|
|
22
22
|
}
|
|
23
23
|
.aplus-download-inner-wrapper--large {
|
|
24
24
|
line-height: 26px;
|
|
@@ -2,12 +2,24 @@
|
|
|
2
2
|
min-width: 88px;
|
|
3
3
|
box-shadow: none;
|
|
4
4
|
}
|
|
5
|
-
.ant-btn[disabled],
|
|
6
|
-
.ant-btn[disabled]:hover {
|
|
5
|
+
.ant-btn-default[disabled],
|
|
6
|
+
.ant-btn-default[disabled]:hover {
|
|
7
7
|
color: #bfbfbf !important;
|
|
8
8
|
background: #fafafa !important;
|
|
9
9
|
border-color: #d9d9d9 !important;
|
|
10
10
|
}
|
|
11
|
+
.ant-btn-primary[disabled],
|
|
12
|
+
.ant-btn-primary[disabled]:hover {
|
|
13
|
+
color: #ffffff !important;
|
|
14
|
+
background: #d6f1e5 !important;
|
|
15
|
+
border-color: #d6f1e5 !important;
|
|
16
|
+
}
|
|
17
|
+
.ant-btn-link[disabled],
|
|
18
|
+
.ant-btn-link[disabled]:hover,
|
|
19
|
+
.ant-btn-text[disabled],
|
|
20
|
+
.ant-btn-text[disabled]:hover {
|
|
21
|
+
color: rgba(24, 144, 255, 0.2) !important;
|
|
22
|
+
}
|
|
11
23
|
.ant-form-item-control-input-content [text='重置'],
|
|
12
24
|
.ant-form-item-control-input-content [text='查询'],
|
|
13
25
|
.ant-form-item-control-input-content [text='Reset'],
|
|
@@ -23,12 +23,24 @@
|
|
|
23
23
|
min-width: 88px;
|
|
24
24
|
box-shadow: none;
|
|
25
25
|
}
|
|
26
|
-
.ant-btn[disabled],
|
|
27
|
-
.ant-btn[disabled]:hover {
|
|
26
|
+
.ant-btn-default[disabled],
|
|
27
|
+
.ant-btn-default[disabled]:hover {
|
|
28
28
|
color: #bfbfbf !important;
|
|
29
29
|
background: #fafafa !important;
|
|
30
30
|
border-color: #d9d9d9 !important;
|
|
31
31
|
}
|
|
32
|
+
.ant-btn-primary[disabled],
|
|
33
|
+
.ant-btn-primary[disabled]:hover {
|
|
34
|
+
color: #ffffff !important;
|
|
35
|
+
background: #d6f1e5 !important;
|
|
36
|
+
border-color: #d6f1e5 !important;
|
|
37
|
+
}
|
|
38
|
+
.ant-btn-link[disabled],
|
|
39
|
+
.ant-btn-link[disabled]:hover,
|
|
40
|
+
.ant-btn-text[disabled],
|
|
41
|
+
.ant-btn-text[disabled]:hover {
|
|
42
|
+
color: rgba(24, 144, 255, 0.2) !important;
|
|
43
|
+
}
|
|
32
44
|
.ant-form-item-control-input-content [text='重置'],
|
|
33
45
|
.ant-form-item-control-input-content [text='查询'],
|
|
34
46
|
.ant-form-item-control-input-content [text='Reset'],
|
|
@@ -2,12 +2,24 @@
|
|
|
2
2
|
min-width: 88px;
|
|
3
3
|
box-shadow: none;
|
|
4
4
|
}
|
|
5
|
-
.ant-btn[disabled],
|
|
6
|
-
.ant-btn[disabled]:hover {
|
|
5
|
+
.ant-btn-default[disabled],
|
|
6
|
+
.ant-btn-default[disabled]:hover {
|
|
7
7
|
color: #abb7cc !important;
|
|
8
8
|
background: #f9f9fa !important;
|
|
9
9
|
border-color: #dee4ed !important;
|
|
10
10
|
}
|
|
11
|
+
.ant-btn-primary[disabled],
|
|
12
|
+
.ant-btn-primary[disabled]:hover {
|
|
13
|
+
color: #ffffff !important;
|
|
14
|
+
background: #cce2ff !important;
|
|
15
|
+
border-color: #cce2ff !important;
|
|
16
|
+
}
|
|
17
|
+
.ant-btn-link[disabled],
|
|
18
|
+
.ant-btn-link[disabled]:hover,
|
|
19
|
+
.ant-btn-text[disabled],
|
|
20
|
+
.ant-btn-text[disabled]:hover {
|
|
21
|
+
color: #cce2ff !important;
|
|
22
|
+
}
|
|
11
23
|
.ant-form-item-control-input-content [text='重置'],
|
|
12
24
|
.ant-form-item-control-input-content [text='查询'],
|
|
13
25
|
.ant-form-item-control-input-content [text='Reset'],
|
|
@@ -23,12 +23,24 @@
|
|
|
23
23
|
min-width: 88px;
|
|
24
24
|
box-shadow: none;
|
|
25
25
|
}
|
|
26
|
-
.ant-btn[disabled],
|
|
27
|
-
.ant-btn[disabled]:hover {
|
|
26
|
+
.ant-btn-default[disabled],
|
|
27
|
+
.ant-btn-default[disabled]:hover {
|
|
28
28
|
color: #abb7cc !important;
|
|
29
29
|
background: #f9f9fa !important;
|
|
30
30
|
border-color: #dee4ed !important;
|
|
31
31
|
}
|
|
32
|
+
.ant-btn-primary[disabled],
|
|
33
|
+
.ant-btn-primary[disabled]:hover {
|
|
34
|
+
color: #ffffff !important;
|
|
35
|
+
background: #cce2ff !important;
|
|
36
|
+
border-color: #cce2ff !important;
|
|
37
|
+
}
|
|
38
|
+
.ant-btn-link[disabled],
|
|
39
|
+
.ant-btn-link[disabled]:hover,
|
|
40
|
+
.ant-btn-text[disabled],
|
|
41
|
+
.ant-btn-text[disabled]:hover {
|
|
42
|
+
color: #cce2ff !important;
|
|
43
|
+
}
|
|
32
44
|
.ant-form-item-control-input-content [text='重置'],
|
|
33
45
|
.ant-form-item-control-input-content [text='查询'],
|
|
34
46
|
.ant-form-item-control-input-content [text='Reset'],
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
}
|
|
6
6
|
.aplus-download-inner-wrapper {
|
|
7
7
|
display: inline-block;
|
|
8
|
-
color: var(--
|
|
8
|
+
color: var(--download-main-color);
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
margin-left: 5px;
|
|
19
19
|
}
|
|
20
20
|
.aplus-download-inner-wrapper:hover {
|
|
21
|
-
color: var(--
|
|
21
|
+
color: var(--download-main-color-opacity);
|
|
22
22
|
}
|
|
23
23
|
.aplus-download-inner-wrapper--large {
|
|
24
24
|
line-height: 26px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.26",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "es/index.mjs",
|
|
6
6
|
"files": [
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"sortablejs": "^1.15.2",
|
|
61
61
|
"@aplus-frontend/oss": "^1.0.11",
|
|
62
62
|
"mime": "^4.0.3",
|
|
63
|
-
"@aplus-frontend/
|
|
64
|
-
"@aplus-frontend/
|
|
63
|
+
"@aplus-frontend/hooks": "1.0.4",
|
|
64
|
+
"@aplus-frontend/utils": "1.0.19"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"ant-design-vue": "^4.2.1",
|