@ant-design/pro-components 2.3.20 → 2.3.22
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/dist/components.js +778 -684
- package/dist/components.min.js +1 -1
- package/es/version.js +10 -10
- package/package.json +10 -10
package/dist/components.js
CHANGED
|
@@ -7578,19 +7578,24 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
7578
7578
|
h = "quarter",
|
|
7579
7579
|
c = "year",
|
|
7580
7580
|
d = "date",
|
|
7581
|
-
|
|
7582
|
-
|
|
7581
|
+
l = "Invalid Date",
|
|
7582
|
+
$ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
7583
7583
|
y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
7584
7584
|
M = {
|
|
7585
7585
|
name: "en",
|
|
7586
7586
|
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
7587
|
-
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_")
|
|
7587
|
+
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
7588
|
+
ordinal: function ordinal(t) {
|
|
7589
|
+
var e = ["th", "st", "nd", "rd"],
|
|
7590
|
+
n = t % 100;
|
|
7591
|
+
return "[" + t + (e[(n - 20) % 10] || e[n] || e[0]) + "]";
|
|
7592
|
+
}
|
|
7588
7593
|
},
|
|
7589
7594
|
m = function m(t, e, n) {
|
|
7590
7595
|
var r = String(t);
|
|
7591
7596
|
return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t;
|
|
7592
7597
|
},
|
|
7593
|
-
|
|
7598
|
+
v = {
|
|
7594
7599
|
s: m,
|
|
7595
7600
|
z: function z(t) {
|
|
7596
7601
|
var e = -t.utcOffset(),
|
|
@@ -7628,15 +7633,15 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
7628
7633
|
return void 0 === t;
|
|
7629
7634
|
}
|
|
7630
7635
|
},
|
|
7631
|
-
|
|
7636
|
+
g = "en",
|
|
7632
7637
|
D = {};
|
|
7633
|
-
D[
|
|
7638
|
+
D[g] = M;
|
|
7634
7639
|
var p = function p(t) {
|
|
7635
7640
|
return t instanceof _;
|
|
7636
7641
|
},
|
|
7637
7642
|
S = function t(e, n, r) {
|
|
7638
7643
|
var i;
|
|
7639
|
-
if (!e) return
|
|
7644
|
+
if (!e) return g;
|
|
7640
7645
|
if ("string" == typeof e) {
|
|
7641
7646
|
var s = e.toLowerCase();
|
|
7642
7647
|
D[s] && (i = s), n && (D[s] = n, i = s);
|
|
@@ -7646,14 +7651,14 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
7646
7651
|
var a = e.name;
|
|
7647
7652
|
D[a] = e, i = a;
|
|
7648
7653
|
}
|
|
7649
|
-
return !r && i && (
|
|
7654
|
+
return !r && i && (g = i), i || !r && g;
|
|
7650
7655
|
},
|
|
7651
7656
|
w = function w(t, e) {
|
|
7652
7657
|
if (p(t)) return t.clone();
|
|
7653
7658
|
var n = "object" == typeof e ? e : {};
|
|
7654
7659
|
return n.date = t, n.args = arguments, new _(n);
|
|
7655
7660
|
},
|
|
7656
|
-
O =
|
|
7661
|
+
O = v;
|
|
7657
7662
|
O.l = S, O.i = p, O.w = function (t, e) {
|
|
7658
7663
|
return w(t, {
|
|
7659
7664
|
locale: e.$L,
|
|
@@ -7675,7 +7680,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
7675
7680
|
if (O.u(e)) return new Date();
|
|
7676
7681
|
if (e instanceof Date) return new Date(e);
|
|
7677
7682
|
if ("string" == typeof e && !/Z$/i.test(e)) {
|
|
7678
|
-
var r = e.match(
|
|
7683
|
+
var r = e.match($);
|
|
7679
7684
|
if (r) {
|
|
7680
7685
|
var i = r[2] - 1 || 0,
|
|
7681
7686
|
s = (r[7] || "0").substring(0, 3);
|
|
@@ -7690,7 +7695,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
7690
7695
|
}, m.$utils = function () {
|
|
7691
7696
|
return O;
|
|
7692
7697
|
}, m.isValid = function () {
|
|
7693
|
-
return !(this.$d.toString() ===
|
|
7698
|
+
return !(this.$d.toString() === l);
|
|
7694
7699
|
}, m.isSame = function (t, e) {
|
|
7695
7700
|
var n = w(t);
|
|
7696
7701
|
return this.startOf(e) <= n && n <= this.endOf(e);
|
|
@@ -7708,35 +7713,35 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
7708
7713
|
var n = this,
|
|
7709
7714
|
r = !!O.u(e) || e,
|
|
7710
7715
|
h = O.p(t),
|
|
7711
|
-
|
|
7716
|
+
l = function l(t, e) {
|
|
7712
7717
|
var i = O.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
|
|
7713
7718
|
return r ? i : i.endOf(a);
|
|
7714
7719
|
},
|
|
7715
|
-
|
|
7720
|
+
$ = function $(t, e) {
|
|
7716
7721
|
return O.w(n.toDate()[t].apply(n.toDate("s"), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), n);
|
|
7717
7722
|
},
|
|
7718
7723
|
y = this.$W,
|
|
7719
7724
|
M = this.$M,
|
|
7720
7725
|
m = this.$D,
|
|
7721
|
-
|
|
7726
|
+
v = "set" + (this.$u ? "UTC" : "");
|
|
7722
7727
|
switch (h) {
|
|
7723
7728
|
case c:
|
|
7724
|
-
return r ?
|
|
7729
|
+
return r ? l(1, 0) : l(31, 11);
|
|
7725
7730
|
case f:
|
|
7726
|
-
return r ?
|
|
7731
|
+
return r ? l(1, M) : l(0, M + 1);
|
|
7727
7732
|
case o:
|
|
7728
|
-
var
|
|
7729
|
-
D = (y <
|
|
7730
|
-
return
|
|
7733
|
+
var g = this.$locale().weekStart || 0,
|
|
7734
|
+
D = (y < g ? y + 7 : y) - g;
|
|
7735
|
+
return l(r ? m - D : m + (6 - D), M);
|
|
7731
7736
|
case a:
|
|
7732
7737
|
case d:
|
|
7733
|
-
return
|
|
7738
|
+
return $(v + "Hours", 0);
|
|
7734
7739
|
case u:
|
|
7735
|
-
return
|
|
7740
|
+
return $(v + "Minutes", 1);
|
|
7736
7741
|
case s:
|
|
7737
|
-
return
|
|
7742
|
+
return $(v + "Seconds", 2);
|
|
7738
7743
|
case i:
|
|
7739
|
-
return
|
|
7744
|
+
return $(v + "Milliseconds", 3);
|
|
7740
7745
|
default:
|
|
7741
7746
|
return this.clone();
|
|
7742
7747
|
}
|
|
@@ -7746,12 +7751,12 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
7746
7751
|
var n,
|
|
7747
7752
|
o = O.p(t),
|
|
7748
7753
|
h = "set" + (this.$u ? "UTC" : ""),
|
|
7749
|
-
|
|
7750
|
-
|
|
7754
|
+
l = (n = {}, n[a] = h + "Date", n[d] = h + "Date", n[f] = h + "Month", n[c] = h + "FullYear", n[u] = h + "Hours", n[s] = h + "Minutes", n[i] = h + "Seconds", n[r] = h + "Milliseconds", n)[o],
|
|
7755
|
+
$ = o === a ? this.$D + (e - this.$W) : e;
|
|
7751
7756
|
if (o === f || o === c) {
|
|
7752
7757
|
var y = this.clone().set(d, 1);
|
|
7753
|
-
y.$d[
|
|
7754
|
-
} else
|
|
7758
|
+
y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
|
|
7759
|
+
} else l && this.$d[l]($);
|
|
7755
7760
|
return this.init(), this;
|
|
7756
7761
|
}, m.set = function (t, e) {
|
|
7757
7762
|
return this.clone().$set(t, e);
|
|
@@ -7759,18 +7764,18 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
7759
7764
|
return this[O.p(t)]();
|
|
7760
7765
|
}, m.add = function (r, h) {
|
|
7761
7766
|
var d,
|
|
7762
|
-
|
|
7767
|
+
l = this;
|
|
7763
7768
|
r = Number(r);
|
|
7764
|
-
var
|
|
7769
|
+
var $ = O.p(h),
|
|
7765
7770
|
y = function y(t) {
|
|
7766
|
-
var e = w(
|
|
7767
|
-
return O.w(e.date(e.date() + Math.round(t * r)),
|
|
7771
|
+
var e = w(l);
|
|
7772
|
+
return O.w(e.date(e.date() + Math.round(t * r)), l);
|
|
7768
7773
|
};
|
|
7769
|
-
if (
|
|
7770
|
-
if (
|
|
7771
|
-
if (
|
|
7772
|
-
if (
|
|
7773
|
-
var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[
|
|
7774
|
+
if ($ === f) return this.set(f, this.$M + r);
|
|
7775
|
+
if ($ === c) return this.set(c, this.$y + r);
|
|
7776
|
+
if ($ === a) return y(1);
|
|
7777
|
+
if ($ === o) return y(7);
|
|
7778
|
+
var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1,
|
|
7774
7779
|
m = this.$d.getTime() + r * M;
|
|
7775
7780
|
return O.w(m, this);
|
|
7776
7781
|
}, m.subtract = function (t, e) {
|
|
@@ -7778,7 +7783,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
7778
7783
|
}, m.format = function (t) {
|
|
7779
7784
|
var e = this,
|
|
7780
7785
|
n = this.$locale();
|
|
7781
|
-
if (!this.isValid()) return n.invalidDate ||
|
|
7786
|
+
if (!this.isValid()) return n.invalidDate || l;
|
|
7782
7787
|
var r = t || "YYYY-MM-DDTHH:mm:ssZ",
|
|
7783
7788
|
i = O.z(this),
|
|
7784
7789
|
s = this.$H,
|
|
@@ -7796,7 +7801,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
7796
7801
|
var r = t < 12 ? "AM" : "PM";
|
|
7797
7802
|
return n ? r.toLowerCase() : r;
|
|
7798
7803
|
},
|
|
7799
|
-
|
|
7804
|
+
$ = {
|
|
7800
7805
|
YY: String(this.$y).slice(-2),
|
|
7801
7806
|
YYYY: this.$y,
|
|
7802
7807
|
M: a + 1,
|
|
@@ -7823,18 +7828,18 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
7823
7828
|
Z: i
|
|
7824
7829
|
};
|
|
7825
7830
|
return r.replace(y, function (t, e) {
|
|
7826
|
-
return e ||
|
|
7831
|
+
return e || $[t] || i.replace(":", "");
|
|
7827
7832
|
});
|
|
7828
7833
|
}, m.utcOffset = function () {
|
|
7829
7834
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
7830
|
-
}, m.diff = function (r, d,
|
|
7831
|
-
var
|
|
7835
|
+
}, m.diff = function (r, d, l) {
|
|
7836
|
+
var $,
|
|
7832
7837
|
y = O.p(d),
|
|
7833
7838
|
M = w(r),
|
|
7834
7839
|
m = (M.utcOffset() - this.utcOffset()) * e,
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
return
|
|
7840
|
+
v = this - M,
|
|
7841
|
+
g = O.m(this, M);
|
|
7842
|
+
return g = ($ = {}, $[c] = g / 12, $[f] = g, $[h] = g / 3, $[o] = (v - m) / 6048e5, $[a] = (v - m) / 864e5, $[u] = v / n, $[s] = v / e, $[i] = v / t, $)[y] || v, l ? g : O.a(g);
|
|
7838
7843
|
}, m.daysInMonth = function () {
|
|
7839
7844
|
return this.endOf(f).$D;
|
|
7840
7845
|
}, m.$locale = function () {
|
|
@@ -7865,7 +7870,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
7865
7870
|
return t.$i || (t(e, _, w), t.$i = !0), w;
|
|
7866
7871
|
}, w.locale = S, w.isDayjs = p, w.unix = function (t) {
|
|
7867
7872
|
return w(1e3 * t);
|
|
7868
|
-
}, w.en = D[
|
|
7873
|
+
}, w.en = D[g], w.Ls = D, w.p = {}, w;
|
|
7869
7874
|
});
|
|
7870
7875
|
|
|
7871
7876
|
/***/ }),
|
|
@@ -20019,7 +20024,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
20019
20024
|
"ProFormField": function() { return /* reexport */ components_Field; },
|
|
20020
20025
|
"ProFormFieldSet": function() { return /* reexport */ components_FieldSet; },
|
|
20021
20026
|
"ProFormGroup": function() { return /* reexport */ ProFormGroup; },
|
|
20022
|
-
"ProFormItem": function() { return /* reexport */
|
|
20027
|
+
"ProFormItem": function() { return /* reexport */ FormItem; },
|
|
20023
20028
|
"ProFormList": function() { return /* reexport */ ProFormList; },
|
|
20024
20029
|
"ProFormMoney": function() { return /* reexport */ components_Money; },
|
|
20025
20030
|
"ProFormRadio": function() { return /* reexport */ components_Radio; },
|
|
@@ -20090,7 +20095,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
20090
20095
|
"jaJPIntl": function() { return /* reexport */ jaJPIntl; },
|
|
20091
20096
|
"koKRIntl": function() { return /* reexport */ koKRIntl; },
|
|
20092
20097
|
"lighten": function() { return /* reexport */ lighten; },
|
|
20093
|
-
"merge": function() { return /* reexport */
|
|
20098
|
+
"merge": function() { return /* reexport */ merge_merge; },
|
|
20094
20099
|
"mnMNIntl": function() { return /* reexport */ mnMNIntl; },
|
|
20095
20100
|
"msMYIntl": function() { return /* reexport */ msMYIntl; },
|
|
20096
20101
|
"nanoid": function() { return /* reexport */ nanoid; },
|
|
@@ -20135,7 +20140,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
20135
20140
|
"zhTWIntl": function() { return /* reexport */ zhTWIntl; }
|
|
20136
20141
|
});
|
|
20137
20142
|
|
|
20138
|
-
// NAMESPACE OBJECT: ./packages/
|
|
20143
|
+
// NAMESPACE OBJECT: ./packages/provider/es/useStyle/token.js
|
|
20139
20144
|
var token_namespaceObject = {};
|
|
20140
20145
|
__webpack_require__.r(token_namespaceObject);
|
|
20141
20146
|
__webpack_require__.d(token_namespaceObject, {
|
|
@@ -20143,7 +20148,7 @@ __webpack_require__.d(token_namespaceObject, {
|
|
|
20143
20148
|
"defaultAlgorithm": function() { return defaultAlgorithm; },
|
|
20144
20149
|
"defaultTheme": function() { return defaultTheme; },
|
|
20145
20150
|
"token": function() { return token_token; },
|
|
20146
|
-
"useToken": function() { return
|
|
20151
|
+
"useToken": function() { return useToken; }
|
|
20147
20152
|
});
|
|
20148
20153
|
|
|
20149
20154
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
@@ -20319,7 +20324,10 @@ function arrayMoveMutable(array, fromIndex, toIndex) {
|
|
|
20319
20324
|
* @param {number} toIndex
|
|
20320
20325
|
* @returns T
|
|
20321
20326
|
*/
|
|
20322
|
-
function arrayMoveImmutable(
|
|
20327
|
+
function arrayMoveImmutable(_ref) {
|
|
20328
|
+
var array = _ref.array,
|
|
20329
|
+
fromIndex = _ref.fromIndex,
|
|
20330
|
+
toIndex = _ref.toIndex;
|
|
20323
20331
|
var newArray = toConsumableArray_toConsumableArray(array);
|
|
20324
20332
|
arrayMoveMutable(newArray, fromIndex, toIndex);
|
|
20325
20333
|
return newArray;
|
|
@@ -23322,268 +23330,6 @@ var useSWR = withArgs(useSWRHandler);
|
|
|
23322
23330
|
close: '關閉'
|
|
23323
23331
|
}
|
|
23324
23332
|
});
|
|
23325
|
-
;// CONCATENATED MODULE: ./packages/provider/es/index.js
|
|
23326
|
-
|
|
23327
|
-
|
|
23328
|
-
|
|
23329
|
-
//@ts-ignore
|
|
23330
|
-
|
|
23331
|
-
|
|
23332
|
-
|
|
23333
|
-
|
|
23334
|
-
|
|
23335
|
-
|
|
23336
|
-
|
|
23337
|
-
|
|
23338
|
-
|
|
23339
|
-
|
|
23340
|
-
|
|
23341
|
-
|
|
23342
|
-
|
|
23343
|
-
|
|
23344
|
-
|
|
23345
|
-
|
|
23346
|
-
|
|
23347
|
-
|
|
23348
|
-
|
|
23349
|
-
|
|
23350
|
-
|
|
23351
|
-
|
|
23352
|
-
|
|
23353
|
-
|
|
23354
|
-
|
|
23355
|
-
|
|
23356
|
-
|
|
23357
|
-
var _ref = external_antd_.theme || {
|
|
23358
|
-
useToken: function useToken() {
|
|
23359
|
-
return {
|
|
23360
|
-
hashId: ''
|
|
23361
|
-
};
|
|
23362
|
-
}
|
|
23363
|
-
},
|
|
23364
|
-
useToken = _ref.useToken;
|
|
23365
|
-
/**
|
|
23366
|
-
* 安全的从一个对象中读取相应的值
|
|
23367
|
-
* @param source
|
|
23368
|
-
* @param path
|
|
23369
|
-
* @param defaultValue
|
|
23370
|
-
* @returns
|
|
23371
|
-
*/
|
|
23372
|
-
function get(source, path, defaultValue) {
|
|
23373
|
-
// a[3].b -> a.3.b
|
|
23374
|
-
var paths = path.replace(/\[(\d+)\]/g, '.$1').split('.');
|
|
23375
|
-
var result = source;
|
|
23376
|
-
var message = defaultValue;
|
|
23377
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
23378
|
-
var _iterator = _createForOfIteratorHelper(paths),
|
|
23379
|
-
_step;
|
|
23380
|
-
try {
|
|
23381
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
23382
|
-
var p = _step.value;
|
|
23383
|
-
message = Object(result)[p];
|
|
23384
|
-
result = Object(result)[p];
|
|
23385
|
-
if (message === undefined) {
|
|
23386
|
-
return defaultValue;
|
|
23387
|
-
}
|
|
23388
|
-
}
|
|
23389
|
-
} catch (err) {
|
|
23390
|
-
_iterator.e(err);
|
|
23391
|
-
} finally {
|
|
23392
|
-
_iterator.f();
|
|
23393
|
-
}
|
|
23394
|
-
return message;
|
|
23395
|
-
}
|
|
23396
|
-
/**
|
|
23397
|
-
* 创建一个国际化的操作函数
|
|
23398
|
-
*
|
|
23399
|
-
* @param locale
|
|
23400
|
-
* @param localeMap
|
|
23401
|
-
*/
|
|
23402
|
-
var createIntl = function createIntl(locale, localeMap) {
|
|
23403
|
-
return {
|
|
23404
|
-
getMessage: function getMessage(id, defaultMessage) {
|
|
23405
|
-
return get(localeMap, id, defaultMessage) || defaultMessage;
|
|
23406
|
-
},
|
|
23407
|
-
locale: locale
|
|
23408
|
-
};
|
|
23409
|
-
};
|
|
23410
|
-
var mnMNIntl = createIntl('mn_MN', mn_MN);
|
|
23411
|
-
var arEGIntl = createIntl('ar_EG', ar_EG);
|
|
23412
|
-
var zhCNIntl = createIntl('zh_CN', provider_es_locale_zh_CN);
|
|
23413
|
-
var enUSIntl = createIntl('en_US', en_US);
|
|
23414
|
-
var enGBIntl = createIntl('en_GB', en_GB);
|
|
23415
|
-
var viVNIntl = createIntl('vi_VN', vi_VN);
|
|
23416
|
-
var itITIntl = createIntl('it_IT', it_IT);
|
|
23417
|
-
var jaJPIntl = createIntl('ja_JP', ja_JP);
|
|
23418
|
-
var esESIntl = createIntl('es_ES', es_ES);
|
|
23419
|
-
var caESIntl = createIntl('ca_ES', ca_ES);
|
|
23420
|
-
var ruRUIntl = createIntl('ru_RU', ru_RU);
|
|
23421
|
-
var srRSIntl = createIntl('sr_RS', sr_RS);
|
|
23422
|
-
var msMYIntl = createIntl('ms_MY', ms_MY);
|
|
23423
|
-
var zhTWIntl = createIntl('zh_TW', zh_TW);
|
|
23424
|
-
var frFRIntl = createIntl('fr_FR', fr_FR);
|
|
23425
|
-
var ptBRIntl = createIntl('pt_BR', pt_BR);
|
|
23426
|
-
var koKRIntl = createIntl('ko_KR', ko_KR);
|
|
23427
|
-
var idIDIntl = createIntl('id_ID', id_ID);
|
|
23428
|
-
var deDEIntl = createIntl('de_DE', de_DE);
|
|
23429
|
-
var faIRIntl = createIntl('fa_IR', fa_IR);
|
|
23430
|
-
var trTRIntl = createIntl('tr_TR', tr_TR);
|
|
23431
|
-
var plPLIntl = createIntl('pl_PL', pl_PL);
|
|
23432
|
-
var hrHRIntl = createIntl('hr_', hr_HR);
|
|
23433
|
-
var intlMap = {
|
|
23434
|
-
'mn-MN': mnMNIntl,
|
|
23435
|
-
'ar-EG': arEGIntl,
|
|
23436
|
-
'zh-CN': zhCNIntl,
|
|
23437
|
-
'en-US': enUSIntl,
|
|
23438
|
-
'en-GB': enGBIntl,
|
|
23439
|
-
'vi-VN': viVNIntl,
|
|
23440
|
-
'it-IT': itITIntl,
|
|
23441
|
-
'ja-JP': jaJPIntl,
|
|
23442
|
-
'es-ES': esESIntl,
|
|
23443
|
-
'ca-ES': caESIntl,
|
|
23444
|
-
'ru-RU': ruRUIntl,
|
|
23445
|
-
'sr-RS': srRSIntl,
|
|
23446
|
-
'ms-MY': msMYIntl,
|
|
23447
|
-
'zh-TW': zhTWIntl,
|
|
23448
|
-
'fr-FR': frFRIntl,
|
|
23449
|
-
'pt-BR': ptBRIntl,
|
|
23450
|
-
'ko-KR': koKRIntl,
|
|
23451
|
-
'id-ID': idIDIntl,
|
|
23452
|
-
'de-DE': deDEIntl,
|
|
23453
|
-
'fa-IR': faIRIntl,
|
|
23454
|
-
'tr-TR': trTRIntl,
|
|
23455
|
-
'pl-PL': plPLIntl,
|
|
23456
|
-
'hr-HR': hrHRIntl
|
|
23457
|
-
};
|
|
23458
|
-
var intlMapKeys = Object.keys(intlMap);
|
|
23459
|
-
|
|
23460
|
-
/* Creating a context object with the default values. */
|
|
23461
|
-
var es_ConfigContext = /*#__PURE__*/external_React_default().createContext({
|
|
23462
|
-
intl: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, zhCNIntl), {}, {
|
|
23463
|
-
locale: 'default'
|
|
23464
|
-
}),
|
|
23465
|
-
isDeps: false,
|
|
23466
|
-
valueTypeMap: {}
|
|
23467
|
-
});
|
|
23468
|
-
var ConfigConsumer = es_ConfigContext.Consumer,
|
|
23469
|
-
ConfigProvider = es_ConfigContext.Provider;
|
|
23470
|
-
/**
|
|
23471
|
-
* 根据 antd 的 key 来找到的 locale 插件的 key
|
|
23472
|
-
*
|
|
23473
|
-
* @param localeKey
|
|
23474
|
-
*/
|
|
23475
|
-
|
|
23476
|
-
var findIntlKeyByAntdLocaleKey = function findIntlKeyByAntdLocaleKey(localeKey) {
|
|
23477
|
-
if (!localeKey) {
|
|
23478
|
-
return 'zh-CN';
|
|
23479
|
-
}
|
|
23480
|
-
var localeName = localeKey.toLocaleLowerCase();
|
|
23481
|
-
return intlMapKeys.find(function (intlKey) {
|
|
23482
|
-
var LowerCaseKey = intlKey.toLocaleLowerCase();
|
|
23483
|
-
return LowerCaseKey.includes(localeName);
|
|
23484
|
-
});
|
|
23485
|
-
};
|
|
23486
|
-
/**
|
|
23487
|
-
* 组件解除挂载后清空一下 cache
|
|
23488
|
-
*
|
|
23489
|
-
* @returns
|
|
23490
|
-
*/
|
|
23491
|
-
var CacheClean = function CacheClean() {
|
|
23492
|
-
var _useSWRConfig = useSWRConfig(),
|
|
23493
|
-
cache = _useSWRConfig.cache;
|
|
23494
|
-
(0,external_React_.useEffect)(function () {
|
|
23495
|
-
return function () {
|
|
23496
|
-
// is a map
|
|
23497
|
-
// @ts-ignore
|
|
23498
|
-
cache.clear();
|
|
23499
|
-
};
|
|
23500
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
23501
|
-
}, []);
|
|
23502
|
-
return null;
|
|
23503
|
-
};
|
|
23504
|
-
/**
|
|
23505
|
-
* 如果没有配置 locale,这里组件会根据 antd 的 key 来自动选择
|
|
23506
|
-
*
|
|
23507
|
-
* @param param0
|
|
23508
|
-
*/
|
|
23509
|
-
var ConfigProviderWrap = function ConfigProviderWrap(_ref2) {
|
|
23510
|
-
var children = _ref2.children,
|
|
23511
|
-
_ref2$autoClearCache = _ref2.autoClearCache,
|
|
23512
|
-
autoClearCache = _ref2$autoClearCache === void 0 ? false : _ref2$autoClearCache;
|
|
23513
|
-
var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
|
|
23514
|
-
locale = _useContext.locale,
|
|
23515
|
-
getPrefixCls = _useContext.getPrefixCls;
|
|
23516
|
-
var token = useToken === null || useToken === void 0 ? void 0 : useToken();
|
|
23517
|
-
// 如果 locale 不存在自动注入的 AntdConfigProvider
|
|
23518
|
-
var Provider = locale === undefined ? external_antd_.ConfigProvider : (external_React_default()).Fragment;
|
|
23519
|
-
var proProvide = (0,external_React_.useContext)(es_ConfigContext);
|
|
23520
|
-
var proProvideValue = (0,external_React_.useMemo)(function () {
|
|
23521
|
-
var _proProvide$intl;
|
|
23522
|
-
var localeName = locale === null || locale === void 0 ? void 0 : locale.locale;
|
|
23523
|
-
var key = findIntlKeyByAntdLocaleKey(localeName);
|
|
23524
|
-
// antd 的 key 存在的时候以 antd 的为主
|
|
23525
|
-
var intl = localeName && ((_proProvide$intl = proProvide.intl) === null || _proProvide$intl === void 0 ? void 0 : _proProvide$intl.locale) === 'default' ? intlMap[key] : proProvide.intl || intlMap[key];
|
|
23526
|
-
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, proProvide), {}, {
|
|
23527
|
-
isDeps: true,
|
|
23528
|
-
intl: intl || zhCNIntl
|
|
23529
|
-
});
|
|
23530
|
-
}, [locale === null || locale === void 0 ? void 0 : locale.locale, proProvide]);
|
|
23531
|
-
var configProviderDom = (0,external_React_.useMemo)(function () {
|
|
23532
|
-
var _process$env$NODE_ENV;
|
|
23533
|
-
// 自动注入 antd 的配置
|
|
23534
|
-
var configProvider = locale === undefined ? {
|
|
23535
|
-
locale: es_locale_zh_CN,
|
|
23536
|
-
theme: {
|
|
23537
|
-
hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test'
|
|
23538
|
-
}
|
|
23539
|
-
} : {};
|
|
23540
|
-
var provide = (0,jsx_runtime.jsx)(Provider, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, configProvider), {}, {
|
|
23541
|
-
children: (0,jsx_runtime.jsx)(ConfigProvider, {
|
|
23542
|
-
value: proProvideValue,
|
|
23543
|
-
children: (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
23544
|
-
children: [autoClearCache && (0,jsx_runtime.jsx)(CacheClean, {}), children]
|
|
23545
|
-
})
|
|
23546
|
-
})
|
|
23547
|
-
}));
|
|
23548
|
-
if (proProvide.isDeps) return provide;
|
|
23549
|
-
return (0,jsx_runtime.jsx)("div", {
|
|
23550
|
-
className: "".concat((getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls('pro')) || 'ant-pro', " ").concat(token.hashId),
|
|
23551
|
-
children: provide
|
|
23552
|
-
});
|
|
23553
|
-
}, [Provider, autoClearCache, children, getPrefixCls, locale, proProvide.isDeps, proProvideValue, token.hashId]);
|
|
23554
|
-
if (!autoClearCache) return configProviderDom;
|
|
23555
|
-
return (0,jsx_runtime.jsx)(SWRConfig, {
|
|
23556
|
-
value: {
|
|
23557
|
-
provider: function provider() {
|
|
23558
|
-
return new Map();
|
|
23559
|
-
}
|
|
23560
|
-
},
|
|
23561
|
-
children: configProviderDom
|
|
23562
|
-
});
|
|
23563
|
-
};
|
|
23564
|
-
/**
|
|
23565
|
-
* It returns the intl object from the context if it exists, otherwise it returns the intl object for
|
|
23566
|
-
* the current locale
|
|
23567
|
-
* @returns The return value of the function is the intl object.
|
|
23568
|
-
*/
|
|
23569
|
-
function useIntl() {
|
|
23570
|
-
var _useContext2 = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
|
|
23571
|
-
locale = _useContext2.locale;
|
|
23572
|
-
var _useContext3 = (0,external_React_.useContext)(es_ConfigContext),
|
|
23573
|
-
intl = _useContext3.intl;
|
|
23574
|
-
if (intl && intl.locale !== 'default') {
|
|
23575
|
-
return intl || zhCNIntl;
|
|
23576
|
-
}
|
|
23577
|
-
if (locale === null || locale === void 0 ? void 0 : locale.locale) {
|
|
23578
|
-
return intlMap[findIntlKeyByAntdLocaleKey(locale.locale)] || zhCNIntl;
|
|
23579
|
-
}
|
|
23580
|
-
return zhCNIntl;
|
|
23581
|
-
}
|
|
23582
|
-
var ProProvider = es_ConfigContext;
|
|
23583
|
-
/* harmony default export */ var es = (es_ConfigContext);
|
|
23584
|
-
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
|
23585
|
-
var classnames = __webpack_require__(8266);
|
|
23586
|
-
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
23587
23333
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
23588
23334
|
function typeof_typeof(obj) {
|
|
23589
23335
|
"@babel/helpers - typeof";
|
|
@@ -25945,7 +25691,7 @@ function module_tinycolor(color, opts) {
|
|
|
25945
25691
|
}
|
|
25946
25692
|
return new TinyColor(color, opts);
|
|
25947
25693
|
}
|
|
25948
|
-
;// CONCATENATED MODULE: ./packages/
|
|
25694
|
+
;// CONCATENATED MODULE: ./packages/provider/es/useStyle/token.js
|
|
25949
25695
|
|
|
25950
25696
|
|
|
25951
25697
|
var defaultTheme = {
|
|
@@ -26321,7 +26067,7 @@ var token_token = {
|
|
|
26321
26067
|
token: defaultTheme,
|
|
26322
26068
|
hashId: ''
|
|
26323
26069
|
};
|
|
26324
|
-
var
|
|
26070
|
+
var useToken = function useToken() {
|
|
26325
26071
|
var _useState = (0,external_React_.useState)(token_token),
|
|
26326
26072
|
_useState2 = slicedToArray_slicedToArray(_useState, 1),
|
|
26327
26073
|
stateToken = _useState2[0];
|
|
@@ -26333,7 +26079,8 @@ var darkAlgorithm = function darkAlgorithm() {
|
|
|
26333
26079
|
var defaultAlgorithm = function defaultAlgorithm() {
|
|
26334
26080
|
return defaultTheme;
|
|
26335
26081
|
};
|
|
26336
|
-
;// CONCATENATED MODULE: ./packages/
|
|
26082
|
+
;// CONCATENATED MODULE: ./packages/provider/es/useStyle/index.js
|
|
26083
|
+
|
|
26337
26084
|
|
|
26338
26085
|
|
|
26339
26086
|
|
|
@@ -26394,17 +26141,32 @@ var operationUnit = function operationUnit(token) {
|
|
|
26394
26141
|
}
|
|
26395
26142
|
};
|
|
26396
26143
|
};
|
|
26144
|
+
var hashCode = function hashCode(str) {
|
|
26145
|
+
var seed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
26146
|
+
var h1 = 0xdeadbeef ^ seed,
|
|
26147
|
+
h2 = 0x41c6ce57 ^ seed;
|
|
26148
|
+
for (var i = 0, ch; i < str.length; i++) {
|
|
26149
|
+
ch = str.charCodeAt(i);
|
|
26150
|
+
h1 = Math.imul(h1 ^ ch, 2654435761);
|
|
26151
|
+
h2 = Math.imul(h2 ^ ch, 1597334677);
|
|
26152
|
+
}
|
|
26153
|
+
h1 = Math.imul(h1 ^ h1 >>> 16, 2246822507) ^ Math.imul(h2 ^ h2 >>> 13, 3266489909);
|
|
26154
|
+
h2 = Math.imul(h2 ^ h2 >>> 16, 2246822507) ^ Math.imul(h1 ^ h1 >>> 13, 3266489909);
|
|
26155
|
+
return 4294967296 * (2097151 & h2) + (h1 >>> 0);
|
|
26156
|
+
};
|
|
26397
26157
|
/**
|
|
26398
26158
|
* 封装了一下 antd 的 useStyle,支持了一下antd@4
|
|
26399
26159
|
* @param componentName {string} 组件的名字
|
|
26400
26160
|
* @param styleFn {GenerateStyle} 生成样式的函数
|
|
26401
26161
|
* @returns {UseStyleResult}
|
|
26402
26162
|
*/
|
|
26403
|
-
function useStyle(componentName, styleFn
|
|
26163
|
+
function useStyle(componentName, styleFn) {
|
|
26404
26164
|
var _useToken = useStyle_useToken(),
|
|
26405
26165
|
token = _useToken.token,
|
|
26406
26166
|
hashId = _useToken.hashId,
|
|
26407
26167
|
theme = _useToken.theme;
|
|
26168
|
+
var proContext = (0,external_React_.useContext)(ProProvider);
|
|
26169
|
+
var proHashId = hashCode(JSON.stringify(proContext.token || {}));
|
|
26408
26170
|
var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
|
|
26409
26171
|
getPrefixCls = _useContext.getPrefixCls;
|
|
26410
26172
|
/**
|
|
@@ -26416,11 +26178,11 @@ function useStyle(componentName, styleFn, deps) {
|
|
|
26416
26178
|
return {
|
|
26417
26179
|
wrapSSR: useStyleRegister({
|
|
26418
26180
|
theme: theme,
|
|
26419
|
-
token:
|
|
26181
|
+
token: token,
|
|
26420
26182
|
hashId: hashId,
|
|
26421
|
-
path: [componentName]
|
|
26183
|
+
path: [componentName, "pro-".concat(proHashId)]
|
|
26422
26184
|
}, function () {
|
|
26423
|
-
return styleFn(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
26185
|
+
return styleFn(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), (proContext === null || proContext === void 0 ? void 0 : proContext.token) || {}), {}, {
|
|
26424
26186
|
antCls: '.' + getPrefixCls(),
|
|
26425
26187
|
proComponentsCls: proComponentsCls
|
|
26426
26188
|
}));
|
|
@@ -26428,6 +26190,359 @@ function useStyle(componentName, styleFn, deps) {
|
|
|
26428
26190
|
hashId: hashId
|
|
26429
26191
|
};
|
|
26430
26192
|
}
|
|
26193
|
+
;// CONCATENATED MODULE: ./packages/provider/es/typing/layoutToken.js
|
|
26194
|
+
|
|
26195
|
+
|
|
26196
|
+
var getLayoutDesignToken = function getLayoutDesignToken(designTokens, antdToken) {
|
|
26197
|
+
var _finalDesignTokens$si, _finalDesignTokens$pa, _finalDesignTokens$pa2;
|
|
26198
|
+
var finalDesignTokens = objectSpread2_objectSpread2({}, designTokens);
|
|
26199
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
26200
|
+
bgLayout: 'linear-gradient(#fff, #f7f8fa 28%)',
|
|
26201
|
+
colorTextAppListIcon: '#666',
|
|
26202
|
+
appListIconHoverBgColor: finalDesignTokens === null || finalDesignTokens === void 0 ? void 0 : (_finalDesignTokens$si = finalDesignTokens.sider) === null || _finalDesignTokens$si === void 0 ? void 0 : _finalDesignTokens$si.colorBgMenuItemSelected,
|
|
26203
|
+
colorBgAppListIconHover: 'rgba(0, 0, 0, 0.04)',
|
|
26204
|
+
colorTextAppListIconHover: antdToken.colorTextBase
|
|
26205
|
+
}, finalDesignTokens), {}, {
|
|
26206
|
+
header: objectSpread2_objectSpread2({
|
|
26207
|
+
colorBgHeader: 'rgba(240, 242, 245, 0.4)',
|
|
26208
|
+
colorHeaderTitle: antdToken.colorText,
|
|
26209
|
+
colorBgMenuItemHover: setAlpha(antdToken.colorTextBase, 0.03),
|
|
26210
|
+
colorBgMenuItemSelected: 'transparent',
|
|
26211
|
+
colorTextMenuSelected: setAlpha(antdToken.colorTextBase, 0.95),
|
|
26212
|
+
colorBgRightActionsItemHover: setAlpha(antdToken.colorTextBase, 0.03),
|
|
26213
|
+
colorTextRightActionsItem: antdToken.colorTextTertiary,
|
|
26214
|
+
heightLayoutHeader: 56,
|
|
26215
|
+
colorTextMenu: setAlpha(antdToken.colorTextBase, 0.65),
|
|
26216
|
+
colorTextMenuSecondary: antdToken.colorTextTertiary,
|
|
26217
|
+
colorTextMenuTitle: antdToken.colorText,
|
|
26218
|
+
colorTextMenuActive: antdToken.colorText
|
|
26219
|
+
}, finalDesignTokens.header),
|
|
26220
|
+
sider: objectSpread2_objectSpread2({
|
|
26221
|
+
paddingInlineLayoutMenu: 8,
|
|
26222
|
+
paddingBlockLayoutMenu: 8,
|
|
26223
|
+
colorBgCollapsedButton: '#fff',
|
|
26224
|
+
colorTextCollapsedButtonHover: antdToken.colorTextSecondary,
|
|
26225
|
+
colorTextCollapsedButton: setAlpha(antdToken.colorTextBase, 0.25),
|
|
26226
|
+
colorMenuBackground: 'transparent',
|
|
26227
|
+
colorBgMenuItemCollapsedHover: 'rgba(90, 75, 75, 0.03)',
|
|
26228
|
+
colorBgMenuItemCollapsedSelected: setAlpha(antdToken.colorTextBase, 0.04),
|
|
26229
|
+
colorMenuItemDivider: setAlpha(antdToken.colorTextBase, 0.06),
|
|
26230
|
+
colorBgMenuItemHover: setAlpha(antdToken.colorTextBase, 0.03),
|
|
26231
|
+
colorBgMenuItemSelected: setAlpha(antdToken.colorTextBase, 0.04),
|
|
26232
|
+
colorTextMenuSelected: setAlpha(antdToken.colorTextBase, 0.95),
|
|
26233
|
+
colorTextMenuActive: antdToken.colorText,
|
|
26234
|
+
colorTextMenu: setAlpha(antdToken.colorTextBase, 0.65),
|
|
26235
|
+
colorTextMenuSecondary: antdToken.colorTextTertiary,
|
|
26236
|
+
colorTextMenuTitle: antdToken.colorText,
|
|
26237
|
+
colorTextSubMenuSelected: setAlpha(antdToken.colorTextBase, 0.95)
|
|
26238
|
+
}, finalDesignTokens.sider),
|
|
26239
|
+
pageContainer: objectSpread2_objectSpread2({
|
|
26240
|
+
colorBgPageContainer: 'transparent',
|
|
26241
|
+
paddingInlinePageContainerContent: ((_finalDesignTokens$pa = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa === void 0 ? void 0 : _finalDesignTokens$pa.marginInlinePageContainerContent) || 40,
|
|
26242
|
+
paddingBlockPageContainerContent: ((_finalDesignTokens$pa2 = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa2 === void 0 ? void 0 : _finalDesignTokens$pa2.marginBlockPageContainerContent) || 24,
|
|
26243
|
+
colorBgPageContainerFixed: '#fff'
|
|
26244
|
+
}, finalDesignTokens.pageContainer)
|
|
26245
|
+
});
|
|
26246
|
+
};
|
|
26247
|
+
;// CONCATENATED MODULE: ./packages/provider/es/utils/merge.js
|
|
26248
|
+
|
|
26249
|
+
|
|
26250
|
+
var merge = function merge() {
|
|
26251
|
+
var obj = {};
|
|
26252
|
+
for (var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
26253
|
+
rest[_key] = arguments[_key];
|
|
26254
|
+
}
|
|
26255
|
+
var il = rest.length;
|
|
26256
|
+
var key;
|
|
26257
|
+
var i = 0;
|
|
26258
|
+
for (; i < il; i += 1) {
|
|
26259
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
26260
|
+
for (key in rest[i]) {
|
|
26261
|
+
if (rest[i].hasOwnProperty(key)) {
|
|
26262
|
+
if (typeof_typeof(obj[key]) === 'object' && typeof_typeof(rest[i][key]) === 'object' && obj[key] !== undefined && obj[key] !== null && !Array.isArray(obj[key]) && !Array.isArray(rest[i][key])) {
|
|
26263
|
+
obj[key] = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj[key]), rest[i][key]);
|
|
26264
|
+
} else {
|
|
26265
|
+
obj[key] = rest[i][key];
|
|
26266
|
+
}
|
|
26267
|
+
}
|
|
26268
|
+
}
|
|
26269
|
+
}
|
|
26270
|
+
return obj;
|
|
26271
|
+
};
|
|
26272
|
+
;// CONCATENATED MODULE: ./packages/provider/es/index.js
|
|
26273
|
+
|
|
26274
|
+
|
|
26275
|
+
|
|
26276
|
+
//@ts-ignore
|
|
26277
|
+
|
|
26278
|
+
|
|
26279
|
+
|
|
26280
|
+
|
|
26281
|
+
|
|
26282
|
+
|
|
26283
|
+
|
|
26284
|
+
|
|
26285
|
+
|
|
26286
|
+
|
|
26287
|
+
|
|
26288
|
+
|
|
26289
|
+
|
|
26290
|
+
|
|
26291
|
+
|
|
26292
|
+
|
|
26293
|
+
|
|
26294
|
+
|
|
26295
|
+
|
|
26296
|
+
|
|
26297
|
+
|
|
26298
|
+
|
|
26299
|
+
|
|
26300
|
+
|
|
26301
|
+
|
|
26302
|
+
|
|
26303
|
+
|
|
26304
|
+
|
|
26305
|
+
|
|
26306
|
+
|
|
26307
|
+
var _ref = external_antd_.theme || {
|
|
26308
|
+
useToken: function useToken() {
|
|
26309
|
+
return {
|
|
26310
|
+
hashId: ''
|
|
26311
|
+
};
|
|
26312
|
+
}
|
|
26313
|
+
},
|
|
26314
|
+
es_useToken = _ref.useToken;
|
|
26315
|
+
/**
|
|
26316
|
+
* 安全的从一个对象中读取相应的值
|
|
26317
|
+
* @param source
|
|
26318
|
+
* @param path
|
|
26319
|
+
* @param defaultValue
|
|
26320
|
+
* @returns
|
|
26321
|
+
*/
|
|
26322
|
+
function get(source, path, defaultValue) {
|
|
26323
|
+
// a[3].b -> a.3.b
|
|
26324
|
+
var paths = path.replace(/\[(\d+)\]/g, '.$1').split('.');
|
|
26325
|
+
var result = source;
|
|
26326
|
+
var message = defaultValue;
|
|
26327
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
26328
|
+
var _iterator = _createForOfIteratorHelper(paths),
|
|
26329
|
+
_step;
|
|
26330
|
+
try {
|
|
26331
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
26332
|
+
var p = _step.value;
|
|
26333
|
+
message = Object(result)[p];
|
|
26334
|
+
result = Object(result)[p];
|
|
26335
|
+
if (message === undefined) {
|
|
26336
|
+
return defaultValue;
|
|
26337
|
+
}
|
|
26338
|
+
}
|
|
26339
|
+
} catch (err) {
|
|
26340
|
+
_iterator.e(err);
|
|
26341
|
+
} finally {
|
|
26342
|
+
_iterator.f();
|
|
26343
|
+
}
|
|
26344
|
+
return message;
|
|
26345
|
+
}
|
|
26346
|
+
/**
|
|
26347
|
+
* 创建一个国际化的操作函数
|
|
26348
|
+
*
|
|
26349
|
+
* @param locale
|
|
26350
|
+
* @param localeMap
|
|
26351
|
+
*/
|
|
26352
|
+
var createIntl = function createIntl(locale, localeMap) {
|
|
26353
|
+
return {
|
|
26354
|
+
getMessage: function getMessage(id, defaultMessage) {
|
|
26355
|
+
return get(localeMap, id, defaultMessage) || defaultMessage;
|
|
26356
|
+
},
|
|
26357
|
+
locale: locale
|
|
26358
|
+
};
|
|
26359
|
+
};
|
|
26360
|
+
var mnMNIntl = createIntl('mn_MN', mn_MN);
|
|
26361
|
+
var arEGIntl = createIntl('ar_EG', ar_EG);
|
|
26362
|
+
var zhCNIntl = createIntl('zh_CN', provider_es_locale_zh_CN);
|
|
26363
|
+
var enUSIntl = createIntl('en_US', en_US);
|
|
26364
|
+
var enGBIntl = createIntl('en_GB', en_GB);
|
|
26365
|
+
var viVNIntl = createIntl('vi_VN', vi_VN);
|
|
26366
|
+
var itITIntl = createIntl('it_IT', it_IT);
|
|
26367
|
+
var jaJPIntl = createIntl('ja_JP', ja_JP);
|
|
26368
|
+
var esESIntl = createIntl('es_ES', es_ES);
|
|
26369
|
+
var caESIntl = createIntl('ca_ES', ca_ES);
|
|
26370
|
+
var ruRUIntl = createIntl('ru_RU', ru_RU);
|
|
26371
|
+
var srRSIntl = createIntl('sr_RS', sr_RS);
|
|
26372
|
+
var msMYIntl = createIntl('ms_MY', ms_MY);
|
|
26373
|
+
var zhTWIntl = createIntl('zh_TW', zh_TW);
|
|
26374
|
+
var frFRIntl = createIntl('fr_FR', fr_FR);
|
|
26375
|
+
var ptBRIntl = createIntl('pt_BR', pt_BR);
|
|
26376
|
+
var koKRIntl = createIntl('ko_KR', ko_KR);
|
|
26377
|
+
var idIDIntl = createIntl('id_ID', id_ID);
|
|
26378
|
+
var deDEIntl = createIntl('de_DE', de_DE);
|
|
26379
|
+
var faIRIntl = createIntl('fa_IR', fa_IR);
|
|
26380
|
+
var trTRIntl = createIntl('tr_TR', tr_TR);
|
|
26381
|
+
var plPLIntl = createIntl('pl_PL', pl_PL);
|
|
26382
|
+
var hrHRIntl = createIntl('hr_', hr_HR);
|
|
26383
|
+
var intlMap = {
|
|
26384
|
+
'mn-MN': mnMNIntl,
|
|
26385
|
+
'ar-EG': arEGIntl,
|
|
26386
|
+
'zh-CN': zhCNIntl,
|
|
26387
|
+
'en-US': enUSIntl,
|
|
26388
|
+
'en-GB': enGBIntl,
|
|
26389
|
+
'vi-VN': viVNIntl,
|
|
26390
|
+
'it-IT': itITIntl,
|
|
26391
|
+
'ja-JP': jaJPIntl,
|
|
26392
|
+
'es-ES': esESIntl,
|
|
26393
|
+
'ca-ES': caESIntl,
|
|
26394
|
+
'ru-RU': ruRUIntl,
|
|
26395
|
+
'sr-RS': srRSIntl,
|
|
26396
|
+
'ms-MY': msMYIntl,
|
|
26397
|
+
'zh-TW': zhTWIntl,
|
|
26398
|
+
'fr-FR': frFRIntl,
|
|
26399
|
+
'pt-BR': ptBRIntl,
|
|
26400
|
+
'ko-KR': koKRIntl,
|
|
26401
|
+
'id-ID': idIDIntl,
|
|
26402
|
+
'de-DE': deDEIntl,
|
|
26403
|
+
'fa-IR': faIRIntl,
|
|
26404
|
+
'tr-TR': trTRIntl,
|
|
26405
|
+
'pl-PL': plPLIntl,
|
|
26406
|
+
'hr-HR': hrHRIntl
|
|
26407
|
+
};
|
|
26408
|
+
var intlMapKeys = Object.keys(intlMap);
|
|
26409
|
+
|
|
26410
|
+
/* Creating a context object with the default values. */
|
|
26411
|
+
var es_ConfigContext = /*#__PURE__*/external_React_default().createContext({
|
|
26412
|
+
intl: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, zhCNIntl), {}, {
|
|
26413
|
+
locale: 'default'
|
|
26414
|
+
}),
|
|
26415
|
+
isDeps: false,
|
|
26416
|
+
valueTypeMap: {}
|
|
26417
|
+
});
|
|
26418
|
+
var ConfigConsumer = es_ConfigContext.Consumer,
|
|
26419
|
+
ConfigProvider = es_ConfigContext.Provider;
|
|
26420
|
+
/**
|
|
26421
|
+
* 根据 antd 的 key 来找到的 locale 插件的 key
|
|
26422
|
+
*
|
|
26423
|
+
* @param localeKey
|
|
26424
|
+
*/
|
|
26425
|
+
|
|
26426
|
+
var findIntlKeyByAntdLocaleKey = function findIntlKeyByAntdLocaleKey(localeKey) {
|
|
26427
|
+
if (!localeKey) {
|
|
26428
|
+
return 'zh-CN';
|
|
26429
|
+
}
|
|
26430
|
+
var localeName = localeKey.toLocaleLowerCase();
|
|
26431
|
+
return intlMapKeys.find(function (intlKey) {
|
|
26432
|
+
var LowerCaseKey = intlKey.toLocaleLowerCase();
|
|
26433
|
+
return LowerCaseKey.includes(localeName);
|
|
26434
|
+
});
|
|
26435
|
+
};
|
|
26436
|
+
/**
|
|
26437
|
+
* 组件解除挂载后清空一下 cache
|
|
26438
|
+
*
|
|
26439
|
+
* @returns
|
|
26440
|
+
*/
|
|
26441
|
+
var CacheClean = function CacheClean() {
|
|
26442
|
+
var _useSWRConfig = useSWRConfig(),
|
|
26443
|
+
cache = _useSWRConfig.cache;
|
|
26444
|
+
(0,external_React_.useEffect)(function () {
|
|
26445
|
+
return function () {
|
|
26446
|
+
// is a map
|
|
26447
|
+
// @ts-ignore
|
|
26448
|
+
cache.clear();
|
|
26449
|
+
};
|
|
26450
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
26451
|
+
}, []);
|
|
26452
|
+
return null;
|
|
26453
|
+
};
|
|
26454
|
+
/**
|
|
26455
|
+
* 如果没有配置 locale,这里组件会根据 antd 的 key 来自动选择
|
|
26456
|
+
*
|
|
26457
|
+
* @param param0
|
|
26458
|
+
*/
|
|
26459
|
+
var ConfigProviderWrap = function ConfigProviderWrap(_ref2) {
|
|
26460
|
+
var children = _ref2.children,
|
|
26461
|
+
_ref2$autoClearCache = _ref2.autoClearCache,
|
|
26462
|
+
autoClearCache = _ref2$autoClearCache === void 0 ? false : _ref2$autoClearCache,
|
|
26463
|
+
propsToken = _ref2.token;
|
|
26464
|
+
var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
|
|
26465
|
+
locale = _useContext.locale,
|
|
26466
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
26467
|
+
var tokenContext = es_useToken === null || es_useToken === void 0 ? void 0 : es_useToken();
|
|
26468
|
+
// 如果 locale 不存在自动注入的 AntdConfigProvider
|
|
26469
|
+
var Provider = locale === undefined ? external_antd_.ConfigProvider : (external_React_default()).Fragment;
|
|
26470
|
+
var proProvide = (0,external_React_.useContext)(es_ConfigContext);
|
|
26471
|
+
var proProvideValue = (0,external_React_.useMemo)(function () {
|
|
26472
|
+
var _proProvide$intl, _proProvide$token;
|
|
26473
|
+
var localeName = locale === null || locale === void 0 ? void 0 : locale.locale;
|
|
26474
|
+
var key = findIntlKeyByAntdLocaleKey(localeName);
|
|
26475
|
+
// antd 的 key 存在的时候以 antd 的为主
|
|
26476
|
+
var intl = localeName && ((_proProvide$intl = proProvide.intl) === null || _proProvide$intl === void 0 ? void 0 : _proProvide$intl.locale) === 'default' ? intlMap[key] : proProvide.intl || intlMap[key];
|
|
26477
|
+
/**
|
|
26478
|
+
* 合并一下token,不然导致嵌套 token 失效
|
|
26479
|
+
*/
|
|
26480
|
+
var proLayoutTokenMerge = merge(((_proProvide$token = proProvide.token) === null || _proProvide$token === void 0 ? void 0 : _proProvide$token.layout) || {}, getLayoutDesignToken((propsToken === null || propsToken === void 0 ? void 0 : propsToken.layout) || {}, tokenContext.token));
|
|
26481
|
+
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
26482
|
+
token: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, proProvide.token), {}, {
|
|
26483
|
+
layout: proLayoutTokenMerge
|
|
26484
|
+
})
|
|
26485
|
+
}, proProvide), {}, {
|
|
26486
|
+
isDeps: true,
|
|
26487
|
+
intl: intl || zhCNIntl
|
|
26488
|
+
});
|
|
26489
|
+
}, [locale === null || locale === void 0 ? void 0 : locale.locale, proProvide, tokenContext, propsToken]);
|
|
26490
|
+
var configProviderDom = (0,external_React_.useMemo)(function () {
|
|
26491
|
+
var _process$env$NODE_ENV;
|
|
26492
|
+
// 自动注入 antd 的配置
|
|
26493
|
+
var configProvider = locale === undefined ? {
|
|
26494
|
+
locale: es_locale_zh_CN,
|
|
26495
|
+
theme: {
|
|
26496
|
+
hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test'
|
|
26497
|
+
}
|
|
26498
|
+
} : {};
|
|
26499
|
+
var provide = (0,jsx_runtime.jsx)(Provider, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, configProvider), {}, {
|
|
26500
|
+
children: (0,jsx_runtime.jsx)(ConfigProvider, {
|
|
26501
|
+
value: proProvideValue,
|
|
26502
|
+
children: (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
26503
|
+
children: [autoClearCache && (0,jsx_runtime.jsx)(CacheClean, {}), children]
|
|
26504
|
+
})
|
|
26505
|
+
})
|
|
26506
|
+
}));
|
|
26507
|
+
if (proProvide.isDeps) return provide;
|
|
26508
|
+
return (0,jsx_runtime.jsx)("div", {
|
|
26509
|
+
className: "".concat((getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls('pro')) || 'ant-pro', " ").concat(tokenContext.hashId),
|
|
26510
|
+
children: provide
|
|
26511
|
+
});
|
|
26512
|
+
}, [Provider, autoClearCache, children, getPrefixCls, locale, proProvide.isDeps, proProvideValue, tokenContext.hashId]);
|
|
26513
|
+
if (!autoClearCache) return configProviderDom;
|
|
26514
|
+
return (0,jsx_runtime.jsx)(SWRConfig, {
|
|
26515
|
+
value: {
|
|
26516
|
+
provider: function provider() {
|
|
26517
|
+
return new Map();
|
|
26518
|
+
}
|
|
26519
|
+
},
|
|
26520
|
+
children: configProviderDom
|
|
26521
|
+
});
|
|
26522
|
+
};
|
|
26523
|
+
/**
|
|
26524
|
+
* It returns the intl object from the context if it exists, otherwise it returns the intl object for
|
|
26525
|
+
* the current locale
|
|
26526
|
+
* @returns The return value of the function is the intl object.
|
|
26527
|
+
*/
|
|
26528
|
+
function useIntl() {
|
|
26529
|
+
var _useContext2 = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
|
|
26530
|
+
locale = _useContext2.locale;
|
|
26531
|
+
var _useContext3 = (0,external_React_.useContext)(es_ConfigContext),
|
|
26532
|
+
intl = _useContext3.intl;
|
|
26533
|
+
if (intl && intl.locale !== 'default') {
|
|
26534
|
+
return intl || zhCNIntl;
|
|
26535
|
+
}
|
|
26536
|
+
if (locale === null || locale === void 0 ? void 0 : locale.locale) {
|
|
26537
|
+
return intlMap[findIntlKeyByAntdLocaleKey(locale.locale)] || zhCNIntl;
|
|
26538
|
+
}
|
|
26539
|
+
return zhCNIntl;
|
|
26540
|
+
}
|
|
26541
|
+
var ProProvider = es_ConfigContext;
|
|
26542
|
+
/* harmony default export */ var es = (es_ConfigContext);
|
|
26543
|
+
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
|
26544
|
+
var classnames = __webpack_require__(8266);
|
|
26545
|
+
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
26431
26546
|
;// CONCATENATED MODULE: ./packages/utils/es/components/DropdownFooter/style.js
|
|
26432
26547
|
|
|
26433
26548
|
|
|
@@ -28706,7 +28821,7 @@ var isUrl = function isUrl(path) {
|
|
|
28706
28821
|
* @param {any[]} ...rest
|
|
28707
28822
|
* @returns T
|
|
28708
28823
|
*/
|
|
28709
|
-
var
|
|
28824
|
+
var merge_merge = function merge() {
|
|
28710
28825
|
var obj = {};
|
|
28711
28826
|
for (var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28712
28827
|
rest[_key] = arguments[_key];
|
|
@@ -28972,7 +29087,7 @@ var transformKeySubmitValue = function transformKeySubmitValue(values, dataForma
|
|
|
28972
29087
|
// namePath、transform在omit为false时需正常返回 https://github.com/ant-design/pro-components/issues/2901#issue-908097115
|
|
28973
29088
|
return omit ? result : tempValues;
|
|
28974
29089
|
};
|
|
28975
|
-
finalValues = Array.isArray(values) && Array.isArray(finalValues) ? toConsumableArray_toConsumableArray(gen(values)) :
|
|
29090
|
+
finalValues = Array.isArray(values) && Array.isArray(finalValues) ? toConsumableArray_toConsumableArray(gen(values)) : merge_merge({}, gen(values), finalValues);
|
|
28976
29091
|
return finalValues;
|
|
28977
29092
|
};
|
|
28978
29093
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toArray.js
|
|
@@ -28990,7 +29105,8 @@ function useLazyKVMap(data, childrenColumnName, getRowKey) {
|
|
|
28990
29105
|
var mapCacheRef = external_React_.useRef({});
|
|
28991
29106
|
function getRecordByKey(key) {
|
|
28992
29107
|
if (!mapCacheRef.current || mapCacheRef.current.data !== data || mapCacheRef.current.childrenColumnName !== childrenColumnName || mapCacheRef.current.getRowKey !== getRowKey) {
|
|
28993
|
-
/* eslint-disable no-inner-declarations */
|
|
29108
|
+
/* eslint-disable no-inner-declarations */
|
|
29109
|
+
var dig = function dig(records) {
|
|
28994
29110
|
records.forEach(function (record, index) {
|
|
28995
29111
|
var rowKey = getRowKey(record, index);
|
|
28996
29112
|
kvMap.set(rowKey, record);
|
|
@@ -28998,7 +29114,8 @@ function useLazyKVMap(data, childrenColumnName, getRowKey) {
|
|
|
28998
29114
|
dig(record[childrenColumnName] || []);
|
|
28999
29115
|
}
|
|
29000
29116
|
});
|
|
29001
|
-
};
|
|
29117
|
+
};
|
|
29118
|
+
/* eslint-enable */
|
|
29002
29119
|
var kvMap = new Map();
|
|
29003
29120
|
dig(data);
|
|
29004
29121
|
mapCacheRef.current = {
|
|
@@ -29217,7 +29334,7 @@ function SaveEditableAction(_ref) {
|
|
|
29217
29334
|
return onSave === null || onSave === void 0 ? void 0 : onSave(recordKey,
|
|
29218
29335
|
// 如果是 map 模式,fields 就是一个值,所以需要set 到对象中
|
|
29219
29336
|
// 数据模式 fields 是一个对象,所以不需要
|
|
29220
|
-
|
|
29337
|
+
merge_merge({}, row, data), row, newLineConfig);
|
|
29221
29338
|
case 13:
|
|
29222
29339
|
res = _context.sent;
|
|
29223
29340
|
setLoading(false);
|
|
@@ -29481,7 +29598,8 @@ function useEditableArray(props) {
|
|
|
29481
29598
|
switch (_context4.prev = _context4.next) {
|
|
29482
29599
|
case 0:
|
|
29483
29600
|
relayKey = recordKeyToString(recordKey).toString();
|
|
29484
|
-
key = dataSourceKeyIndexMapRef.current.get(relayKey);
|
|
29601
|
+
key = dataSourceKeyIndexMapRef.current.get(relayKey);
|
|
29602
|
+
/** 如果没找到key,转化一下再去找 */
|
|
29485
29603
|
if (!(!editableKeysSet.has(relayKey) && key && (needReTry !== null && needReTry !== void 0 ? needReTry : true) && props.tableName)) {
|
|
29486
29604
|
_context4.next = 5;
|
|
29487
29605
|
break;
|
|
@@ -30626,7 +30744,7 @@ QuestionCircleOutlined_QuestionCircleOutlined.displayName = 'QuestionCircleOutli
|
|
|
30626
30744
|
|
|
30627
30745
|
|
|
30628
30746
|
var Statistic_style_genProStyle = function genProStyle(token) {
|
|
30629
|
-
var
|
|
30747
|
+
var _layoutHorizonta, _layoutInline, _token$componentCls;
|
|
30630
30748
|
return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
|
|
30631
30749
|
display: 'flex',
|
|
30632
30750
|
fontSize: token.fontSize,
|
|
@@ -30636,10 +30754,12 @@ var Statistic_style_genProStyle = function genProStyle(token) {
|
|
|
30636
30754
|
'&-tip': {
|
|
30637
30755
|
marginInlineStart: 4
|
|
30638
30756
|
},
|
|
30639
|
-
'&-wrapper': {
|
|
30757
|
+
'&-wrapper': defineProperty_defineProperty({
|
|
30640
30758
|
display: 'flex',
|
|
30641
30759
|
width: '100%'
|
|
30642
|
-
},
|
|
30760
|
+
}, "".concat(token.componentCls, "-status"), {
|
|
30761
|
+
width: '14px'
|
|
30762
|
+
}),
|
|
30643
30763
|
'&-icon': {
|
|
30644
30764
|
marginInlineEnd: 16
|
|
30645
30765
|
},
|
|
@@ -30672,16 +30792,16 @@ var Statistic_style_genProStyle = function genProStyle(token) {
|
|
|
30672
30792
|
color: '#389e0d'
|
|
30673
30793
|
}, "".concat(token.componentCls, "-trend-icon"), {
|
|
30674
30794
|
borderBlockEndColor: '#52c41a'
|
|
30675
|
-
}))), defineProperty_defineProperty(_token$componentCls, '&-layout-horizontal', (
|
|
30795
|
+
}))), defineProperty_defineProperty(_token$componentCls, '& &-layout-horizontal', (_layoutHorizonta = {
|
|
30676
30796
|
display: 'flex',
|
|
30677
30797
|
justifyContent: 'space-between'
|
|
30678
|
-
}, defineProperty_defineProperty(
|
|
30798
|
+
}, defineProperty_defineProperty(_layoutHorizonta, "".concat(token.antCls, "-statistic-title"), {
|
|
30679
30799
|
marginBlockEnd: 0
|
|
30680
|
-
}), defineProperty_defineProperty(
|
|
30800
|
+
}), defineProperty_defineProperty(_layoutHorizonta, "".concat(token.antCls, "-statistic-content-value"), {
|
|
30681
30801
|
fontWeight: 500
|
|
30682
|
-
}), defineProperty_defineProperty(
|
|
30802
|
+
}), defineProperty_defineProperty(_layoutHorizonta, "".concat(token.antCls, "-statistic-title,").concat(token.antCls, "-statistic-content,").concat(token.antCls, "-statistic-content-suffix,").concat(token.antCls, "-statistic-content-prefix,").concat(token.antCls, "-statistic-content-value-decimal"), {
|
|
30683
30803
|
fontSize: token.fontSizeBase
|
|
30684
|
-
}),
|
|
30804
|
+
}), _layoutHorizonta)), defineProperty_defineProperty(_token$componentCls, '& &-layout-inline', (_layoutInline = {
|
|
30685
30805
|
display: 'inline-flex',
|
|
30686
30806
|
color: token.colorTextSecondary
|
|
30687
30807
|
}, defineProperty_defineProperty(_layoutInline, "".concat(token.antCls, "-statistic-title"), {
|
|
@@ -30734,12 +30854,14 @@ var Statistic = function Statistic(props) {
|
|
|
30734
30854
|
var _useStyle = Statistic_style_useStyle(prefixCls),
|
|
30735
30855
|
wrapSSR = _useStyle.wrapSSR,
|
|
30736
30856
|
hashId = _useStyle.hashId;
|
|
30737
|
-
var classString = classnames_default()(prefixCls, className);
|
|
30738
|
-
var statusClass = classnames_default()("".concat(prefixCls, "-status"));
|
|
30739
|
-
var iconClass = classnames_default()("".concat(prefixCls, "-icon"));
|
|
30740
|
-
var wrapperClass = classnames_default()("".concat(prefixCls, "-wrapper"));
|
|
30741
|
-
var contentClass = classnames_default()("".concat(prefixCls, "-content"));
|
|
30742
|
-
var statisticClassName = classnames_default()((_classNames = {
|
|
30857
|
+
var classString = classnames_default()(prefixCls, className, hashId);
|
|
30858
|
+
var statusClass = classnames_default()("".concat(prefixCls, "-status"), hashId);
|
|
30859
|
+
var iconClass = classnames_default()("".concat(prefixCls, "-icon"), hashId);
|
|
30860
|
+
var wrapperClass = classnames_default()("".concat(prefixCls, "-wrapper"), hashId);
|
|
30861
|
+
var contentClass = classnames_default()("".concat(prefixCls, "-content"), hashId);
|
|
30862
|
+
var statisticClassName = classnames_default()((_classNames = {
|
|
30863
|
+
hashId: hashId
|
|
30864
|
+
}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-layout-").concat(layout), layout), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-trend-").concat(trend), trend), _classNames));
|
|
30743
30865
|
var tipDom = tip && (0,jsx_runtime.jsx)(external_antd_.Tooltip, {
|
|
30744
30866
|
title: tip,
|
|
30745
30867
|
children: (0,jsx_runtime.jsx)(icons_QuestionCircleOutlined, {
|
|
@@ -30761,6 +30883,7 @@ var Statistic = function Statistic(props) {
|
|
|
30761
30883
|
className: iconClass,
|
|
30762
30884
|
children: icon
|
|
30763
30885
|
});
|
|
30886
|
+
console.log('classString', classString);
|
|
30764
30887
|
return wrapSSR((0,jsx_runtime.jsxs)("div", {
|
|
30765
30888
|
className: classString,
|
|
30766
30889
|
style: style,
|
|
@@ -31708,8 +31831,9 @@ var ProCardOperation = function ProCardOperation(props) {
|
|
|
31708
31831
|
getPrefixCls = _useContext.getPrefixCls;
|
|
31709
31832
|
var prefixCls = getPrefixCls('pro-card-operation');
|
|
31710
31833
|
var _useStyle = Operation_style_useStyle(prefixCls),
|
|
31711
|
-
wrapSSR = _useStyle.wrapSSR
|
|
31712
|
-
|
|
31834
|
+
wrapSSR = _useStyle.wrapSSR,
|
|
31835
|
+
hashId = _useStyle.hashId;
|
|
31836
|
+
var classString = classnames_default()(prefixCls, className, hashId);
|
|
31713
31837
|
return wrapSSR((0,jsx_runtime.jsx)("div", {
|
|
31714
31838
|
className: classString,
|
|
31715
31839
|
style: style,
|
|
@@ -36017,9 +36141,9 @@ function createField(Field, config) {
|
|
|
36017
36141
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
36018
36142
|
isDeepEqualReact(prefRest, rest, ['onChange', 'onBlur', 'onFocus', 'record']) ? undefined : {}]);
|
|
36019
36143
|
// 使用useMemo包裹避免不必要的re-render
|
|
36020
|
-
var
|
|
36144
|
+
var formItem = (0,external_React_.useMemo)(function () {
|
|
36021
36145
|
var _field$props$allowCle, _field$props, _field$props2, _otherProps$name;
|
|
36022
|
-
return (0,jsx_runtime.jsx)(
|
|
36146
|
+
return (0,jsx_runtime.jsx)(FormItem
|
|
36023
36147
|
// 全局的提供一个 tip 功能,可以减少代码量
|
|
36024
36148
|
// 轻量模式下不通过 FormItem 显示 label
|
|
36025
36149
|
, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
@@ -36054,7 +36178,7 @@ function createField(Field, config) {
|
|
|
36054
36178
|
var _useGridHelpers = useGridHelpers(rest),
|
|
36055
36179
|
ColWrapper = _useGridHelpers.ColWrapper;
|
|
36056
36180
|
return (0,jsx_runtime.jsx)(ColWrapper, {
|
|
36057
|
-
children:
|
|
36181
|
+
children: formItem
|
|
36058
36182
|
});
|
|
36059
36183
|
};
|
|
36060
36184
|
var DependencyWrapper = function DependencyWrapper(props) {
|
|
@@ -40024,8 +40148,10 @@ var FieldDigit = function FieldDigit(_ref, ref) {
|
|
|
40024
40148
|
val = Number(val);
|
|
40025
40149
|
}
|
|
40026
40150
|
if (typeof val === 'number') {
|
|
40027
|
-
|
|
40028
|
-
|
|
40151
|
+
if (fieldProps.precision) {
|
|
40152
|
+
var _val, _val$toFixed, _fieldProps$precision;
|
|
40153
|
+
val = (_val = val) === null || _val === void 0 ? void 0 : (_val$toFixed = _val.toFixed) === null || _val$toFixed === void 0 ? void 0 : _val$toFixed.call(_val, (_fieldProps$precision = fieldProps.precision) !== null && _fieldProps$precision !== void 0 ? _fieldProps$precision : 0);
|
|
40154
|
+
}
|
|
40029
40155
|
val = Number(val);
|
|
40030
40156
|
}
|
|
40031
40157
|
return fieldProps === null || fieldProps === void 0 ? void 0 : (_fieldProps$onChange = fieldProps.onChange) === null || _fieldProps$onChange === void 0 ? void 0 : _fieldProps$onChange.call(fieldProps, val);
|
|
@@ -43899,7 +44025,7 @@ var ProFormDependency = function ProFormDependency(_ref) {
|
|
|
43899
44025
|
var value = (_context$getFieldForm = context.getFieldFormatValueObject) === null || _context$getFieldForm === void 0 ? void 0 : _context$getFieldForm.call(context, pathToGet);
|
|
43900
44026
|
if (value && Object.keys(value).length) {
|
|
43901
44027
|
// transform 会生成多余的value,这里需要注入一下
|
|
43902
|
-
values =
|
|
44028
|
+
values = merge_merge({}, values, value);
|
|
43903
44029
|
if ((0,utils_get["default"])(value, pathToGet)) {
|
|
43904
44030
|
values = (0,set/* default */.Z)(values, finalName, (0,utils_get["default"])(value, pathToGet), false);
|
|
43905
44031
|
}
|
|
@@ -44341,7 +44467,7 @@ var ProFormItem = function ProFormItem(props) {
|
|
|
44341
44467
|
}), rest.proFormFieldKey || ((_rest$name4 = rest.name) === null || _rest$name4 === void 0 ? void 0 : _rest$name4.toString()));
|
|
44342
44468
|
};
|
|
44343
44469
|
|
|
44344
|
-
/* harmony default export */ var
|
|
44470
|
+
/* harmony default export */ var FormItem = (ProFormItem);
|
|
44345
44471
|
;// CONCATENATED MODULE: ./packages/form/es/components/Group/style.js
|
|
44346
44472
|
|
|
44347
44473
|
|
|
@@ -47457,7 +47583,7 @@ function StepsForm(props) {
|
|
|
47457
47583
|
return _context.abrupt("return");
|
|
47458
47584
|
case 3:
|
|
47459
47585
|
setLoading(true);
|
|
47460
|
-
values =
|
|
47586
|
+
values = merge_merge.apply(void 0, [{}].concat(toConsumableArray_toConsumableArray(Array.from(formDataRef.current.values()))));
|
|
47461
47587
|
_context.prev = 5;
|
|
47462
47588
|
_context.next = 8;
|
|
47463
47589
|
return onFinish(values);
|
|
@@ -49454,7 +49580,7 @@ function ProForm(props) {
|
|
|
49454
49580
|
}
|
|
49455
49581
|
ProForm.Group = components_Group;
|
|
49456
49582
|
ProForm.useForm = external_antd_.Form.useForm;
|
|
49457
|
-
ProForm.Item =
|
|
49583
|
+
ProForm.Item = FormItem;
|
|
49458
49584
|
ProForm.useWatch = external_antd_.Form.useWatch;
|
|
49459
49585
|
ProForm.ErrorList = external_antd_.Form.ErrorList;
|
|
49460
49586
|
ProForm.Provider = external_antd_.Form.Provider;
|
|
@@ -51435,75 +51561,6 @@ var GridContent = function GridContent(props) {
|
|
|
51435
51561
|
}));
|
|
51436
51562
|
};
|
|
51437
51563
|
|
|
51438
|
-
;// CONCATENATED MODULE: ./packages/layout/es/context/ProLayoutContext.js
|
|
51439
|
-
|
|
51440
|
-
|
|
51441
|
-
|
|
51442
|
-
|
|
51443
|
-
var getLayoutDesignToken = function getLayoutDesignToken(designTokens, antdToken) {
|
|
51444
|
-
var _finalDesignTokens$si, _finalDesignTokens$pa, _finalDesignTokens$pa2;
|
|
51445
|
-
var finalDesignTokens = objectSpread2_objectSpread2({}, designTokens);
|
|
51446
|
-
return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
51447
|
-
bgLayout: 'linear-gradient(#fff, #f7f8fa 28%)',
|
|
51448
|
-
colorTextAppListIcon: '#666',
|
|
51449
|
-
appListIconHoverBgColor: finalDesignTokens === null || finalDesignTokens === void 0 ? void 0 : (_finalDesignTokens$si = finalDesignTokens.sider) === null || _finalDesignTokens$si === void 0 ? void 0 : _finalDesignTokens$si.colorBgMenuItemSelected,
|
|
51450
|
-
colorBgAppListIconHover: 'rgba(0, 0, 0, 0.04)',
|
|
51451
|
-
colorTextAppListIconHover: antdToken.colorTextBase
|
|
51452
|
-
}, finalDesignTokens), {}, {
|
|
51453
|
-
header: objectSpread2_objectSpread2({
|
|
51454
|
-
colorBgHeader: 'rgba(240, 242, 245, 0.4)',
|
|
51455
|
-
colorHeaderTitle: antdToken.colorText,
|
|
51456
|
-
colorBgMenuItemHover: setAlpha(antdToken.colorTextBase, 0.03),
|
|
51457
|
-
colorBgMenuItemSelected: 'transparent',
|
|
51458
|
-
colorTextMenuSelected: setAlpha(antdToken.colorTextBase, 0.95),
|
|
51459
|
-
colorBgRightActionsItemHover: setAlpha(antdToken.colorTextBase, 0.03),
|
|
51460
|
-
colorTextRightActionsItem: antdToken.colorTextTertiary,
|
|
51461
|
-
heightLayoutHeader: 56,
|
|
51462
|
-
colorTextMenu: setAlpha(antdToken.colorTextBase, 0.65),
|
|
51463
|
-
colorTextMenuSecondary: antdToken.colorTextTertiary,
|
|
51464
|
-
colorTextMenuTitle: antdToken.colorText,
|
|
51465
|
-
colorTextMenuActive: antdToken.colorText
|
|
51466
|
-
}, finalDesignTokens.header),
|
|
51467
|
-
sider: objectSpread2_objectSpread2({
|
|
51468
|
-
paddingInlineLayoutMenu: 8,
|
|
51469
|
-
paddingBlockLayoutMenu: 8,
|
|
51470
|
-
colorBgCollapsedButton: '#fff',
|
|
51471
|
-
colorTextCollapsedButtonHover: antdToken.colorTextSecondary,
|
|
51472
|
-
colorTextCollapsedButton: setAlpha(antdToken.colorTextBase, 0.25),
|
|
51473
|
-
colorMenuBackground: 'transparent',
|
|
51474
|
-
colorBgMenuItemCollapsedHover: 'rgba(90, 75, 75, 0.03)',
|
|
51475
|
-
colorBgMenuItemCollapsedSelected: setAlpha(antdToken.colorTextBase, 0.04),
|
|
51476
|
-
colorMenuItemDivider: setAlpha(antdToken.colorTextBase, 0.06),
|
|
51477
|
-
colorBgMenuItemHover: setAlpha(antdToken.colorTextBase, 0.03),
|
|
51478
|
-
colorBgMenuItemSelected: setAlpha(antdToken.colorTextBase, 0.04),
|
|
51479
|
-
colorTextMenuSelected: setAlpha(antdToken.colorTextBase, 0.95),
|
|
51480
|
-
colorTextMenuActive: antdToken.colorText,
|
|
51481
|
-
colorTextMenu: setAlpha(antdToken.colorTextBase, 0.65),
|
|
51482
|
-
colorTextMenuSecondary: antdToken.colorTextTertiary,
|
|
51483
|
-
colorTextMenuTitle: antdToken.colorText,
|
|
51484
|
-
colorTextSubMenuSelected: setAlpha(antdToken.colorTextBase, 0.95)
|
|
51485
|
-
}, finalDesignTokens.sider),
|
|
51486
|
-
pageContainer: objectSpread2_objectSpread2({
|
|
51487
|
-
colorBgPageContainer: 'transparent',
|
|
51488
|
-
paddingInlinePageContainerContent: ((_finalDesignTokens$pa = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa === void 0 ? void 0 : _finalDesignTokens$pa.marginInlinePageContainerContent) || 40,
|
|
51489
|
-
paddingBlockPageContainerContent: ((_finalDesignTokens$pa2 = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa2 === void 0 ? void 0 : _finalDesignTokens$pa2.marginBlockPageContainerContent) || 24,
|
|
51490
|
-
colorBgPageContainerFixed: '#fff'
|
|
51491
|
-
}, finalDesignTokens.pageContainer)
|
|
51492
|
-
});
|
|
51493
|
-
};
|
|
51494
|
-
var defaultToken = getLayoutDesignToken({}, {});
|
|
51495
|
-
var ProLayoutContext = /*#__PURE__*/external_React_default().createContext(defaultToken);
|
|
51496
|
-
var ProLayoutProvider = function ProLayoutProvider(props) {
|
|
51497
|
-
var _useToken = useStyle_useToken(),
|
|
51498
|
-
token = _useToken.token,
|
|
51499
|
-
hashId = _useToken.hashId;
|
|
51500
|
-
return (0,jsx_runtime.jsx)(ProLayoutContext.Provider, {
|
|
51501
|
-
value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, getLayoutDesignToken((props === null || props === void 0 ? void 0 : props.token) || {}, token)), {}, {
|
|
51502
|
-
hashId: hashId
|
|
51503
|
-
}),
|
|
51504
|
-
children: props.children
|
|
51505
|
-
});
|
|
51506
|
-
};
|
|
51507
51564
|
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/ArrowLeftOutlined.js
|
|
51508
51565
|
var ArrowLeftOutlined = __webpack_require__(2997);
|
|
51509
51566
|
var ArrowLeftOutlined_default = /*#__PURE__*/__webpack_require__.n(ArrowLeftOutlined);
|
|
@@ -51840,7 +51897,7 @@ var getPixelRatio = function getPixelRatio(context) {
|
|
|
51840
51897
|
if (!context) {
|
|
51841
51898
|
return 1;
|
|
51842
51899
|
}
|
|
51843
|
-
var backingStore = context.backingStorePixelRatio || context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio ||
|
|
51900
|
+
var backingStore = context.backingStorePixelRatio || context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || 1;
|
|
51844
51901
|
return (window.devicePixelRatio || 1) / backingStore;
|
|
51845
51902
|
};
|
|
51846
51903
|
var WaterMark = function WaterMark(props) {
|
|
@@ -51956,8 +52013,6 @@ var WaterMark = function WaterMark(props) {
|
|
|
51956
52013
|
|
|
51957
52014
|
|
|
51958
52015
|
|
|
51959
|
-
|
|
51960
|
-
|
|
51961
52016
|
var _map = [576, 768, 992, 1200].map(function (bp) {
|
|
51962
52017
|
return "@media (min-width: ".concat(bp, "px)");
|
|
51963
52018
|
}),
|
|
@@ -51967,24 +52022,24 @@ var _map = [576, 768, 992, 1200].map(function (bp) {
|
|
|
51967
52022
|
lg = _map2[2],
|
|
51968
52023
|
xl = _map2[3];
|
|
51969
52024
|
var genPageContainerStyle = function genPageContainerStyle(token) {
|
|
51970
|
-
var _extraContent, _token$componentCls;
|
|
52025
|
+
var _token$layout, _token$layout$pageCon, _token$layout2, _token$layout2$pageCo, _token$layout3, _token$layout3$pageCo, _token$layout$pageCon2, _token$layout4, _token$layout4$pageCo, _token$layout5, _token$layout5$pageCo, _token$layout6, _token$layout6$pageCo, _token$layout$pageCon3, _token$layout7, _token$layout7$pageCo, _extraContent, _token$componentCls;
|
|
51971
52026
|
return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
|
|
51972
52027
|
position: 'relative',
|
|
51973
52028
|
'&-children-content': {
|
|
51974
|
-
paddingBlock: token.paddingBlockPageContainerContent,
|
|
51975
|
-
paddingInline: token.paddingInlinePageContainerContent
|
|
52029
|
+
paddingBlock: (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$pageCon = _token$layout.pageContainer) === null || _token$layout$pageCon === void 0 ? void 0 : _token$layout$pageCon.paddingBlockPageContainerContent,
|
|
52030
|
+
paddingInline: (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$pageCo = _token$layout2.pageContainer) === null || _token$layout2$pageCo === void 0 ? void 0 : _token$layout2$pageCo.paddingInlinePageContainerContent
|
|
51976
52031
|
},
|
|
51977
52032
|
'&-affix': defineProperty_defineProperty({}, "".concat(token.antCls, "-affix"), defineProperty_defineProperty({}, "".concat(token.componentCls, "-warp"), {
|
|
51978
|
-
backgroundColor: token.colorBgPageContainerFixed,
|
|
52033
|
+
backgroundColor: (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$pageCo = _token$layout3.pageContainer) === null || _token$layout3$pageCo === void 0 ? void 0 : _token$layout3$pageCo.colorBgPageContainerFixed,
|
|
51979
52034
|
transition: 'background-color 0.3s',
|
|
51980
52035
|
boxShadow: '0 2px 8px #f0f1f2'
|
|
51981
52036
|
}))
|
|
51982
52037
|
}, defineProperty_defineProperty(_token$componentCls, '& &-warp-page-header', defineProperty_defineProperty({
|
|
51983
|
-
paddingBlockEnd: token.paddingBlockPageContainerContent / 2,
|
|
51984
|
-
paddingInlineStart: token.paddingInlinePageContainerContent,
|
|
51985
|
-
paddingInlineEnd: token.paddingInlinePageContainerContent
|
|
52038
|
+
paddingBlockEnd: ((_token$layout$pageCon2 = (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$pageCo = _token$layout4.pageContainer) === null || _token$layout4$pageCo === void 0 ? void 0 : _token$layout4$pageCo.paddingBlockPageContainerContent) !== null && _token$layout$pageCon2 !== void 0 ? _token$layout$pageCon2 : 40) / 2,
|
|
52039
|
+
paddingInlineStart: (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$pageCo = _token$layout5.pageContainer) === null || _token$layout5$pageCo === void 0 ? void 0 : _token$layout5$pageCo.paddingInlinePageContainerContent,
|
|
52040
|
+
paddingInlineEnd: (_token$layout6 = token.layout) === null || _token$layout6 === void 0 ? void 0 : (_token$layout6$pageCo = _token$layout6.pageContainer) === null || _token$layout6$pageCo === void 0 ? void 0 : _token$layout6$pageCo.paddingInlinePageContainerContent
|
|
51986
52041
|
}, "& ~ ".concat(token.proComponentsCls, "-grid-content"), defineProperty_defineProperty({}, "".concat(token.proComponentsCls, "-page-container-children-content"), {
|
|
51987
|
-
paddingBlock: token.paddingBlockPageContainerContent / 3
|
|
52042
|
+
paddingBlock: ((_token$layout$pageCon3 = (_token$layout7 = token.layout) === null || _token$layout7 === void 0 ? void 0 : (_token$layout7$pageCo = _token$layout7.pageContainer) === null || _token$layout7$pageCo === void 0 ? void 0 : _token$layout7$pageCo.paddingBlockPageContainerContent) !== null && _token$layout$pageCon3 !== void 0 ? _token$layout$pageCon3 : 24) / 3
|
|
51988
52043
|
}))), defineProperty_defineProperty(_token$componentCls, '&-detail', defineProperty_defineProperty({
|
|
51989
52044
|
display: 'flex'
|
|
51990
52045
|
}, sm, {
|
|
@@ -52016,16 +52071,12 @@ var genPageContainerStyle = function genPageContainerStyle(token) {
|
|
|
52016
52071
|
}), _extraContent)), _token$componentCls));
|
|
52017
52072
|
};
|
|
52018
52073
|
function PageContainer_style_useStyle(prefixCls, componentsToken) {
|
|
52019
|
-
var _useContext = (0,external_React_.useContext)(ProLayoutContext),
|
|
52020
|
-
pageContainer = _useContext.pageContainer;
|
|
52021
52074
|
return useStyle('PageContainer', function (token) {
|
|
52022
|
-
var proCardToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2(
|
|
52075
|
+
var proCardToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
52023
52076
|
componentCls: ".".concat(prefixCls)
|
|
52024
|
-
},
|
|
52077
|
+
}, componentsToken);
|
|
52025
52078
|
return [genPageContainerStyle(proCardToken)];
|
|
52026
|
-
}
|
|
52027
|
-
// 触发一下更新
|
|
52028
|
-
componentsToken);
|
|
52079
|
+
});
|
|
52029
52080
|
}
|
|
52030
52081
|
;// CONCATENATED MODULE: ./packages/layout/es/components/PageContainer/index.js
|
|
52031
52082
|
|
|
@@ -52046,7 +52097,6 @@ var PageContainer_excluded = ["title", "content", "pageHeaderRender", "header",
|
|
|
52046
52097
|
|
|
52047
52098
|
|
|
52048
52099
|
|
|
52049
|
-
|
|
52050
52100
|
function genLoading(spinProps) {
|
|
52051
52101
|
if (typeof_typeof(spinProps) === 'object') {
|
|
52052
52102
|
return spinProps;
|
|
@@ -52191,7 +52241,7 @@ var memoRenderPageHeader = function memoRenderPageHeader(props) {
|
|
|
52191
52241
|
}));
|
|
52192
52242
|
};
|
|
52193
52243
|
var PageContainer = function PageContainer(props) {
|
|
52194
|
-
var _restProps$header2, _classNames;
|
|
52244
|
+
var _restProps$header2, _token$layout2, _token$layout2$pageCo, _classNames, _token$layout3, _token$layout3$header;
|
|
52195
52245
|
var children = props.children,
|
|
52196
52246
|
_props$loading = props.loading,
|
|
52197
52247
|
loading = _props$loading === void 0 ? false : _props$loading,
|
|
@@ -52221,8 +52271,8 @@ var PageContainer = function PageContainer(props) {
|
|
|
52221
52271
|
};
|
|
52222
52272
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
52223
52273
|
}, []);
|
|
52224
|
-
var _useContext = (0,external_React_.useContext)(
|
|
52225
|
-
|
|
52274
|
+
var _useContext = (0,external_React_.useContext)(ProProvider),
|
|
52275
|
+
token = _useContext.token;
|
|
52226
52276
|
var _useContext2 = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
|
|
52227
52277
|
getPrefixCls = _useContext2.getPrefixCls;
|
|
52228
52278
|
var prefixCls = props.prefixCls || getPrefixCls('pro');
|
|
@@ -52258,6 +52308,7 @@ var PageContainer = function PageContainer(props) {
|
|
|
52258
52308
|
return spinProps.spinning ? (0,jsx_runtime.jsx)(PageLoading, objectSpread2_objectSpread2({}, spinProps)) : null;
|
|
52259
52309
|
}, [loading]);
|
|
52260
52310
|
var content = (0,external_React_.useMemo)(function () {
|
|
52311
|
+
var _token$layout, _token$layout$pageCon;
|
|
52261
52312
|
return children ? (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
52262
52313
|
children: [(0,jsx_runtime.jsx)("div", {
|
|
52263
52314
|
className: classnames_default()("".concat(basePageContainer, "-children-content ").concat(hashId)),
|
|
@@ -52269,11 +52320,11 @@ var PageContainer = function PageContainer(props) {
|
|
|
52269
52320
|
}), value.hasFooterToolbar && (0,jsx_runtime.jsx)("div", {
|
|
52270
52321
|
style: {
|
|
52271
52322
|
height: 64,
|
|
52272
|
-
marginBlockStart: pageContainer.paddingBlockPageContainerContent
|
|
52323
|
+
marginBlockStart: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$pageCon = _token$layout.pageContainer) === null || _token$layout$pageCon === void 0 ? void 0 : _token$layout$pageCon.paddingBlockPageContainerContent
|
|
52273
52324
|
}
|
|
52274
52325
|
})]
|
|
52275
52326
|
}) : null;
|
|
52276
|
-
}, [children, basePageContainer, hashId, propsToken === null || propsToken === void 0 ? void 0 : propsToken.paddingBlockPageContainerContent, propsToken === null || propsToken === void 0 ? void 0 : propsToken.paddingInlinePageContainerContent, value.hasFooterToolbar, pageContainer.paddingBlockPageContainerContent]);
|
|
52327
|
+
}, [children, basePageContainer, hashId, propsToken === null || propsToken === void 0 ? void 0 : propsToken.paddingBlockPageContainerContent, propsToken === null || propsToken === void 0 ? void 0 : propsToken.paddingInlinePageContainerContent, value.hasFooterToolbar, token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$pageCo = _token$layout2.pageContainer) === null || _token$layout2$pageCo === void 0 ? void 0 : _token$layout2$pageCo.paddingBlockPageContainerContent]);
|
|
52277
52328
|
var renderContentDom = (0,external_React_.useMemo)(function () {
|
|
52278
52329
|
// 只要loadingDom非空我们就渲染loadingDom,否则渲染内容
|
|
52279
52330
|
var dom = loadingDom || content;
|
|
@@ -52286,7 +52337,6 @@ var PageContainer = function PageContainer(props) {
|
|
|
52286
52337
|
return dom;
|
|
52287
52338
|
}, [props.waterMarkProps, value.waterMarkProps, loadingDom, content]);
|
|
52288
52339
|
var containerClassName = classnames_default()(basePageContainer, hashId, className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(basePageContainer, "-with-footer"), footer), defineProperty_defineProperty(_classNames, "".concat(basePageContainer, "-with-affix"), fixedHeader && pageHeaderDom), _classNames));
|
|
52289
|
-
var token = (0,external_React_.useContext)(ProLayoutContext);
|
|
52290
52340
|
return wrapSSR((0,jsx_runtime.jsxs)(ConfigProviderWrap, {
|
|
52291
52341
|
children: [(0,jsx_runtime.jsxs)("div", {
|
|
52292
52342
|
style: style,
|
|
@@ -52294,7 +52344,7 @@ var PageContainer = function PageContainer(props) {
|
|
|
52294
52344
|
children: [fixedHeader && pageHeaderDom ?
|
|
52295
52345
|
// 在 hasHeader 且 fixedHeader 的情况下,才需要设置高度
|
|
52296
52346
|
(0,jsx_runtime.jsx)(external_antd_.Affix, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
52297
|
-
offsetTop: value.hasHeader && value.fixedHeader ? token.header.heightLayoutHeader : 0
|
|
52347
|
+
offsetTop: value.hasHeader && value.fixedHeader ? token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$header = _token$layout3.header) === null || _token$layout3$header === void 0 ? void 0 : _token$layout3$header.heightLayoutHeader : 0
|
|
52298
52348
|
}, affixProps), {}, {
|
|
52299
52349
|
className: "".concat(basePageContainer, "-affix ").concat(hashId),
|
|
52300
52350
|
children: (0,jsx_runtime.jsx)("div", {
|
|
@@ -52468,19 +52518,18 @@ var DefaultFooter = function DefaultFooter(_ref) {
|
|
|
52468
52518
|
|
|
52469
52519
|
|
|
52470
52520
|
|
|
52471
|
-
|
|
52472
|
-
|
|
52473
52521
|
var genProLayoutHeaderStyle = function genProLayoutHeaderStyle(token) {
|
|
52522
|
+
var _token$layout, _token$layout$header, _token$layout2, _token$layout2$header, _token$layout3, _token$layout3$header;
|
|
52474
52523
|
return defineProperty_defineProperty({}, token.proLayoutCls, defineProperty_defineProperty({}, ".ant-layout-header".concat(token.componentCls), {
|
|
52475
|
-
height: token.
|
|
52476
|
-
lineHeight: "".concat(token.
|
|
52524
|
+
height: (token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.heightLayoutHeader) || 56,
|
|
52525
|
+
lineHeight: "".concat((token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.heightLayoutHeader) || 56, "px"),
|
|
52477
52526
|
// hitu 用了这个属性,不能删除哦 @南取
|
|
52478
52527
|
zIndex: 19,
|
|
52479
52528
|
width: '100%',
|
|
52480
52529
|
paddingBlock: 0,
|
|
52481
52530
|
paddingInline: 8,
|
|
52482
52531
|
borderBlockEnd: "1px solid ".concat(token.colorSplit),
|
|
52483
|
-
backgroundColor: token.colorBgHeader || 'rgba(255, 255, 255, 0.4)',
|
|
52532
|
+
backgroundColor: (token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$header = _token$layout3.header) === null || _token$layout3$header === void 0 ? void 0 : _token$layout3$header.colorBgHeader) || 'rgba(255, 255, 255, 0.4)',
|
|
52484
52533
|
WebkitBackdropFilter: 'blur(8px)',
|
|
52485
52534
|
backdropFilter: 'blur(8px)',
|
|
52486
52535
|
'&-fixed-header': {
|
|
@@ -52512,14 +52561,11 @@ var genProLayoutHeaderStyle = function genProLayoutHeaderStyle(token) {
|
|
|
52512
52561
|
}));
|
|
52513
52562
|
};
|
|
52514
52563
|
function header_useStyle(prefixCls, props) {
|
|
52515
|
-
var _useContext = (0,external_React_.useContext)(ProLayoutContext),
|
|
52516
|
-
header = _useContext.header;
|
|
52517
52564
|
return useStyle('ProLayoutHeader', function (token) {
|
|
52518
52565
|
var ProLayoutHeaderToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
52519
52566
|
componentCls: ".".concat(prefixCls),
|
|
52520
|
-
proLayoutCls: ".".concat(props.proLayoutCls)
|
|
52521
|
-
|
|
52522
|
-
}, header);
|
|
52567
|
+
proLayoutCls: ".".concat(props.proLayoutCls)
|
|
52568
|
+
});
|
|
52523
52569
|
return [genProLayoutHeaderStyle(ProLayoutHeaderToken)];
|
|
52524
52570
|
});
|
|
52525
52571
|
}
|
|
@@ -52909,10 +52955,8 @@ var genAppsLogoComponentsSimpleListStyle = function genAppsLogoComponentsSimpleL
|
|
|
52909
52955
|
|
|
52910
52956
|
|
|
52911
52957
|
|
|
52912
|
-
|
|
52913
|
-
|
|
52914
52958
|
var genAppsLogoComponentsStyle = function genAppsLogoComponentsStyle(token) {
|
|
52915
|
-
var _popover;
|
|
52959
|
+
var _token$layout, _token$layout2, _token$layout3, _token$layout4, _token$layout5, _popover;
|
|
52916
52960
|
return defineProperty_defineProperty({}, token.componentCls, {
|
|
52917
52961
|
'&-icon': {
|
|
52918
52962
|
display: 'inline-flex',
|
|
@@ -52925,14 +52969,14 @@ var genAppsLogoComponentsStyle = function genAppsLogoComponentsStyle(token) {
|
|
|
52925
52969
|
height: 28,
|
|
52926
52970
|
width: 28,
|
|
52927
52971
|
cursor: 'pointer',
|
|
52928
|
-
color: token.colorTextAppListIcon,
|
|
52972
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : _token$layout.colorTextAppListIcon,
|
|
52929
52973
|
'&:hover': {
|
|
52930
|
-
color: token.colorTextAppListIconHover,
|
|
52931
|
-
backgroundColor: token.colorBgAppListIconHover
|
|
52974
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : _token$layout2.colorTextAppListIconHover,
|
|
52975
|
+
backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : _token$layout3.colorBgAppListIconHover
|
|
52932
52976
|
},
|
|
52933
52977
|
'&-active': {
|
|
52934
|
-
color: token.colorTextAppListIconHover,
|
|
52935
|
-
backgroundColor: token.colorBgAppListIconHover
|
|
52978
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : _token$layout4.colorTextAppListIconHover,
|
|
52979
|
+
backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : _token$layout5.colorBgAppListIconHover
|
|
52936
52980
|
}
|
|
52937
52981
|
},
|
|
52938
52982
|
'&-popover': (_popover = {}, defineProperty_defineProperty(_popover, "".concat(token.antCls, "-popover-arrow"), {
|
|
@@ -52946,11 +52990,10 @@ var genAppsLogoComponentsStyle = function genAppsLogoComponentsStyle(token) {
|
|
|
52946
52990
|
});
|
|
52947
52991
|
};
|
|
52948
52992
|
function AppsLogoComponents_style_useStyle(prefixCls) {
|
|
52949
|
-
var proToken = (0,external_React_.useContext)(ProLayoutContext);
|
|
52950
52993
|
return useStyle('AppsLogoComponents', function (token) {
|
|
52951
52994
|
var proCardToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
52952
52995
|
componentCls: ".".concat(prefixCls)
|
|
52953
|
-
}
|
|
52996
|
+
});
|
|
52954
52997
|
return [genAppsLogoComponentsStyle(proCardToken)];
|
|
52955
52998
|
});
|
|
52956
52999
|
}
|
|
@@ -53079,9 +53122,8 @@ function ArrowSvgIcon() {
|
|
|
53079
53122
|
|
|
53080
53123
|
|
|
53081
53124
|
|
|
53082
|
-
|
|
53083
|
-
|
|
53084
53125
|
var genSiderMenuStyle = function genSiderMenuStyle(token) {
|
|
53126
|
+
var _token$layout, _token$layout$sider, _token$layout2, _token$layout2$sider, _token$layout3, _token$layout3$sider;
|
|
53085
53127
|
return defineProperty_defineProperty({}, token.componentCls, {
|
|
53086
53128
|
position: 'absolute',
|
|
53087
53129
|
insetBlockStart: '18px',
|
|
@@ -53097,11 +53139,11 @@ var genSiderMenuStyle = function genSiderMenuStyle(token) {
|
|
|
53097
53139
|
alignItems: 'center',
|
|
53098
53140
|
justifyContent: 'center',
|
|
53099
53141
|
cursor: 'pointer',
|
|
53100
|
-
color: token.colorTextCollapsedButton,
|
|
53101
|
-
backgroundColor: token.colorBgCollapsedButton,
|
|
53142
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorTextCollapsedButton,
|
|
53143
|
+
backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$sider = _token$layout2.sider) === null || _token$layout2$sider === void 0 ? void 0 : _token$layout2$sider.colorBgCollapsedButton,
|
|
53102
53144
|
boxShadow: '0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)',
|
|
53103
53145
|
'&:hover': {
|
|
53104
|
-
color: token.colorTextCollapsedButtonHover,
|
|
53146
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$sider = _token$layout3.sider) === null || _token$layout3$sider === void 0 ? void 0 : _token$layout3$sider.colorTextCollapsedButtonHover,
|
|
53105
53147
|
boxShadow: '0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)'
|
|
53106
53148
|
},
|
|
53107
53149
|
'.anticon': {
|
|
@@ -53119,12 +53161,10 @@ var genSiderMenuStyle = function genSiderMenuStyle(token) {
|
|
|
53119
53161
|
});
|
|
53120
53162
|
};
|
|
53121
53163
|
function CollapsedIcon_style_useStyle(prefixCls) {
|
|
53122
|
-
var _useContext = (0,external_React_.useContext)(ProLayoutContext),
|
|
53123
|
-
sider = _useContext.sider;
|
|
53124
53164
|
return useStyle('SiderMenuCollapsedIcon', function (token) {
|
|
53125
53165
|
var siderMenuToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
53126
53166
|
componentCls: ".".concat(prefixCls)
|
|
53127
|
-
}
|
|
53167
|
+
});
|
|
53128
53168
|
return [genSiderMenuStyle(siderMenuToken)];
|
|
53129
53169
|
});
|
|
53130
53170
|
}
|
|
@@ -53354,10 +53394,8 @@ var MenuCounter = createContainer(useMenuCounter);
|
|
|
53354
53394
|
|
|
53355
53395
|
|
|
53356
53396
|
|
|
53357
|
-
|
|
53358
|
-
|
|
53359
53397
|
var genProLayoutBaseMenuStyle = function genProLayoutBaseMenuStyle(token) {
|
|
53360
|
-
var _collapsed, _collapsed2, _$concat2, _$concat4;
|
|
53398
|
+
var _token$layout, _token$layout$sider, _collapsed, _collapsed2, _$concat2, _$concat4;
|
|
53361
53399
|
return defineProperty_defineProperty({}, "".concat(token.componentCls), (_$concat4 = {
|
|
53362
53400
|
background: 'transparent',
|
|
53363
53401
|
border: 'none'
|
|
@@ -53366,7 +53404,7 @@ var genProLayoutBaseMenuStyle = function genProLayoutBaseMenuStyle(token) {
|
|
|
53366
53404
|
height: 'auto !important',
|
|
53367
53405
|
marginBlock: '8px !important'
|
|
53368
53406
|
}), defineProperty_defineProperty(_collapsed, "".concat(token.antCls, "-menu-item-group > ").concat(token.antCls, "-menu-item-group-list > ").concat(token.antCls, "-menu-submenu-selected > ").concat(token.antCls, "-menu-submenu-title, \n ").concat(token.antCls, "-menu-submenu-selected > ").concat(token.antCls, "-menu-submenu-title"), {
|
|
53369
|
-
backgroundColor: token.colorBgMenuItemSelected,
|
|
53407
|
+
backgroundColor: (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorBgMenuItemSelected,
|
|
53370
53408
|
borderRadius: token.radiusBase
|
|
53371
53409
|
}), defineProperty_defineProperty(_collapsed, "".concat(token.componentCls, "-group"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-item-group-title"), {
|
|
53372
53410
|
paddingInline: 0
|
|
@@ -53429,12 +53467,10 @@ var genProLayoutBaseMenuStyle = function genProLayoutBaseMenuStyle(token) {
|
|
|
53429
53467
|
}), _$concat4));
|
|
53430
53468
|
};
|
|
53431
53469
|
function menu_useStyle(prefixCls) {
|
|
53432
|
-
var _useContext = (0,external_React_.useContext)(ProLayoutContext),
|
|
53433
|
-
sider = _useContext.sider;
|
|
53434
53470
|
return useStyle('ProLayoutBaseMenu', function (token) {
|
|
53435
53471
|
var proLayoutMenuToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
53436
53472
|
componentCls: ".".concat(prefixCls)
|
|
53437
|
-
}
|
|
53473
|
+
});
|
|
53438
53474
|
return [genProLayoutBaseMenuStyle(proLayoutMenuToken)];
|
|
53439
53475
|
});
|
|
53440
53476
|
}
|
|
@@ -53521,7 +53557,7 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
|
|
|
53521
53557
|
var children = (item === null || item === void 0 ? void 0 : item.children) || (item === null || item === void 0 ? void 0 : item.routes);
|
|
53522
53558
|
var menuType = isGroup && level === 0 ? 'group' : undefined;
|
|
53523
53559
|
if (Array.isArray(children) && children.length > 0) {
|
|
53524
|
-
var _this$props2, _this$props3, _classNames, _this$props4, _this$props5, _designToken$
|
|
53560
|
+
var _this$props2, _this$props3, _classNames, _this$props4, _this$props5, _designToken$layout, _designToken$layout$s;
|
|
53525
53561
|
/** Menu 第一级可以有icon,或者 isGroup 时第二级别也要有 */
|
|
53526
53562
|
var shouldHasIcon = level === 0 || isGroup && level === 1;
|
|
53527
53563
|
// get defaultTitle by menuItemRender
|
|
@@ -53567,7 +53603,7 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
|
|
|
53567
53603
|
borderBlockEnd: 0,
|
|
53568
53604
|
margin: _this.props.collapsed ? '4px' : '6px 16px',
|
|
53569
53605
|
marginBlockStart: _this.props.collapsed ? 4 : 8,
|
|
53570
|
-
borderColor: designToken === null || designToken === void 0 ? void 0 : (_designToken$
|
|
53606
|
+
borderColor: designToken === null || designToken === void 0 ? void 0 : (_designToken$layout = designToken.layout) === null || _designToken$layout === void 0 ? void 0 : (_designToken$layout$s = _designToken$layout.sider) === null || _designToken$layout$s === void 0 ? void 0 : _designToken$layout$s.colorMenuItemDivider
|
|
53571
53607
|
}
|
|
53572
53608
|
} : undefined].filter(Boolean);
|
|
53573
53609
|
}
|
|
@@ -53669,11 +53705,12 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
|
|
|
53669
53705
|
return "/".concat(path || '').replace(/\/+/g, '/');
|
|
53670
53706
|
};
|
|
53671
53707
|
this.props = props;
|
|
53672
|
-
});
|
|
53673
|
-
|
|
53674
|
-
|
|
53675
|
-
|
|
53676
|
-
|
|
53708
|
+
});
|
|
53709
|
+
/**
|
|
53710
|
+
* 生成openKeys 的对象,因为设置了openKeys 就会变成受控,所以需要一个空对象
|
|
53711
|
+
*
|
|
53712
|
+
* @param BaseMenuProps
|
|
53713
|
+
*/
|
|
53677
53714
|
var getOpenKeysProps = function getOpenKeysProps(openKeys, _ref) {
|
|
53678
53715
|
var layout = _ref.layout,
|
|
53679
53716
|
collapsed = _ref.collapsed;
|
|
@@ -53700,7 +53737,8 @@ var BaseMenu = function BaseMenu(props) {
|
|
|
53700
53737
|
onSelect = props.onSelect,
|
|
53701
53738
|
menuRenderType = props.menuRenderType,
|
|
53702
53739
|
propsOpenKeys = props.openKeys;
|
|
53703
|
-
var
|
|
53740
|
+
var _useContext = (0,external_React_.useContext)(ProProvider),
|
|
53741
|
+
designToken = _useContext.token;
|
|
53704
53742
|
var baseClassName = "".concat(prefixCls, "-base-menu");
|
|
53705
53743
|
// 用于减少 defaultOpenKeys 计算的组件
|
|
53706
53744
|
var defaultOpenKeysRef = (0,external_React_.useRef)([]);
|
|
@@ -53888,7 +53926,7 @@ var renderLogoAndTitle = function renderLogoAndTitle(props) {
|
|
|
53888
53926
|
}, "title");
|
|
53889
53927
|
};
|
|
53890
53928
|
var SiderMenu = function SiderMenu(props) {
|
|
53891
|
-
var _classNames, _props$menu2;
|
|
53929
|
+
var _classNames, _props$menu2, _process$env$NODE_ENV, _token$layout, _token$layout$sider, _token$layout2, _token$layout2$sider, _token$layout3, _token$layout3$sider, _token$layout4, _token$layout4$sider, _token$layout5, _token$layout5$sider;
|
|
53892
53930
|
var collapsed = props.collapsed,
|
|
53893
53931
|
originCollapsed = props.originCollapsed,
|
|
53894
53932
|
fixSiderbar = props.fixSiderbar,
|
|
@@ -54051,8 +54089,8 @@ var SiderMenu = function SiderMenu(props) {
|
|
|
54051
54089
|
children: menuFooterDom
|
|
54052
54090
|
})]
|
|
54053
54091
|
});
|
|
54054
|
-
var _useContext = (0,external_React_.useContext)(
|
|
54055
|
-
|
|
54092
|
+
var _useContext = (0,external_React_.useContext)(ProProvider),
|
|
54093
|
+
token = _useContext.token;
|
|
54056
54094
|
return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
54057
54095
|
children: [fixSiderbar && !isMobile && !hideMenuWhenCollapsedClassName && (0,jsx_runtime.jsx)("div", {
|
|
54058
54096
|
style: objectSpread2_objectSpread2({
|
|
@@ -54082,18 +54120,18 @@ var SiderMenu = function SiderMenu(props) {
|
|
|
54082
54120
|
, {
|
|
54083
54121
|
// @ts-ignore
|
|
54084
54122
|
theme: {
|
|
54085
|
-
hashed:
|
|
54123
|
+
hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test',
|
|
54086
54124
|
components: {
|
|
54087
54125
|
Menu: {
|
|
54088
54126
|
radiusItem: 4,
|
|
54089
|
-
colorItemBgSelected: sider.colorBgMenuItemSelected || 'rgba(0, 0, 0, 0.04)',
|
|
54090
|
-
colorItemBgActive: sider.colorBgMenuItemHover || 'rgba(0, 0, 0, 0.04)',
|
|
54127
|
+
colorItemBgSelected: (token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorBgMenuItemSelected) || 'rgba(0, 0, 0, 0.04)',
|
|
54128
|
+
colorItemBgActive: (token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$sider = _token$layout2.sider) === null || _token$layout2$sider === void 0 ? void 0 : _token$layout2$sider.colorBgMenuItemHover) || 'rgba(0, 0, 0, 0.04)',
|
|
54091
54129
|
colorActiveBarWidth: 0,
|
|
54092
54130
|
colorActiveBarHeight: 0,
|
|
54093
54131
|
colorActiveBarBorderSize: 0,
|
|
54094
|
-
colorItemText: sider.colorTextMenu || 'rgba(0, 0, 0, 0.65)',
|
|
54095
|
-
colorItemTextHover: sider.colorTextMenuActive || 'rgba(0, 0, 0, 0.85)',
|
|
54096
|
-
colorItemTextSelected: sider.colorTextMenuSelected || 'rgba(0, 0, 0, 1)',
|
|
54132
|
+
colorItemText: (token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$sider = _token$layout3.sider) === null || _token$layout3$sider === void 0 ? void 0 : _token$layout3$sider.colorTextMenu) || 'rgba(0, 0, 0, 0.65)',
|
|
54133
|
+
colorItemTextHover: (token === null || token === void 0 ? void 0 : (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$sider = _token$layout4.sider) === null || _token$layout4$sider === void 0 ? void 0 : _token$layout4$sider.colorTextMenuActive) || 'rgba(0, 0, 0, 0.85)',
|
|
54134
|
+
colorItemTextSelected: (token === null || token === void 0 ? void 0 : (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$sider = _token$layout5.sider) === null || _token$layout5$sider === void 0 ? void 0 : _token$layout5$sider.colorTextMenuSelected) || 'rgba(0, 0, 0, 1)',
|
|
54097
54135
|
colorItemBg: 'transparent',
|
|
54098
54136
|
colorSubItemBg: 'transparent'
|
|
54099
54137
|
}
|
|
@@ -54117,9 +54155,8 @@ var SiderMenu = function SiderMenu(props) {
|
|
|
54117
54155
|
|
|
54118
54156
|
|
|
54119
54157
|
|
|
54120
|
-
|
|
54121
|
-
|
|
54122
54158
|
var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
|
|
54159
|
+
var _token$layout, _token$layout$header, _token$layout2, _token$layout2$header;
|
|
54123
54160
|
return defineProperty_defineProperty({}, token.componentCls, {
|
|
54124
54161
|
'&-header-actions': {
|
|
54125
54162
|
display: 'flex',
|
|
@@ -54130,7 +54167,7 @@ var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
|
|
|
54130
54167
|
justifyContent: 'center',
|
|
54131
54168
|
paddingBlock: 0,
|
|
54132
54169
|
paddingInline: 2,
|
|
54133
|
-
color: token.colorTextRightActionsItem,
|
|
54170
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.colorTextRightActionsItem,
|
|
54134
54171
|
fontSize: '16px',
|
|
54135
54172
|
cursor: 'pointer',
|
|
54136
54173
|
borderRadius: token.radiusBase,
|
|
@@ -54139,7 +54176,7 @@ var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
|
|
|
54139
54176
|
paddingBlock: 6,
|
|
54140
54177
|
borderRadius: token.radiusBase,
|
|
54141
54178
|
'&:hover': {
|
|
54142
|
-
backgroundColor: token.colorBgRightActionsItemHover
|
|
54179
|
+
backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.colorBgRightActionsItemHover
|
|
54143
54180
|
}
|
|
54144
54181
|
}
|
|
54145
54182
|
},
|
|
@@ -54169,12 +54206,10 @@ var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
|
|
|
54169
54206
|
});
|
|
54170
54207
|
};
|
|
54171
54208
|
function rightContentStyle_useStyle(prefixCls) {
|
|
54172
|
-
var _useContext = (0,external_React_.useContext)(ProLayoutContext),
|
|
54173
|
-
header = _useContext.header;
|
|
54174
54209
|
return useStyle('RightContent', function (token) {
|
|
54175
54210
|
var proToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
54176
54211
|
componentCls: ".".concat(prefixCls)
|
|
54177
|
-
}
|
|
54212
|
+
});
|
|
54178
54213
|
return [genTopNavHeaderStyle(proToken)];
|
|
54179
54214
|
});
|
|
54180
54215
|
}
|
|
@@ -54310,9 +54345,9 @@ var RightContent = function RightContent(_ref) {
|
|
|
54310
54345
|
|
|
54311
54346
|
|
|
54312
54347
|
|
|
54313
|
-
|
|
54314
|
-
|
|
54315
54348
|
var style_genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
|
|
54349
|
+
var _token$layout, _token$layout$header, _token$layout2, _token$layout2$header;
|
|
54350
|
+
console.log(token.layout);
|
|
54316
54351
|
return defineProperty_defineProperty({}, token.componentCls, {
|
|
54317
54352
|
position: 'relative',
|
|
54318
54353
|
width: '100%',
|
|
@@ -54360,7 +54395,7 @@ var style_genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
|
|
|
54360
54395
|
marginInlineStart: 6,
|
|
54361
54396
|
fontWeight: '600',
|
|
54362
54397
|
fontSize: '16px',
|
|
54363
|
-
color: token === null || token === void 0 ? void 0 : token.colorHeaderTitle,
|
|
54398
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.colorHeaderTitle,
|
|
54364
54399
|
verticalAlign: 'top'
|
|
54365
54400
|
}
|
|
54366
54401
|
},
|
|
@@ -54370,17 +54405,15 @@ var style_genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
|
|
|
54370
54405
|
alignItems: 'center',
|
|
54371
54406
|
paddingInline: 6,
|
|
54372
54407
|
paddingBlock: 6,
|
|
54373
|
-
lineHeight: "".concat(token.heightLayoutHeader - 12, "px")
|
|
54408
|
+
lineHeight: "".concat(((token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.heightLayoutHeader) || 56) - 12, "px")
|
|
54374
54409
|
}
|
|
54375
54410
|
});
|
|
54376
54411
|
};
|
|
54377
54412
|
function TopNavHeader_style_useStyle(prefixCls) {
|
|
54378
|
-
var _useContext = (0,external_React_.useContext)(ProLayoutContext),
|
|
54379
|
-
header = _useContext.header;
|
|
54380
54413
|
return useStyle('ProLayoutTopNavHeader', function (token) {
|
|
54381
54414
|
var topNavHeaderToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
54382
54415
|
componentCls: ".".concat(prefixCls)
|
|
54383
|
-
}
|
|
54416
|
+
});
|
|
54384
54417
|
return [style_genTopNavHeaderStyle(topNavHeaderToken)];
|
|
54385
54418
|
});
|
|
54386
54419
|
}
|
|
@@ -54398,6 +54431,7 @@ function TopNavHeader_style_useStyle(prefixCls) {
|
|
|
54398
54431
|
|
|
54399
54432
|
|
|
54400
54433
|
var TopNavHeader = function TopNavHeader(props) {
|
|
54434
|
+
var _token$layout9, _token$layout9$header, _token$layout10, _token$layout10$heade, _token$layout11, _token$layout11$heade, _token$layout12, _token$layout12$heade, _token$layout13, _token$layout13$heade, _token$layout14, _token$layout14$heade;
|
|
54401
54435
|
var ref = (0,external_React_.useRef)(null);
|
|
54402
54436
|
var onMenuHeaderClick = props.onMenuHeaderClick,
|
|
54403
54437
|
contentWidth = props.contentWidth,
|
|
@@ -54409,8 +54443,8 @@ var TopNavHeader = function TopNavHeader(props) {
|
|
|
54409
54443
|
actionsRender = props.actionsRender;
|
|
54410
54444
|
var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
|
|
54411
54445
|
getPrefixCls = _useContext.getPrefixCls;
|
|
54412
|
-
var _useContext2 = (0,external_React_.useContext)(
|
|
54413
|
-
|
|
54446
|
+
var _useContext2 = (0,external_React_.useContext)(ProProvider),
|
|
54447
|
+
token = _useContext2.token;
|
|
54414
54448
|
var prefixCls = "".concat(props.prefixCls || getPrefixCls('pro'), "-top-nav-header");
|
|
54415
54449
|
var _useStyle = TopNavHeader_style_useStyle(prefixCls),
|
|
54416
54450
|
wrapSSR = _useStyle.wrapSSR,
|
|
@@ -54419,24 +54453,24 @@ var TopNavHeader = function TopNavHeader(props) {
|
|
|
54419
54453
|
collapsed: false
|
|
54420
54454
|
}), layout === 'mix' ? 'headerTitleRender' : undefined);
|
|
54421
54455
|
var contentDom = (0,external_React_.useMemo)(function () {
|
|
54422
|
-
var _process$env$NODE_ENV, _props$menuProps;
|
|
54456
|
+
var _process$env$NODE_ENV, _token$layout, _token$layout$header, _token$layout2, _token$layout2$header, _token$layout3, _token$layout3$header, _token$layout4, _token$layout4$header, _token$layout5, _token$layout5$header, _token$layout6, _token$layout6$header, _token$layout7, _token$layout7$header, _token$layout8, _token$layout8$header, _props$menuProps;
|
|
54423
54457
|
var defaultDom = (0,jsx_runtime.jsx)(external_antd_.ConfigProvider, {
|
|
54424
54458
|
theme: {
|
|
54425
54459
|
hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test',
|
|
54426
54460
|
components: {
|
|
54427
54461
|
Menu: {
|
|
54428
|
-
colorItemBg: header.colorBgHeader || 'transparent',
|
|
54429
|
-
colorSubItemBg: header.colorBgHeader || 'transparent',
|
|
54462
|
+
colorItemBg: (token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.colorBgHeader) || 'transparent',
|
|
54463
|
+
colorSubItemBg: (token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.colorBgHeader) || 'transparent',
|
|
54430
54464
|
radiusItem: 4,
|
|
54431
|
-
colorItemBgSelected: header.colorBgMenuItemSelected || 'rgba(0, 0, 0, 0.04)',
|
|
54432
|
-
colorItemBgActive: header.colorBgMenuItemHover || 'rgba(0, 0, 0, 0.04)',
|
|
54433
|
-
colorItemBgSelectedHorizontal: header.colorBgMenuItemSelected || 'rgba(0, 0, 0, 0.04)',
|
|
54465
|
+
colorItemBgSelected: (token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$header = _token$layout3.header) === null || _token$layout3$header === void 0 ? void 0 : _token$layout3$header.colorBgMenuItemSelected) || 'rgba(0, 0, 0, 0.04)',
|
|
54466
|
+
colorItemBgActive: (token === null || token === void 0 ? void 0 : (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$header = _token$layout4.header) === null || _token$layout4$header === void 0 ? void 0 : _token$layout4$header.colorBgMenuItemHover) || 'rgba(0, 0, 0, 0.04)',
|
|
54467
|
+
colorItemBgSelectedHorizontal: (token === null || token === void 0 ? void 0 : (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$header = _token$layout5.header) === null || _token$layout5$header === void 0 ? void 0 : _token$layout5$header.colorBgMenuItemSelected) || 'rgba(0, 0, 0, 0.04)',
|
|
54434
54468
|
colorActiveBarWidth: 0,
|
|
54435
54469
|
colorActiveBarHeight: 0,
|
|
54436
54470
|
colorActiveBarBorderSize: 0,
|
|
54437
|
-
colorItemText: header.colorTextMenu || 'rgba(0, 0, 0, 0.65)',
|
|
54438
|
-
colorItemTextHover: header.colorTextMenuActive || 'rgba(0, 0, 0, 0.85)',
|
|
54439
|
-
colorItemTextSelected: header.colorTextMenuSelected || 'rgba(0, 0, 0, 1)'
|
|
54471
|
+
colorItemText: (token === null || token === void 0 ? void 0 : (_token$layout6 = token.layout) === null || _token$layout6 === void 0 ? void 0 : (_token$layout6$header = _token$layout6.header) === null || _token$layout6$header === void 0 ? void 0 : _token$layout6$header.colorTextMenu) || 'rgba(0, 0, 0, 0.65)',
|
|
54472
|
+
colorItemTextHover: (token === null || token === void 0 ? void 0 : (_token$layout7 = token.layout) === null || _token$layout7 === void 0 ? void 0 : (_token$layout7$header = _token$layout7.header) === null || _token$layout7$header === void 0 ? void 0 : _token$layout7$header.colorTextMenuActive) || 'rgba(0, 0, 0, 0.85)',
|
|
54473
|
+
colorItemTextSelected: (token === null || token === void 0 ? void 0 : (_token$layout8 = token.layout) === null || _token$layout8 === void 0 ? void 0 : (_token$layout8$header = _token$layout8.header) === null || _token$layout8$header === void 0 ? void 0 : _token$layout8$header.colorTextMenuSelected) || 'rgba(0, 0, 0, 1)'
|
|
54440
54474
|
}
|
|
54441
54475
|
}
|
|
54442
54476
|
},
|
|
@@ -54457,7 +54491,7 @@ var TopNavHeader = function TopNavHeader(props) {
|
|
|
54457
54491
|
return headerContentRender(props, defaultDom);
|
|
54458
54492
|
}
|
|
54459
54493
|
return defaultDom;
|
|
54460
|
-
}, [hashId, header.colorBgHeader, header.colorBgMenuItemHover, header.colorBgMenuItemSelected, header.colorTextMenu, header.colorTextMenuActive, header.colorTextMenuSelected, headerContentRender, prefixCls, props]);
|
|
54494
|
+
}, [hashId, token === null || token === void 0 ? void 0 : (_token$layout9 = token.layout) === null || _token$layout9 === void 0 ? void 0 : (_token$layout9$header = _token$layout9.header) === null || _token$layout9$header === void 0 ? void 0 : _token$layout9$header.colorBgHeader, token === null || token === void 0 ? void 0 : (_token$layout10 = token.layout) === null || _token$layout10 === void 0 ? void 0 : (_token$layout10$heade = _token$layout10.header) === null || _token$layout10$heade === void 0 ? void 0 : _token$layout10$heade.colorBgMenuItemHover, token === null || token === void 0 ? void 0 : (_token$layout11 = token.layout) === null || _token$layout11 === void 0 ? void 0 : (_token$layout11$heade = _token$layout11.header) === null || _token$layout11$heade === void 0 ? void 0 : _token$layout11$heade.colorBgMenuItemSelected, token === null || token === void 0 ? void 0 : (_token$layout12 = token.layout) === null || _token$layout12 === void 0 ? void 0 : (_token$layout12$heade = _token$layout12.header) === null || _token$layout12$heade === void 0 ? void 0 : _token$layout12$heade.colorTextMenu, token === null || token === void 0 ? void 0 : (_token$layout13 = token.layout) === null || _token$layout13 === void 0 ? void 0 : (_token$layout13$heade = _token$layout13.header) === null || _token$layout13$heade === void 0 ? void 0 : _token$layout13$heade.colorTextMenuActive, token === null || token === void 0 ? void 0 : (_token$layout14 = token.layout) === null || _token$layout14 === void 0 ? void 0 : (_token$layout14$heade = _token$layout14.header) === null || _token$layout14$heade === void 0 ? void 0 : _token$layout14$heade.colorTextMenuSelected, headerContentRender, prefixCls, props]);
|
|
54461
54495
|
return wrapSSR((0,jsx_runtime.jsx)("div", {
|
|
54462
54496
|
className: classnames_default()(prefixCls, hashId, propsClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-light"), true)),
|
|
54463
54497
|
style: style,
|
|
@@ -54491,10 +54525,8 @@ var TopNavHeader = function TopNavHeader(props) {
|
|
|
54491
54525
|
|
|
54492
54526
|
|
|
54493
54527
|
|
|
54494
|
-
|
|
54495
|
-
|
|
54496
54528
|
var genGlobalHeaderStyle = function genGlobalHeaderStyle(token) {
|
|
54497
|
-
var _token$componentCls;
|
|
54529
|
+
var _token$layout, _token$layout$header, _token$layout2, _token$layout2$header, _token$componentCls;
|
|
54498
54530
|
return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
|
|
54499
54531
|
position: 'relative',
|
|
54500
54532
|
background: 'transparent',
|
|
@@ -54502,7 +54534,7 @@ var genGlobalHeaderStyle = function genGlobalHeaderStyle(token) {
|
|
|
54502
54534
|
alignItems: 'center',
|
|
54503
54535
|
marginBlock: 0,
|
|
54504
54536
|
marginInline: 16,
|
|
54505
|
-
height: token.heightLayoutHeader,
|
|
54537
|
+
height: ((_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.heightLayoutHeader) || 56,
|
|
54506
54538
|
boxSizing: 'border-box',
|
|
54507
54539
|
'> a': {
|
|
54508
54540
|
height: '100%'
|
|
@@ -54511,7 +54543,7 @@ var genGlobalHeaderStyle = function genGlobalHeaderStyle(token) {
|
|
|
54511
54543
|
marginInlineEnd: 16
|
|
54512
54544
|
}), defineProperty_defineProperty(_token$componentCls, '&-collapsed-button', {
|
|
54513
54545
|
minHeight: '22px',
|
|
54514
|
-
color: token.colorHeaderTitle,
|
|
54546
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.colorHeaderTitle,
|
|
54515
54547
|
fontSize: '22px',
|
|
54516
54548
|
marginInlineStart: '16px'
|
|
54517
54549
|
}), defineProperty_defineProperty(_token$componentCls, '&-logo', {
|
|
@@ -54548,13 +54580,9 @@ var genGlobalHeaderStyle = function genGlobalHeaderStyle(token) {
|
|
|
54548
54580
|
}), _token$componentCls));
|
|
54549
54581
|
};
|
|
54550
54582
|
function GlobalHeader_style_useStyle(prefixCls) {
|
|
54551
|
-
var _useContext = (0,external_React_.useContext)(ProLayoutContext),
|
|
54552
|
-
header = _useContext.header;
|
|
54553
54583
|
return useStyle('ProLayoutGlobalHeader', function (token) {
|
|
54554
54584
|
var GlobalHeaderToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
54555
|
-
componentCls: ".".concat(prefixCls)
|
|
54556
|
-
heightLayoutHeader: header.heightLayoutHeader,
|
|
54557
|
-
colorHeaderTitle: header.colorHeaderTitle
|
|
54585
|
+
componentCls: ".".concat(prefixCls)
|
|
54558
54586
|
});
|
|
54559
54587
|
return [genGlobalHeaderStyle(GlobalHeaderToken)];
|
|
54560
54588
|
});
|
|
@@ -54669,7 +54697,7 @@ var GlobalHeader = function GlobalHeader(props) {
|
|
|
54669
54697
|
|
|
54670
54698
|
var Header = external_antd_.Layout.Header;
|
|
54671
54699
|
var DefaultHeader = function DefaultHeader(props) {
|
|
54672
|
-
var _classNames, _process$env$NODE_ENV;
|
|
54700
|
+
var _classNames, _process$env$NODE_ENV, _token$layout, _token$layout$header, _token$layout2, _token$layout2$header;
|
|
54673
54701
|
var isMobile = props.isMobile,
|
|
54674
54702
|
fixedHeader = props.fixedHeader,
|
|
54675
54703
|
propsClassName = props.className,
|
|
@@ -54680,8 +54708,8 @@ var DefaultHeader = function DefaultHeader(props) {
|
|
|
54680
54708
|
layout = props.layout,
|
|
54681
54709
|
headerRender = props.headerRender,
|
|
54682
54710
|
headerContentRender = props.headerContentRender;
|
|
54683
|
-
var _useContext = (0,external_React_.useContext)(
|
|
54684
|
-
|
|
54711
|
+
var _useContext = (0,external_React_.useContext)(ProProvider),
|
|
54712
|
+
token = _useContext.token;
|
|
54685
54713
|
var renderContent = (0,external_React_.useCallback)(function () {
|
|
54686
54714
|
var isTop = layout === 'top';
|
|
54687
54715
|
var clearMenuData = clearMenuItem(props.menuData || []);
|
|
@@ -54730,8 +54758,8 @@ var DefaultHeader = function DefaultHeader(props) {
|
|
|
54730
54758
|
},
|
|
54731
54759
|
children: [needFixedHeader && (0,jsx_runtime.jsx)(Header, {
|
|
54732
54760
|
style: objectSpread2_objectSpread2({
|
|
54733
|
-
height: header.heightLayoutHeader,
|
|
54734
|
-
lineHeight: "".concat(header.heightLayoutHeader, "px"),
|
|
54761
|
+
height: (token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.heightLayoutHeader) || 56,
|
|
54762
|
+
lineHeight: "".concat((token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.heightLayoutHeader) || 56, "px"),
|
|
54735
54763
|
backgroundColor: 'transparent',
|
|
54736
54764
|
zIndex: 19
|
|
54737
54765
|
}, style)
|
|
@@ -55905,7 +55933,7 @@ var initState = function initState(urlParams, settings, onSettingChange) {
|
|
|
55905
55933
|
replaceSetting[key] = urlParams[key];
|
|
55906
55934
|
}
|
|
55907
55935
|
});
|
|
55908
|
-
var newSettings =
|
|
55936
|
+
var newSettings = merge_merge({}, settings, replaceSetting);
|
|
55909
55937
|
delete newSettings.menu;
|
|
55910
55938
|
delete newSettings.title;
|
|
55911
55939
|
delete newSettings.iconfontUrl;
|
|
@@ -57655,6 +57683,7 @@ function formatter(props) {
|
|
|
57655
57683
|
if (notNullArray(item[childrenPropsName])) return true;
|
|
57656
57684
|
if (notNullArray(item.children)) return true;
|
|
57657
57685
|
if (item.path) return true;
|
|
57686
|
+
if (item.originPath) return true;
|
|
57658
57687
|
if (item.layout) return true; // 重定向
|
|
57659
57688
|
|
|
57660
57689
|
if (item.redirect) return false;
|
|
@@ -57685,6 +57714,9 @@ function formatter(props) {
|
|
|
57685
57714
|
if (item.path === '/*') {
|
|
57686
57715
|
item.path = '.';
|
|
57687
57716
|
}
|
|
57717
|
+
if (!item.path && item.originPath) {
|
|
57718
|
+
item.path = item.originPath;
|
|
57719
|
+
}
|
|
57688
57720
|
return item;
|
|
57689
57721
|
}).map(function () {
|
|
57690
57722
|
var item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
@@ -58137,13 +58169,11 @@ var Logo = function Logo() {
|
|
|
58137
58169
|
|
|
58138
58170
|
|
|
58139
58171
|
|
|
58140
|
-
|
|
58141
|
-
|
|
58142
58172
|
var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
|
|
58143
|
-
var _token$componentCls;
|
|
58173
|
+
var _token$layout, _token$layout$sider, _token$layout2, _token$layout2$sider, _token$layout3, _token$layout3$sider, _token$layout4, _token$layout4$sider, _token$layout5, _token$layout5$sider, _token$layout6, _token$layout6$sider, _token$layout7, _token$layout7$sider, _token$layout8, _token$layout8$sider, _token$layout9, _token$layout9$header, _token$layout10, _token$layout10$heade, _token$layout11, _token$layout11$sider, _token$componentCls;
|
|
58144
58174
|
return defineProperty_defineProperty({}, token.proComponentsCls, defineProperty_defineProperty({}, "".concat(token.proComponentsCls, "-layout"), defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
|
|
58145
58175
|
position: 'relative',
|
|
58146
|
-
background: token.colorMenuBackground || 'transparent',
|
|
58176
|
+
background: ((_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorMenuBackground) || 'transparent',
|
|
58147
58177
|
boxSizing: 'border-box',
|
|
58148
58178
|
'&-menu': {
|
|
58149
58179
|
position: 'relative',
|
|
@@ -58162,8 +58192,8 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
|
|
|
58162
58192
|
display: 'flex',
|
|
58163
58193
|
flexDirection: 'column',
|
|
58164
58194
|
height: '100%',
|
|
58165
|
-
paddingInline: token.paddingInlineLayoutMenu,
|
|
58166
|
-
paddingBlock: token.paddingBlockLayoutMenu,
|
|
58195
|
+
paddingInline: (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$sider = _token$layout2.sider) === null || _token$layout2$sider === void 0 ? void 0 : _token$layout2$sider.paddingInlineLayoutMenu,
|
|
58196
|
+
paddingBlock: (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$sider = _token$layout3.sider) === null || _token$layout3$sider === void 0 ? void 0 : _token$layout3$sider.paddingBlockLayoutMenu,
|
|
58167
58197
|
borderInlineEnd: "1px solid ".concat(token.colorSplit)
|
|
58168
58198
|
}), defineProperty_defineProperty(_token$componentCls, "".concat(token.antCls, "-menu"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-item-group-title"), {
|
|
58169
58199
|
fontSize: token.fontSizeSM,
|
|
@@ -58175,9 +58205,9 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
|
|
|
58175
58205
|
justifyContent: 'space-between',
|
|
58176
58206
|
paddingInline: 12,
|
|
58177
58207
|
paddingBlock: 16,
|
|
58178
|
-
color: token.colorTextMenu,
|
|
58208
|
+
color: (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$sider = _token$layout4.sider) === null || _token$layout4$sider === void 0 ? void 0 : _token$layout4$sider.colorTextMenu,
|
|
58179
58209
|
cursor: 'pointer',
|
|
58180
|
-
borderBlockEnd: "1px solid ".concat(token.colorMenuItemDivider),
|
|
58210
|
+
borderBlockEnd: "1px solid ".concat((_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$sider = _token$layout5.sider) === null || _token$layout5$sider === void 0 ? void 0 : _token$layout5$sider.colorMenuItemDivider),
|
|
58181
58211
|
'> a': {
|
|
58182
58212
|
display: 'flex',
|
|
58183
58213
|
alignItems: 'center',
|
|
@@ -58195,7 +58225,7 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
|
|
|
58195
58225
|
marginBlock: 0,
|
|
58196
58226
|
marginInlineEnd: 0,
|
|
58197
58227
|
marginInlineStart: 6,
|
|
58198
|
-
color: token.colorTextMenuTitle,
|
|
58228
|
+
color: (_token$layout6 = token.layout) === null || _token$layout6 === void 0 ? void 0 : (_token$layout6$sider = _token$layout6.sider) === null || _token$layout6$sider === void 0 ? void 0 : _token$layout6$sider.colorTextMenuTitle,
|
|
58199
58229
|
fontWeight: 600,
|
|
58200
58230
|
fontSize: 16,
|
|
58201
58231
|
lineHeight: '22px',
|
|
@@ -58217,7 +58247,7 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
|
|
|
58217
58247
|
justifyContent: 'space-between',
|
|
58218
58248
|
marginBlock: 4,
|
|
58219
58249
|
marginInline: 0,
|
|
58220
|
-
color: token.colorTextMenu,
|
|
58250
|
+
color: (_token$layout7 = token.layout) === null || _token$layout7 === void 0 ? void 0 : (_token$layout7$sider = _token$layout7.sider) === null || _token$layout7$sider === void 0 ? void 0 : _token$layout7$sider.colorTextMenu,
|
|
58221
58251
|
'&-collapsed': {
|
|
58222
58252
|
flexDirection: 'column-reverse',
|
|
58223
58253
|
paddingBlock: 0,
|
|
@@ -58226,7 +58256,7 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
|
|
|
58226
58256
|
transition: 'font-size 0.3s ease-in-out'
|
|
58227
58257
|
},
|
|
58228
58258
|
'&-list': {
|
|
58229
|
-
color: token.colorTextMenuSecondary,
|
|
58259
|
+
color: (_token$layout8 = token.layout) === null || _token$layout8 === void 0 ? void 0 : (_token$layout8$sider = _token$layout8.sider) === null || _token$layout8$sider === void 0 ? void 0 : _token$layout8$sider.colorTextMenuSecondary,
|
|
58230
58260
|
'&-collapsed': {
|
|
58231
58261
|
marginBlockEnd: 8,
|
|
58232
58262
|
animation: 'none'
|
|
@@ -58259,8 +58289,8 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
|
|
|
58259
58289
|
insetInlineStart: "-".concat(token.proLayoutCollapsedWidth - 12, "px"),
|
|
58260
58290
|
position: 'absolute'
|
|
58261
58291
|
}), defineProperty_defineProperty(_token$componentCls, '&-mix', {
|
|
58262
|
-
height: "calc(100% - ".concat(token.heightLayoutHeader, "px)"),
|
|
58263
|
-
insetBlockStart: "".concat(token.heightLayoutHeader, "px")
|
|
58292
|
+
height: "calc(100% - ".concat((token === null || token === void 0 ? void 0 : (_token$layout9 = token.layout) === null || _token$layout9 === void 0 ? void 0 : (_token$layout9$header = _token$layout9.header) === null || _token$layout9$header === void 0 ? void 0 : _token$layout9$header.heightLayoutHeader) || 56, "px)"),
|
|
58293
|
+
insetBlockStart: "".concat((token === null || token === void 0 ? void 0 : (_token$layout10 = token.layout) === null || _token$layout10 === void 0 ? void 0 : (_token$layout10$heade = _token$layout10.header) === null || _token$layout10$heade === void 0 ? void 0 : _token$layout10$heade.heightLayoutHeader) || 56, "px")
|
|
58264
58294
|
}), defineProperty_defineProperty(_token$componentCls, '&-extra', {
|
|
58265
58295
|
marginBlockEnd: 16,
|
|
58266
58296
|
marginBlock: 0,
|
|
@@ -58278,22 +58308,18 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
|
|
|
58278
58308
|
boxShadow: 'none',
|
|
58279
58309
|
background: 'transparent'
|
|
58280
58310
|
}), defineProperty_defineProperty(_token$componentCls, '&-footer', {
|
|
58281
|
-
color: token.colorTextMenuSecondary,
|
|
58311
|
+
color: (_token$layout11 = token.layout) === null || _token$layout11 === void 0 ? void 0 : (_token$layout11$sider = _token$layout11.sider) === null || _token$layout11$sider === void 0 ? void 0 : _token$layout11$sider.colorTextMenuSecondary,
|
|
58282
58312
|
paddingBlockEnd: 16,
|
|
58283
58313
|
fontSize: token.fontSize
|
|
58284
58314
|
}), _token$componentCls))));
|
|
58285
58315
|
};
|
|
58286
58316
|
function SiderMenu_style_useStyle(prefixCls, _ref2) {
|
|
58287
58317
|
var proLayoutCollapsedWidth = _ref2.proLayoutCollapsedWidth;
|
|
58288
|
-
var _useContext = (0,external_React_.useContext)(ProLayoutContext),
|
|
58289
|
-
sider = _useContext.sider,
|
|
58290
|
-
header = _useContext.header;
|
|
58291
58318
|
return useStyle('ProLayoutSiderMenu', function (token) {
|
|
58292
58319
|
var siderMenuToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
58293
58320
|
componentCls: ".".concat(prefixCls),
|
|
58294
|
-
proLayoutCollapsedWidth: proLayoutCollapsedWidth
|
|
58295
|
-
|
|
58296
|
-
}, sider);
|
|
58321
|
+
proLayoutCollapsedWidth: proLayoutCollapsedWidth
|
|
58322
|
+
});
|
|
58297
58323
|
return [style_genSiderMenuStyle(siderMenuToken)];
|
|
58298
58324
|
});
|
|
58299
58325
|
}
|
|
@@ -58396,8 +58422,6 @@ var SiderMenuWrapper = function SiderMenuWrapper(props) {
|
|
|
58396
58422
|
|
|
58397
58423
|
|
|
58398
58424
|
|
|
58399
|
-
|
|
58400
|
-
|
|
58401
58425
|
/**
|
|
58402
58426
|
* 主要区别:
|
|
58403
58427
|
* 需要手动引入 import 'antd/dist/antd.css';
|
|
@@ -58406,7 +58430,7 @@ var SiderMenuWrapper = function SiderMenuWrapper(props) {
|
|
|
58406
58430
|
* @returns
|
|
58407
58431
|
*/
|
|
58408
58432
|
var compatibleStyle = function compatibleStyle(token) {
|
|
58409
|
-
var _$concat$concat, _$concat5, _$concat6, _$concat8, _$concat9, _token$componentCls, _$concat$concat2, _$concat11, _ref;
|
|
58433
|
+
var _token$layout, _token$layout$sider, _token$layout2, _token$layout2$sider, _token$layout3, _token$layout3$sider, _token$layout4, _token$layout4$sider, _token$layout5, _token$layout5$sider, _token$layout6, _token$layout6$sider, _token$layout7, _token$layout7$sider, _token$layout8, _token$layout8$sider, _token$layout9, _token$layout9$sider, _$concat$concat, _token$layout10, _token$layout10$sider, _token$layout11, _token$layout11$sider, _token$layout12, _token$layout12$sider, _token$layout13, _token$layout13$sider, _token$layout14, _token$layout14$sider, _token$layout15, _token$layout15$heade, _token$layout16, _token$layout16$heade, _token$layout17, _token$layout17$heade, _token$layout18, _token$layout18$heade, _token$layout19, _token$layout19$heade, _$concat5, _$concat6, _token$layout20, _token$layout20$heade, _token$layout21, _token$layout21$heade, _token$layout22, _token$layout22$heade, _token$layout23, _token$layout23$heade, _token$layout24, _token$layout24$heade, _token$layout25, _token$layout25$heade, _$concat8, _$concat9, _token$componentCls, _token$layout26, _token$layout26$sider, _token$layout27, _token$layout27$sider, _token$layout28, _token$layout28$sider, _token$layout29, _token$layout29$sider, _token$layout30, _token$layout30$sider, _$concat$concat2, _$concat11, _ref;
|
|
58410
58434
|
if (external_antd_.version.startsWith('5')) {
|
|
58411
58435
|
return {};
|
|
58412
58436
|
}
|
|
@@ -58417,16 +58441,16 @@ var compatibleStyle = function compatibleStyle(token) {
|
|
|
58417
58441
|
width: '100%',
|
|
58418
58442
|
height: '100%'
|
|
58419
58443
|
}, defineProperty_defineProperty(_token$componentCls, "".concat(token.proComponentsCls, "-base-menu"), (_$concat6 = {
|
|
58420
|
-
color: token.sider.colorTextMenu
|
|
58444
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorTextMenu
|
|
58421
58445
|
}, defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-sub"), {
|
|
58422
|
-
color: token.sider.colorTextMenu
|
|
58446
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$sider = _token$layout2.sider) === null || _token$layout2$sider === void 0 ? void 0 : _token$layout2$sider.colorTextMenu
|
|
58423
58447
|
}), defineProperty_defineProperty(_$concat6, "& ".concat(token.antCls, "-layout"), {
|
|
58424
58448
|
backgroundColor: 'transparent',
|
|
58425
58449
|
width: '100%'
|
|
58426
58450
|
}), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-submenu-expand-icon, ").concat(token.antCls, "-menu-submenu-arrow"), {
|
|
58427
58451
|
color: 'inherit'
|
|
58428
58452
|
}), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu"), defineProperty_defineProperty({
|
|
58429
|
-
color: token.sider.colorTextMenu
|
|
58453
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$sider = _token$layout3.sider) === null || _token$layout3$sider === void 0 ? void 0 : _token$layout3$sider.colorTextMenu
|
|
58430
58454
|
}, "".concat(token.antCls, "-menu-item a"), {
|
|
58431
58455
|
color: 'inherit'
|
|
58432
58456
|
})), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu-inline"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-selected::after,").concat(token.antCls, "-menu-item-selected::after"), {
|
|
@@ -58436,59 +58460,59 @@ var compatibleStyle = function compatibleStyle(token) {
|
|
|
58436
58460
|
}), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-item:active, \n ").concat(token.antCls, "-menu-submenu-title:active"), {
|
|
58437
58461
|
backgroundColor: 'transparent!important'
|
|
58438
58462
|
}), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu-light"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-item:hover, \n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-active, \n ").concat(token.antCls, "-menu-submenu-title:hover"), defineProperty_defineProperty({
|
|
58439
|
-
color: token.sider.colorTextMenuActive,
|
|
58463
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$sider = _token$layout4.sider) === null || _token$layout4$sider === void 0 ? void 0 : _token$layout4$sider.colorTextMenuActive,
|
|
58440
58464
|
borderRadius: token.radiusBase
|
|
58441
58465
|
}, "".concat(token.antCls, "-menu-submenu-arrow"), {
|
|
58442
|
-
color: token.sider.colorTextMenuActive
|
|
58466
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$sider = _token$layout5.sider) === null || _token$layout5$sider === void 0 ? void 0 : _token$layout5$sider.colorTextMenuActive
|
|
58443
58467
|
}))), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu:not(").concat(token.antCls, "-menu-horizontal)"), (_$concat$concat = {}, defineProperty_defineProperty(_$concat$concat, "".concat(token.antCls, "-menu-item-selected"), {
|
|
58444
|
-
backgroundColor: token.sider.colorBgMenuItemSelected,
|
|
58468
|
+
backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout6 = token.layout) === null || _token$layout6 === void 0 ? void 0 : (_token$layout6$sider = _token$layout6.sider) === null || _token$layout6$sider === void 0 ? void 0 : _token$layout6$sider.colorBgMenuItemSelected,
|
|
58445
58469
|
borderRadius: token.radiusBase
|
|
58446
58470
|
}), defineProperty_defineProperty(_$concat$concat, "".concat(token.antCls, "-menu-item:hover, \n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-title:hover"), defineProperty_defineProperty({
|
|
58447
|
-
color: token.sider.colorTextMenuActive,
|
|
58471
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout7 = token.layout) === null || _token$layout7 === void 0 ? void 0 : (_token$layout7$sider = _token$layout7.sider) === null || _token$layout7$sider === void 0 ? void 0 : _token$layout7$sider.colorTextMenuActive,
|
|
58448
58472
|
borderRadius: token.radiusBase,
|
|
58449
|
-
backgroundColor: token.sider.colorBgMenuItemHover
|
|
58473
|
+
backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout8 = token.layout) === null || _token$layout8 === void 0 ? void 0 : (_token$layout8$sider = _token$layout8.sider) === null || _token$layout8$sider === void 0 ? void 0 : _token$layout8$sider.colorBgMenuItemHover
|
|
58450
58474
|
}, "".concat(token.antCls, "-menu-submenu-arrow"), {
|
|
58451
|
-
color: token.sider.colorTextMenuActive
|
|
58475
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout9 = token.layout) === null || _token$layout9 === void 0 ? void 0 : (_token$layout9$sider = _token$layout9.sider) === null || _token$layout9$sider === void 0 ? void 0 : _token$layout9$sider.colorTextMenuActive
|
|
58452
58476
|
})), _$concat$concat)), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-item-selected"), {
|
|
58453
|
-
color: token.sider.colorTextMenuSelected
|
|
58477
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout10 = token.layout) === null || _token$layout10 === void 0 ? void 0 : (_token$layout10$sider = _token$layout10.sider) === null || _token$layout10$sider === void 0 ? void 0 : _token$layout10$sider.colorTextMenuSelected
|
|
58454
58478
|
}), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-submenu-selected"), {
|
|
58455
|
-
color: token.sider.colorTextMenuSelected
|
|
58479
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout11 = token.layout) === null || _token$layout11 === void 0 ? void 0 : (_token$layout11$sider = _token$layout11.sider) === null || _token$layout11$sider === void 0 ? void 0 : _token$layout11$sider.colorTextMenuSelected
|
|
58456
58480
|
}), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu:not(").concat(token.antCls, "-menu-inline) ").concat(token.antCls, "-menu-submenu-open"), {
|
|
58457
|
-
color: token.sider.colorTextMenuSelected
|
|
58481
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout12 = token.layout) === null || _token$layout12 === void 0 ? void 0 : (_token$layout12$sider = _token$layout12.sider) === null || _token$layout12$sider === void 0 ? void 0 : _token$layout12$sider.colorTextMenuSelected
|
|
58458
58482
|
}), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu-vertical"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-submenu-selected"), {
|
|
58459
58483
|
borderRadius: token.radiusBase,
|
|
58460
|
-
color: token.sider.colorTextMenuSelected
|
|
58484
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout13 = token.layout) === null || _token$layout13 === void 0 ? void 0 : (_token$layout13$sider = _token$layout13.sider) === null || _token$layout13$sider === void 0 ? void 0 : _token$layout13$sider.colorTextMenuSelected
|
|
58461
58485
|
})), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-submenu:hover > ").concat(token.antCls, "-menu-submenu-title > ").concat(token.antCls, "-menu-submenu-arrow"), {
|
|
58462
|
-
color: token.sider.colorTextMenuActive
|
|
58486
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout14 = token.layout) === null || _token$layout14 === void 0 ? void 0 : (_token$layout14$sider = _token$layout14.sider) === null || _token$layout14$sider === void 0 ? void 0 : _token$layout14$sider.colorTextMenuActive
|
|
58463
58487
|
}), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu-horizontal"), (_$concat5 = {}, defineProperty_defineProperty(_$concat5, "".concat(token.antCls, "-menu-item:hover,\n ").concat(token.antCls, "-menu-submenu:hover,\n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-active"), {
|
|
58464
58488
|
borderRadius: 4,
|
|
58465
|
-
color: token.header.colorTextMenuActive,
|
|
58466
|
-
backgroundColor: token.header.colorBgMenuItemHover
|
|
58489
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout15 = token.layout) === null || _token$layout15 === void 0 ? void 0 : (_token$layout15$heade = _token$layout15.header) === null || _token$layout15$heade === void 0 ? void 0 : _token$layout15$heade.colorTextMenuActive,
|
|
58490
|
+
backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout16 = token.layout) === null || _token$layout16 === void 0 ? void 0 : (_token$layout16$heade = _token$layout16.header) === null || _token$layout16$heade === void 0 ? void 0 : _token$layout16$heade.colorBgMenuItemHover
|
|
58467
58491
|
}), defineProperty_defineProperty(_$concat5, "".concat(token.antCls, "-menu-item-open,\n ").concat(token.antCls, "-menu-submenu-open,\n ").concat(token.antCls, "-menu-item-selected,\n ").concat(token.antCls, "-menu-submenu-selected"), defineProperty_defineProperty({
|
|
58468
|
-
backgroundColor: token.header.colorBgMenuItemSelected,
|
|
58492
|
+
backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout17 = token.layout) === null || _token$layout17 === void 0 ? void 0 : (_token$layout17$heade = _token$layout17.header) === null || _token$layout17$heade === void 0 ? void 0 : _token$layout17$heade.colorBgMenuItemSelected,
|
|
58469
58493
|
borderRadius: token.radiusBase,
|
|
58470
|
-
color: token.header.colorTextMenuSelected
|
|
58494
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout18 = token.layout) === null || _token$layout18 === void 0 ? void 0 : (_token$layout18$heade = _token$layout18.header) === null || _token$layout18$heade === void 0 ? void 0 : _token$layout18$heade.colorTextMenuSelected
|
|
58471
58495
|
}, "".concat(token.antCls, "-menu-submenu-arrow"), {
|
|
58472
|
-
color: token.header.colorTextMenuSelected
|
|
58496
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout19 = token.layout) === null || _token$layout19 === void 0 ? void 0 : (_token$layout19$heade = _token$layout19.header) === null || _token$layout19$heade === void 0 ? void 0 : _token$layout19$heade.colorTextMenuSelected
|
|
58473
58497
|
})), defineProperty_defineProperty(_$concat5, "> ".concat(token.antCls, "-menu-item, > ").concat(token.antCls, "-menu-submenu"), {
|
|
58474
58498
|
paddingInline: 16,
|
|
58475
58499
|
marginInline: 4
|
|
58476
58500
|
}), defineProperty_defineProperty(_$concat5, "> ".concat(token.antCls, "-menu-item::after, > ").concat(token.antCls, "-menu-submenu::after"), {
|
|
58477
58501
|
display: 'none'
|
|
58478
58502
|
}), _$concat5)), _$concat6)), defineProperty_defineProperty(_token$componentCls, "".concat(token.proComponentsCls, "-top-nav-header-base-menu"), (_$concat9 = {}, defineProperty_defineProperty(_$concat9, "&".concat(token.antCls, "-menu"), defineProperty_defineProperty({
|
|
58479
|
-
color: token.header.colorTextMenu
|
|
58503
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout20 = token.layout) === null || _token$layout20 === void 0 ? void 0 : (_token$layout20$heade = _token$layout20.header) === null || _token$layout20$heade === void 0 ? void 0 : _token$layout20$heade.colorTextMenu
|
|
58480
58504
|
}, "".concat(token.antCls, "-menu-item a"), {
|
|
58481
58505
|
color: 'inherit'
|
|
58482
58506
|
})), defineProperty_defineProperty(_$concat9, "&".concat(token.antCls, "-menu-light"), (_$concat8 = {}, defineProperty_defineProperty(_$concat8, "".concat(token.antCls, "-menu-item:hover, \n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-active, \n ").concat(token.antCls, "-menu-submenu-title:hover"), defineProperty_defineProperty({
|
|
58483
|
-
color: token.header.colorTextMenuActive,
|
|
58507
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout21 = token.layout) === null || _token$layout21 === void 0 ? void 0 : (_token$layout21$heade = _token$layout21.header) === null || _token$layout21$heade === void 0 ? void 0 : _token$layout21$heade.colorTextMenuActive,
|
|
58484
58508
|
borderRadius: token.radiusBase,
|
|
58485
|
-
backgroundColor: token.header.colorBgMenuItemSelected
|
|
58509
|
+
backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout22 = token.layout) === null || _token$layout22 === void 0 ? void 0 : (_token$layout22$heade = _token$layout22.header) === null || _token$layout22$heade === void 0 ? void 0 : _token$layout22$heade.colorBgMenuItemSelected
|
|
58486
58510
|
}, "".concat(token.antCls, "-menu-submenu-arrow"), {
|
|
58487
|
-
color: token.header.colorTextMenuActive
|
|
58511
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout23 = token.layout) === null || _token$layout23 === void 0 ? void 0 : (_token$layout23$heade = _token$layout23.header) === null || _token$layout23$heade === void 0 ? void 0 : _token$layout23$heade.colorTextMenuActive
|
|
58488
58512
|
})), defineProperty_defineProperty(_$concat8, "".concat(token.antCls, "-menu-item-selected"), {
|
|
58489
|
-
color: token.header.colorTextMenuSelected,
|
|
58513
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout24 = token.layout) === null || _token$layout24 === void 0 ? void 0 : (_token$layout24$heade = _token$layout24.header) === null || _token$layout24$heade === void 0 ? void 0 : _token$layout24$heade.colorTextMenuSelected,
|
|
58490
58514
|
borderRadius: token.radiusBase,
|
|
58491
|
-
backgroundColor: token.header.colorBgMenuItemSelected
|
|
58515
|
+
backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout25 = token.layout) === null || _token$layout25 === void 0 ? void 0 : (_token$layout25$heade = _token$layout25.header) === null || _token$layout25$heade === void 0 ? void 0 : _token$layout25$heade.colorBgMenuItemSelected
|
|
58492
58516
|
}), _$concat8)), _$concat9)), _token$componentCls)), defineProperty_defineProperty(_ref, "".concat(token.antCls, "-menu-sub").concat(token.antCls, "-menu-inline"), {
|
|
58493
58517
|
backgroundColor: 'transparent!important'
|
|
58494
58518
|
}), defineProperty_defineProperty(_ref, "".concat(token.antCls, "-menu-submenu-popup"), (_$concat11 = {
|
|
@@ -58501,22 +58525,22 @@ var compatibleStyle = function compatibleStyle(token) {
|
|
|
58501
58525
|
}, "".concat(token.antCls, "-menu-item:active, \n ").concat(token.antCls, "-menu-submenu-title:active"), {
|
|
58502
58526
|
backgroundColor: 'transparent!important'
|
|
58503
58527
|
})), defineProperty_defineProperty(_$concat11, "".concat(token.antCls, "-menu-item-selected"), {
|
|
58504
|
-
color: token.sider.colorTextMenuSelected
|
|
58528
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout26 = token.layout) === null || _token$layout26 === void 0 ? void 0 : (_token$layout26$sider = _token$layout26.sider) === null || _token$layout26$sider === void 0 ? void 0 : _token$layout26$sider.colorTextMenuSelected
|
|
58505
58529
|
}), defineProperty_defineProperty(_$concat11, "".concat(token.antCls, "-menu-submenu-selected"), {
|
|
58506
|
-
color: token.sider.colorTextMenuSelected
|
|
58530
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout27 = token.layout) === null || _token$layout27 === void 0 ? void 0 : (_token$layout27$sider = _token$layout27.sider) === null || _token$layout27$sider === void 0 ? void 0 : _token$layout27$sider.colorTextMenuSelected
|
|
58507
58531
|
}), defineProperty_defineProperty(_$concat11, "".concat(token.antCls, "-menu:not(").concat(token.antCls, "-menu-horizontal)"), (_$concat$concat2 = {}, defineProperty_defineProperty(_$concat$concat2, "".concat(token.antCls, "-menu-item-selected"), {
|
|
58508
58532
|
backgroundColor: 'rgba(0, 0, 0, 0.04)',
|
|
58509
58533
|
borderRadius: token.radiusBase,
|
|
58510
|
-
color: token.sider.colorTextMenuSelected
|
|
58534
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout28 = token.layout) === null || _token$layout28 === void 0 ? void 0 : (_token$layout28$sider = _token$layout28.sider) === null || _token$layout28$sider === void 0 ? void 0 : _token$layout28$sider.colorTextMenuSelected
|
|
58511
58535
|
}), defineProperty_defineProperty(_$concat$concat2, "".concat(token.antCls, "-menu-item:hover, \n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-title:hover"), defineProperty_defineProperty({
|
|
58512
|
-
color: token.sider.colorTextMenuActive,
|
|
58536
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout29 = token.layout) === null || _token$layout29 === void 0 ? void 0 : (_token$layout29$sider = _token$layout29.sider) === null || _token$layout29$sider === void 0 ? void 0 : _token$layout29$sider.colorTextMenuActive,
|
|
58513
58537
|
borderRadius: token.radiusBase
|
|
58514
58538
|
}, "".concat(token.antCls, "-menu-submenu-arrow"), {
|
|
58515
|
-
color: token.sider.colorTextMenuActive
|
|
58539
|
+
color: token === null || token === void 0 ? void 0 : (_token$layout30 = token.layout) === null || _token$layout30 === void 0 ? void 0 : (_token$layout30$sider = _token$layout30.sider) === null || _token$layout30$sider === void 0 ? void 0 : _token$layout30$sider.colorTextMenuActive
|
|
58516
58540
|
})), _$concat$concat2)), _$concat11)), _ref;
|
|
58517
58541
|
};
|
|
58518
58542
|
var genProLayoutStyle = function genProLayoutStyle(token) {
|
|
58519
|
-
var _$concat12, _token$proComponentsC;
|
|
58543
|
+
var _token$layout31, _token$layout31$pageC, _token$layout32, _token$layout32$pageC, _token$layout33, _token$layout33$pageC, _token$layout34, _$concat12, _token$proComponentsC;
|
|
58520
58544
|
return defineProperty_defineProperty({
|
|
58521
58545
|
body: {
|
|
58522
58546
|
paddingBlock: 0,
|
|
@@ -58535,13 +58559,13 @@ var genProLayoutStyle = function genProLayoutStyle(token) {
|
|
|
58535
58559
|
display: 'flex',
|
|
58536
58560
|
flexDirection: 'column',
|
|
58537
58561
|
width: '100%',
|
|
58538
|
-
backgroundColor: token.pageContainer.colorBgPageContainer || 'transparent',
|
|
58562
|
+
backgroundColor: (token === null || token === void 0 ? void 0 : (_token$layout31 = token.layout) === null || _token$layout31 === void 0 ? void 0 : (_token$layout31$pageC = _token$layout31.pageContainer) === null || _token$layout31$pageC === void 0 ? void 0 : _token$layout31$pageC.colorBgPageContainer) || 'transparent',
|
|
58539
58563
|
position: 'relative',
|
|
58540
58564
|
'*': {
|
|
58541
58565
|
boxSizing: 'border-box'
|
|
58542
58566
|
},
|
|
58543
|
-
paddingBlock: token.pageContainer.paddingBlockPageContainerContent,
|
|
58544
|
-
paddingInline: token.pageContainer.paddingInlinePageContainerContent,
|
|
58567
|
+
paddingBlock: token === null || token === void 0 ? void 0 : (_token$layout32 = token.layout) === null || _token$layout32 === void 0 ? void 0 : (_token$layout32$pageC = _token$layout32.pageContainer) === null || _token$layout32$pageC === void 0 ? void 0 : _token$layout32$pageC.paddingBlockPageContainerContent,
|
|
58568
|
+
paddingInline: token === null || token === void 0 ? void 0 : (_token$layout33 = token.layout) === null || _token$layout33 === void 0 ? void 0 : (_token$layout33$pageC = _token$layout33.pageContainer) === null || _token$layout33$pageC === void 0 ? void 0 : _token$layout33$pageC.paddingInlinePageContainerContent,
|
|
58545
58569
|
'&-has-page-container': {
|
|
58546
58570
|
padding: 0
|
|
58547
58571
|
}
|
|
@@ -58560,7 +58584,7 @@ var genProLayoutStyle = function genProLayoutStyle(token) {
|
|
|
58560
58584
|
zIndex: 0,
|
|
58561
58585
|
height: '100%',
|
|
58562
58586
|
width: '100%',
|
|
58563
|
-
background: token.bgLayout
|
|
58587
|
+
background: token === null || token === void 0 ? void 0 : (_token$layout34 = token.layout) === null || _token$layout34 === void 0 ? void 0 : _token$layout34.bgLayout
|
|
58564
58588
|
}), _$concat12)), defineProperty_defineProperty(_token$proComponentsC, "".concat(token.antCls, "-menu-submenu-popup"), {
|
|
58565
58589
|
backgroundColor: 'rgba(255, 255, 255, 0.42)',
|
|
58566
58590
|
'-webkit-backdrop-filter': 'blur(8px)',
|
|
@@ -58568,11 +58592,10 @@ var genProLayoutStyle = function genProLayoutStyle(token) {
|
|
|
58568
58592
|
}), _token$proComponentsC));
|
|
58569
58593
|
};
|
|
58570
58594
|
function es_style_useStyle(prefixCls) {
|
|
58571
|
-
var proToken = (0,external_React_.useContext)(ProLayoutContext);
|
|
58572
58595
|
return useStyle('ProLayout', function (token) {
|
|
58573
58596
|
var proLayoutToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
|
|
58574
58597
|
componentCls: ".".concat(prefixCls)
|
|
58575
|
-
}
|
|
58598
|
+
});
|
|
58576
58599
|
return [genProLayoutStyle(proLayoutToken), compatibleStyle(proLayoutToken)];
|
|
58577
58600
|
});
|
|
58578
58601
|
}
|
|
@@ -59234,6 +59257,7 @@ BaseProLayout.defaultProps = objectSpread2_objectSpread2(objectSpread2_objectSpr
|
|
|
59234
59257
|
var ProLayout_ProLayout = function ProLayout(props) {
|
|
59235
59258
|
var _process$env$NODE_ENV;
|
|
59236
59259
|
var colorPrimary = props.colorPrimary;
|
|
59260
|
+
var tokenContext = (0,external_React_.useContext)(ProProvider);
|
|
59237
59261
|
return (0,jsx_runtime.jsx)(external_antd_.ConfigProvider
|
|
59238
59262
|
// @ts-ignore
|
|
59239
59263
|
, {
|
|
@@ -59249,10 +59273,10 @@ var ProLayout_ProLayout = function ProLayout(props) {
|
|
|
59249
59273
|
},
|
|
59250
59274
|
children: (0,jsx_runtime.jsx)(ConfigProviderWrap, {
|
|
59251
59275
|
autoClearCache: true,
|
|
59252
|
-
|
|
59253
|
-
|
|
59254
|
-
|
|
59255
|
-
})
|
|
59276
|
+
token: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tokenContext.token), {}, {
|
|
59277
|
+
layout: props.token
|
|
59278
|
+
}),
|
|
59279
|
+
children: (0,jsx_runtime.jsx)(BaseProLayout, objectSpread2_objectSpread2({}, props))
|
|
59256
59280
|
})
|
|
59257
59281
|
});
|
|
59258
59282
|
};
|
|
@@ -60738,24 +60762,29 @@ function sortableElement(WrappedComponent) {
|
|
|
60738
60762
|
|
|
60739
60763
|
|
|
60740
60764
|
var Alert_style_genProStyle = function genProStyle(token) {
|
|
60741
|
-
|
|
60742
|
-
|
|
60743
|
-
|
|
60744
|
-
|
|
60745
|
-
|
|
60746
|
-
|
|
60747
|
-
|
|
60748
|
-
|
|
60749
|
-
alignItems: 'center',
|
|
60750
|
-
transition: 'all 0.3s',
|
|
60751
|
-
'&-content': {
|
|
60752
|
-
flex: 1
|
|
60765
|
+
return defineProperty_defineProperty({}, token.componentCls, {
|
|
60766
|
+
marginBlockEnd: 16,
|
|
60767
|
+
backgroundColor: 'rgba(0,0,0,0.02)',
|
|
60768
|
+
borderRadius: token.radiusBase,
|
|
60769
|
+
border: '0.5px solid #BFBFBF',
|
|
60770
|
+
'&-container': {
|
|
60771
|
+
paddingBlock: token.paddingSM,
|
|
60772
|
+
paddingInline: token.paddingLG
|
|
60753
60773
|
},
|
|
60754
|
-
'&-
|
|
60755
|
-
|
|
60756
|
-
|
|
60774
|
+
'&-info': {
|
|
60775
|
+
display: 'flex',
|
|
60776
|
+
alignItems: 'center',
|
|
60777
|
+
transition: 'all 0.3s',
|
|
60778
|
+
color: token.colorTextSecondary,
|
|
60779
|
+
'&-content': {
|
|
60780
|
+
flex: 1
|
|
60781
|
+
},
|
|
60782
|
+
'&-option': {
|
|
60783
|
+
minWidth: 48,
|
|
60784
|
+
paddingInlineStart: 16
|
|
60785
|
+
}
|
|
60757
60786
|
}
|
|
60758
|
-
})
|
|
60787
|
+
});
|
|
60759
60788
|
};
|
|
60760
60789
|
function Alert_style_useStyle(prefixCls) {
|
|
60761
60790
|
return useStyle('ProTableAlert', function (token) {
|
|
@@ -60820,9 +60849,10 @@ function TableAlert(_ref) {
|
|
|
60820
60849
|
return null;
|
|
60821
60850
|
}
|
|
60822
60851
|
return wrapSSR((0,jsx_runtime.jsx)("div", {
|
|
60823
|
-
className: className,
|
|
60824
|
-
children: (0,jsx_runtime.jsx)(
|
|
60825
|
-
|
|
60852
|
+
className: "".concat(className, " ").concat(hashId),
|
|
60853
|
+
children: (0,jsx_runtime.jsx)("div", {
|
|
60854
|
+
className: "".concat(className, "-container ").concat(hashId),
|
|
60855
|
+
children: (0,jsx_runtime.jsxs)("div", {
|
|
60826
60856
|
className: "".concat(className, "-info ").concat(hashId),
|
|
60827
60857
|
children: [(0,jsx_runtime.jsx)("div", {
|
|
60828
60858
|
className: "".concat(className, "-info-content ").concat(hashId),
|
|
@@ -60831,8 +60861,7 @@ function TableAlert(_ref) {
|
|
|
60831
60861
|
className: "".concat(className, "-info-option ").concat(hashId),
|
|
60832
60862
|
children: option
|
|
60833
60863
|
}) : null]
|
|
60834
|
-
})
|
|
60835
|
-
type: "info"
|
|
60864
|
+
})
|
|
60836
60865
|
})
|
|
60837
60866
|
}));
|
|
60838
60867
|
}
|
|
@@ -61095,7 +61124,11 @@ function sortData(_ref, data) {
|
|
|
61095
61124
|
var oldIndex = _ref.oldIndex,
|
|
61096
61125
|
newIndex = _ref.newIndex;
|
|
61097
61126
|
if (oldIndex !== newIndex) {
|
|
61098
|
-
var newData = arrayMoveImmutable(
|
|
61127
|
+
var newData = arrayMoveImmutable({
|
|
61128
|
+
array: toConsumableArray_toConsumableArray(data || []),
|
|
61129
|
+
fromIndex: oldIndex,
|
|
61130
|
+
toIndex: newIndex
|
|
61131
|
+
}).filter(function (el) {
|
|
61099
61132
|
return !!el;
|
|
61100
61133
|
});
|
|
61101
61134
|
return toConsumableArray_toConsumableArray(newData);
|
|
@@ -62285,7 +62318,10 @@ function ColumnSetting(props) {
|
|
|
62285
62318
|
|
|
62286
62319
|
|
|
62287
62320
|
|
|
62321
|
+
|
|
62288
62322
|
var HeaderMenu = function HeaderMenu(props) {
|
|
62323
|
+
var _useToken = useStyle_useToken(),
|
|
62324
|
+
hashId = _useToken.hashId;
|
|
62289
62325
|
var _props$items = props.items,
|
|
62290
62326
|
items = _props$items === void 0 ? [] : _props$items,
|
|
62291
62327
|
_props$type = props.type,
|
|
@@ -62307,13 +62343,13 @@ var HeaderMenu = function HeaderMenu(props) {
|
|
|
62307
62343
|
}) || items[0];
|
|
62308
62344
|
if (type === 'inline') {
|
|
62309
62345
|
return (0,jsx_runtime.jsx)("div", {
|
|
62310
|
-
className: classnames_default()("".concat(prefixCls, "-menu"), "".concat(prefixCls, "-inline-menu")),
|
|
62346
|
+
className: classnames_default()("".concat(prefixCls, "-menu"), "".concat(prefixCls, "-inline-menu"), hashId),
|
|
62311
62347
|
children: items.map(function (item, index) {
|
|
62312
62348
|
return (0,jsx_runtime.jsx)("div", {
|
|
62313
62349
|
onClick: function onClick() {
|
|
62314
62350
|
setActiveKey(item.key);
|
|
62315
62351
|
},
|
|
62316
|
-
className: classnames_default()("".concat(prefixCls, "-inline-menu-item"), activeItem.key === item.key ? "".concat(prefixCls, "-inline-menu-item-active") : undefined),
|
|
62352
|
+
className: classnames_default()("".concat(prefixCls, "-inline-menu-item"), activeItem.key === item.key ? "".concat(prefixCls, "-inline-menu-item-active") : undefined, hashId),
|
|
62317
62353
|
children: item.label
|
|
62318
62354
|
}, item.key || index);
|
|
62319
62355
|
})
|
|
@@ -62698,12 +62734,12 @@ var ListToolBar = function ListToolBar(_ref2) {
|
|
|
62698
62734
|
return (0,jsx_runtime.jsxs)(external_antd_.Space, {
|
|
62699
62735
|
className: "".concat(prefixCls, "-right ").concat(hashId),
|
|
62700
62736
|
direction: isMobile ? 'vertical' : 'horizontal',
|
|
62701
|
-
size:
|
|
62737
|
+
size: 8,
|
|
62702
62738
|
align: isMobile ? 'end' : 'center',
|
|
62703
|
-
children: [hasTitle && searchNode ? (0,jsx_runtime.jsx)("div", {
|
|
62739
|
+
children: [!multipleLine ? filtersNode : null, hasTitle && searchNode ? (0,jsx_runtime.jsx)("div", {
|
|
62704
62740
|
className: "".concat(prefixCls, "-search ").concat(hashId),
|
|
62705
62741
|
children: searchNode
|
|
62706
|
-
}) : null,
|
|
62742
|
+
}) : null, actionDom, (settings === null || settings === void 0 ? void 0 : settings.length) ? (0,jsx_runtime.jsx)(external_antd_.Space, {
|
|
62707
62743
|
size: 12,
|
|
62708
62744
|
align: "center",
|
|
62709
62745
|
className: "".concat(prefixCls, "-setting-items ").concat(hashId),
|
|
@@ -63238,7 +63274,7 @@ var style_genProListStyle = function genProListStyle(token) {
|
|
|
63238
63274
|
}), defineProperty_defineProperty(_search, '&-light-filter', {
|
|
63239
63275
|
marginBlockEnd: 0,
|
|
63240
63276
|
paddingBlock: 0,
|
|
63241
|
-
paddingInline:
|
|
63277
|
+
paddingInline: 0
|
|
63242
63278
|
}), defineProperty_defineProperty(_search, '&-form-option', (_formOption = {}, defineProperty_defineProperty(_formOption, "".concat(token.antCls, "-form-item"), {}), defineProperty_defineProperty(_formOption, "".concat(token.antCls, "-form-item-label"), {}), defineProperty_defineProperty(_formOption, "".concat(token.antCls, "-form-item-control-input"), {}), _formOption)), defineProperty_defineProperty(_search, '@media (max-width: 575px)', defineProperty_defineProperty({}, token.componentCls, defineProperty_defineProperty({
|
|
63243
63279
|
height: 'auto !important',
|
|
63244
63280
|
paddingBlockEnd: '24px'
|
|
@@ -64193,7 +64229,6 @@ var Table_excluded = ["rowKey", "tableClassName", "action", "tableColumn", "type
|
|
|
64193
64229
|
|
|
64194
64230
|
// 兼容代码-----------
|
|
64195
64231
|
|
|
64196
|
-
|
|
64197
64232
|
//----------------------
|
|
64198
64233
|
|
|
64199
64234
|
|
|
@@ -70289,10 +70324,10 @@ var genLinkStyle = function genLinkStyle(token) {
|
|
|
70289
70324
|
}), _a)
|
|
70290
70325
|
};
|
|
70291
70326
|
};
|
|
70292
|
-
var genCommonStyle = function genCommonStyle(token,
|
|
70327
|
+
var genCommonStyle = function genCommonStyle(token, componentPrefixCls) {
|
|
70293
70328
|
var fontFamily = token.fontFamily,
|
|
70294
70329
|
fontSize = token.fontSize;
|
|
70295
|
-
var rootPrefixSelector = "[class^=\"".concat(
|
|
70330
|
+
var rootPrefixSelector = "[class^=\"".concat(componentPrefixCls, "\"], [class*=\" ").concat(componentPrefixCls, "\"]");
|
|
70296
70331
|
return defineProperty_defineProperty({}, rootPrefixSelector, defineProperty_defineProperty({
|
|
70297
70332
|
fontFamily: fontFamily,
|
|
70298
70333
|
fontSize: fontSize,
|
|
@@ -70320,7 +70355,7 @@ var genFocusStyle = function genFocusStyle(token) {
|
|
|
70320
70355
|
};
|
|
70321
70356
|
};
|
|
70322
70357
|
;// CONCATENATED MODULE: ./node_modules/antd/es/version/version.js
|
|
70323
|
-
/* harmony default export */ var version = ('5.0.0-alpha.
|
|
70358
|
+
/* harmony default export */ var version = ('5.0.0-alpha.4');
|
|
70324
70359
|
;// CONCATENATED MODULE: ./node_modules/antd/es/version/index.js
|
|
70325
70360
|
/* eslint import/no-unresolved: 0 */
|
|
70326
70361
|
// @ts-ignore
|
|
@@ -70898,7 +70933,6 @@ function theme_useToken() {
|
|
|
70898
70933
|
|
|
70899
70934
|
|
|
70900
70935
|
|
|
70901
|
-
|
|
70902
70936
|
function genComponentStyleHook(component, styleFn, getDefaultToken) {
|
|
70903
70937
|
return function (prefixCls) {
|
|
70904
70938
|
var _useToken = theme_useToken(),
|
|
@@ -70910,7 +70944,6 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
|
|
|
70910
70944
|
getPrefixCls = _useContext.getPrefixCls,
|
|
70911
70945
|
iconPrefixCls = _useContext.iconPrefixCls;
|
|
70912
70946
|
var rootPrefixCls = getPrefixCls();
|
|
70913
|
-
if (false) {}
|
|
70914
70947
|
// Generate style for all a tags in antd component.
|
|
70915
70948
|
useStyleRegister({
|
|
70916
70949
|
theme: theme,
|
|
@@ -70921,7 +70954,7 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
|
|
|
70921
70954
|
return [{
|
|
70922
70955
|
// Link
|
|
70923
70956
|
'&': genLinkStyle(token)
|
|
70924
|
-
}
|
|
70957
|
+
}];
|
|
70925
70958
|
});
|
|
70926
70959
|
return [useStyleRegister({
|
|
70927
70960
|
theme: theme,
|
|
@@ -70949,7 +70982,7 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
|
|
|
70949
70982
|
overrideComponentToken: token[component]
|
|
70950
70983
|
});
|
|
70951
70984
|
flush(component, mergedComponentToken);
|
|
70952
|
-
return styleInterpolation;
|
|
70985
|
+
return [genCommonStyle(token, prefixCls), styleInterpolation];
|
|
70953
70986
|
}), hashId];
|
|
70954
70987
|
};
|
|
70955
70988
|
}
|
|
@@ -76173,24 +76206,24 @@ function registerTheme(globalPrefixCls, theme) {
|
|
|
76173
76206
|
|
|
76174
76207
|
|
|
76175
76208
|
|
|
76209
|
+
|
|
76176
76210
|
function useTheme(theme, parentTheme) {
|
|
76177
76211
|
var themeConfig = theme || {};
|
|
76178
|
-
var parentThemeConfig = parentTheme ||
|
|
76212
|
+
var parentThemeConfig = parentTheme || theme_defaultConfig;
|
|
76179
76213
|
var mergedTheme = useMemo_useMemo(function () {
|
|
76180
76214
|
if (!theme) {
|
|
76181
76215
|
return parentTheme;
|
|
76182
76216
|
}
|
|
76183
76217
|
// Override
|
|
76184
|
-
var
|
|
76218
|
+
var mergedComponents = extends_extends({}, parentThemeConfig.components);
|
|
76185
76219
|
Object.keys(theme.components || {}).forEach(function (componentName) {
|
|
76186
|
-
|
|
76220
|
+
mergedComponents[componentName] = extends_extends(extends_extends({}, mergedComponents[componentName]), theme.components[componentName]);
|
|
76187
76221
|
});
|
|
76188
76222
|
// Base token
|
|
76189
|
-
|
|
76223
|
+
return extends_extends(extends_extends(extends_extends({}, parentThemeConfig), themeConfig), {
|
|
76190
76224
|
token: extends_extends(extends_extends({}, parentThemeConfig.token), themeConfig.token),
|
|
76191
|
-
|
|
76225
|
+
components: mergedComponents
|
|
76192
76226
|
});
|
|
76193
|
-
return merged;
|
|
76194
76227
|
}, [themeConfig, parentThemeConfig], function (prev, next) {
|
|
76195
76228
|
return prev.some(function (prevTheme, index) {
|
|
76196
76229
|
var nextTheme = next[index];
|
|
@@ -76672,7 +76705,7 @@ function getPlacements(config) {
|
|
|
76672
76705
|
var isValidElement = external_React_.isValidElement;
|
|
76673
76706
|
|
|
76674
76707
|
function isFragment(child) {
|
|
76675
|
-
return child && child.type === external_React_.Fragment;
|
|
76708
|
+
return child && isValidElement(child) && child.type === external_React_.Fragment;
|
|
76676
76709
|
}
|
|
76677
76710
|
function replaceElement(element, replacement, props) {
|
|
76678
76711
|
if (!isValidElement(element)) {
|
|
@@ -81345,14 +81378,14 @@ var accessibilityFocus = function accessibilityFocus(token) {
|
|
|
81345
81378
|
return extends_extends({}, genFocusOutline(token));
|
|
81346
81379
|
};
|
|
81347
81380
|
var getThemeStyle = function getThemeStyle(token, themeSuffix) {
|
|
81348
|
-
var _$concat3, _$concat4, _$concat$concat3, _$concat8, _$concat$concat4;
|
|
81381
|
+
var _not$concat, _$concat3, _$concat4, _$concat$concat3, _$concat8, _$concat$concat4;
|
|
81349
81382
|
var componentCls = token.componentCls,
|
|
81350
81383
|
colorItemText = token.colorItemText,
|
|
81351
81384
|
colorItemTextSelected = token.colorItemTextSelected,
|
|
81385
|
+
colorItemTextSelectedHorizontal = token.colorItemTextSelectedHorizontal,
|
|
81352
81386
|
colorGroupTitle = token.colorGroupTitle,
|
|
81353
81387
|
colorItemBg = token.colorItemBg,
|
|
81354
81388
|
colorSubItemBg = token.colorSubItemBg,
|
|
81355
|
-
colorItemBgActive = token.colorItemBgActive,
|
|
81356
81389
|
colorItemBgSelectedHorizontal = token.colorItemBgSelectedHorizontal,
|
|
81357
81390
|
colorItemBgSelected = token.colorItemBgSelected,
|
|
81358
81391
|
colorActiveBarHeight = token.colorActiveBarHeight,
|
|
@@ -81362,16 +81395,20 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
|
|
|
81362
81395
|
motionEaseInOut = token.motionEaseInOut,
|
|
81363
81396
|
motionEaseOut = token.motionEaseOut,
|
|
81364
81397
|
menuItemPaddingInline = token.menuItemPaddingInline,
|
|
81398
|
+
itemMarginInline = token.itemMarginInline,
|
|
81365
81399
|
motionDurationFast = token.motionDurationFast,
|
|
81366
81400
|
colorItemTextHover = token.colorItemTextHover,
|
|
81367
81401
|
lineType = token.lineType,
|
|
81368
81402
|
colorSplit = token.colorSplit,
|
|
81403
|
+
colorItemBgActive = token.colorItemBgActive,
|
|
81369
81404
|
colorItemTextDisabled = token.colorItemTextDisabled,
|
|
81370
81405
|
colorDangerItemText = token.colorDangerItemText,
|
|
81371
81406
|
colorDangerItemTextHover = token.colorDangerItemTextHover,
|
|
81372
81407
|
colorDangerItemTextSelected = token.colorDangerItemTextSelected,
|
|
81373
81408
|
colorDangerItemBgActive = token.colorDangerItemBgActive,
|
|
81374
|
-
colorDangerItemBgSelected = token.colorDangerItemBgSelected
|
|
81409
|
+
colorDangerItemBgSelected = token.colorDangerItemBgSelected,
|
|
81410
|
+
radiusItem = token.radiusItem,
|
|
81411
|
+
colorItemBgHover = token.colorItemBgHover;
|
|
81375
81412
|
return defineProperty_defineProperty({}, "".concat(componentCls, "-").concat(themeSuffix), (_$concat$concat4 = {
|
|
81376
81413
|
color: colorItemText,
|
|
81377
81414
|
background: colorItemBg
|
|
@@ -81383,9 +81420,49 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
|
|
|
81383
81420
|
color: "".concat(colorItemTextDisabled, " !important")
|
|
81384
81421
|
}), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item:hover, ").concat(componentCls, "-submenu-title:hover"), defineProperty_defineProperty({}, "&:not(".concat(componentCls, "-item-selected):not(").concat(componentCls, "-submenu-selected)"), {
|
|
81385
81422
|
color: colorItemTextHover
|
|
81386
|
-
})), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-
|
|
81387
|
-
|
|
81388
|
-
|
|
81423
|
+
})), defineProperty_defineProperty(_$concat$concat4, "&:not(".concat(componentCls, "-horizontal)"), (_not$concat = {}, defineProperty_defineProperty(_not$concat, "".concat(componentCls, "-item:not(").concat(componentCls, "-item-selected)"), {
|
|
81424
|
+
'&:hover': {
|
|
81425
|
+
backgroundColor: colorItemBgHover
|
|
81426
|
+
},
|
|
81427
|
+
'&:active::before': {
|
|
81428
|
+
content: '""',
|
|
81429
|
+
position: 'absolute',
|
|
81430
|
+
insetInlineStart: 0,
|
|
81431
|
+
top: 0,
|
|
81432
|
+
width: "100%",
|
|
81433
|
+
height: '100%',
|
|
81434
|
+
flex: 1,
|
|
81435
|
+
borderRadius: radiusItem,
|
|
81436
|
+
backgroundColor: colorItemBgActive,
|
|
81437
|
+
transition: "background-color ".concat(motionDurationFast)
|
|
81438
|
+
}
|
|
81439
|
+
}), defineProperty_defineProperty(_not$concat, "".concat(componentCls, "-submenu-title"), {
|
|
81440
|
+
'&::before': {
|
|
81441
|
+
content: '""',
|
|
81442
|
+
position: 'absolute',
|
|
81443
|
+
insetInlineStart: itemMarginInline,
|
|
81444
|
+
top: 0,
|
|
81445
|
+
width: "calc(100% - ".concat(itemMarginInline * 2, "px)"),
|
|
81446
|
+
height: '100%',
|
|
81447
|
+
borderRadius: radiusItem,
|
|
81448
|
+
backgroundColor: 'transparent',
|
|
81449
|
+
transition: "background-color ".concat(motionDurationFast)
|
|
81450
|
+
},
|
|
81451
|
+
'&:hover::before': {
|
|
81452
|
+
backgroundColor: colorItemBgHover
|
|
81453
|
+
},
|
|
81454
|
+
'&:active::after': {
|
|
81455
|
+
content: '""',
|
|
81456
|
+
position: 'absolute',
|
|
81457
|
+
insetInlineStart: itemMarginInline,
|
|
81458
|
+
top: 0,
|
|
81459
|
+
width: "calc(100% - ".concat(itemMarginInline * 2, "px)"),
|
|
81460
|
+
height: '100%',
|
|
81461
|
+
borderRadius: radiusItem,
|
|
81462
|
+
backgroundColor: colorItemBgActive,
|
|
81463
|
+
transition: "background-color ".concat(motionDurationFast)
|
|
81464
|
+
}
|
|
81465
|
+
}), _not$concat)), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item-danger"), (_$concat3 = {
|
|
81389
81466
|
color: colorDangerItemText
|
|
81390
81467
|
}, defineProperty_defineProperty(_$concat3, "&".concat(componentCls, "-item:hover"), defineProperty_defineProperty({}, "&:not(".concat(componentCls, "-item-selected):not(").concat(componentCls, "-submenu-selected)"), {
|
|
81391
81468
|
color: colorDangerItemTextHover
|
|
@@ -81423,23 +81500,23 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
|
|
|
81423
81500
|
content: '""'
|
|
81424
81501
|
}
|
|
81425
81502
|
}, defineProperty_defineProperty(_$concat$concat3, "&:hover, &-active, &-open", {
|
|
81426
|
-
color:
|
|
81503
|
+
color: colorItemTextSelectedHorizontal,
|
|
81427
81504
|
'&::after': {
|
|
81428
81505
|
borderWidth: "".concat(colorActiveBarHeight, "px"),
|
|
81429
|
-
borderBottomColor:
|
|
81506
|
+
borderBottomColor: colorItemTextSelectedHorizontal
|
|
81430
81507
|
}
|
|
81431
81508
|
}), defineProperty_defineProperty(_$concat$concat3, "&-selected", {
|
|
81432
|
-
color:
|
|
81509
|
+
color: colorItemTextSelectedHorizontal,
|
|
81433
81510
|
backgroundColor: colorItemBgSelectedHorizontal,
|
|
81434
81511
|
'&::after': {
|
|
81435
81512
|
borderWidth: "".concat(colorActiveBarHeight, "px"),
|
|
81436
|
-
borderBottomColor:
|
|
81513
|
+
borderBottomColor: colorItemTextSelectedHorizontal
|
|
81437
81514
|
}
|
|
81438
81515
|
}), _$concat$concat3))), defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-root"), defineProperty_defineProperty({}, "&".concat(componentCls, "-inline, &").concat(componentCls, "-vertical"), {
|
|
81439
81516
|
borderInlineEnd: "".concat(colorActiveBarBorderSize, "px ").concat(lineType, " ").concat(colorSplit)
|
|
81440
81517
|
})), defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-inline"), (_$concat8 = {}, defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-sub").concat(componentCls, "-inline"), {
|
|
81441
81518
|
background: colorSubItemBg
|
|
81442
|
-
}), defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu-title"), colorActiveBarBorderSize ? {
|
|
81519
|
+
}), defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu-title"), colorActiveBarBorderSize && colorActiveBarWidth ? {
|
|
81443
81520
|
width: "calc(100% + ".concat(colorActiveBarBorderSize, "px)")
|
|
81444
81521
|
} : {}), defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-item"), defineProperty_defineProperty({
|
|
81445
81522
|
position: 'relative',
|
|
@@ -81474,6 +81551,7 @@ var getVerticalInlineStyle = function getVerticalInlineStyle(token) {
|
|
|
81474
81551
|
var componentCls = token.componentCls,
|
|
81475
81552
|
menuItemHeight = token.menuItemHeight,
|
|
81476
81553
|
menuItemMarginInline = token.menuItemMarginInline,
|
|
81554
|
+
itemMarginInline = token.itemMarginInline,
|
|
81477
81555
|
padding = token.padding,
|
|
81478
81556
|
menuArrowSize = token.menuArrowSize,
|
|
81479
81557
|
fontSize = token.fontSize;
|
|
@@ -81483,10 +81561,15 @@ var getVerticalInlineStyle = function getVerticalInlineStyle(token) {
|
|
|
81483
81561
|
}), defineProperty_defineProperty(_ref, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu-title"), {
|
|
81484
81562
|
height: menuItemHeight,
|
|
81485
81563
|
lineHeight: "".concat(menuItemHeight, "px"),
|
|
81486
|
-
marginBlock: menuItemMarginInline,
|
|
81487
81564
|
paddingInline: padding,
|
|
81488
81565
|
overflow: 'hidden',
|
|
81489
81566
|
textOverflow: 'ellipsis'
|
|
81567
|
+
}), defineProperty_defineProperty(_ref, "".concat(componentCls, "-item"), {
|
|
81568
|
+
marginInline: itemMarginInline,
|
|
81569
|
+
marginBlock: menuItemMarginInline,
|
|
81570
|
+
width: "calc(100% - ".concat(itemMarginInline * 2, "px)")
|
|
81571
|
+
}), defineProperty_defineProperty(_ref, "".concat(componentCls, "-submenu-title"), {
|
|
81572
|
+
marginBlock: menuItemMarginInline
|
|
81490
81573
|
}), defineProperty_defineProperty(_ref, "".concat(componentCls, "-submenu"), {
|
|
81491
81574
|
paddingBottom: 0.02
|
|
81492
81575
|
}), defineProperty_defineProperty(_ref, "> ".concat(componentCls, "-item,\n > ").concat(componentCls, "-submenu > ").concat(componentCls, "-submenu-title"), {
|
|
@@ -81606,7 +81689,7 @@ var getVerticalStyle = function getVerticalStyle(token) {
|
|
|
81606
81689
|
|
|
81607
81690
|
// =============================== Base ===============================
|
|
81608
81691
|
var getBaseStyle = function getBaseStyle(token) {
|
|
81609
|
-
var _$concat$concat, _$concat5, _extends3;
|
|
81692
|
+
var _$concat$concat, _$concat4, _$concat5, _extends3;
|
|
81610
81693
|
var antCls = token.antCls,
|
|
81611
81694
|
componentCls = token.componentCls,
|
|
81612
81695
|
fontSize = token.fontSize,
|
|
@@ -81622,6 +81705,8 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
81622
81705
|
iconCls = token.iconCls,
|
|
81623
81706
|
zIndexPopup = token.zIndexPopup,
|
|
81624
81707
|
radiusBase = token.radiusBase,
|
|
81708
|
+
radiusLG = token.radiusLG,
|
|
81709
|
+
radiusSubMenuItem = token.radiusSubMenuItem,
|
|
81625
81710
|
menuArrowSize = token.menuArrowSize,
|
|
81626
81711
|
controlHeightSM = token.controlHeightSM,
|
|
81627
81712
|
menuArrowOffset = token.menuArrowOffset,
|
|
@@ -81654,7 +81739,7 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
81654
81739
|
display: 'flex'
|
|
81655
81740
|
}, "".concat(componentCls, "-item"), {
|
|
81656
81741
|
flex: 'none'
|
|
81657
|
-
})), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-item,").concat(componentCls, "-submenu
|
|
81742
|
+
})), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu"), {
|
|
81658
81743
|
borderRadius: token.radiusItem
|
|
81659
81744
|
}), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-item-group-title"), {
|
|
81660
81745
|
padding: "".concat(paddingXS, "px ").concat(padding, "px"),
|
|
@@ -81730,7 +81815,7 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
81730
81815
|
position: 'absolute',
|
|
81731
81816
|
zIndex: zIndexPopup,
|
|
81732
81817
|
background: 'transparent',
|
|
81733
|
-
borderRadius:
|
|
81818
|
+
borderRadius: radiusLG,
|
|
81734
81819
|
boxShadow: 'none',
|
|
81735
81820
|
transformOrigin: '0 0',
|
|
81736
81821
|
// https://github.com/ant-design/ant-design/issues/13955
|
|
@@ -81749,11 +81834,13 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
81749
81834
|
top: 0,
|
|
81750
81835
|
insetInlineStart: menuPanelMaskInset
|
|
81751
81836
|
}
|
|
81752
|
-
}, "> ".concat(componentCls),
|
|
81753
|
-
borderRadius:
|
|
81754
|
-
}, "".concat(componentCls, "-
|
|
81837
|
+
}, "> ".concat(componentCls), (_$concat4 = {
|
|
81838
|
+
borderRadius: radiusLG
|
|
81839
|
+
}, defineProperty_defineProperty(_$concat4, "> ".concat(componentCls, "-item"), {
|
|
81840
|
+
borderRadius: radiusSubMenuItem
|
|
81841
|
+
}), defineProperty_defineProperty(_$concat4, "".concat(componentCls, "-submenu-title::after"), {
|
|
81755
81842
|
transition: "transform ".concat(motionDurationSlow, " ").concat(motionEaseInOut)
|
|
81756
|
-
}))), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-submenu"), (_$concat5 = {}, defineProperty_defineProperty(_$concat5, "&-expand-icon, &-arrow", {
|
|
81843
|
+
}), _$concat4))), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-submenu"), (_$concat5 = {}, defineProperty_defineProperty(_$concat5, "&-expand-icon, &-arrow", {
|
|
81757
81844
|
position: 'absolute',
|
|
81758
81845
|
top: '50%',
|
|
81759
81846
|
insetInlineEnd: token.margin,
|
|
@@ -81871,23 +81958,29 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
81871
81958
|
colorTextDescription = token.colorTextDescription,
|
|
81872
81959
|
colorBgContainer = token.colorBgContainer,
|
|
81873
81960
|
colorFillAlter = token.colorFillAlter,
|
|
81874
|
-
|
|
81961
|
+
colorFillContent = token.colorFillContent,
|
|
81875
81962
|
lineWidth = token.lineWidth,
|
|
81876
|
-
lineWidthBold = token.lineWidthBold
|
|
81963
|
+
lineWidthBold = token.lineWidthBold,
|
|
81964
|
+
controlItemBgActiveHover = token.controlItemBgActiveHover,
|
|
81965
|
+
colorBgTextHover = token.colorBgTextHover;
|
|
81877
81966
|
return {
|
|
81878
81967
|
dropdownWidth: 160,
|
|
81879
81968
|
zIndexPopup: token.zIndexPopupBase + 50,
|
|
81880
|
-
radiusItem:
|
|
81969
|
+
radiusItem: token.radiusLG,
|
|
81970
|
+
radiusSubMenuItem: token.radiusSM,
|
|
81881
81971
|
colorItemText: colorText,
|
|
81882
|
-
colorItemTextHover:
|
|
81972
|
+
colorItemTextHover: colorText,
|
|
81973
|
+
colorItemTextHoverHorizontal: colorPrimary,
|
|
81883
81974
|
colorGroupTitle: colorTextDescription,
|
|
81884
|
-
colorItemTextSelected:
|
|
81975
|
+
colorItemTextSelected: colorText,
|
|
81976
|
+
colorItemTextSelectedHorizontal: colorPrimary,
|
|
81885
81977
|
colorItemBg: colorBgContainer,
|
|
81978
|
+
colorItemBgHover: colorBgTextHover,
|
|
81979
|
+
colorItemBgActive: colorFillContent,
|
|
81886
81980
|
colorSubItemBg: colorFillAlter,
|
|
81887
|
-
|
|
81888
|
-
colorItemBgSelected: controlItemBgActive,
|
|
81981
|
+
colorItemBgSelected: controlItemBgActiveHover,
|
|
81889
81982
|
colorItemBgSelectedHorizontal: 'transparent',
|
|
81890
|
-
colorActiveBarWidth:
|
|
81983
|
+
colorActiveBarWidth: 0,
|
|
81891
81984
|
colorActiveBarHeight: lineWidthBold,
|
|
81892
81985
|
colorActiveBarBorderSize: lineWidth,
|
|
81893
81986
|
// Disabled
|
|
@@ -81897,7 +81990,8 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
81897
81990
|
colorDangerItemTextHover: colorError,
|
|
81898
81991
|
colorDangerItemTextSelected: colorError,
|
|
81899
81992
|
colorDangerItemBgActive: colorErrorBg,
|
|
81900
|
-
colorDangerItemBgSelected: colorErrorBg
|
|
81993
|
+
colorDangerItemBgSelected: colorErrorBg,
|
|
81994
|
+
itemMarginInline: token.marginXXS
|
|
81901
81995
|
};
|
|
81902
81996
|
});
|
|
81903
81997
|
return useOriginHook(prefixCls);
|
|
@@ -85062,17 +85156,17 @@ function BaseProList(props) {
|
|
|
85062
85156
|
/* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
|
|
85063
85157
|
;// CONCATENATED MODULE: ./packages/components/src/version.ts
|
|
85064
85158
|
var version_version = {
|
|
85065
|
-
"@ant-design/pro-card": "2.0.
|
|
85066
|
-
"@ant-design/pro-components": "2.3.
|
|
85067
|
-
"@ant-design/pro-descriptions": "2.0.
|
|
85068
|
-
"@ant-design/pro-field": "2.1.
|
|
85069
|
-
"@ant-design/pro-form": "2.2.
|
|
85070
|
-
"@ant-design/pro-layout": "7.1.
|
|
85071
|
-
"@ant-design/pro-list": "2.0.
|
|
85072
|
-
"@ant-design/pro-provider": "2.0.
|
|
85159
|
+
"@ant-design/pro-card": "2.0.16",
|
|
85160
|
+
"@ant-design/pro-components": "2.3.21",
|
|
85161
|
+
"@ant-design/pro-descriptions": "2.0.18",
|
|
85162
|
+
"@ant-design/pro-field": "2.1.11",
|
|
85163
|
+
"@ant-design/pro-form": "2.2.9",
|
|
85164
|
+
"@ant-design/pro-layout": "7.1.10",
|
|
85165
|
+
"@ant-design/pro-list": "2.0.18",
|
|
85166
|
+
"@ant-design/pro-provider": "2.0.8",
|
|
85073
85167
|
"@ant-design/pro-skeleton": "2.0.4",
|
|
85074
|
-
"@ant-design/pro-table": "3.0.
|
|
85075
|
-
"@ant-design/pro-utils": "2.2.
|
|
85168
|
+
"@ant-design/pro-table": "3.0.18",
|
|
85169
|
+
"@ant-design/pro-utils": "2.2.8"
|
|
85076
85170
|
};
|
|
85077
85171
|
;// CONCATENATED MODULE: ./packages/components/src/index.tsx
|
|
85078
85172
|
|