@aplus-frontend/ui 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/es/src/ap-table/ap-table.vue.d.ts +1 -5
  2. package/es/src/ap-table/ap-table.vue.mjs +139 -125
  3. package/es/src/ap-table/interface.d.ts +16 -4
  4. package/es/src/ap-table/utils.d.ts +30 -1
  5. package/es/src/ap-table/utils.mjs +61 -41
  6. package/es/src/ap-tag/style/ap-tag-group.css +1 -0
  7. package/es/src/ap-tag/style/ap-tag.css +1 -0
  8. package/es/src/pro-form/components/form-action.vue2.mjs +37 -35
  9. package/es/src/pro-form/hooks/use-advanced.mjs +45 -45
  10. package/es/src/pro-table/style/pro-table.css +3 -0
  11. package/es/src/theme/antd-global-overwrite/admin/index.css +35 -20
  12. package/es/src/theme/antd-global-overwrite/admin/table.css +35 -20
  13. package/es/src/theme/antd-global-overwrite/aplus/index.css +35 -20
  14. package/es/src/theme/antd-global-overwrite/aplus/table.css +35 -20
  15. package/es/src/theme/ap-tag/ap-tag-group.css +1 -0
  16. package/es/src/theme/ap-tag/ap-tag.css +1 -0
  17. package/es/src/theme/pro-table/pro-table.css +3 -0
  18. package/lib/src/ap-table/ap-table.vue.d.ts +1 -5
  19. package/lib/src/ap-table/ap-table.vue.js +1 -1
  20. package/lib/src/ap-table/interface.d.ts +16 -4
  21. package/lib/src/ap-table/utils.d.ts +30 -1
  22. package/lib/src/ap-table/utils.js +1 -1
  23. package/lib/src/ap-tag/style/ap-tag-group.css +1 -0
  24. package/lib/src/ap-tag/style/ap-tag.css +1 -0
  25. package/lib/src/pro-form/components/form-action.vue2.js +1 -1
  26. package/lib/src/pro-form/hooks/use-advanced.js +1 -1
  27. package/lib/src/pro-table/style/pro-table.css +3 -0
  28. package/lib/src/theme/antd-global-overwrite/admin/index.css +35 -20
  29. package/lib/src/theme/antd-global-overwrite/admin/table.css +35 -20
  30. package/lib/src/theme/antd-global-overwrite/aplus/index.css +35 -20
  31. package/lib/src/theme/antd-global-overwrite/aplus/table.css +35 -20
  32. package/lib/src/theme/ap-tag/ap-tag-group.css +1 -0
  33. package/lib/src/theme/ap-tag/ap-tag.css +1 -0
  34. package/lib/src/theme/pro-table/pro-table.css +3 -0
  35. package/package.json +1 -1
@@ -1,12 +1,13 @@
1
- import { defineComponent as T, computed as u, openBlock as a, createBlock as s, unref as e, normalizeProps as z, mergeProps as p, withCtx as o, createElementVNode as V, normalizeStyle as $, createVNode as C, renderSlot as i, createTextVNode as m, toDisplayString as d, createCommentVNode as l, normalizeClass as j } from "vue";
2
- import { Col as F, Form as R } from "ant-design-vue";
3
- import { BaseButton as B } from "../../base-button/index.mjs";
4
- import { BasicArrow as G } from "../../basic/index.mjs";
5
- import { useFormContext as P } from "../hooks/use-form-context.mjs";
1
+ import { defineComponent as T, computed as s, openBlock as a, createBlock as l, unref as e, normalizeProps as z, mergeProps as m, withCtx as o, createElementVNode as V, normalizeStyle as A, createVNode as g, renderSlot as i, createTextVNode as p, toDisplayString as d, createCommentVNode as r, normalizeClass as $ } from "vue";
2
+ import { Col as F, Form as G } from "ant-design-vue";
3
+ import { BaseButton as f } from "../../base-button/index.mjs";
4
+ import { BasicArrow as R } from "../../basic/index.mjs";
5
+ import { useFormContext as j } from "../hooks/use-form-context.mjs";
6
6
  import "../../config-provider/index.mjs";
7
7
  import "./style/form-action.css";
