@aplus-frontend/ui 0.0.37 → 0.0.38

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.
@@ -1,10 +1,11 @@
1
- import { defineComponent as y, computed as a, watch as _, openBlock as z, createElementBlock as I, normalizeStyle as O, normalizeClass as i, createElementVNode as n, renderSlot as v, toDisplayString as B } from "vue";
1
+ import { defineComponent as y, computed as n, unref as z, openBlock as v, createElementBlock as I, normalizeStyle as N, normalizeClass as i, createElementVNode as s, renderSlot as B, toDisplayString as O } from "vue";
2
2
  import "../config-provider/index.mjs";
3
- import { useOssInit as N, useOss as k } from "./hooks/index.mjs";
3
+ import { useOssInit as k } from "./hooks/index.mjs";
4
4
  import "./style/ap-download.css";
5
- import { useGlobalConfig as A } from "../config-provider/hooks/use-global-config.mjs";
6
- import { useNamespace as F } from "../config-provider/hooks/use-namespace.mjs";
7
- const M = { class: "icon" }, W = { class: "text" }, j = /* @__PURE__ */ y({
5
+ import { useLocale as A } from "../config-provider/hooks/use-locale.mjs";
6
+ import { useGlobalConfig as F } from "../config-provider/hooks/use-global-config.mjs";
7
+ import { useNamespace as M } from "../config-provider/hooks/use-namespace.mjs";
8
+ const W = { class: "icon" }, D = { class: "text" }, j = /* @__PURE__ */ y({
8
9
  name: "ApDownload",
9
10
  __name: "ap-download",
10
11
  props: {
@@ -16,43 +17,33 @@ const M = { class: "icon" }, W = { class: "text" }, j = /* @__PURE__ */ y({
16
17
  getOssAccess: {}
17
18
  },
18
19
  setup(l) {
19
- const t = l, p = A("uiMode"), { b: r, bm: s } = F("download");
20
- function c(e, o) {
20
+ const { lang: p } = A(), c = n(() => p.value === "zh-cn" ? "zh_CN" : "en_US"), t = l, d = F("uiMode"), { b: r, bm: a } = M("ap-download");
21
+ function u(e, o) {
21
22
  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), b = parseInt(e.slice(5, 7), 16), $ = Math.round(o * 255).toString(16).padStart(2, "0");
23
- return `#${w.toString(16).padStart(2, "0")}${S.toString(16).padStart(2, "0")}${b.toString(16).padStart(2, "0")}${$}`;
23
+ const S = parseInt(e.slice(1, 3), 16), $ = parseInt(e.slice(3, 5), 16), _ = parseInt(e.slice(5, 7), 16), b = Math.round(o * 255).toString(16).padStart(2, "0");
24
+ return `#${S.toString(16).padStart(2, "0")}${$.toString(16).padStart(2, "0")}${_.toString(16).padStart(2, "0")}${b}`;
24
25
  }
25
- const d = a(() => ({
26
+ const m = n(() => ({
26
27
  "--download-main-color": t.color,
27
- "--download-main-color-opacity": c(t.color, 0.6)
28
- })), u = a(() => [r("wrapper"), s("wrapper", t.size)].filter(Boolean)), m = a(() => {
29
- const e = [r("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
- _(
33
- () => t.disabled,
34
- () => {
35
- t.disabled || N(t.getOssAccess);
36
- },
37
- {
38
- flush: "sync"
39
- }
40
- );
41
- const { client: f } = k(), g = () => {
42
- t.disabled || f.downloadFile(t.fileName);
28
+ "--download-main-color-opacity": u(t.color, 0.6)
29
+ })), f = n(() => [r("wrapper"), a("wrapper", t.size)].filter(Boolean)), g = n(() => {
30
+ const e = [r("inner-wrapper"), a("inner-wrapper", t.size)];
31
+ return t.disabled && (d.value === "aplus" ? e.push(a("inner-wrapper", "disabled")) : e.push(a("inner-wrapper", "disabled-admin"))), e;
32
+ }), w = async () => {
33
+ t.disabled || await (await k(t.getOssAccess, z(c))).downloadFile(t.fileName);
43
34
  };
44
- return (e, o) => (z(), I("span", {
45
- style: O(d.value),
46
- class: i(u.value),
47
- onClick: g
35
+ return (e, o) => (v(), I("span", {
36
+ style: N(m.value),
37
+ class: i(f.value),
38
+ onClick: w
48
39
  }, [
49
- n("span", {
50
- class: i(m.value)
40
+ s("span", {
41
+ class: i(g.value)
51
42
  }, [
52
- n("span", M, [
53
- v(e.$slots, "icon")
43
+ s("span", W, [
44
+ B(e.$slots, "icon")
54
45
  ]),
55
- n("span", W, B(e.text), 1)
46
+ s("span", D, O(e.text), 1)
56
47
  ], 2)
57
48
  ], 6));
58
49
  }
@@ -1,9 +1,4 @@
1
1
  import { Oss } from '@aplus-frontend/oss';
2
2
 
3
3
  export type { Oss } from '@aplus-frontend/oss';
4
- export declare function useOss(): {
5
- client: Oss;
6
- };
7
- export declare function useOssInit(getOssAccess: any): Promise<{
8
- client: Oss;
9
- }>;
4
+ export declare function useOssInit(getOssAccess: any, Locale: 'zh_CN' | 'en_US'): Promise<Oss | null>;
@@ -1,21 +1,21 @@
1
- import { client as t } from "@aplus-frontend/oss";
2
- function o() {
3
- return { client: t };
4
- }
5
- async function e(n) {
6
- if (!n)
1
+ import { client as i } from "@aplus-frontend/oss";
2
+ const n = /* @__PURE__ */ new Map(), t = Symbol("ossInstance");
3
+ async function r(o, a) {
4
+ if (!o)
7
5
  throw new Error("请传入getOssAccess");
8
- return await t.initOssClient({
9
- locale: "zh_CN",
10
- getOssAccess: n,
6
+ if (n.has(t))
7
+ return n.get(t);
8
+ const e = await i.initOssClient({
9
+ locale: a,
10
+ getOssAccess: o,
11
11
  onFailure: (s) => {
12
12
  throw new Error(
13
13
  typeof (s == null ? void 0 : s.message) == "string" ? s.message : "获取oss临时权限失败"
14
14
  );
15
15
  }
16
- }), o();
16
+ });
17
+ return n.set(t, e), e;
17
18
  }
18
19
  export {
19
- o as useOss,
20
- e as useOssInit
20
+ r as useOssInit
21
21
  };
@@ -1,14 +1,5 @@
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
+ import { accessCreate } from '@aplus-frontend/oss';
2
+
12
3
  export interface ApDownLoadProps {
13
4
  /**
14
5
  * 标签内容
@@ -28,6 +19,5 @@ export interface ApDownLoadProps {
28
19
  */
29
20
  disabled?: boolean;
30
21
  fileName: string;
31
- getOssAccess: () => Promise<AccessCreate>;
22
+ getOssAccess: () => Promise<accessCreate>;
32
23
  }
33
- export {};
@@ -1,51 +1,51 @@
1
- .aplus-download-wrapper {
1
+ .aplus-ap-download-wrapper {
2
2
  text-wrap: nowrap;
3
3
  display: inline-block;
4
4
  display: flex;
5
5
  }
6
- .aplus-download-inner-wrapper {
6
+ .aplus-ap-download-inner-wrapper {
7
7
  display: inline-block;
8
8
  color: var(--download-main-color);
9
9
  cursor: pointer;
10
10
  display: flex;
11
11
  align-items: center;
12
12
  }
13
- .aplus-download-inner-wrapper .icon {
13
+ .aplus-ap-download-inner-wrapper .icon {
14
14
  position: relative;
15
15
  font-size: 18px;
16
16
  }
17
- .aplus-download-inner-wrapper .text {
17
+ .aplus-ap-download-inner-wrapper .text {
18
18
  margin-left: 5px;
19
19
  }
20
- .aplus-download-inner-wrapper:hover {
20
+ .aplus-ap-download-inner-wrapper:hover {
21
21
  color: var(--download-main-color-opacity);
22
22
  }
23
- .aplus-download-inner-wrapper--large {
23
+ .aplus-ap-download-inner-wrapper--large {
24
24
  line-height: 26px;
25
25
  height: 28px;
26
26
  font-size: 16px;
27
27
  }
28
- .aplus-download-inner-wrapper--middle {
28
+ .aplus-ap-download-inner-wrapper--middle {
29
29
  line-height: 22px;
30
30
  height: 24px;
31
31
  font-size: 14px;
32
32
  }
33
- .aplus-download-inner-wrapper--small {
33
+ .aplus-ap-download-inner-wrapper--small {
34
34
  line-height: 19px;
35
35
  height: 20px;
36
36
  font-size: 12px;
37
37
  }
38
- .aplus-download-inner-wrapper--disabled {
38
+ .aplus-ap-download-inner-wrapper--disabled {
39
39
  color: #8896b0;
40
40
  cursor: not-allowed;
41
41
  }
42
- .aplus-download-inner-wrapper--disabled:hover {
42
+ .aplus-ap-download-inner-wrapper--disabled:hover {
43
43
  color: #8896b0;
44
44
  }
45
- .aplus-download-inner-wrapper--disabled-admin {
45
+ .aplus-ap-download-inner-wrapper--disabled-admin {
46
46
  cursor: not-allowed;
47
47
  color: #999;
48
48
  }
49
- .aplus-download-inner-wrapper--disabled-admin:hover {
49
+ .aplus-ap-download-inner-wrapper--disabled-admin:hover {
50
50
  color: #999;
51
51
  }
@@ -2,22 +2,28 @@ import { ApLabelProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
  import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
4
4
 
5
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApLabelProps>, {
5
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApLabelProps>, {
6
6
  status: string;
7
7
  placement: string;
8
8
  iconColor: string;
9
+ iconType: string;
10
+ iconSize: number;
9
11
  text: string;
10
12
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApLabelProps>, {
11
13
  status: string;
12
14
  placement: string;
13
15
  iconColor: string;
16
+ iconType: string;
17
+ iconSize: number;
14
18
  text: string;
15
19
  }>>>, {
16
20
  text: any;
17
21
  placement: TooltipPlacement;
22
+ iconType: "ellipsis" | "warning" | "question";
18
23
  status: "success" | "error" | "default" | "warning" | "processing";
24
+ iconSize: number;
19
25
  iconColor: string;
20
- }, {}>;
26
+ }, {}>, Partial<Record<string, (_: {}) => any>>>;
21
27
  export default _default;
22
28
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
29
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -36,3 +42,8 @@ type __VLS_WithDefaults<P, D> = {
36
42
  type __VLS_Prettify<T> = {
37
43
  [K in keyof T]: T[K];
38
44
  } & {};
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -1,11 +1,11 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as p, normalizeClass as s, unref as t, createVNode as l, normalizeProps as m, guardReactiveProps as c, createBlock as i, withCtx as u, normalizeStyle as f, createCommentVNode as d } from "vue";
2
- import { Badge as C, Tooltip as g } from "ant-design-vue";
3
- import { QuestionCircleOutlined as h } from "@ant-design/icons-vue";
1
+ import { defineComponent as m, computed as u, openBlock as o, createElementBlock as s, normalizeClass as f, unref as t, createVNode as d, normalizeProps as y, guardReactiveProps as A, renderSlot as C, Fragment as g, createBlock as l, withCtx as k, normalizeStyle as r, createCommentVNode as n } from "vue";
2
+ import { Badge as x, Tooltip as b } from "ant-design-vue";
3
+ import { IconApAdLineAnnotation as h, IconApAdFillWarn as z, IconApAdFillExecution as N } from "@aplus-frontend/icon";
4
4
  import "../../config-provider/index.mjs";
5
- import { omit as x } from "lodash-unified";
5
+ import { omit as v } from "lodash-unified";
6
6
  import "./style.css";
7
- import { useNamespace as y } from "../../config-provider/hooks/use-namespace.mjs";
8
- const F = /* @__PURE__ */ n({
7
+ import { useNamespace as B } from "../../config-provider/hooks/use-namespace.mjs";
8
+ const P = /* @__PURE__ */ m({
9
9
  name: "ApLabel",
10
10
  __name: "ApLabel",
11
11
  props: {
@@ -24,29 +24,47 @@ const F = /* @__PURE__ */ n({
24
24
  title: {},
25
25
  helpMessage: {},
26
26
  placement: { default: "top" },
27
- iconColor: { default: "#FF4D4F" }
27
+ iconColor: { default: "#FF4D4F" },
28
+ iconType: { default: "question" },
29
+ iconSize: { default: 16 },
30
+ slotName: {}
28
31
  },
29
- setup(r) {
30
- const e = r, { b: a } = y("ap-label");
31
- return (_, b) => (o(), p("div", {
32
- class: s([t(a)()])
32
+ setup(p) {
33
+ const a = u(() => ({
34
+ color: e.iconColor,
35
+ "font-size": e.iconSize + "px",
36
+ "margin-left": "6px"
37
+ })), e = p, { b: i } = B("ap-label");
38
+ return (c, F) => (o(), s("div", {
39
+ class: f([t(i)()])
33
40
  }, [
34
- l(t(C), m(c(t(x)(e, ["helpMessage", "placement", "iconColor"]))), null, 16),
35
- e.helpMessage ? (o(), i(t(g), {
36
- key: 0,
37
- placement: e.placement,
38
- title: e.helpMessage
39
- }, {
40
- default: u(() => [
41
- l(t(h), {
42
- style: f({ color: e.iconColor, marginLeft: "6px" })
43
- }, null, 8, ["style"])
44
- ]),
45
- _: 1
46
- }, 8, ["placement", "title"])) : d("", !0)
41
+ d(t(x), y(A(t(v)(e, ["helpMessage", "placement", "iconColor"]))), null, 16),
42
+ e.slotName ? C(c.$slots, e.slotName, { key: 0 }) : (o(), s(g, { key: 1 }, [
43
+ e.helpMessage ? (o(), l(t(b), {
44
+ key: 0,
45
+ placement: e.placement,
46
+ title: e.helpMessage
47
+ }, {
48
+ default: k(() => [
49
+ e.iconType === "question" ? (o(), l(t(h), {
50
+ key: 0,
51
+ style: r(a.value)
52
+ }, null, 8, ["style"])) : n("", !0),
53
+ e.iconType === "warning" ? (o(), l(t(z), {
54
+ key: 1,
55
+ style: r(a.value)
56
+ }, null, 8, ["style"])) : n("", !0),
57
+ e.iconType === "ellipsis" ? (o(), l(t(N), {
58
+ key: 2,
59
+ style: r(a.value)
60
+ }, null, 8, ["style"])) : n("", !0)
61
+ ]),
62
+ _: 1
63
+ }, 8, ["placement", "title"])) : n("", !0)
64
+ ], 64))
47
65
  ], 2));
48
66
  }
49
67
  });
50
68
  export {
51
- F as default
69
+ P as default
52
70
  };
@@ -1,8 +1,11 @@
1
1
  import { BadgeProps } from 'ant-design-vue';
2
2
  import { TooltipPlacement } from 'ant-design-vue/es/Tooltip';
3
3
 
4
- export type ApLabelProps = BadgeProps & {
5
- helpMessage?: string;
4
+ export type ApLabelProps = BadgeProps & Partial<{
5
+ helpMessage: string;
6
6
  placement: TooltipPlacement;
7
7
  iconColor: string;
8
- };
8
+ iconType: 'question' | 'warning' | 'ellipsis';
9
+ iconSize: number;
10
+ slotName: string;
11
+ }>;
@@ -1,4 +1,5 @@
1
1
  .aplus-ap-label {
2
- display: inline-block;
2
+ display: flex;
3
+ align-items: center;
3
4
  font-size: 14px;
4
5
  }
@@ -356,12 +356,15 @@ export declare const ApLabel: {
356
356
  };
357
357
  placement: {
358
358
  type: PropType<TooltipPlacement>;
359
- required: true;
360
359
  default: string;
361
360
  };
362
361
  title: {
363
362
  type: PropType<string>;
364
363
  };
364
+ iconType: {
365
+ type: PropType<"ellipsis" | "warning" | "question">;
366
+ default: string;
367
+ };
365
368
  size: {
366
369
  type: PropType<"default" | "small">;
367
370
  };
@@ -390,14 +393,20 @@ export declare const ApLabel: {
390
393
  numberStyle: {
391
394
  type: PropType<CSSProperties>;
392
395
  };
396
+ iconSize: {
397
+ type: PropType<number>;
398
+ default: number;
399
+ };
393
400
  helpMessage: {
394
401
  type: PropType<string>;
395
402
  };
396
403
  iconColor: {
397
404
  type: PropType<string>;
398
- required: true;
399
405
  default: string;
400
406
  };
407
+ slotName: {
408
+ type: PropType<string>;
409
+ };
401
410
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
402
411
  text: {
403
412
  type: PropType<any>;
@@ -411,12 +420,15 @@ export declare const ApLabel: {
411
420
  };
412
421
  placement: {
413
422
  type: PropType<TooltipPlacement>;
414
- required: true;
415
423
  default: string;
416
424
  };
417
425
  title: {
418
426
  type: PropType<string>;
419
427
  };
428
+ iconType: {
429
+ type: PropType<"ellipsis" | "warning" | "question">;
430
+ default: string;
431
+ };
420
432
  size: {
421
433
  type: PropType<"default" | "small">;
422
434
  };
@@ -445,18 +457,26 @@ export declare const ApLabel: {
445
457
  numberStyle: {
446
458
  type: PropType<CSSProperties>;
447
459
  };
460
+ iconSize: {
461
+ type: PropType<number>;
462
+ default: number;
463
+ };
448
464
  helpMessage: {
449
465
  type: PropType<string>;
450
466
  };
451
467
  iconColor: {
452
468
  type: PropType<string>;
453
- required: true;
454
469
  default: string;
455
470
  };
471
+ slotName: {
472
+ type: PropType<string>;
473
+ };
456
474
  }>>, {
457
475
  text: any;
458
476
  placement: TooltipPlacement;
477
+ iconType: "ellipsis" | "warning" | "question";
459
478
  status: "success" | "error" | "default" | "warning" | "processing";
479
+ iconSize: number;
460
480
  iconColor: string;
461
481
  }, true, {}, {}, {
462
482
  P: {};
@@ -478,12 +498,15 @@ export declare const ApLabel: {
478
498
  };
479
499
  placement: {
480
500
  type: PropType<TooltipPlacement>;
481
- required: true;
482
501
  default: string;
483
502
  };
484
503
  title: {
485
504
  type: PropType<string>;
486
505
  };
506
+ iconType: {
507
+ type: PropType<"ellipsis" | "warning" | "question">;
508
+ default: string;
509
+ };
487
510
  size: {
488
511
  type: PropType<"default" | "small">;
489
512
  };
@@ -512,18 +535,26 @@ export declare const ApLabel: {
512
535
  numberStyle: {
513
536
  type: PropType<CSSProperties>;
514
537
  };
538
+ iconSize: {
539
+ type: PropType<number>;
540
+ default: number;
541
+ };
515
542
  helpMessage: {
516
543
  type: PropType<string>;
517
544
  };
518
545
  iconColor: {
519
546
  type: PropType<string>;
520
- required: true;
521
547
  default: string;
522
548
  };
549
+ slotName: {
550
+ type: PropType<string>;
551
+ };
523
552
  }>>, {}, {}, {}, {}, {
524
553
  text: any;
525
554
  placement: TooltipPlacement;
555
+ iconType: "ellipsis" | "warning" | "question";
526
556
  status: "success" | "error" | "default" | "warning" | "processing";
557
+ iconSize: number;
527
558
  iconColor: string;
528
559
  }>;
529
560
  __isFragment?: undefined;
@@ -542,12 +573,15 @@ export declare const ApLabel: {
542
573
  };
543
574
  placement: {
544
575
  type: PropType<TooltipPlacement>;
545
- required: true;
546
576
  default: string;
547
577
  };
548
578
  title: {
549
579
  type: PropType<string>;
550
580
  };
581
+ iconType: {
582
+ type: PropType<"ellipsis" | "warning" | "question">;
583
+ default: string;
584
+ };
551
585
  size: {
552
586
  type: PropType<"default" | "small">;
553
587
  };
@@ -576,20 +610,30 @@ export declare const ApLabel: {
576
610
  numberStyle: {
577
611
  type: PropType<CSSProperties>;
578
612
  };
613
+ iconSize: {
614
+ type: PropType<number>;
615
+ default: number;
616
+ };
579
617
  helpMessage: {
580
618
  type: PropType<string>;
581
619
  };
582
620
  iconColor: {
583
621
  type: PropType<string>;
584
- required: true;
585
622
  default: string;
586
623
  };
624
+ slotName: {
625
+ type: PropType<string>;
626
+ };
587
627
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
588
628
  text: any;
589
629
  placement: TooltipPlacement;
630
+ iconType: "ellipsis" | "warning" | "question";
590
631
  status: "success" | "error" | "default" | "warning" | "processing";
632
+ iconSize: number;
591
633
  iconColor: string;
592
- }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
634
+ }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
635
+ $slots: Partial<Record<string, (_: {}) => any>>;
636
+ }) & Plugin & (new (...args: any[]) => {
593
637
  $props: {
594
638
  onClick?: (() => void) | undefined;
595
639
  };
@@ -1,51 +1,51 @@
1
- .aplus-download-wrapper {
1
+ .aplus-ap-download-wrapper {
2
2
  text-wrap: nowrap;
3
3
  display: inline-block;
4
4
  display: flex;
5
5
  }
6
- .aplus-download-inner-wrapper {
6
+ .aplus-ap-download-inner-wrapper {
7
7
  display: inline-block;
8
8
  color: var(--download-main-color);
9
9
  cursor: pointer;
10
10
  display: flex;
11
11
  align-items: center;
12
12
  }
13
- .aplus-download-inner-wrapper .icon {
13
+ .aplus-ap-download-inner-wrapper .icon {
14
14
  position: relative;
15
15
  font-size: 18px;
16
16
  }
17
- .aplus-download-inner-wrapper .text {
17
+ .aplus-ap-download-inner-wrapper .text {
18
18
  margin-left: 5px;
19
19
  }
20
- .aplus-download-inner-wrapper:hover {
20
+ .aplus-ap-download-inner-wrapper:hover {
21
21
  color: var(--download-main-color-opacity);
22
22
  }
23
- .aplus-download-inner-wrapper--large {
23
+ .aplus-ap-download-inner-wrapper--large {
24
24
  line-height: 26px;
25
25
  height: 28px;
26
26
  font-size: 16px;
27
27
  }
28
- .aplus-download-inner-wrapper--middle {
28
+ .aplus-ap-download-inner-wrapper--middle {
29
29
  line-height: 22px;
30
30
  height: 24px;
31
31
  font-size: 14px;
32
32
  }
33
- .aplus-download-inner-wrapper--small {
33
+ .aplus-ap-download-inner-wrapper--small {
34
34
  line-height: 19px;
35
35
  height: 20px;
36
36
  font-size: 12px;
37
37
  }
38
- .aplus-download-inner-wrapper--disabled {
38
+ .aplus-ap-download-inner-wrapper--disabled {
39
39
  color: #8896b0;
40
40
  cursor: not-allowed;
41
41
  }
42
- .aplus-download-inner-wrapper--disabled:hover {
42
+ .aplus-ap-download-inner-wrapper--disabled:hover {
43
43
  color: #8896b0;
44
44
  }
45
- .aplus-download-inner-wrapper--disabled-admin {
45
+ .aplus-ap-download-inner-wrapper--disabled-admin {
46
46
  cursor: not-allowed;
47
47
  color: #999;
48
48
  }
49
- .aplus-download-inner-wrapper--disabled-admin:hover {
49
+ .aplus-ap-download-inner-wrapper--disabled-admin:hover {
50
50
  color: #999;
51
51
  }
@@ -1,4 +1,5 @@
1
1
  .aplus-ap-label {
2
- display: inline-block;
2
+ display: flex;
3
+ align-items: center;
3
4
  font-size: 14px;
4
5
  }
@@ -1 +1 @@
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:n,bm:a}=_.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),b=parseInt(e.slice(5,7),16),S=Math.round(r*255).toString(16).padStart(2,"0");return`#${g.toString(16).padStart(2,"0")}${w.toString(16).padStart(2,"0")}${b.toString(16).padStart(2,"0")}${S}`}const d=t.computed(()=>({"--download-main-color":s.color,"--download-main-color-opacity":c(s.color,.6)})),p=t.computed(()=>[n("wrapper"),a("wrapper",s.size)].filter(Boolean)),u=t.computed(()=>{const e=[n("inner-wrapper"),a("inner-wrapper",s.size)];return s.disabled&&(l.value==="aplus"?e.push(a("inner-wrapper","disabled")):e.push(a("inner-wrapper","disabled-admin"))),e});t.watch(()=>s.disabled,()=>{s.disabled||o.useOssInit(s.getOssAccess)},{flush:"sync"});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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../config-provider/index.js");const _=require("./hooks/index.js");require("./style/ap-download.css");const $=require("../config-provider/hooks/use-locale.js"),y=require("../config-provider/hooks/use-global-config.js"),v=require("../config-provider/hooks/use-namespace.js"),z={class:"icon"},N={class:"text"},q=t.defineComponent({name:"ApDownload",__name:"ap-download",props:{text:{},color:{default:"#0070FF"},size:{default:"middle"},disabled:{type:Boolean,default:!1},fileName:{},getOssAccess:{}},setup(o){const{lang:l}=$.useLocale(),i=t.computed(()=>l.value==="zh-cn"?"zh_CN":"en_US"),n=o,c=y.useGlobalConfig("uiMode"),{b:s,bm:a}=v.useNamespace("ap-download");function p(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":n.color,"--download-main-color-opacity":p(n.color,.6)})),u=t.computed(()=>[s("wrapper"),a("wrapper",n.size)].filter(Boolean)),m=t.computed(()=>{const e=[s("inner-wrapper"),a("inner-wrapper",n.size)];return n.disabled&&(c.value==="aplus"?e.push(a("inner-wrapper","disabled")):e.push(a("inner-wrapper","disabled-admin"))),e}),f=async()=>{n.disabled||await(await _.useOssInit(n.getOssAccess,t.unref(i))).downloadFile(n.fileName)};return(e,r)=>(t.openBlock(),t.createElementBlock("span",{style:t.normalizeStyle(d.value),class:t.normalizeClass(u.value),onClick:f},[t.createElementVNode("span",{class:t.normalizeClass(m.value)},[t.createElementVNode("span",z,[t.renderSlot(e.$slots,"icon")]),t.createElementVNode("span",N,t.toDisplayString(e.text),1)],2)],6))}});exports.default=q;
@@ -1,9 +1,4 @@
1
1
  import { Oss } from '@aplus-frontend/oss';
2
2
 
3
3
  export type { Oss } from '@aplus-frontend/oss';
4
- export declare function useOss(): {
5
- client: Oss;
6
- };
7
- export declare function useOssInit(getOssAccess: any): Promise<{
8
- client: Oss;
9
- }>;
4
+ export declare function useOssInit(getOssAccess: any, Locale: 'zh_CN' | 'en_US'): Promise<Oss | null>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@aplus-frontend/oss");function n(){return{client:t.client}}async function i(e){if(!e)throw new Error("请传入getOssAccess");return await t.client.initOssClient({locale:"zh_CN",getOssAccess:e,onFailure:s=>{throw new Error(typeof(s==null?void 0:s.message)=="string"?s.message:"获取oss临时权限失败")}}),n()}exports.useOss=n;exports.useOssInit=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@aplus-frontend/oss"),t=new Map,n=Symbol("ossInstance");async function c(e,i){if(!e)throw new Error("请传入getOssAccess");if(t.has(n))return t.get(n);const o=await a.client.initOssClient({locale:i,getOssAccess:e,onFailure:s=>{throw new Error(typeof(s==null?void 0:s.message)=="string"?s.message:"获取oss临时权限失败")}});return t.set(n,o),o}exports.useOssInit=c;
@@ -1,14 +1,5 @@
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
+ import { accessCreate } from '@aplus-frontend/oss';
2
+
12
3
  export interface ApDownLoadProps {
13
4
  /**
14
5
  * 标签内容
@@ -28,6 +19,5 @@ export interface ApDownLoadProps {
28
19
  */
29
20
  disabled?: boolean;
30
21
  fileName: string;
31
- getOssAccess: () => Promise<AccessCreate>;
22
+ getOssAccess: () => Promise<accessCreate>;
32
23
  }
33
- export {};
@@ -1,51 +1,51 @@
1
- .aplus-download-wrapper {
1
+ .aplus-ap-download-wrapper {
2
2
  text-wrap: nowrap;
3
3
  display: inline-block;
4
4
  display: flex;
5
5
  }
6
- .aplus-download-inner-wrapper {
6
+ .aplus-ap-download-inner-wrapper {
7
7
  display: inline-block;
8
8
  color: var(--download-main-color);
9
9
  cursor: pointer;
10
10
  display: flex;
11
11
  align-items: center;
12
12
  }
13
- .aplus-download-inner-wrapper .icon {
13
+ .aplus-ap-download-inner-wrapper .icon {
14
14
  position: relative;
15
15
  font-size: 18px;
16
16
  }
17
- .aplus-download-inner-wrapper .text {
17
+ .aplus-ap-download-inner-wrapper .text {
18
18
  margin-left: 5px;
19
19
  }
20
- .aplus-download-inner-wrapper:hover {
20
+ .aplus-ap-download-inner-wrapper:hover {
21
21
  color: var(--download-main-color-opacity);
22
22
  }
23
- .aplus-download-inner-wrapper--large {
23
+ .aplus-ap-download-inner-wrapper--large {
24
24
  line-height: 26px;
25
25
  height: 28px;
26
26
  font-size: 16px;
27
27
  }
28
- .aplus-download-inner-wrapper--middle {
28
+ .aplus-ap-download-inner-wrapper--middle {
29
29
  line-height: 22px;
30
30
  height: 24px;
31
31
  font-size: 14px;
32
32
  }
33
- .aplus-download-inner-wrapper--small {
33
+ .aplus-ap-download-inner-wrapper--small {
34
34
  line-height: 19px;
35
35
  height: 20px;
36
36
  font-size: 12px;
37
37
  }
38
- .aplus-download-inner-wrapper--disabled {
38
+ .aplus-ap-download-inner-wrapper--disabled {
39
39
  color: #8896b0;
40
40
  cursor: not-allowed;
41
41
  }
42
- .aplus-download-inner-wrapper--disabled:hover {
42
+ .aplus-ap-download-inner-wrapper--disabled:hover {
43
43
  color: #8896b0;
44
44
  }
45
- .aplus-download-inner-wrapper--disabled-admin {
45
+ .aplus-ap-download-inner-wrapper--disabled-admin {
46
46
  cursor: not-allowed;
47
47
  color: #999;
48
48
  }
49
- .aplus-download-inner-wrapper--disabled-admin:hover {
49
+ .aplus-ap-download-inner-wrapper--disabled-admin:hover {
50
50
  color: #999;
51
51
  }
@@ -2,22 +2,28 @@ import { ApLabelProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
  import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
4
4
 
5
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApLabelProps>, {
5
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApLabelProps>, {
6
6
  status: string;
7
7
  placement: string;
8
8
  iconColor: string;
9
+ iconType: string;
10
+ iconSize: number;
9
11
  text: string;
10
12
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApLabelProps>, {
11
13
  status: string;
12
14
  placement: string;
13
15
  iconColor: string;
16
+ iconType: string;
17
+ iconSize: number;
14
18
  text: string;
15
19
  }>>>, {
16
20
  text: any;
17
21
  placement: TooltipPlacement;
22
+ iconType: "ellipsis" | "warning" | "question";
18
23
  status: "success" | "error" | "default" | "warning" | "processing";
24
+ iconSize: number;
19
25
  iconColor: string;
20
- }, {}>;
26
+ }, {}>, Partial<Record<string, (_: {}) => any>>>;
21
27
  export default _default;
22
28
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
29
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -36,3 +42,8 @@ type __VLS_WithDefaults<P, D> = {
36
42
  type __VLS_Prettify<T> = {
37
43
  [K in keyof T]: T[K];
38
44
  } & {};
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("ant-design-vue"),n=require("@ant-design/icons-vue");require("../../config-provider/index.js");const a=require("lodash-unified");require("./style.css");const s=require("../../config-provider/hooks/use-namespace.js"),u=e.defineComponent({name:"ApLabel",__name:"ApLabel",props:{count:{},showZero:{type:Boolean},overflowCount:{},dot:{type:Boolean},prefixCls:{},scrollNumberPrefixCls:{},status:{default:"default"},size:{},color:{},text:{default:""},offset:{},numberStyle:{},title:{},helpMessage:{},placement:{default:"top"},iconColor:{default:"#FF4D4F"}},setup(l){const t=l,{b:r}=s.useNamespace("ap-label");return(c,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(r)()])},[e.createVNode(e.unref(o.Badge),e.normalizeProps(e.guardReactiveProps(e.unref(a.omit)(t,["helpMessage","placement","iconColor"]))),null,16),t.helpMessage?(e.openBlock(),e.createBlock(e.unref(o.Tooltip),{key:0,placement:t.placement,title:t.helpMessage},{default:e.withCtx(()=>[e.createVNode(e.unref(n.QuestionCircleOutlined),{style:e.normalizeStyle({color:t.iconColor,marginLeft:"6px"})},null,8,["style"])]),_:1},8,["placement","title"])):e.createCommentVNode("",!0)],2))}});exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("ant-design-vue"),l=require("@aplus-frontend/icon");require("../../config-provider/index.js");const s=require("lodash-unified");require("./style.css");const u=require("../../config-provider/hooks/use-namespace.js"),i=e.defineComponent({name:"ApLabel",__name:"ApLabel",props:{count:{},showZero:{type:Boolean},overflowCount:{},dot:{type:Boolean},prefixCls:{},scrollNumberPrefixCls:{},status:{default:"default"},size:{},color:{},text:{default:""},offset:{},numberStyle:{},title:{},helpMessage:{},placement:{default:"top"},iconColor:{default:"#FF4D4F"},iconType:{default:"question"},iconSize:{default:16},slotName:{}},setup(r){const t=e.computed(()=>({color:o.iconColor,"font-size":o.iconSize+"px","margin-left":"6px"})),o=r,{b:a}=u.useNamespace("ap-label");return(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(a)()])},[e.createVNode(e.unref(n.Badge),e.normalizeProps(e.guardReactiveProps(e.unref(s.omit)(o,["helpMessage","placement","iconColor"]))),null,16),o.slotName?e.renderSlot(c.$slots,o.slotName,{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.helpMessage?(e.openBlock(),e.createBlock(e.unref(n.Tooltip),{key:0,placement:o.placement,title:o.helpMessage},{default:e.withCtx(()=>[o.iconType==="question"?(e.openBlock(),e.createBlock(e.unref(l.IconApAdLineAnnotation),{key:0,style:e.normalizeStyle(t.value)},null,8,["style"])):e.createCommentVNode("",!0),o.iconType==="warning"?(e.openBlock(),e.createBlock(e.unref(l.IconApAdFillWarn),{key:1,style:e.normalizeStyle(t.value)},null,8,["style"])):e.createCommentVNode("",!0),o.iconType==="ellipsis"?(e.openBlock(),e.createBlock(e.unref(l.IconApAdFillExecution),{key:2,style:e.normalizeStyle(t.value)},null,8,["style"])):e.createCommentVNode("",!0)]),_:1},8,["placement","title"])):e.createCommentVNode("",!0)],64))],2))}});exports.default=i;
@@ -1,8 +1,11 @@
1
1
  import { BadgeProps } from 'ant-design-vue';
2
2
  import { TooltipPlacement } from 'ant-design-vue/es/Tooltip';
3
3
 
4
- export type ApLabelProps = BadgeProps & {
5
- helpMessage?: string;
4
+ export type ApLabelProps = BadgeProps & Partial<{
5
+ helpMessage: string;
6
6
  placement: TooltipPlacement;
7
7
  iconColor: string;
8
- };
8
+ iconType: 'question' | 'warning' | 'ellipsis';
9
+ iconSize: number;
10
+ slotName: string;
11
+ }>;
@@ -1,4 +1,5 @@
1
1
  .aplus-ap-label {
2
- display: inline-block;
2
+ display: flex;
3
+ align-items: center;
3
4
  font-size: 14px;
4
5
  }
@@ -356,12 +356,15 @@ export declare const ApLabel: {
356
356
  };
357
357
  placement: {
358
358
  type: PropType<TooltipPlacement>;
359
- required: true;
360
359
  default: string;
361
360
  };
362
361
  title: {
363
362
  type: PropType<string>;
364
363
  };
364
+ iconType: {
365
+ type: PropType<"ellipsis" | "warning" | "question">;
366
+ default: string;
367
+ };
365
368
  size: {
366
369
  type: PropType<"default" | "small">;
367
370
  };
@@ -390,14 +393,20 @@ export declare const ApLabel: {
390
393
  numberStyle: {
391
394
  type: PropType<CSSProperties>;
392
395
  };
396
+ iconSize: {
397
+ type: PropType<number>;
398
+ default: number;
399
+ };
393
400
  helpMessage: {
394
401
  type: PropType<string>;
395
402
  };
396
403
  iconColor: {
397
404
  type: PropType<string>;
398
- required: true;
399
405
  default: string;
400
406
  };
407
+ slotName: {
408
+ type: PropType<string>;
409
+ };
401
410
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
402
411
  text: {
403
412
  type: PropType<any>;
@@ -411,12 +420,15 @@ export declare const ApLabel: {
411
420
  };
412
421
  placement: {
413
422
  type: PropType<TooltipPlacement>;
414
- required: true;
415
423
  default: string;
416
424
  };
417
425
  title: {
418
426
  type: PropType<string>;
419
427
  };
428
+ iconType: {
429
+ type: PropType<"ellipsis" | "warning" | "question">;
430
+ default: string;
431
+ };
420
432
  size: {
421
433
  type: PropType<"default" | "small">;
422
434
  };
@@ -445,18 +457,26 @@ export declare const ApLabel: {
445
457
  numberStyle: {
446
458
  type: PropType<CSSProperties>;
447
459
  };
460
+ iconSize: {
461
+ type: PropType<number>;
462
+ default: number;
463
+ };
448
464
  helpMessage: {
449
465
  type: PropType<string>;
450
466
  };
451
467
  iconColor: {
452
468
  type: PropType<string>;
453
- required: true;
454
469
  default: string;
455
470
  };
471
+ slotName: {
472
+ type: PropType<string>;
473
+ };
456
474
  }>>, {
457
475
  text: any;
458
476
  placement: TooltipPlacement;
477
+ iconType: "ellipsis" | "warning" | "question";
459
478
  status: "success" | "error" | "default" | "warning" | "processing";
479
+ iconSize: number;
460
480
  iconColor: string;
461
481
  }, true, {}, {}, {
462
482
  P: {};
@@ -478,12 +498,15 @@ export declare const ApLabel: {
478
498
  };
479
499
  placement: {
480
500
  type: PropType<TooltipPlacement>;
481
- required: true;
482
501
  default: string;
483
502
  };
484
503
  title: {
485
504
  type: PropType<string>;
486
505
  };
506
+ iconType: {
507
+ type: PropType<"ellipsis" | "warning" | "question">;
508
+ default: string;
509
+ };
487
510
  size: {
488
511
  type: PropType<"default" | "small">;
489
512
  };
@@ -512,18 +535,26 @@ export declare const ApLabel: {
512
535
  numberStyle: {
513
536
  type: PropType<CSSProperties>;
514
537
  };
538
+ iconSize: {
539
+ type: PropType<number>;
540
+ default: number;
541
+ };
515
542
  helpMessage: {
516
543
  type: PropType<string>;
517
544
  };
518
545
  iconColor: {
519
546
  type: PropType<string>;
520
- required: true;
521
547
  default: string;
522
548
  };
549
+ slotName: {
550
+ type: PropType<string>;
551
+ };
523
552
  }>>, {}, {}, {}, {}, {
524
553
  text: any;
525
554
  placement: TooltipPlacement;
555
+ iconType: "ellipsis" | "warning" | "question";
526
556
  status: "success" | "error" | "default" | "warning" | "processing";
557
+ iconSize: number;
527
558
  iconColor: string;
528
559
  }>;
529
560
  __isFragment?: undefined;
@@ -542,12 +573,15 @@ export declare const ApLabel: {
542
573
  };
543
574
  placement: {
544
575
  type: PropType<TooltipPlacement>;
545
- required: true;
546
576
  default: string;
547
577
  };
548
578
  title: {
549
579
  type: PropType<string>;
550
580
  };
581
+ iconType: {
582
+ type: PropType<"ellipsis" | "warning" | "question">;
583
+ default: string;
584
+ };
551
585
  size: {
552
586
  type: PropType<"default" | "small">;
553
587
  };
@@ -576,20 +610,30 @@ export declare const ApLabel: {
576
610
  numberStyle: {
577
611
  type: PropType<CSSProperties>;
578
612
  };
613
+ iconSize: {
614
+ type: PropType<number>;
615
+ default: number;
616
+ };
579
617
  helpMessage: {
580
618
  type: PropType<string>;
581
619
  };
582
620
  iconColor: {
583
621
  type: PropType<string>;
584
- required: true;
585
622
  default: string;
586
623
  };
624
+ slotName: {
625
+ type: PropType<string>;
626
+ };
587
627
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
588
628
  text: any;
589
629
  placement: TooltipPlacement;
630
+ iconType: "ellipsis" | "warning" | "question";
590
631
  status: "success" | "error" | "default" | "warning" | "processing";
632
+ iconSize: number;
591
633
  iconColor: string;
592
- }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
634
+ }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
635
+ $slots: Partial<Record<string, (_: {}) => any>>;
636
+ }) & Plugin & (new (...args: any[]) => {
593
637
  $props: {
594
638
  onClick?: (() => void) | undefined;
595
639
  };
@@ -1,51 +1,51 @@
1
- .aplus-download-wrapper {
1
+ .aplus-ap-download-wrapper {
2
2
  text-wrap: nowrap;
3
3
  display: inline-block;
4
4
  display: flex;
5
5
  }
6
- .aplus-download-inner-wrapper {
6
+ .aplus-ap-download-inner-wrapper {
7
7
  display: inline-block;
8
8
  color: var(--download-main-color);
9
9
  cursor: pointer;
10
10
  display: flex;
11
11
  align-items: center;
12
12
  }
13
- .aplus-download-inner-wrapper .icon {
13
+ .aplus-ap-download-inner-wrapper .icon {
14
14
  position: relative;
15
15
  font-size: 18px;
16
16
  }
17
- .aplus-download-inner-wrapper .text {
17
+ .aplus-ap-download-inner-wrapper .text {
18
18
  margin-left: 5px;
19
19
  }
20
- .aplus-download-inner-wrapper:hover {
20
+ .aplus-ap-download-inner-wrapper:hover {
21
21
  color: var(--download-main-color-opacity);
22
22
  }
23
- .aplus-download-inner-wrapper--large {
23
+ .aplus-ap-download-inner-wrapper--large {
24
24
  line-height: 26px;
25
25
  height: 28px;
26
26
  font-size: 16px;
27
27
  }
28
- .aplus-download-inner-wrapper--middle {
28
+ .aplus-ap-download-inner-wrapper--middle {
29
29
  line-height: 22px;
30
30
  height: 24px;
31
31
  font-size: 14px;
32
32
  }
33
- .aplus-download-inner-wrapper--small {
33
+ .aplus-ap-download-inner-wrapper--small {
34
34
  line-height: 19px;
35
35
  height: 20px;
36
36
  font-size: 12px;
37
37
  }
38
- .aplus-download-inner-wrapper--disabled {
38
+ .aplus-ap-download-inner-wrapper--disabled {
39
39
  color: #8896b0;
40
40
  cursor: not-allowed;
41
41
  }
42
- .aplus-download-inner-wrapper--disabled:hover {
42
+ .aplus-ap-download-inner-wrapper--disabled:hover {
43
43
  color: #8896b0;
44
44
  }
45
- .aplus-download-inner-wrapper--disabled-admin {
45
+ .aplus-ap-download-inner-wrapper--disabled-admin {
46
46
  cursor: not-allowed;
47
47
  color: #999;
48
48
  }
49
- .aplus-download-inner-wrapper--disabled-admin:hover {
49
+ .aplus-ap-download-inner-wrapper--disabled-admin:hover {
50
50
  color: #999;
51
51
  }
@@ -1,4 +1,5 @@
1
1
  .aplus-ap-label {
2
- display: inline-block;
2
+ display: flex;
3
+ align-items: center;
3
4
  font-size: 14px;
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "files": [
@@ -59,14 +59,14 @@
59
59
  "lodash-unified": "^1.0.3",
60
60
  "sortablejs": "^1.15.2",
61
61
  "mime": "^4.0.3",
62
- "@aplus-frontend/hooks": "1.0.7",
63
- "@aplus-frontend/utils": "1.0.25"
62
+ "@aplus-frontend/utils": "1.0.25",
63
+ "@aplus-frontend/hooks": "1.0.7"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "ant-design-vue": "^4.2.1",
67
67
  "vue": "^3.4.29",
68
- "@aplus-frontend/oss": "1.0.18",
69
- "@aplus-frontend/icon": "^1.0.17"
68
+ "@aplus-frontend/oss": "^1.0.19",
69
+ "@aplus-frontend/icon": "^1.0.20"
70
70
  },
71
71
  "scripts": {
72
72
  "pub:cb": "pnpm publish --access public",