shineout 3.7.0-beta.4 → 3.7.0-beta.6
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/cjs/index.js +1 -1
- package/dist/shineout.js +305 -173
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/dist/shineout.js
CHANGED
|
@@ -3787,6 +3787,76 @@ const figma = [
|
|
|
3787
3787
|
token: 'Orange-9',
|
|
3788
3788
|
locked: true,
|
|
3789
3789
|
},
|
|
3790
|
+
{
|
|
3791
|
+
name: '褐色-1',
|
|
3792
|
+
value: '#FAF4E3',
|
|
3793
|
+
describe: '浅色背景',
|
|
3794
|
+
token: 'Brown-1',
|
|
3795
|
+
locked: true,
|
|
3796
|
+
},
|
|
3797
|
+
{
|
|
3798
|
+
name: '褐色-10',
|
|
3799
|
+
value: '#4D2100',
|
|
3800
|
+
describe: '-10',
|
|
3801
|
+
token: 'Brown-10',
|
|
3802
|
+
locked: true,
|
|
3803
|
+
},
|
|
3804
|
+
{
|
|
3805
|
+
name: '褐色-2',
|
|
3806
|
+
value: '#EBDDBC',
|
|
3807
|
+
describe: '聚焦',
|
|
3808
|
+
token: 'Brown-2',
|
|
3809
|
+
locked: true,
|
|
3810
|
+
},
|
|
3811
|
+
{
|
|
3812
|
+
name: '褐色-3',
|
|
3813
|
+
value: '#D6C094',
|
|
3814
|
+
describe: '禁用',
|
|
3815
|
+
token: 'Brown-3',
|
|
3816
|
+
locked: true,
|
|
3817
|
+
},
|
|
3818
|
+
{
|
|
3819
|
+
name: '褐色-4',
|
|
3820
|
+
value: '#C2A470',
|
|
3821
|
+
describe: '悬浮',
|
|
3822
|
+
token: 'Brown-4',
|
|
3823
|
+
locked: true,
|
|
3824
|
+
},
|
|
3825
|
+
{
|
|
3826
|
+
name: '褐色-5',
|
|
3827
|
+
value: '#AD8951',
|
|
3828
|
+
describe: '悬浮',
|
|
3829
|
+
token: 'Brown-5',
|
|
3830
|
+
locked: true,
|
|
3831
|
+
},
|
|
3832
|
+
{
|
|
3833
|
+
name: '褐色-6',
|
|
3834
|
+
value: '#996F37',
|
|
3835
|
+
describe: '常规',
|
|
3836
|
+
token: 'Brown-6',
|
|
3837
|
+
locked: true,
|
|
3838
|
+
},
|
|
3839
|
+
{
|
|
3840
|
+
name: '褐色-7',
|
|
3841
|
+
value: '#865824',
|
|
3842
|
+
describe: '点击',
|
|
3843
|
+
token: 'Brown-7',
|
|
3844
|
+
locked: true,
|
|
3845
|
+
},
|
|
3846
|
+
{
|
|
3847
|
+
name: '褐色-8',
|
|
3848
|
+
value: '#734415',
|
|
3849
|
+
describe: '-8',
|
|
3850
|
+
token: 'Brown-8',
|
|
3851
|
+
locked: true,
|
|
3852
|
+
},
|
|
3853
|
+
{
|
|
3854
|
+
name: '褐色-9',
|
|
3855
|
+
value: '#603109',
|
|
3856
|
+
describe: '-9',
|
|
3857
|
+
token: 'Brown-9',
|
|
3858
|
+
locked: true,
|
|
3859
|
+
},
|
|
3790
3860
|
{
|
|
3791
3861
|
name: '紫色-1',
|
|
3792
3862
|
value: '#F8EEFE',
|
|
@@ -4475,7 +4545,8 @@ const figma = [
|
|
|
4475
4545
|
},
|
|
4476
4546
|
{
|
|
4477
4547
|
name: 'Shadow-5',
|
|
4478
|
-
value:
|
|
4548
|
+
value:
|
|
4549
|
+
'rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px',
|
|
4479
4550
|
describe: 'Switch圆圈阴影',
|
|
4480
4551
|
token: 'Shadow-5',
|
|
4481
4552
|
locked: true,
|
|
@@ -6780,7 +6851,11 @@ var arrowRight = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
|
6780
6851
|
clipRule: "evenodd",
|
|
6781
6852
|
d: "M10.0625 17.9999C9.67198 18.3904 9.03881 18.3904 8.64829 17.9999C8.25776 17.6094 8.25776 16.9762 8.64829 16.5857L13.2341 11.9999L8.64829 7.41414C8.25776 7.02361 8.25776 6.39045 8.64829 5.99992C9.03881 5.6094 9.67198 5.6094 10.0625 5.99992L15.3554 11.2928C15.7459 11.6833 15.7459 12.3165 15.3554 12.707L10.0625 17.9999Z"
|
|
6782
6853
|
}, '1')];
|
|
6783
|
-
var caretFill =
|
|
6854
|
+
var caretFill = /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6855
|
+
fillRule: "evenodd",
|
|
6856
|
+
clipRule: "evenodd",
|
|
6857
|
+
d: "M18.262 9.92099L12.6754 15.4948C12.2851 15.8842 11.6531 15.8842 11.2628 15.4947L5.73891 9.98295C5.34796 9.59286 5.34727 8.95969 5.73736 8.56874C5.9236 8.3821 6.17601 8.27656 6.43967 8.27508L17.5501 8.2131C18.1024 8.21002 18.5526 8.65523 18.5556 9.2075C18.5571 9.47504 18.4514 9.73203 18.262 9.92099Z"
|
|
6858
|
+
});
|
|
6784
6859
|
var imageCount = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6785
6860
|
fillRule: "evenodd",
|
|
6786
6861
|
clipRule: "evenodd",
|
|
@@ -7074,12 +7149,12 @@ var config = {
|
|
|
7074
7149
|
Next: icons.ArrowRight,
|
|
7075
7150
|
CollapseArrow: icons.ArrowLeft
|
|
7076
7151
|
},
|
|
7077
|
-
textarea: {
|
|
7078
|
-
Close: icons.CloseFill
|
|
7079
|
-
},
|
|
7080
7152
|
tag: {
|
|
7081
7153
|
Close: icons.Close
|
|
7082
7154
|
},
|
|
7155
|
+
textarea: {
|
|
7156
|
+
Close: icons.CloseFill
|
|
7157
|
+
},
|
|
7083
7158
|
transfer: {
|
|
7084
7159
|
DeleteAll: icons.Delete,
|
|
7085
7160
|
DeleteItem: icons.Close,
|
|
@@ -12142,7 +12217,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12142
12217
|
};
|
|
12143
12218
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12144
12219
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12145
|
-
/* harmony default export */ var version = ('3.7.0-beta.
|
|
12220
|
+
/* harmony default export */ var version = ('3.7.0-beta.6');
|
|
12146
12221
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12147
12222
|
|
|
12148
12223
|
|
|
@@ -12421,6 +12496,16 @@ var Token = {
|
|
|
12421
12496
|
'Orange-7': '#865824',
|
|
12422
12497
|
'Orange-8': '#734415',
|
|
12423
12498
|
'Orange-9': '#603109',
|
|
12499
|
+
'Brown-1': '#FAF4E3',
|
|
12500
|
+
'Brown-10': '#4D2100',
|
|
12501
|
+
'Brown-2': '#EBDDBC',
|
|
12502
|
+
'Brown-3': '#D6C094',
|
|
12503
|
+
'Brown-4': '#C2A470',
|
|
12504
|
+
'Brown-5': '#AD8951',
|
|
12505
|
+
'Brown-6': '#996F37',
|
|
12506
|
+
'Brown-7': '#865824',
|
|
12507
|
+
'Brown-8': '#734415',
|
|
12508
|
+
'Brown-9': '#603109',
|
|
12424
12509
|
'Purple-1': '#F8EEFE',
|
|
12425
12510
|
'Purple-10': '#150530',
|
|
12426
12511
|
'Purple-2': '#EDD6FE',
|
|
@@ -14775,24 +14860,24 @@ var tagTokens = {
|
|
|
14775
14860
|
tagMagentaFillDisabledFontColor: 'Neutral-text-1',
|
|
14776
14861
|
tagMagentaFillDisabledBackgroundColor: 'Magenta-3',
|
|
14777
14862
|
tagMagentaFillDisabledBorderColor: 'Magenta-3',
|
|
14778
|
-
tagBrownFontColor: '
|
|
14779
|
-
tagBrownBackgroundColor: '
|
|
14780
|
-
tagBrownBorderColor: '
|
|
14781
|
-
tagBrownDisabledFontColor: '
|
|
14782
|
-
tagBrownDisabledBackgroundColor: '
|
|
14783
|
-
tagBrownDisabledBorderColor: '
|
|
14784
|
-
tagBrownOutlineFontColor: '
|
|
14863
|
+
tagBrownFontColor: 'Brown-6',
|
|
14864
|
+
tagBrownBackgroundColor: 'Brown-1',
|
|
14865
|
+
tagBrownBorderColor: 'Brown-1',
|
|
14866
|
+
tagBrownDisabledFontColor: 'Brown-3',
|
|
14867
|
+
tagBrownDisabledBackgroundColor: 'Brown-1',
|
|
14868
|
+
tagBrownDisabledBorderColor: 'Brown-1',
|
|
14869
|
+
tagBrownOutlineFontColor: 'Brown-6',
|
|
14785
14870
|
tagBrownOutlineBackgroundColor: 'Neutral-fill-1',
|
|
14786
|
-
tagBrownOutlineBorderColor: '
|
|
14787
|
-
tagBrownOutlineDisabledFontColor: '
|
|
14871
|
+
tagBrownOutlineBorderColor: 'Brown-6',
|
|
14872
|
+
tagBrownOutlineDisabledFontColor: 'Brown-3',
|
|
14788
14873
|
tagBrownOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14789
|
-
tagBrownOutlineDisabledBorderColor: '
|
|
14874
|
+
tagBrownOutlineDisabledBorderColor: 'Brown-3',
|
|
14790
14875
|
tagBrownFillFontColor: 'Neutral-text-1',
|
|
14791
|
-
tagBrownFillBackgroundColor: '
|
|
14792
|
-
tagBrownFillBorderColor: '
|
|
14876
|
+
tagBrownFillBackgroundColor: 'Brown-6',
|
|
14877
|
+
tagBrownFillBorderColor: 'Brown-6',
|
|
14793
14878
|
tagBrownFillDisabledFontColor: 'Neutral-text-1',
|
|
14794
|
-
tagBrownFillDisabledBackgroundColor: '
|
|
14795
|
-
tagBrownFillDisabledBorderColor: '
|
|
14879
|
+
tagBrownFillDisabledBackgroundColor: 'Brown-3',
|
|
14880
|
+
tagBrownFillDisabledBorderColor: 'Brown-3',
|
|
14796
14881
|
tagPurpleFontColor: 'Purple-6',
|
|
14797
14882
|
tagPurpleBackgroundColor: 'Purple-1',
|
|
14798
14883
|
tagPurpleBorderColor: 'Purple-1',
|
|
@@ -14930,45 +15015,58 @@ var tagTokens = {
|
|
|
14930
15015
|
tagInfoOutlineIconDisabledFontColor: 'Brand-3',
|
|
14931
15016
|
tagInfoOutlineIconHoverBackgroundColor: 'Brand-1',
|
|
14932
15017
|
tagInfoOutlineIconHoverFontColor: 'Brand-6',
|
|
15018
|
+
tagInfoFillIconHoverBackgroundColor: 'Brand-5',
|
|
14933
15019
|
tagDefaultIconFontColor: 'Neutral-text-4',
|
|
14934
15020
|
tagDefaultIconDisabledFontColor: 'Neutral-text-2',
|
|
14935
15021
|
tagDefaultIconHoverBackgroundColor: 'Neutral-fill-3',
|
|
14936
15022
|
tagDefaultIconHoverFontColor: 'Neutral-text-5',
|
|
15023
|
+
tagDefaultFillIconHoverBackgroundColor: 'Neutral-fill-4',
|
|
14937
15024
|
tagSuccessIconFontColor: 'Success-6',
|
|
14938
15025
|
tagSuccessIconDisabledFontColor: 'Success-3',
|
|
14939
15026
|
tagSuccessIconHoverBackgroundColor: 'Success-2',
|
|
14940
15027
|
tagSuccessOutlineIconDisabledFontColor: 'Success-3',
|
|
14941
15028
|
tagSuccessOutlineIconHoverBackgroundColor: 'Success-2',
|
|
15029
|
+
tagSuccessFillIconHoverBackgroundColor: 'Success-5',
|
|
14942
15030
|
tagWarningIconDisabledFontColor: 'Warning-3',
|
|
14943
15031
|
tagWarningIconHoverBackgroundColor: 'Warning-2',
|
|
14944
15032
|
tagWarningFillIconFontColor: 'Warning-6',
|
|
15033
|
+
tagWarningFillIconHoverBackgroundColor: 'Warning-5',
|
|
14945
15034
|
tagDangerIconFontColor: 'Danger-6',
|
|
14946
15035
|
tagDangerIconDisabledFontColor: 'Danger-3',
|
|
14947
15036
|
tagDangerIconHoverBackgroundColor: 'Danger-2',
|
|
15037
|
+
tagDangerFillIconHoverBackgroundColor: 'Danger-5',
|
|
14948
15038
|
tagMagentaIconFontColor: 'Magenta-6',
|
|
14949
15039
|
tagMagentaIconDisabledFontColor: 'Magenta-3',
|
|
14950
15040
|
tagMagentaIconHoverBackgroundColor: 'Magenta-2',
|
|
14951
|
-
|
|
14952
|
-
|
|
14953
|
-
|
|
15041
|
+
tagMagentaFillIconHoverBackgroundColor: 'Magenta-5',
|
|
15042
|
+
tagBrownIconFontColor: 'Brown-6',
|
|
15043
|
+
tagBrownIconDisabledFontColor: 'Brown-3',
|
|
15044
|
+
tagBrownIconHoverBackgroundColor: 'Brown-2',
|
|
15045
|
+
tagBrownFillIconHoverBackgroundColor: 'Brown-5',
|
|
14954
15046
|
tagPurpleIconFontColor: 'Purple-6',
|
|
14955
15047
|
tagPurpleIconDisabledFontColor: 'Purple-3',
|
|
14956
15048
|
tagPurpleIconHoverBackgroundColor: 'Purple-2',
|
|
15049
|
+
tagPurpleFillIconHoverBackgroundColor: 'Purple-5',
|
|
14957
15050
|
tagIndigoIconFontColor: 'Indigo-6',
|
|
14958
15051
|
tagIndigoIconDisabledFontColor: 'Indigo-3',
|
|
14959
15052
|
tagIndigoIconHoverBackgroundColor: 'Indigo-2',
|
|
15053
|
+
tagIndigoFillIconHoverBackgroundColor: 'Indigo-5',
|
|
14960
15054
|
tagCyanIconFontColor: 'Cyan-6',
|
|
14961
15055
|
tagCyanIconDisabledFontColor: 'Cyan-3',
|
|
14962
15056
|
tagCyanIconHoverBackgroundColor: 'Cyan-2',
|
|
15057
|
+
tagCyanFillIconHoverBackgroundColor: 'Cyan-5',
|
|
14963
15058
|
tagNeonIconFontColor: 'Neon-6',
|
|
14964
15059
|
tagNeonIconDisabledFontColor: 'Neon-3',
|
|
14965
15060
|
tagNeonIconHoverBackgroundColor: 'Neon-2',
|
|
15061
|
+
tagNeonFillIconHoverBackgroundColor: 'Neon-5',
|
|
14966
15062
|
tagLemonIconFontColor: 'Lemon-6',
|
|
14967
15063
|
tagLemonIconDisabledFontColor: 'Lemon-3',
|
|
14968
15064
|
tagLemonIconHoverBackgroundColor: 'Lemon-2',
|
|
15065
|
+
tagLemonFillIconHoverBackgroundColor: 'Lemon-5',
|
|
14969
15066
|
tagTangerineIconFontColor: 'Tangerine-6',
|
|
14970
15067
|
tagTangerineIconDisabledFontColor: 'Tangerine-3',
|
|
14971
|
-
tagTangerineIconHoverBackgroundColor: 'Tangerine-2'
|
|
15068
|
+
tagTangerineIconHoverBackgroundColor: 'Tangerine-2',
|
|
15069
|
+
tagTangerineFillIconHoverBackgroundColor: 'Tangerine-5'
|
|
14972
15070
|
};
|
|
14973
15071
|
/* harmony default export */ var tag = (tagTokens);
|
|
14974
15072
|
;// CONCATENATED MODULE: ../theme/src/tag/index.ts
|
|
@@ -17247,7 +17345,8 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
17247
17345
|
minWidth: 0,
|
|
17248
17346
|
position: 'relative',
|
|
17249
17347
|
outline: 'none',
|
|
17250
|
-
|
|
17348
|
+
maxHeight: 78,
|
|
17349
|
+
overflow: 'auto'
|
|
17251
17350
|
},
|
|
17252
17351
|
result: {
|
|
17253
17352
|
display: 'flex',
|
|
@@ -17393,7 +17492,9 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
17393
17492
|
iconWrapper: {
|
|
17394
17493
|
display: 'flex',
|
|
17395
17494
|
alignItems: 'center',
|
|
17396
|
-
justifyContent: 'center'
|
|
17495
|
+
justifyContent: 'center',
|
|
17496
|
+
position: 'sticky',
|
|
17497
|
+
top: 0
|
|
17397
17498
|
},
|
|
17398
17499
|
clearable: {},
|
|
17399
17500
|
clearIcon: {
|
|
@@ -21655,7 +21756,11 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
21655
21756
|
'& $panel': {
|
|
21656
21757
|
top: 0,
|
|
21657
21758
|
height: '100vh',
|
|
21658
|
-
width: '100vw'
|
|
21759
|
+
width: '100vw',
|
|
21760
|
+
overflow: 'auto'
|
|
21761
|
+
},
|
|
21762
|
+
'& $body': {
|
|
21763
|
+
minHeight: 'auto'
|
|
21659
21764
|
}
|
|
21660
21765
|
},
|
|
21661
21766
|
wrapperZoom: {
|
|
@@ -26948,115 +27053,106 @@ var useTabsStyle = styled(tabs_tabs, 'tabs');
|
|
|
26948
27053
|
;// CONCATENATED MODULE: ../shineout-style/src/tag/tag.ts
|
|
26949
27054
|
|
|
26950
27055
|
|
|
26951
|
-
|
|
27056
|
+
|
|
27057
|
+
var brightTag = function brightTag(name, type) {
|
|
26952
27058
|
return {
|
|
26953
|
-
|
|
26954
|
-
|
|
26955
|
-
|
|
26956
|
-
|
|
26957
|
-
|
|
26958
|
-
|
|
26959
|
-
|
|
26960
|
-
|
|
26961
|
-
|
|
26962
|
-
},
|
|
26963
|
-
'& $closeIcon': {
|
|
26964
|
-
// fill: Token[`tag${type}IconFontColor`],
|
|
26965
|
-
},
|
|
26966
|
-
'&[data-soui-type="dark"]': {
|
|
26967
|
-
'&$disabled': {
|
|
26968
|
-
backgroundColor: src.tagDefaultFillBackgroundColor,
|
|
26969
|
-
borderColor: src.tagDefaultFillBorderColor
|
|
26970
|
-
}
|
|
26971
|
-
},
|
|
27059
|
+
color: src["tag".concat(type, "FontColor")],
|
|
27060
|
+
backgroundColor: src["tag".concat(type, "BackgroundColor")],
|
|
27061
|
+
border: "1px solid ".concat(src["tag".concat(type, "BorderColor")]),
|
|
27062
|
+
'& $closeIconWrapper': {
|
|
27063
|
+
'&:hover': {
|
|
27064
|
+
backgroundColor: src["tag".concat(type, "IconHoverBackgroundColor")]
|
|
27065
|
+
}
|
|
27066
|
+
},
|
|
27067
|
+
'&[data-soui-type="dark"]': {
|
|
26972
27068
|
'&$disabled': {
|
|
26973
|
-
|
|
26974
|
-
|
|
26975
|
-
border: "1px solid ".concat(src["tag".concat(type, "DisabledBorderColor")]),
|
|
26976
|
-
'& $closeIconWrapper': {
|
|
26977
|
-
fill: src["tag".concat(type, "IconDisabledFontColor")],
|
|
26978
|
-
'&:hover': {
|
|
26979
|
-
backgroundColor: 'transparent'
|
|
26980
|
-
}
|
|
26981
|
-
}
|
|
27069
|
+
backgroundColor: src.tagDefaultFillBackgroundColor,
|
|
27070
|
+
borderColor: src.tagDefaultFillBorderColor
|
|
26982
27071
|
}
|
|
26983
27072
|
},
|
|
26984
|
-
'&$
|
|
26985
|
-
color: src["tag".concat(type, "
|
|
26986
|
-
backgroundColor: src["tag".concat(type, "
|
|
26987
|
-
border: "1px solid ".concat(src["tag".concat(type, "
|
|
27073
|
+
'&$disabled': {
|
|
27074
|
+
color: src["tag".concat(type, "DisabledFontColor")],
|
|
27075
|
+
backgroundColor: src["tag".concat(type, "DisabledBackgroundColor")],
|
|
27076
|
+
border: "1px solid ".concat(src["tag".concat(type, "DisabledBorderColor")]),
|
|
26988
27077
|
'& $closeIconWrapper': {
|
|
26989
|
-
fill: src["tag".concat(type, "
|
|
27078
|
+
fill: src["tag".concat(type, "IconDisabledFontColor")],
|
|
26990
27079
|
'&:hover': {
|
|
26991
|
-
|
|
26992
|
-
backgroundColor: src["tag".concat(type, "IconHoverBackgroundColor")]
|
|
27080
|
+
backgroundColor: 'transparent'
|
|
26993
27081
|
}
|
|
26994
|
-
}
|
|
26995
|
-
|
|
26996
|
-
|
|
26997
|
-
|
|
26998
|
-
|
|
27082
|
+
}
|
|
27083
|
+
}
|
|
27084
|
+
};
|
|
27085
|
+
};
|
|
27086
|
+
var fillTag = function fillTag(name, type) {
|
|
27087
|
+
return defineProperty_default()({}, "&$".concat(name), {
|
|
27088
|
+
color: src["tag".concat(type, "FillFontColor")],
|
|
27089
|
+
backgroundColor: src["tag".concat(type, "FillBackgroundColor")],
|
|
27090
|
+
border: "1px solid ".concat(src["tag".concat(type, "FillBorderColor")]),
|
|
27091
|
+
'& $closeIconWrapper': {
|
|
27092
|
+
color: src["tag".concat(type, "FillFontColor")],
|
|
27093
|
+
'&:hover': {
|
|
27094
|
+
backgroundColor: src["tag".concat(type, "FillIconHoverBackgroundColor")]
|
|
27095
|
+
}
|
|
27096
|
+
},
|
|
27097
|
+
'&$disabled': {
|
|
27098
|
+
color: src["tag".concat(type, "FillDisabledFontColor")],
|
|
27099
|
+
backgroundColor: src["tag".concat(type, "FillDisabledBackgroundColor")],
|
|
27100
|
+
border: "1px solid ".concat(src["tag".concat(type, "FillDisabledBorderColor")]),
|
|
27101
|
+
'& $closeIconWrapper': {
|
|
26999
27102
|
color: src["tag".concat(type, "FillDisabledFontColor")],
|
|
27000
|
-
|
|
27001
|
-
|
|
27002
|
-
|
|
27003
|
-
fill: src["tag".concat(type, "FillDisabledFontColor")],
|
|
27004
|
-
'&:hover': {
|
|
27005
|
-
fill: src["tag".concat(type, "FillFontColor")],
|
|
27006
|
-
backgroundColor: 'transparent'
|
|
27007
|
-
}
|
|
27103
|
+
'&:hover': {
|
|
27104
|
+
fill: src["tag".concat(type, "FillFontColor")],
|
|
27105
|
+
backgroundColor: 'transparent'
|
|
27008
27106
|
}
|
|
27009
27107
|
}
|
|
27108
|
+
}
|
|
27109
|
+
});
|
|
27110
|
+
};
|
|
27111
|
+
var outlineTag = function outlineTag(name, type) {
|
|
27112
|
+
return defineProperty_default()({}, "&$".concat(name), {
|
|
27113
|
+
background: src["tag".concat(type, "OutlineBackgroundColor")],
|
|
27114
|
+
color: src["tag".concat(type, "OutlineFontColor")],
|
|
27115
|
+
border: "1px solid ".concat(src["tag".concat(type, "OutlineBorderColor")]),
|
|
27116
|
+
'& $closeIconWrapper': {
|
|
27117
|
+
'&:hover': {
|
|
27118
|
+
backgroundColor: src["tag".concat(type, "BackgroundColor")]
|
|
27119
|
+
}
|
|
27010
27120
|
},
|
|
27011
|
-
|
|
27012
|
-
|
|
27013
|
-
|
|
27014
|
-
|
|
27015
|
-
border: "1px solid ".concat(src["tag".concat(type, "OutlineBorderColor")]),
|
|
27121
|
+
'&$disabled': {
|
|
27122
|
+
color: src["tag".concat(type, "OutlineDisabledFontColor")],
|
|
27123
|
+
backgroundColor: src["tag".concat(type, "OutlineDisabledBackgroundColor")],
|
|
27124
|
+
border: "1px solid ".concat(src["tag".concat(type, "OutlineDisabledBorderColor")]),
|
|
27016
27125
|
'& $closeIconWrapper': {
|
|
27017
|
-
|
|
27126
|
+
fill: src["tag".concat(type, "DisabledFontColor")],
|
|
27018
27127
|
'&:hover': {
|
|
27019
|
-
backgroundColor:
|
|
27020
|
-
}
|
|
27021
|
-
},
|
|
27022
|
-
'&$disabled': {
|
|
27023
|
-
color: src["tag".concat(type, "OutlineDisabledFontColor")],
|
|
27024
|
-
backgroundColor: src["tag".concat(type, "OutlineDisabledBackgroundColor")],
|
|
27025
|
-
border: "1px solid ".concat(src["tag".concat(type, "OutlineDisabledBorderColor")]),
|
|
27026
|
-
'& $closeIconWrapper': {
|
|
27027
|
-
fill: src["tag".concat(type, "DisabledFontColor")],
|
|
27028
|
-
'&:hover': {
|
|
27029
|
-
backgroundColor: 'transparent'
|
|
27030
|
-
}
|
|
27128
|
+
backgroundColor: 'transparent'
|
|
27031
27129
|
}
|
|
27032
27130
|
}
|
|
27131
|
+
}
|
|
27132
|
+
});
|
|
27133
|
+
};
|
|
27134
|
+
var brightOutlineTag = function brightOutlineTag(name, type) {
|
|
27135
|
+
return defineProperty_default()({}, "&$".concat(name), {
|
|
27136
|
+
color: src["tag".concat(type, "FontColor")],
|
|
27137
|
+
backgroundColor: src["tag".concat(type, "BackgroundColor")],
|
|
27138
|
+
border: "1px solid ".concat(src["tag".concat(type, "OutlineBorderColor")]),
|
|
27139
|
+
'& $closeIconWrapper': {
|
|
27140
|
+
'&:hover': {
|
|
27141
|
+
backgroundColor: src["tag".concat(type, "IconHoverBackgroundColor")]
|
|
27142
|
+
}
|
|
27033
27143
|
},
|
|
27034
|
-
|
|
27035
|
-
|
|
27036
|
-
|
|
27037
|
-
|
|
27038
|
-
border: "1px solid ".concat(src["tag".concat(type, "OutlineBorderColor")]),
|
|
27144
|
+
'&$disabled': {
|
|
27145
|
+
color: src["tag".concat(type, "DisabledFontColor")],
|
|
27146
|
+
backgroundColor: src["tag".concat(type, "DisabledBackgroundColor")],
|
|
27147
|
+
border: "1px solid ".concat(src["tag".concat(type, "OutlineDisabledBorderColor")]),
|
|
27039
27148
|
'& $closeIconWrapper': {
|
|
27149
|
+
fill: src["tag".concat(type, "IconDisabledFontColor")],
|
|
27040
27150
|
'&:hover': {
|
|
27041
|
-
backgroundColor:
|
|
27042
|
-
}
|
|
27043
|
-
},
|
|
27044
|
-
'&$disabled': {
|
|
27045
|
-
color: src["tag".concat(type, "DisabledFontColor")],
|
|
27046
|
-
backgroundColor: src["tag".concat(type, "DisabledBackgroundColor")],
|
|
27047
|
-
border: "1px solid ".concat(src["tag".concat(type, "OutlineDisabledBorderColor")]),
|
|
27048
|
-
'& $closeIconWrapper': {
|
|
27049
|
-
fill: src["tag".concat(type, "IconDisabledFontColor")],
|
|
27050
|
-
'&:hover': {
|
|
27051
|
-
backgroundColor: 'transparent'
|
|
27052
|
-
}
|
|
27151
|
+
backgroundColor: 'transparent'
|
|
27053
27152
|
}
|
|
27054
27153
|
}
|
|
27055
|
-
},
|
|
27056
|
-
'& $closeIcon': {
|
|
27057
|
-
fill: src["tag".concat(type, "FontColor")]
|
|
27058
27154
|
}
|
|
27059
|
-
};
|
|
27155
|
+
});
|
|
27060
27156
|
};
|
|
27061
27157
|
var TagStyle = {
|
|
27062
27158
|
rootClass: {},
|
|
@@ -27168,32 +27264,32 @@ var TagStyle = {
|
|
|
27168
27264
|
height: 12
|
|
27169
27265
|
}
|
|
27170
27266
|
},
|
|
27171
|
-
info: objectSpread2_default()({},
|
|
27172
|
-
default: objectSpread2_default()({},
|
|
27173
|
-
success: objectSpread2_default()({},
|
|
27174
|
-
warning: objectSpread2_default()({},
|
|
27175
|
-
danger: objectSpread2_default()({},
|
|
27176
|
-
brown: objectSpread2_default()({},
|
|
27177
|
-
magenta: objectSpread2_default()({},
|
|
27178
|
-
purple: objectSpread2_default()({},
|
|
27179
|
-
indigo: objectSpread2_default()({},
|
|
27180
|
-
cyan: objectSpread2_default()({},
|
|
27181
|
-
neon: objectSpread2_default()({},
|
|
27182
|
-
lemon: objectSpread2_default()({},
|
|
27183
|
-
tangerine: objectSpread2_default()({},
|
|
27184
|
-
fill: {},
|
|
27267
|
+
info: objectSpread2_default()({}, brightTag('info', 'Info')),
|
|
27268
|
+
default: objectSpread2_default()({}, brightTag('default', 'Default')),
|
|
27269
|
+
success: objectSpread2_default()({}, brightTag('success', 'Success')),
|
|
27270
|
+
warning: objectSpread2_default()({}, brightTag('warning', 'Warning')),
|
|
27271
|
+
danger: objectSpread2_default()({}, brightTag('danger', 'Danger')),
|
|
27272
|
+
brown: objectSpread2_default()({}, brightTag('brown', 'Brown')),
|
|
27273
|
+
magenta: objectSpread2_default()({}, brightTag('magenta', 'Magenta')),
|
|
27274
|
+
purple: objectSpread2_default()({}, brightTag('purple', 'Purple')),
|
|
27275
|
+
indigo: objectSpread2_default()({}, brightTag('indigo', 'Indigo')),
|
|
27276
|
+
cyan: objectSpread2_default()({}, brightTag('cyan', 'Cyan')),
|
|
27277
|
+
neon: objectSpread2_default()({}, brightTag('neon', 'Neon')),
|
|
27278
|
+
lemon: objectSpread2_default()({}, brightTag('lemon', 'Lemon')),
|
|
27279
|
+
tangerine: objectSpread2_default()({}, brightTag('tangerine', 'Tangerine')),
|
|
27280
|
+
fill: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, fillTag('default', 'Default')), fillTag('success', 'Success')), fillTag('warning', 'Warning')), fillTag('danger', 'Danger')), fillTag('info', 'Info')), fillTag('brown', 'Brown')), fillTag('magenta', 'Magenta')), fillTag('purple', 'Purple')), fillTag('indigo', 'Indigo')), fillTag('cyan', 'Cyan')), fillTag('neon', 'Neon')), fillTag('lemon', 'Lemon')), fillTag('tangerine', 'Tangerine')),
|
|
27185
27281
|
bright: {},
|
|
27186
|
-
outline: {},
|
|
27187
|
-
brightOutline: {},
|
|
27282
|
+
outline: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, outlineTag('default', 'Default')), outlineTag('success', 'Success')), outlineTag('warning', 'Warning')), outlineTag('danger', 'Danger')), outlineTag('info', 'Info')), outlineTag('brown', 'Brown')), outlineTag('magenta', 'Magenta')), outlineTag('purple', 'Purple')), outlineTag('indigo', 'Indigo')), outlineTag('cyan', 'Cyan')), outlineTag('neon', 'Neon')), outlineTag('lemon', 'Lemon')), outlineTag('tangerine', 'Tangerine')),
|
|
27283
|
+
brightOutline: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, brightOutlineTag('default', 'Default')), brightOutlineTag('success', 'Success')), brightOutlineTag('warning', 'Warning')), brightOutlineTag('danger', 'Danger')), brightOutlineTag('info', 'Info')), brightOutlineTag('brown', 'Brown')), brightOutlineTag('magenta', 'Magenta')), brightOutlineTag('purple', 'Purple')), brightOutlineTag('indigo', 'Indigo')), brightOutlineTag('cyan', 'Cyan')), brightOutlineTag('neon', 'Neon')), brightOutlineTag('lemon', 'Lemon')), brightOutlineTag('tangerine', 'Tangerine')),
|
|
27188
27284
|
rounded: {
|
|
27189
27285
|
borderRadius: src.buttonRoundBorderRadius
|
|
27190
27286
|
}
|
|
27191
27287
|
};
|
|
27192
|
-
/* harmony default export */ var
|
|
27288
|
+
/* harmony default export */ var tag_tag = (TagStyle);
|
|
27193
27289
|
;// CONCATENATED MODULE: ../shineout-style/src/tag/index.ts
|
|
27194
27290
|
|
|
27195
27291
|
|
|
27196
|
-
var useTagStyle = styled(
|
|
27292
|
+
var useTagStyle = styled(tag_tag, 'tag');
|
|
27197
27293
|
|
|
27198
27294
|
/* harmony default export */ var shineout_style_src_tag = ((/* unused pure expression or super */ null && (useTagStyle)));
|
|
27199
27295
|
;// CONCATENATED MODULE: ../shineout-style/src/textarea/textarea.ts
|
|
@@ -28047,6 +28143,7 @@ var treeStyle = {
|
|
|
28047
28143
|
}
|
|
28048
28144
|
},
|
|
28049
28145
|
text: {
|
|
28146
|
+
cursor: 'pointer',
|
|
28050
28147
|
flex: 1,
|
|
28051
28148
|
minWidth: 0,
|
|
28052
28149
|
fontSize: src.treeFontSize,
|
|
@@ -28061,9 +28158,6 @@ var treeStyle = {
|
|
|
28061
28158
|
background: src.treeContentHoverBackgroundColor
|
|
28062
28159
|
}
|
|
28063
28160
|
},
|
|
28064
|
-
textClickable: {
|
|
28065
|
-
cursor: 'pointer'
|
|
28066
|
-
},
|
|
28067
28161
|
// textDisabled: {
|
|
28068
28162
|
// color: Token.treeItemDisabledFontColor,
|
|
28069
28163
|
// },
|
|
@@ -28292,8 +28386,8 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
28292
28386
|
minWidth: 0,
|
|
28293
28387
|
position: 'relative',
|
|
28294
28388
|
outline: 'none',
|
|
28295
|
-
|
|
28296
|
-
'
|
|
28389
|
+
maxHeight: 78,
|
|
28390
|
+
overflow: 'auto'
|
|
28297
28391
|
},
|
|
28298
28392
|
result: {
|
|
28299
28393
|
display: 'flex',
|
|
@@ -28425,7 +28519,9 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
28425
28519
|
iconWrapper: {
|
|
28426
28520
|
display: 'flex',
|
|
28427
28521
|
alignItems: 'center',
|
|
28428
|
-
justifyContent: 'center'
|
|
28522
|
+
justifyContent: 'center',
|
|
28523
|
+
position: 'sticky',
|
|
28524
|
+
top: 0
|
|
28429
28525
|
},
|
|
28430
28526
|
clearable: {},
|
|
28431
28527
|
clearIcon: {
|
|
@@ -40124,7 +40220,7 @@ var Tag = function Tag(props) {
|
|
|
40124
40220
|
}));
|
|
40125
40221
|
};
|
|
40126
40222
|
Tag.Input = tag_input;
|
|
40127
|
-
/* harmony default export */ var
|
|
40223
|
+
/* harmony default export */ var src_tag_tag = (Tag);
|
|
40128
40224
|
;// CONCATENATED MODULE: ../base/src/select/result-more.tsx
|
|
40129
40225
|
|
|
40130
40226
|
|
|
@@ -40227,7 +40323,7 @@ var More = function More(props) {
|
|
|
40227
40323
|
}
|
|
40228
40324
|
if (showNum < 0 || showNum >= data.length) {
|
|
40229
40325
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
40230
|
-
children: [data, /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
40326
|
+
children: [data, /*#__PURE__*/(0,jsx_runtime.jsx)(src_tag_tag, {
|
|
40231
40327
|
className: styles.tag,
|
|
40232
40328
|
jssStyle: jssStyle,
|
|
40233
40329
|
size: size,
|
|
@@ -40248,7 +40344,7 @@ var More = function More(props) {
|
|
|
40248
40344
|
}
|
|
40249
40345
|
var renderCompressedTag = function renderCompressedTag() {
|
|
40250
40346
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
40251
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
40347
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(src_tag_tag, {
|
|
40252
40348
|
className: styles.tag,
|
|
40253
40349
|
jssStyle: jssStyle,
|
|
40254
40350
|
size: size,
|
|
@@ -40463,7 +40559,7 @@ var result_Result = function Result(props) {
|
|
|
40463
40559
|
type: disabled === true ? 'dark' : undefined
|
|
40464
40560
|
})));
|
|
40465
40561
|
}
|
|
40466
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
40562
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(src_tag_tag, objectSpread2_default()(objectSpread2_default()({
|
|
40467
40563
|
disabled: isDisabled,
|
|
40468
40564
|
size: size,
|
|
40469
40565
|
className: classnames_default()(styles.tag, more === 1 && styles.tagOnly, resultClassName),
|
|
@@ -40592,7 +40688,7 @@ var result_Result = function Result(props) {
|
|
|
40592
40688
|
props.setInputText('');
|
|
40593
40689
|
setTimeout(function () {
|
|
40594
40690
|
onFilter === null || onFilter === void 0 || onFilter('', 'blur');
|
|
40595
|
-
},
|
|
40691
|
+
}, 200);
|
|
40596
40692
|
}
|
|
40597
40693
|
|
|
40598
40694
|
// 单选场景下,焦点时自动选中input文本
|
|
@@ -47462,6 +47558,7 @@ var Modal = function Modal(props) {
|
|
|
47462
47558
|
doc.style.paddingRight = "".concat(window.innerWidth - docSize.width, "px");
|
|
47463
47559
|
}
|
|
47464
47560
|
} else {
|
|
47561
|
+
if (!context.isMask) return;
|
|
47465
47562
|
doc.style.paddingRight = '';
|
|
47466
47563
|
doc.style.overflow = '';
|
|
47467
47564
|
}
|
|
@@ -47486,6 +47583,7 @@ var Modal = function Modal(props) {
|
|
|
47486
47583
|
hasMask = false;
|
|
47487
47584
|
}
|
|
47488
47585
|
{
|
|
47586
|
+
if (!context.isMask) return;
|
|
47489
47587
|
var doc = document.body.parentNode;
|
|
47490
47588
|
doc.style.paddingRight = '';
|
|
47491
47589
|
doc.style.overflow = '';
|
|
@@ -49811,7 +49909,8 @@ var useForm = function useForm(props) {
|
|
|
49811
49909
|
validateFields(keys).catch(function () {});
|
|
49812
49910
|
}
|
|
49813
49911
|
update();
|
|
49814
|
-
|
|
49912
|
+
// 默认值上位时会提前触发外部的onChange, 导致外部的多次setFormValue不能合并后生效的问题(ReactDOM.render方式渲染)
|
|
49913
|
+
setTimeout(updateDefaultValue);
|
|
49815
49914
|
context.resetTime = 0;
|
|
49816
49915
|
}, [props.value]);
|
|
49817
49916
|
external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect(function () {
|
|
@@ -50519,7 +50618,7 @@ var FormFlow = function FormFlow(props) {
|
|
|
50519
50618
|
return datum === null || datum === void 0 ? void 0 : datum.get(name);
|
|
50520
50619
|
});
|
|
50521
50620
|
var memoizedResult = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
50522
|
-
if (!props.strict) return;
|
|
50621
|
+
if (!props.strict) return null;
|
|
50523
50622
|
if (isFunc(props.children)) {
|
|
50524
50623
|
return props.children(datum);
|
|
50525
50624
|
}
|
|
@@ -52974,6 +53073,7 @@ var list_List = function List(props) {
|
|
|
52974
53073
|
controlType = props.controlType,
|
|
52975
53074
|
hideCreateOption = props.hideCreateOption,
|
|
52976
53075
|
optionListRef = props.optionListRef,
|
|
53076
|
+
keepScrollTop = props.keepScrollTop,
|
|
52977
53077
|
isAnimationFinish = props.isAnimationFinish,
|
|
52978
53078
|
_props$renderItem = props.renderItem,
|
|
52979
53079
|
renderItemProp = _props$renderItem === void 0 ? function (d) {
|
|
@@ -53141,7 +53241,7 @@ var list_List = function List(props) {
|
|
|
53141
53241
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_list, {
|
|
53142
53242
|
virtualRef: virtualRef,
|
|
53143
53243
|
data: data,
|
|
53144
|
-
keepScrollTop:
|
|
53244
|
+
keepScrollTop: keepScrollTop,
|
|
53145
53245
|
keygen: keygen,
|
|
53146
53246
|
tag: 'ul',
|
|
53147
53247
|
groupKey: groupKey,
|
|
@@ -53271,7 +53371,6 @@ var NodeContent = function NodeContent(props) {
|
|
|
53271
53371
|
var contentStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.tree()) || {};
|
|
53272
53372
|
var rootClass = classnames_default()(contentStyle.contentWrapper, defineProperty_default()(defineProperty_default()(defineProperty_default()({}, contentStyle.childnode, data[childrenKey] && data[childrenKey].length > 0), contentStyle.inlineContent, inlineNode), contentStyle.contentDisabled, disabled));
|
|
53273
53373
|
var contentClass = classnames_default()(contentStyle.content, isString(contentClassProp) && contentClassProp, isFunc(contentClassProp) && contentClassProp(data));
|
|
53274
|
-
var textClass = classnames_default()(contentStyle.text, defineProperty_default()({}, contentStyle.textClickable, actionOnClick && !is_isEmpty(actionOnClick) || parentClickExpand || doubleClickExpand));
|
|
53275
53374
|
var hasExpandIcons = expandIcons !== undefined;
|
|
53276
53375
|
var children = data[childrenKey];
|
|
53277
53376
|
var hasChildren = children && children.length > 0;
|
|
@@ -53415,7 +53514,7 @@ var NodeContent = function NodeContent(props) {
|
|
|
53415
53514
|
}, contentDataProps()), {}, {
|
|
53416
53515
|
children: [onChange && renderCheckbox(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
53417
53516
|
dir: config.direction,
|
|
53418
|
-
className:
|
|
53517
|
+
className: contentStyle.text,
|
|
53419
53518
|
onDoubleClick: onNodeDoubleClick,
|
|
53420
53519
|
onClick: handleNodeClick,
|
|
53421
53520
|
children: renderNode()
|
|
@@ -55492,6 +55591,7 @@ function Select(props0) {
|
|
|
55492
55591
|
renderItem: renderItem,
|
|
55493
55592
|
controlType: controlType,
|
|
55494
55593
|
onLoadMore: onLoadMore,
|
|
55594
|
+
keepScrollTop: !!filterText ? false : true,
|
|
55495
55595
|
isAnimationFinish: isAnimationFinish,
|
|
55496
55596
|
threshold: threshold,
|
|
55497
55597
|
onControlTypeChange: setControlType,
|
|
@@ -60148,6 +60248,7 @@ var extractHeightValue = function extractHeightValue(num) {
|
|
|
60148
60248
|
return undefined;
|
|
60149
60249
|
};
|
|
60150
60250
|
var scroll_table_Scroll = function Scroll(props) {
|
|
60251
|
+
var _scrollRef$current, _scrollRef$current2;
|
|
60151
60252
|
var containerRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
60152
60253
|
var scrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
60153
60254
|
var wrapperRef = useForkRef(scrollRef, props.wrapperRef);
|
|
@@ -60178,7 +60279,10 @@ var scroll_table_Scroll = function Scroll(props) {
|
|
|
60178
60279
|
flex: 1,
|
|
60179
60280
|
minWidth: 0,
|
|
60180
60281
|
minHeight: 0,
|
|
60181
|
-
|
|
60282
|
+
// 原生css sticky机制根据最近的父元素的overflow来决定是否sticky
|
|
60283
|
+
// isHeaderSticky: 这种场景非内滚的时候,设置scroll元素的overflow为initial
|
|
60284
|
+
// isEmptyContent: 这种场景,把scroll元素的overflow设置为hidden,把overflow: auto转交给下面的container元素
|
|
60285
|
+
overflow: props.isEmptyContent ? 'hidden' : props.isHeaderSticky && (scrollRef === null || scrollRef === void 0 || (_scrollRef$current = scrollRef.current) === null || _scrollRef$current === void 0 ? void 0 : _scrollRef$current.scrollHeight) === (scrollRef === null || scrollRef === void 0 || (_scrollRef$current2 = scrollRef.current) === null || _scrollRef$current2 === void 0 ? void 0 : _scrollRef$current2.clientHeight) ? 'initial' : 'auto',
|
|
60182
60286
|
width: '100%'
|
|
60183
60287
|
};
|
|
60184
60288
|
var containerStyle = {
|
|
@@ -60188,6 +60292,7 @@ var scroll_table_Scroll = function Scroll(props) {
|
|
|
60188
60292
|
position: 'sticky',
|
|
60189
60293
|
flexDirection: 'column',
|
|
60190
60294
|
top: 0,
|
|
60295
|
+
// isEmptyContent: overflow设置为auto是为了让empty元素可以sticky left:0 生效
|
|
60191
60296
|
overflow: props.isEmptyContent ? 'auto' : undefined
|
|
60192
60297
|
};
|
|
60193
60298
|
|
|
@@ -62428,20 +62533,31 @@ function useMemo(getValue, condition, shouldUpdate) {
|
|
|
62428
62533
|
|
|
62429
62534
|
|
|
62430
62535
|
|
|
62536
|
+
|
|
62431
62537
|
function Td(props) {
|
|
62538
|
+
var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(),
|
|
62539
|
+
_React$useState2 = slicedToArray_default()(_React$useState, 2),
|
|
62540
|
+
style = _React$useState2[0],
|
|
62541
|
+
setStyle = _React$useState2[1];
|
|
62542
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
62543
|
+
if (!props.style) return;
|
|
62544
|
+
if (shallowEqual(props.style, style)) {
|
|
62545
|
+
return;
|
|
62546
|
+
}
|
|
62547
|
+
setStyle(props.style);
|
|
62548
|
+
}, [props.style]);
|
|
62432
62549
|
var col = props.col,
|
|
62433
62550
|
colSpan = props.colSpan,
|
|
62434
62551
|
rowSpan = props.rowSpan,
|
|
62435
62552
|
className = props.className,
|
|
62436
|
-
style = props.style,
|
|
62437
62553
|
direction = props.direction,
|
|
62438
62554
|
role = props.role,
|
|
62439
62555
|
onClick = props.onClick,
|
|
62440
62556
|
onMouseEnter = props.onMouseEnter,
|
|
62441
62557
|
onMouseLeave = props.onMouseLeave,
|
|
62442
62558
|
renderContent = props.renderContent;
|
|
62443
|
-
var externalDependencies = typeof_default()(props.
|
|
62444
|
-
var updateFn = typeof_default()(props.
|
|
62559
|
+
var externalDependencies = typeof_default()(props.shouldCellUpdate) === 'object' && props.shouldCellUpdate.dependencies ? props.shouldCellUpdate.dependencies : [];
|
|
62560
|
+
var updateFn = typeof_default()(props.shouldCellUpdate) === 'object' && 'update' in props.shouldCellUpdate ? props.shouldCellUpdate.update : props.shouldCellUpdate;
|
|
62445
62561
|
var $td = useMemo(function () {
|
|
62446
62562
|
var content = renderContent(props.col, props.data);
|
|
62447
62563
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("td", {
|
|
@@ -62519,13 +62635,14 @@ var Tr = function Tr(props) {
|
|
|
62519
62635
|
right: right
|
|
62520
62636
|
};
|
|
62521
62637
|
}
|
|
62522
|
-
return
|
|
62638
|
+
return undefined;
|
|
62523
62639
|
};
|
|
62524
|
-
var getTdStyle = function
|
|
62640
|
+
var getTdStyle = usePersistFn(function (column, colSpan) {
|
|
62525
62641
|
var index = column.index;
|
|
62526
62642
|
var fixedStyle = getFixedStyle(column.fixed, index, colSpan);
|
|
62643
|
+
if (!fixedStyle && !column.style) return;
|
|
62527
62644
|
return objectSpread2_default()(objectSpread2_default()({}, column.style), fixedStyle);
|
|
62528
|
-
};
|
|
62645
|
+
});
|
|
62529
62646
|
var handleCellClick = usePersistFn(function (data, colIndex) {
|
|
62530
62647
|
if (!props.onCellClick) return;
|
|
62531
62648
|
props.onCellClick(data, {
|
|
@@ -62588,7 +62705,7 @@ var Tr = function Tr(props) {
|
|
|
62588
62705
|
return _ref.apply(this, arguments);
|
|
62589
62706
|
};
|
|
62590
62707
|
}());
|
|
62591
|
-
var renderTreeExpand = function
|
|
62708
|
+
var renderTreeExpand = usePersistFn(function (content) {
|
|
62592
62709
|
var treeIndent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 22;
|
|
62593
62710
|
var level = props.treeExpandLevel.get(props.originKey) || 0;
|
|
62594
62711
|
var className = tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.expandWrapper;
|
|
@@ -62641,8 +62758,8 @@ var Tr = function Tr(props) {
|
|
|
62641
62758
|
},
|
|
62642
62759
|
children: [$expandIconWrapper, content]
|
|
62643
62760
|
});
|
|
62644
|
-
};
|
|
62645
|
-
var renderContent = function
|
|
62761
|
+
});
|
|
62762
|
+
var renderContent = usePersistFn(function (col, data) {
|
|
62646
62763
|
if (col.type === 'expand' || col.type === 'row-expand') {
|
|
62647
62764
|
var renderResult = typeof col.render === 'function' ? col.render(props.rawData, props.rowIndex) : undefined;
|
|
62648
62765
|
if (typeof renderResult !== 'function') return null;
|
|
@@ -62708,8 +62825,8 @@ var Tr = function Tr(props) {
|
|
|
62708
62825
|
return renderTreeExpand(content, col.treeIndent);
|
|
62709
62826
|
}
|
|
62710
62827
|
return content;
|
|
62711
|
-
};
|
|
62712
|
-
var renderTds = function
|
|
62828
|
+
});
|
|
62829
|
+
var renderTds = usePersistFn(function (cols, data) {
|
|
62713
62830
|
var tds = [];
|
|
62714
62831
|
var skip = 0;
|
|
62715
62832
|
var lastRowIndex = data.length - 1;
|
|
@@ -62753,9 +62870,9 @@ var Tr = function Tr(props) {
|
|
|
62753
62870
|
onClick: props.onCellClick ? function () {
|
|
62754
62871
|
return handleCellClick(data[i].data, i);
|
|
62755
62872
|
} : undefined,
|
|
62756
|
-
|
|
62873
|
+
shouldCellUpdate: col.shouldCellUpdate || props.shouldCellUpdate,
|
|
62757
62874
|
renderContent: renderContent
|
|
62758
|
-
});
|
|
62875
|
+
}, "".concat(col.key, "-").concat(props.rowIndex, "-").concat(i));
|
|
62759
62876
|
tds.push(td);
|
|
62760
62877
|
if (data[i].colSpan) skip = data[i].colSpan - 1;
|
|
62761
62878
|
}
|
|
@@ -62764,7 +62881,7 @@ var Tr = function Tr(props) {
|
|
|
62764
62881
|
if (_loop(i)) continue;
|
|
62765
62882
|
}
|
|
62766
62883
|
return tds;
|
|
62767
|
-
};
|
|
62884
|
+
});
|
|
62768
62885
|
var renderExpand = function renderExpand() {
|
|
62769
62886
|
if (!props.expanded) return null;
|
|
62770
62887
|
var expandCol = props.expandCol;
|
|
@@ -62880,9 +62997,10 @@ var Tr = function Tr(props) {
|
|
|
62880
62997
|
return col.type === 'expand' || col.type === 'row-expand';
|
|
62881
62998
|
});
|
|
62882
62999
|
var renderRow = function renderRow(item, index) {
|
|
63000
|
+
var _props$rowEvents;
|
|
62883
63001
|
var rowIndex = index + currentIndex;
|
|
62884
63002
|
var originKey = getKey(props.keygen, item, rowIndex);
|
|
62885
|
-
var trRenderKey = props.loader ? originKey : "".concat(originKey, "-").concat(rowIndex);
|
|
63003
|
+
var trRenderKey = props.loader || (_props$rowEvents = props.rowEvents) !== null && _props$rowEvents !== void 0 && _props$rowEvents.draggable ? originKey : "".concat(originKey, "-").concat(rowIndex);
|
|
62886
63004
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tr, {
|
|
62887
63005
|
originKey: originKey,
|
|
62888
63006
|
row: rowData[index],
|
|
@@ -62922,7 +63040,8 @@ var Tr = function Tr(props) {
|
|
|
62922
63040
|
bodyScrollWidth: props.bodyScrollWidth,
|
|
62923
63041
|
resizeFlag: props.resizeFlag,
|
|
62924
63042
|
treeCheckAll: props.treeCheckAll,
|
|
62925
|
-
onCellClick: props.onCellClick
|
|
63043
|
+
onCellClick: props.onCellClick,
|
|
63044
|
+
shouldCellUpdate: props.shouldCellUpdate
|
|
62926
63045
|
}, trRenderKey);
|
|
62927
63046
|
};
|
|
62928
63047
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
|
|
@@ -63336,7 +63455,8 @@ var emptyRef = {
|
|
|
63336
63455
|
bodyScrollWidth: scrollWidth,
|
|
63337
63456
|
resizeFlag: resizeFlag,
|
|
63338
63457
|
treeCheckAll: props.treeCheckAll,
|
|
63339
|
-
onCellClick: props.onCellClick
|
|
63458
|
+
onCellClick: props.onCellClick,
|
|
63459
|
+
shouldCellUpdate: props.shouldCellUpdate
|
|
63340
63460
|
};
|
|
63341
63461
|
var headCommonProps = {
|
|
63342
63462
|
disabled: props.disabled,
|
|
@@ -63428,6 +63548,7 @@ var emptyRef = {
|
|
|
63428
63548
|
defaultHeight: context.emptyHeight,
|
|
63429
63549
|
isScrollY: isScrollY,
|
|
63430
63550
|
isEmptyContent: !((_props$data4 = props.data) !== null && _props$data4 !== void 0 && _props$data4.length),
|
|
63551
|
+
isHeaderSticky: stickyProps === null || stickyProps === void 0 ? void 0 : stickyProps.css,
|
|
63431
63552
|
children: [!props.hideHeader && /*#__PURE__*/(0,jsx_runtime.jsx)(StickyWrapper, objectSpread2_default()(objectSpread2_default()({}, props.sticky ? stickyProps : {}), {}, {
|
|
63432
63553
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
63433
63554
|
className: headWrapperClass,
|
|
@@ -64562,7 +64683,7 @@ var tag_jssStyle = {
|
|
|
64562
64683
|
input: useInputStyle
|
|
64563
64684
|
};
|
|
64564
64685
|
var tag_Tag = function Tag(props) {
|
|
64565
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
64686
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(src_tag_tag, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
|
|
64566
64687
|
jssStyle: tag_jssStyle
|
|
64567
64688
|
}));
|
|
64568
64689
|
};
|
|
@@ -65926,17 +66047,28 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
65926
66047
|
var key = datum.getKey(data);
|
|
65927
66048
|
var isDisabled = datum === null || datum === void 0 ? void 0 : datum.isDisabled(key);
|
|
65928
66049
|
var isCheck = datum === null || datum === void 0 ? void 0 : datum.getChecked(key);
|
|
66050
|
+
var contentClass = '';
|
|
66051
|
+
if (props.contentClass) {
|
|
66052
|
+
if (isString(props.contentClass)) {
|
|
66053
|
+
contentClass = props.contentClass;
|
|
66054
|
+
}
|
|
66055
|
+
if (isFunc(props.contentClass)) {
|
|
66056
|
+
contentClass = props.contentClass(data);
|
|
66057
|
+
}
|
|
66058
|
+
}
|
|
65929
66059
|
if (isDisabled) {
|
|
65930
|
-
return classnames_default()(styles.optionDisabled);
|
|
66060
|
+
return classnames_default()(styles.optionDisabled, contentClass);
|
|
65931
66061
|
}
|
|
66062
|
+
var activeClassName = classnames_default()(styles.optionActive, contentClass);
|
|
66063
|
+
var inactiveClassName = classnames_default()(contentClass);
|
|
65932
66064
|
if (multiple) {
|
|
65933
|
-
return isCheck ?
|
|
66065
|
+
return isCheck ? activeClassName : inactiveClassName;
|
|
65934
66066
|
}
|
|
65935
66067
|
if (!isArray(value)) {
|
|
65936
66068
|
var currentData = getDataByValues(value);
|
|
65937
|
-
return currentData === data ?
|
|
66069
|
+
return currentData === data ? activeClassName : inactiveClassName;
|
|
65938
66070
|
}
|
|
65939
|
-
return
|
|
66071
|
+
return inactiveClassName;
|
|
65940
66072
|
};
|
|
65941
66073
|
var checkUnMatched = function checkUnMatched(item) {
|
|
65942
66074
|
return isUnMatchedData(item);
|
|
@@ -69872,7 +70004,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
69872
70004
|
|
|
69873
70005
|
|
|
69874
70006
|
/* harmony default export */ var src_0 = ({
|
|
69875
|
-
version: '3.7.0-beta.
|
|
70007
|
+
version: '3.7.0-beta.6'
|
|
69876
70008
|
});
|
|
69877
70009
|
}();
|
|
69878
70010
|
/******/ return __webpack_exports__;
|