8
- import { useLocale as q } from "../../config-provider/hooks/use-locale.mjs";
9
- import { useNamespace as D } from "../../config-provider/hooks/use-namespace.mjs";
8
+ import { useGlobalConfig as P } from "../../config-provider/hooks/use-global-config.mjs";
9
+ import { useLocale as W } from "../../config-provider/hooks/use-locale.mjs";
10
+ import { useNamespace as q } from "../../config-provider/hooks/use-namespace.mjs";
10
11
  const X = /* @__PURE__ */ T({
11
12
  name: "BasicFormAction",
12
13
  __name: "form-action",
@@ -23,75 +24,76 @@ const X = /* @__PURE__ */ T({
23
24
  hideAdvanceBtn: { type: Boolean }
24
25
  },
25
26
  emits: ["toggle-advanced"],
26
- setup(h, { emit: O }) {
27
- const r = h, b = O, { t: n } = q(), { em: c } = D("form-action"), { resetAction: k, submitAction: w } = P(), f = u(() => {
28
- const { showAdvancedButton: t, actionSpan: A, actionColOptions: x } = r, g = 24 - A, N = t ? { span: g < 6 ? 24 : g } : {};
27
+ setup(h, { emit: C }) {
28
+ const u = h, b = C, O = P("uiMode"), k = s(() => O.value === "aplus" ? {} : {
29
+ color: "#34b77c"
30
+ }), { t: n } = W(), { em: c } = q("form-action"), { resetAction: w, submitAction: x } = j(), B = s(() => {
31
+ const { actionColOptions: t } = u;
29
32
  return {
30
- style: { textAlign: "right" },
31
- span: t ? 6 : 4,
32
- ...N,
33
- ...x
33
+ style: { textAlign: "right", flex: 1, maxWidth: "100%", minWidth: "25%" },
34
+ ...t
34
35
  };
35
- }), v = u(() => Object.assign(
36
+ }), y = s(() => Object.assign(
36
37
  {
37
38
  text: n("ap.common.resetText")
38
39
  },
39
- r.resetButtonOptions
40
- )), y = u(() => Object.assign(
40
+ u.resetButtonOptions
41
+ )), v = s(() => Object.assign(
41
42
  {
42
43
  text: n("ap.common.queryText")
43
44
  },
44
- r.submitButtonOptions
45
+ u.submitButtonOptions
45
46
  ));
46
47
  function S() {
47
48
  b("toggle-advanced");
48
49
  }
49
- return (t, A) => t.showActionButtonGroup ? (a(), s(e(F), z(p({ key: 0 }, f.value)), {
50
+ return (t, N) => t.showActionButtonGroup ? (a(), l(e(F), z(m({ key: 0 }, B.value)), {
50
51
  default: o(() => [
51
52
  V("div", {
52
- style: $([{ width: "100%" }, { textAlign: f.value.style.textAlign }])
53
+ style: A([{ width: "100%" }, { textAlign: B.value.style.textAlign }])
53
54
  }, [
54
- C(e(R).Item, null, {
55
+ g(e(G).Item, null, {
55
56
  default: o(() => [
56
57
  i(t.$slots, "resetBefore"),
57
- t.showResetButton ? (a(), s(e(B), p({
58
+ t.showResetButton ? (a(), l(e(f), m({
58
59
  key: 0,
59
60
  type: "default",
60
61
  class: e(c)("button", "space")
61
- }, v.value, { onClick: e(k) }), {
62
+ }, y.value, { onClick: e(w) }), {
62
63
  default: o(() => [
63
- m(d(v.value.text), 1)
64
+ p(d(y.value.text), 1)
64
65
  ]),
65
66
  _: 1
66
- }, 16, ["class", "onClick"])) : l("", !0),
67
+ }, 16, ["class", "onClick"])) : r("", !0),
67
68
  i(t.$slots, "submitBefore"),
68
- t.showSubmitButton ? (a(), s(e(B), p({
69
+ t.showSubmitButton ? (a(), l(e(f), m({
69
70
  key: 1,
70
71
  type: "primary",
71
72
  class: e(c)("button", "space")
72
- }, y.value, { onClick: e(w) }), {
73
+ }, v.value, { onClick: e(x) }), {
73
74
  default: o(() => [
74
- m(d(y.value.text), 1)
75
+ p(d(v.value.text), 1)
75
76
  ]),
76
77
  _: 1
77
- }, 16, ["class", "onClick"])) : l("", !0),
78
+ }, 16, ["class", "onClick"])) : r("", !0),
78
79
  i(t.$slots, "advanceBefore"),
79
- t.showAdvancedButton && !t.hideAdvanceBtn ? (a(), s(e(B), {
80
+ t.showAdvancedButton && !t.hideAdvanceBtn ? (a(), l(e(f), {
80
81
  key: 2,
81
82
  type: "link",
82
83
  size: "small",
84
+ style: A(k.value),
83
85
  onClick: S
84
86
  }, {
85
87
  default: o(() => [
86
- m(d(t.isAdvanced ? e(n)("ap.common.closeText") : e(n)("ap.common.expandText")) + " ", 1),
87
- C(e(G), {
88
- class: j(e(c)("item", "space")),
88
+ p(d(t.isAdvanced ? e(n)("ap.common.closeText") : e(n)("ap.common.expandText")) + " ", 1),
89
+ g(e(R), {
90
+ class: $(e(c)("item", "space")),
89
91
  expand: !t.isAdvanced,
90
92
  up: ""
91
93
  }, null, 8, ["class", "expand"])
92
94
  ]),
93
95
  _: 1
94
- })) : l("", !0),
96
+ }, 8, ["style"])) : r("", !0),
95
97
  i(t.$slots, "advanceAfter")
96
98
  ]),
97
99
  _: 3
@@ -99,7 +101,7 @@ const X = /* @__PURE__ */ T({
99
101
  ], 4)
100
102
  ]),
101
103
  _: 3
102
- }, 16)) : l("", !0);
104
+ }, 16)) : r("", !0);
103
105
  }
104
106
  });
105
107
  export {
@@ -1,79 +1,79 @@
1
- import { getCurrentInstance as X, computed as g, unref as d, watch as F, shallowReactive as N } from "vue";
2
- import { isNumber as U, isObject as _, isBoolean as j, isFunction as k } from "lodash-unified";
1
+ import { getCurrentInstance as N, computed as T, unref as d, watch as X, shallowReactive as g } from "vue";
2
+ import { isNumber as F, isObject as U, isBoolean as j, isFunction as k } from "lodash-unified";
3
3
  import { useDebounceFn as D } from "@vueuse/core";
4
4
  import { useBreakpoint as G, ScreenEnum as A } from "./use-break-point.mjs";
5
- const o = 24;
6
- function H({
7
- advanceState: e,
8
- emit: x,
9
- getProps: t,
10
- getSchema: l,
11
- formModel: h,
12
- defaultValueRef: B
5
+ const f = 24, l = 18;
6
+ function J({
7
+ advanceState: s,
8
+ emit: B,
9
+ getProps: o,
10
+ getSchema: h,
11
+ formModel: v,
12
+ defaultValueRef: b
13
13
  }) {
14
- const p = X(), { screenRef: b, realWidthRef: v } = G(), y = g(() => {
15
- if (!e.isAdvanced)
14
+ const p = N(), { screenRef: y, realWidthRef: L } = G(), E = T(() => {
15
+ if (!s.isAdvanced)
16
16
  return 0;
17
- const n = d(t).emptySpan || 0;
18
- if (U(n))
17
+ const n = d(o).emptySpan || 0;
18
+ if (F(n))
19
19
  return n;
20
- if (_(n)) {
21
- const { span: s = 0 } = n, f = d(b);
22
- return n[f.toLowerCase()] || s || 0;
20
+ if (U(n)) {
21
+ const { span: e = 0 } = n, t = d(y);
22
+ return n[t.toLowerCase()] || e || 0;
23
23
  }
24
24
  return 0;
25
- }), W = D(E, 30);
26
- F(
25
+ }), R = D(W, 30);
26
+ X(
27
27
  [
28
- () => d(l),
29
- () => e.isAdvanced,
30
- () => d(v)
28
+ () => d(h),
29
+ () => s.isAdvanced,
30
+ () => d(L)
31
31
  ],
32
32
  () => {
33
- const { showAdvancedButton: n } = d(t);
34
- n && W();
33
+ const { showAdvancedButton: n } = d(o);
34
+ n && R();
35
35
  },
36
36
  { immediate: !0 }
37
37
  );
38
- function I(n, s = 0, f = !1) {
39
- const c = d(v), i = parseInt(n.md) || parseInt(n.xs) || parseInt(n.sm) || n.span || o, r = parseInt(n.lg) || i, a = parseInt(n.xl) || r, u = parseInt(n.xxl) || a;
40
- return c <= A.LG ? s += i : c < A.XL ? s += r : c < A.XXL ? s += a : s += u, f ? (e.hideAdvanceBtn = !1, s <= o * 2 ? (e.hideAdvanceBtn = !0, e.isAdvanced = !0) : s > o * 2 && s <= o * (d(t).autoAdvancedLine || 3) ? e.hideAdvanceBtn = !1 : e.isLoad || (e.isLoad = !0, e.isAdvanced = !e.isAdvanced), { isAdvanced: e.isAdvanced, itemColSum: s }) : s > o * (d(t).alwaysShowLines || 1) ? { isAdvanced: e.isAdvanced, itemColSum: s } : { isAdvanced: !0, itemColSum: s };
38
+ function I(n, e = 0, t = !1) {
39
+ const c = d(L), i = parseInt(n.md) || parseInt(n.xs) || parseInt(n.sm) || n.span || f, r = parseInt(n.lg) || i, a = parseInt(n.xl) || r, u = parseInt(n.xxl) || a;
40
+ return c <= A.LG ? e += i : c < A.XL ? e += r : c < A.XXL ? e += a : e += u, t ? (s.hideAdvanceBtn = !1, e <= f + l ? (s.hideAdvanceBtn = !0, s.isAdvanced = !0) : e > f + l && e <= f * (d(o).autoAdvancedLine || 3) ? s.hideAdvanceBtn = !1 : s.isLoad || (s.isLoad = !0, s.isAdvanced = !0), { isAdvanced: s.isAdvanced, itemColSum: e }) : e > l * (d(o).alwaysShowLines || 1) ? { isAdvanced: s.isAdvanced, itemColSum: e } : { isAdvanced: !0, itemColSum: e };
41
41
  }
42
- const L = N({});
43
- function E() {
42
+ const w = g({});
43
+ function W() {
44
44
  var c;
45
- let n = 0, s = 0;
46
- const { baseColProps: f = {} } = d(t);
47
- for (const i of d(l)) {
45
+ let n = 0, e = 0;
46
+ const { baseColProps: t = {} } = d(o);
47
+ for (const i of d(h)) {
48
48
  const { show: r, colProps: a } = i;
49
49
  let u = !0;
50
50
  if (j(r) && (u = r), k(r) && (u = r({
51
51
  schema: i,
52
- model: h,
52
+ model: v,
53
53
  field: i.field,
54
54
  values: {
55
- ...d(B),
56
- ...h
55
+ ...d(b),
56
+ ...v
57
57
  }
58
- })), u && (a || f)) {
59
- const { itemColSum: R, isAdvanced: w } = I(
60
- { ...f, ...a },
58
+ })), u && (a || t)) {
59
+ const { itemColSum: _, isAdvanced: x } = I(
60
+ { ...t, ...a },
61
61
  n
62
62
  );
63
- n = R || 0, w && (s = n), L[i.field] = w;
63
+ n = _ || 0, x && (e = n), w[i.field] = x;
64
64
  }
65
65
  }
66
- (c = p == null ? void 0 : p.proxy) == null || c.$forceUpdate(), e.actionSpan = s % o + d(y), I(
67
- d(t).actionColOptions || { span: o },
66
+ (c = p == null ? void 0 : p.proxy) == null || c.$forceUpdate(), s.actionSpan = e % f + d(E), I(
67
+ d(o).actionColOptions || { span: f },
68
68
  n,
69
69
  !0
70
- ), x("advanced-change");
70
+ ), B("advanced-change");
71
71
  }
72
72
  function O() {
73
- e.isAdvanced = !e.isAdvanced;
73
+ s.isAdvanced = !s.isAdvanced;
74
74
  }
75
- return { handleToggleAdvanced: O, fieldsIsAdvancedMap: L };
75
+ return { handleToggleAdvanced: O, fieldsIsAdvancedMap: w };
76
76
  }
77
77
  export {
78
- H as default
78
+ J as default
79
79
  };
@@ -16,6 +16,9 @@
16
16
  border-radius: 2px;
17
17
  background-color: #fff;
18
18
  }
19
+ .aplus-pro-table-form-container .ant-form .ant-form-item {
20
+ margin-bottom: 16px;
21
+ }
19
22
  .aplus-pro-table-form-container-no-divide .ant-form {
20
23
  border-bottom-left-radius: 0 !important;
21
24
  border-bottom-right-radius: 0 !important;
@@ -442,13 +442,21 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
442
442
  inset-inline-start: 13px;
443
443
  margin: 6px 0;
444
444
  }
445
- .ant-table-wrapper {
445
+ [class$='-basic-table'],
446
+ [class$='-basic-table-form-container'] {
447
+ width: 100%;
448
+ height: 100%;
449
+ }
450
+ [class$='-basic-table'] .ant-table-wrapper,
451
+ [class$='-basic-table-form-container'] .ant-table-wrapper {
446
452
  padding: 12px 16px 16px;
447
453
  background-color: #ffffff;
448
454
  border-radius: 0;
449
455
  }
450
- .ant-table-wrapper .ant-table.ant-table-middle > .ant-table-title,
451
- .ant-table-wrapper .ant-table.ant-table-small > .ant-table-title {
456
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle > .ant-table-title,
457
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle > .ant-table-title,
458
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small > .ant-table-title,
459
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small > .ant-table-title {
452
460
  display: flex;
453
461
  align-items: center;
454
462
  justify-content: space-between;
@@ -456,51 +464,58 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
456
464
  padding: 0 0 12px;
457
465
  border: none;
458
466
  }
459
- .ant-table-wrapper .ant-table {
467
+ [class$='-basic-table'] .ant-table-wrapper .ant-table,
468
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table {
460
469
  width: 100%;
461
470
  overflow-x: hidden;
462
471
  border-radius: 0;
463
472
  }
464
- .ant-table-wrapper .ant-table .ant-table-container {
473
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container,
474
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container {
465
475
  border-radius: 0;
466
476
  }
467
- .ant-table-wrapper .ant-table .ant-table-container table {
477
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container table,
478
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container table {
468
479
  border-radius: 0;
469
480
  }
470
- .ant-table-wrapper .ant-table .ant-table-container table > thead > tr:first-child > *:first-child {
481
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container table > thead > tr:first-child > *:first-child,
482
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container table > thead > tr:first-child > *:first-child {
471
483
  border-radius: 0;
472
484
  }
473
- .ant-table-wrapper .ant-table .ant-table-container .ant-table-header {
485
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header,
486
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header {
474
487
  border-radius: 0;
475
488
  }
476
- .ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody > tr > td {
489
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody > tr > td,
490
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody > tr > td {
477
491
  padding: 13.5px 16px;
478
492
  line-height: 20px;
479
493
  }
480
- .ant-table-wrapper .ant-table .ant-table-container .ant-table-thead > tr > th {
494
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-thead > tr > th,
495
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-thead > tr > th {
481
496
  padding: 13.5px 16px;
482
497
  line-height: 20px;
483
498
  }
484
- .ant-table-wrapper .ant-table-footer {
499
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-footer,
500
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer {
485
501
  padding: 0;
486
502
  }
487
- .ant-table-wrapper .ant-table-footer .ant-table-wrapper {
503
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-footer .ant-table-wrapper,
504
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer .ant-table-wrapper {
488
505
  padding: 0;
489
506
  }
490
- .ant-table-wrapper .ant-table-footer table {
507
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-footer table,
508
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer table {
491
509
  border: none;
492
510
  }
493
- .ant-table-wrapper .ant-table-footer .ant-table-body {
511
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-footer .ant-table-body,
512
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer .ant-table-body {
494
513
  overflow-x: hidden;
495
514
  }
496
- .ant-table-wrapper .ant-table-footer td {
515
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-footer td,
516
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer td {
497
517
  padding: 12px 8px;
498
518
  }
499
- [class$='-basic-table'],
500
- [class$='-basic-table-form-container'] {
501
- width: 100%;
502
- height: 100%;
503
- }
504
519
  [class$='-basic-table-form-container'] {
505
520
  padding: 16px;
506
521
  }
@@ -1,10 +1,18 @@
1
- .ant-table-wrapper {
1
+ [class$='-basic-table'],
2
+ [class$='-basic-table-form-container'] {
3
+ width: 100%;
4
+ height: 100%;
5
+ }
6
+ [class$='-basic-table'] .ant-table-wrapper,
7
+ [class$='-basic-table-form-container'] .ant-table-wrapper {
2
8
  padding: 12px 16px 16px;
3
9
  background-color: #ffffff;
4
10
  border-radius: 0;
5
11
  }
6
- .ant-table-wrapper .ant-table.ant-table-middle > .ant-table-title,
7
- .ant-table-wrapper .ant-table.ant-table-small > .ant-table-title {
12
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle > .ant-table-title,
13
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle > .ant-table-title,
14
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small > .ant-table-title,
15
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small > .ant-table-title {
8
16
  display: flex;
9
17
  align-items: center;
10
18
  justify-content: space-between;
@@ -12,51 +20,58 @@
12
20
  padding: 0 0 12px;
13
21
  border: none;
14
22
  }
15
- .ant-table-wrapper .ant-table {
23
+ [class$='-basic-table'] .ant-table-wrapper .ant-table,
24
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table {
16
25
  width: 100%;
17
26
  overflow-x: hidden;
18
27
  border-radius: 0;
19
28
  }
20
- .ant-table-wrapper .ant-table .ant-table-container {
29
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container,
30
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container {
21
31
  border-radius: 0;
22
32
  }
23
- .ant-table-wrapper .ant-table .ant-table-container table {
33
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container table,
34
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container table {
24
35
  border-radius: 0;
25
36
  }
26
- .ant-table-wrapper .ant-table .ant-table-container table > thead > tr:first-child > *:first-child {
37
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container table > thead > tr:first-child > *:first-child,
38
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container table > thead > tr:first-child > *:first-child {
27
39
  border-radius: 0;
28
40
  }
29
- .ant-table-wrapper .ant-table .ant-table-container .ant-table-header {
41
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header,
42
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header {
30
43
  border-radius: 0;
31
44
  }
32
- .ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody > tr > td {
45
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody > tr > td,
46
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody > tr > td {
33
47
  padding: 13.5px 16px;
34
48
  line-height: 20px;
35
49
  }
36
- .ant-table-wrapper .ant-table .ant-table-container .ant-table-thead > tr > th {
50
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-thead > tr > th,
51
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-thead > tr > th {
37
52
  padding: 13.5px 16px;
38
53
  line-height: 20px;
39
54
  }
40
- .ant-table-wrapper .ant-table-footer {
55
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-footer,
56
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer {
41
57
  padding: 0;
42
58
  }
43
- .ant-table-wrapper .ant-table-footer .ant-table-wrapper {
59
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-footer .ant-table-wrapper,
60
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer .ant-table-wrapper {
44
61
  padding: 0;
45
62
  }
46
- .ant-table-wrapper .ant-table-footer table {
63
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-footer table,
64
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer table {
47
65
  border: none;
48
66
  }
49
- .ant-table-wrapper .ant-table-footer .ant-table-body {
67
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-footer .ant-table-body,
68
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer .ant-table-body {
50
69
  overflow-x: hidden;
51
70
  }
52
- .ant-table-wrapper .ant-table-footer td {
71
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-footer td,
72
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-footer td {
53
73
  padding: 12px 8px;
54
74
  }
55
- [class$='-basic-table'],
56
- [class$='-basic-table-form-container'] {
57
- width: 100%;
58
- height: 100%;
59
- }
60
75
  [class$='-basic-table-form-container'] {
61
76
  padding: 16px;
62
77
  }
@@ -474,8 +474,15 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
474
474
  inset-inline-start: 13px;
475
475
  margin: 6px 0;
476
476
  }
477
- .ant-table-wrapper .ant-table.ant-table.ant-table-small .ant-table-title,
478
- .ant-table-wrapper .ant-table.ant-table.ant-table-middle .ant-table-title {
477
+ [class$='-basic-table'],
478
+ [class$='-basic-table-form-container'] {
479
+ width: 100%;
480
+ height: 100%;
481
+ }
482
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table.ant-table-small .ant-table-title,
483
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table.ant-table-small .ant-table-title,
484
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table.ant-table-middle .ant-table-title,
485
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table.ant-table-middle .ant-table-title {
479
486
  display: flex;
480
487
  align-items: center;
481
488
  justify-content: space-between;
@@ -483,15 +490,18 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
483
490
  padding: 0 0 10px;
484
491
  border: none;
485
492
  }
486
- .ant-table-wrapper .ant-table {
493
+ [class$='-basic-table'] .ant-table-wrapper .ant-table,
494
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table {
487
495
  width: 100%;
488
496
  overflow-x: hidden;
489
497
  border-radius: 0;
490
498
  }
491
- .ant-table-wrapper .ant-table .ant-table-container .ant-table-header {
499
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header,
500
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header {
492
501
  border-radius: 0;
493
502
  }
494
- .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th {
503
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th,
504
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th {
495
505
  color: #182948;
496
506
  font-weight: 700;
497
507
  font-size: 14px;
@@ -500,18 +510,22 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
500
510
  text-transform: none;
501
511
  background: #f2f6f9;
502
512
  }
503
- .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th::before {
513
+ [class$='-basic-table'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th::before,
514
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table .ant-table-container .ant-table-header .ant-table-thead > tr > th::before {
504
515
  display: none;
505
516
  width: 0;
506
517
  visibility: hidden;
507
518
  }
508
- .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover {
519
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover,
520
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover {
509
521
  background: #f6f9fa;
510
522
  }
511
- .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover > td {
523
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover > td,
524
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row:hover > td {
512
525
  background: #f6f9fa;
513
526
  }
514
- .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row > td {
527
+ [class$='-basic-table'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row > td,
528
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table-body .ant-table-tbody > tr.ant-table-row > td {
515
529
  color: #182948;
516
530
  font-weight: 400;
517
531
  font-size: 14px;
@@ -520,35 +534,36 @@ div[class$='-basic-table-form-container'] form[class$='-basic-form--compact'] di
520
534
  text-transform: none;
521
535
  transition: unset;
522
536
  }
523
- .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-thead tr > th {
537
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-thead tr > th,
538
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-thead tr > th {
524
539
  padding: 12px 16px;
525
540
  line-height: 22px;
526
541
  }
527
- .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td {
542
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td,
543
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td {
528
544
  border-top: 1px solid;
529
545
  border-top-color: transparent;
530
546
  }
531
- .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr > .ant-table-cell {
547
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr > .ant-table-cell,
548
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-middle .ant-table-container .ant-table-tbody tr > .ant-table-cell {
532
549
  padding: 12px 16px;
533
550
  line-height: 22px;
534
551
  }
535
- .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-thead tr > th {
552
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-thead tr > th,
553
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-thead tr > th {
536
554
  padding: 10.5px 16px;
537
555
  line-height: 18px;
538
556
  }
539
- .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td {
557
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td,
558
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr.ant-table-measure-row + tr > td {
540
559
  border-top: 1px solid;
541
560
  border-top-color: transparent;
542
561
  }
543
- .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell {
562
+ [class$='-basic-table'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell,
563
+ [class$='-basic-table-form-container'] .ant-table-wrapper .ant-table.ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell {
544
564
  padding: 10.5px 16px;
545
565
  line-height: 18px;
546
566
  }
547
- [class$='-basic-table'],
548
- [class$='-basic-table-form-container'] {
549
- width: 100%;
550
- height: 100%;
551
- }
552
567
  [class$='-basic-table-row__striped'] td {
553
568
  background-color: #f6f9fa;
554
569
  }