shineout 3.7.0-beta.5 → 3.7.0-beta.7
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 +422 -206
- 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,
|
|
@@ -12146,7 +12217,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12146
12217
|
};
|
|
12147
12218
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12148
12219
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12149
|
-
/* harmony default export */ var version = ('3.7.0-beta.
|
|
12220
|
+
/* harmony default export */ var version = ('3.7.0-beta.7');
|
|
12150
12221
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12151
12222
|
|
|
12152
12223
|
|
|
@@ -12425,6 +12496,16 @@ var Token = {
|
|
|
12425
12496
|
'Orange-7': '#865824',
|
|
12426
12497
|
'Orange-8': '#734415',
|
|
12427
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',
|
|
12428
12509
|
'Purple-1': '#F8EEFE',
|
|
12429
12510
|
'Purple-10': '#150530',
|
|
12430
12511
|
'Purple-2': '#EDD6FE',
|
|
@@ -14779,24 +14860,24 @@ var tagTokens = {
|
|
|
14779
14860
|
tagMagentaFillDisabledFontColor: 'Neutral-text-1',
|
|
14780
14861
|
tagMagentaFillDisabledBackgroundColor: 'Magenta-3',
|
|
14781
14862
|
tagMagentaFillDisabledBorderColor: 'Magenta-3',
|
|
14782
|
-
tagBrownFontColor: '
|
|
14783
|
-
tagBrownBackgroundColor: '
|
|
14784
|
-
tagBrownBorderColor: '
|
|
14785
|
-
tagBrownDisabledFontColor: '
|
|
14786
|
-
tagBrownDisabledBackgroundColor: '
|
|
14787
|
-
tagBrownDisabledBorderColor: '
|
|
14788
|
-
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',
|
|
14789
14870
|
tagBrownOutlineBackgroundColor: 'Neutral-fill-1',
|
|
14790
|
-
tagBrownOutlineBorderColor: '
|
|
14791
|
-
tagBrownOutlineDisabledFontColor: '
|
|
14871
|
+
tagBrownOutlineBorderColor: 'Brown-6',
|
|
14872
|
+
tagBrownOutlineDisabledFontColor: 'Brown-3',
|
|
14792
14873
|
tagBrownOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14793
|
-
tagBrownOutlineDisabledBorderColor: '
|
|
14874
|
+
tagBrownOutlineDisabledBorderColor: 'Brown-3',
|
|
14794
14875
|
tagBrownFillFontColor: 'Neutral-text-1',
|
|
14795
|
-
tagBrownFillBackgroundColor: '
|
|
14796
|
-
tagBrownFillBorderColor: '
|
|
14876
|
+
tagBrownFillBackgroundColor: 'Brown-6',
|
|
14877
|
+
tagBrownFillBorderColor: 'Brown-6',
|
|
14797
14878
|
tagBrownFillDisabledFontColor: 'Neutral-text-1',
|
|
14798
|
-
tagBrownFillDisabledBackgroundColor: '
|
|
14799
|
-
tagBrownFillDisabledBorderColor: '
|
|
14879
|
+
tagBrownFillDisabledBackgroundColor: 'Brown-3',
|
|
14880
|
+
tagBrownFillDisabledBorderColor: 'Brown-3',
|
|
14800
14881
|
tagPurpleFontColor: 'Purple-6',
|
|
14801
14882
|
tagPurpleBackgroundColor: 'Purple-1',
|
|
14802
14883
|
tagPurpleBorderColor: 'Purple-1',
|
|
@@ -14934,45 +15015,58 @@ var tagTokens = {
|
|
|
14934
15015
|
tagInfoOutlineIconDisabledFontColor: 'Brand-3',
|
|
14935
15016
|
tagInfoOutlineIconHoverBackgroundColor: 'Brand-1',
|
|
14936
15017
|
tagInfoOutlineIconHoverFontColor: 'Brand-6',
|
|
15018
|
+
tagInfoFillIconHoverBackgroundColor: 'Brand-5',
|
|
14937
15019
|
tagDefaultIconFontColor: 'Neutral-text-4',
|
|
14938
15020
|
tagDefaultIconDisabledFontColor: 'Neutral-text-2',
|
|
14939
15021
|
tagDefaultIconHoverBackgroundColor: 'Neutral-fill-3',
|
|
14940
15022
|
tagDefaultIconHoverFontColor: 'Neutral-text-5',
|
|
15023
|
+
tagDefaultFillIconHoverBackgroundColor: 'Neutral-fill-4',
|
|
14941
15024
|
tagSuccessIconFontColor: 'Success-6',
|
|
14942
15025
|
tagSuccessIconDisabledFontColor: 'Success-3',
|
|
14943
15026
|
tagSuccessIconHoverBackgroundColor: 'Success-2',
|
|
14944
15027
|
tagSuccessOutlineIconDisabledFontColor: 'Success-3',
|
|
14945
15028
|
tagSuccessOutlineIconHoverBackgroundColor: 'Success-2',
|
|
15029
|
+
tagSuccessFillIconHoverBackgroundColor: 'Success-5',
|
|
14946
15030
|
tagWarningIconDisabledFontColor: 'Warning-3',
|
|
14947
15031
|
tagWarningIconHoverBackgroundColor: 'Warning-2',
|
|
14948
15032
|
tagWarningFillIconFontColor: 'Warning-6',
|
|
15033
|
+
tagWarningFillIconHoverBackgroundColor: 'Warning-5',
|
|
14949
15034
|
tagDangerIconFontColor: 'Danger-6',
|
|
14950
15035
|
tagDangerIconDisabledFontColor: 'Danger-3',
|
|
14951
15036
|
tagDangerIconHoverBackgroundColor: 'Danger-2',
|
|
15037
|
+
tagDangerFillIconHoverBackgroundColor: 'Danger-5',
|
|
14952
15038
|
tagMagentaIconFontColor: 'Magenta-6',
|
|
14953
15039
|
tagMagentaIconDisabledFontColor: 'Magenta-3',
|
|
14954
15040
|
tagMagentaIconHoverBackgroundColor: 'Magenta-2',
|
|
14955
|
-
|
|
14956
|
-
|
|
14957
|
-
|
|
15041
|
+
tagMagentaFillIconHoverBackgroundColor: 'Magenta-5',
|
|
15042
|
+
tagBrownIconFontColor: 'Brown-6',
|
|
15043
|
+
tagBrownIconDisabledFontColor: 'Brown-3',
|
|
15044
|
+
tagBrownIconHoverBackgroundColor: 'Brown-2',
|
|
15045
|
+
tagBrownFillIconHoverBackgroundColor: 'Brown-5',
|
|
14958
15046
|
tagPurpleIconFontColor: 'Purple-6',
|
|
14959
15047
|
tagPurpleIconDisabledFontColor: 'Purple-3',
|
|
14960
15048
|
tagPurpleIconHoverBackgroundColor: 'Purple-2',
|
|
15049
|
+
tagPurpleFillIconHoverBackgroundColor: 'Purple-5',
|
|
14961
15050
|
tagIndigoIconFontColor: 'Indigo-6',
|
|
14962
15051
|
tagIndigoIconDisabledFontColor: 'Indigo-3',
|
|
14963
15052
|
tagIndigoIconHoverBackgroundColor: 'Indigo-2',
|
|
15053
|
+
tagIndigoFillIconHoverBackgroundColor: 'Indigo-5',
|
|
14964
15054
|
tagCyanIconFontColor: 'Cyan-6',
|
|
14965
15055
|
tagCyanIconDisabledFontColor: 'Cyan-3',
|
|
14966
15056
|
tagCyanIconHoverBackgroundColor: 'Cyan-2',
|
|
15057
|
+
tagCyanFillIconHoverBackgroundColor: 'Cyan-5',
|
|
14967
15058
|
tagNeonIconFontColor: 'Neon-6',
|
|
14968
15059
|
tagNeonIconDisabledFontColor: 'Neon-3',
|
|
14969
15060
|
tagNeonIconHoverBackgroundColor: 'Neon-2',
|
|
15061
|
+
tagNeonFillIconHoverBackgroundColor: 'Neon-5',
|
|
14970
15062
|
tagLemonIconFontColor: 'Lemon-6',
|
|
14971
15063
|
tagLemonIconDisabledFontColor: 'Lemon-3',
|
|
14972
15064
|
tagLemonIconHoverBackgroundColor: 'Lemon-2',
|
|
15065
|
+
tagLemonFillIconHoverBackgroundColor: 'Lemon-5',
|
|
14973
15066
|
tagTangerineIconFontColor: 'Tangerine-6',
|
|
14974
15067
|
tagTangerineIconDisabledFontColor: 'Tangerine-3',
|
|
14975
|
-
tagTangerineIconHoverBackgroundColor: 'Tangerine-2'
|
|
15068
|
+
tagTangerineIconHoverBackgroundColor: 'Tangerine-2',
|
|
15069
|
+
tagTangerineFillIconHoverBackgroundColor: 'Tangerine-5'
|
|
14976
15070
|
};
|
|
14977
15071
|
/* harmony default export */ var tag = (tagTokens);
|
|
14978
15072
|
;// CONCATENATED MODULE: ../theme/src/tag/index.ts
|
|
@@ -21662,7 +21756,11 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
21662
21756
|
'& $panel': {
|
|
21663
21757
|
top: 0,
|
|
21664
21758
|
height: '100vh',
|
|
21665
|
-
width: '100vw'
|
|
21759
|
+
width: '100vw',
|
|
21760
|
+
overflow: 'auto'
|
|
21761
|
+
},
|
|
21762
|
+
'& $body': {
|
|
21763
|
+
minHeight: 'auto'
|
|
21666
21764
|
}
|
|
21667
21765
|
},
|
|
21668
21766
|
wrapperZoom: {
|
|
@@ -25697,8 +25795,11 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
25697
25795
|
borderTop: "1px solid ".concat(src.tableCellBorderColor)
|
|
25698
25796
|
}
|
|
25699
25797
|
},
|
|
25700
|
-
|
|
25701
|
-
overflow: 'scroll hidden'
|
|
25798
|
+
mirrorScroller: {
|
|
25799
|
+
overflow: 'scroll hidden',
|
|
25800
|
+
'[data-soui-sticky="false"] &': {
|
|
25801
|
+
display: 'none'
|
|
25802
|
+
}
|
|
25702
25803
|
},
|
|
25703
25804
|
headWrapper: {
|
|
25704
25805
|
flex: '0 0 auto',
|
|
@@ -26955,115 +27056,106 @@ var useTabsStyle = styled(tabs_tabs, 'tabs');
|
|
|
26955
27056
|
;// CONCATENATED MODULE: ../shineout-style/src/tag/tag.ts
|
|
26956
27057
|
|
|
26957
27058
|
|
|
26958
|
-
|
|
27059
|
+
|
|
27060
|
+
var brightTag = function brightTag(name, type) {
|
|
26959
27061
|
return {
|
|
26960
|
-
|
|
26961
|
-
|
|
26962
|
-
|
|
26963
|
-
|
|
26964
|
-
|
|
26965
|
-
|
|
26966
|
-
|
|
26967
|
-
|
|
26968
|
-
|
|
26969
|
-
},
|
|
26970
|
-
'& $closeIcon': {
|
|
26971
|
-
// fill: Token[`tag${type}IconFontColor`],
|
|
26972
|
-
},
|
|
26973
|
-
'&[data-soui-type="dark"]': {
|
|
26974
|
-
'&$disabled': {
|
|
26975
|
-
backgroundColor: src.tagDefaultFillBackgroundColor,
|
|
26976
|
-
borderColor: src.tagDefaultFillBorderColor
|
|
26977
|
-
}
|
|
26978
|
-
},
|
|
27062
|
+
color: src["tag".concat(type, "FontColor")],
|
|
27063
|
+
backgroundColor: src["tag".concat(type, "BackgroundColor")],
|
|
27064
|
+
border: "1px solid ".concat(src["tag".concat(type, "BorderColor")]),
|
|
27065
|
+
'& $closeIconWrapper': {
|
|
27066
|
+
'&:hover': {
|
|
27067
|
+
backgroundColor: src["tag".concat(type, "IconHoverBackgroundColor")]
|
|
27068
|
+
}
|
|
27069
|
+
},
|
|
27070
|
+
'&[data-soui-type="dark"]': {
|
|
26979
27071
|
'&$disabled': {
|
|
26980
|
-
|
|
26981
|
-
|
|
26982
|
-
border: "1px solid ".concat(src["tag".concat(type, "DisabledBorderColor")]),
|
|
26983
|
-
'& $closeIconWrapper': {
|
|
26984
|
-
fill: src["tag".concat(type, "IconDisabledFontColor")],
|
|
26985
|
-
'&:hover': {
|
|
26986
|
-
backgroundColor: 'transparent'
|
|
26987
|
-
}
|
|
26988
|
-
}
|
|
27072
|
+
backgroundColor: src.tagDefaultFillBackgroundColor,
|
|
27073
|
+
borderColor: src.tagDefaultFillBorderColor
|
|
26989
27074
|
}
|
|
26990
27075
|
},
|
|
26991
|
-
'&$
|
|
26992
|
-
color: src["tag".concat(type, "
|
|
26993
|
-
backgroundColor: src["tag".concat(type, "
|
|
26994
|
-
border: "1px solid ".concat(src["tag".concat(type, "
|
|
27076
|
+
'&$disabled': {
|
|
27077
|
+
color: src["tag".concat(type, "DisabledFontColor")],
|
|
27078
|
+
backgroundColor: src["tag".concat(type, "DisabledBackgroundColor")],
|
|
27079
|
+
border: "1px solid ".concat(src["tag".concat(type, "DisabledBorderColor")]),
|
|
26995
27080
|
'& $closeIconWrapper': {
|
|
26996
|
-
fill: src["tag".concat(type, "
|
|
27081
|
+
fill: src["tag".concat(type, "IconDisabledFontColor")],
|
|
26997
27082
|
'&:hover': {
|
|
26998
|
-
|
|
26999
|
-
backgroundColor: src["tag".concat(type, "IconHoverBackgroundColor")]
|
|
27083
|
+
backgroundColor: 'transparent'
|
|
27000
27084
|
}
|
|
27001
|
-
}
|
|
27002
|
-
|
|
27003
|
-
|
|
27004
|
-
|
|
27005
|
-
|
|
27085
|
+
}
|
|
27086
|
+
}
|
|
27087
|
+
};
|
|
27088
|
+
};
|
|
27089
|
+
var fillTag = function fillTag(name, type) {
|
|
27090
|
+
return defineProperty_default()({}, "&$".concat(name), {
|
|
27091
|
+
color: src["tag".concat(type, "FillFontColor")],
|
|
27092
|
+
backgroundColor: src["tag".concat(type, "FillBackgroundColor")],
|
|
27093
|
+
border: "1px solid ".concat(src["tag".concat(type, "FillBorderColor")]),
|
|
27094
|
+
'& $closeIconWrapper': {
|
|
27095
|
+
color: src["tag".concat(type, "FillFontColor")],
|
|
27096
|
+
'&:hover': {
|
|
27097
|
+
backgroundColor: src["tag".concat(type, "FillIconHoverBackgroundColor")]
|
|
27098
|
+
}
|
|
27099
|
+
},
|
|
27100
|
+
'&$disabled': {
|
|
27101
|
+
color: src["tag".concat(type, "FillDisabledFontColor")],
|
|
27102
|
+
backgroundColor: src["tag".concat(type, "FillDisabledBackgroundColor")],
|
|
27103
|
+
border: "1px solid ".concat(src["tag".concat(type, "FillDisabledBorderColor")]),
|
|
27104
|
+
'& $closeIconWrapper': {
|
|
27006
27105
|
color: src["tag".concat(type, "FillDisabledFontColor")],
|
|
27007
|
-
|
|
27008
|
-
|
|
27009
|
-
|
|
27010
|
-
fill: src["tag".concat(type, "FillDisabledFontColor")],
|
|
27011
|
-
'&:hover': {
|
|
27012
|
-
fill: src["tag".concat(type, "FillFontColor")],
|
|
27013
|
-
backgroundColor: 'transparent'
|
|
27014
|
-
}
|
|
27106
|
+
'&:hover': {
|
|
27107
|
+
fill: src["tag".concat(type, "FillFontColor")],
|
|
27108
|
+
backgroundColor: 'transparent'
|
|
27015
27109
|
}
|
|
27016
27110
|
}
|
|
27111
|
+
}
|
|
27112
|
+
});
|
|
27113
|
+
};
|
|
27114
|
+
var outlineTag = function outlineTag(name, type) {
|
|
27115
|
+
return defineProperty_default()({}, "&$".concat(name), {
|
|
27116
|
+
background: src["tag".concat(type, "OutlineBackgroundColor")],
|
|
27117
|
+
color: src["tag".concat(type, "OutlineFontColor")],
|
|
27118
|
+
border: "1px solid ".concat(src["tag".concat(type, "OutlineBorderColor")]),
|
|
27119
|
+
'& $closeIconWrapper': {
|
|
27120
|
+
'&:hover': {
|
|
27121
|
+
backgroundColor: src["tag".concat(type, "BackgroundColor")]
|
|
27122
|
+
}
|
|
27017
27123
|
},
|
|
27018
|
-
|
|
27019
|
-
|
|
27020
|
-
|
|
27021
|
-
|
|
27022
|
-
border: "1px solid ".concat(src["tag".concat(type, "OutlineBorderColor")]),
|
|
27124
|
+
'&$disabled': {
|
|
27125
|
+
color: src["tag".concat(type, "OutlineDisabledFontColor")],
|
|
27126
|
+
backgroundColor: src["tag".concat(type, "OutlineDisabledBackgroundColor")],
|
|
27127
|
+
border: "1px solid ".concat(src["tag".concat(type, "OutlineDisabledBorderColor")]),
|
|
27023
27128
|
'& $closeIconWrapper': {
|
|
27024
|
-
|
|
27129
|
+
fill: src["tag".concat(type, "DisabledFontColor")],
|
|
27025
27130
|
'&:hover': {
|
|
27026
|
-
backgroundColor:
|
|
27027
|
-
}
|
|
27028
|
-
},
|
|
27029
|
-
'&$disabled': {
|
|
27030
|
-
color: src["tag".concat(type, "OutlineDisabledFontColor")],
|
|
27031
|
-
backgroundColor: src["tag".concat(type, "OutlineDisabledBackgroundColor")],
|
|
27032
|
-
border: "1px solid ".concat(src["tag".concat(type, "OutlineDisabledBorderColor")]),
|
|
27033
|
-
'& $closeIconWrapper': {
|
|
27034
|
-
fill: src["tag".concat(type, "DisabledFontColor")],
|
|
27035
|
-
'&:hover': {
|
|
27036
|
-
backgroundColor: 'transparent'
|
|
27037
|
-
}
|
|
27131
|
+
backgroundColor: 'transparent'
|
|
27038
27132
|
}
|
|
27039
27133
|
}
|
|
27134
|
+
}
|
|
27135
|
+
});
|
|
27136
|
+
};
|
|
27137
|
+
var brightOutlineTag = function brightOutlineTag(name, type) {
|
|
27138
|
+
return defineProperty_default()({}, "&$".concat(name), {
|
|
27139
|
+
color: src["tag".concat(type, "FontColor")],
|
|
27140
|
+
backgroundColor: src["tag".concat(type, "BackgroundColor")],
|
|
27141
|
+
border: "1px solid ".concat(src["tag".concat(type, "OutlineBorderColor")]),
|
|
27142
|
+
'& $closeIconWrapper': {
|
|
27143
|
+
'&:hover': {
|
|
27144
|
+
backgroundColor: src["tag".concat(type, "IconHoverBackgroundColor")]
|
|
27145
|
+
}
|
|
27040
27146
|
},
|
|
27041
|
-
|
|
27042
|
-
|
|
27043
|
-
|
|
27044
|
-
|
|
27045
|
-
border: "1px solid ".concat(src["tag".concat(type, "OutlineBorderColor")]),
|
|
27147
|
+
'&$disabled': {
|
|
27148
|
+
color: src["tag".concat(type, "DisabledFontColor")],
|
|
27149
|
+
backgroundColor: src["tag".concat(type, "DisabledBackgroundColor")],
|
|
27150
|
+
border: "1px solid ".concat(src["tag".concat(type, "OutlineDisabledBorderColor")]),
|
|
27046
27151
|
'& $closeIconWrapper': {
|
|
27152
|
+
fill: src["tag".concat(type, "IconDisabledFontColor")],
|
|
27047
27153
|
'&:hover': {
|
|
27048
|
-
backgroundColor:
|
|
27049
|
-
}
|
|
27050
|
-
},
|
|
27051
|
-
'&$disabled': {
|
|
27052
|
-
color: src["tag".concat(type, "DisabledFontColor")],
|
|
27053
|
-
backgroundColor: src["tag".concat(type, "DisabledBackgroundColor")],
|
|
27054
|
-
border: "1px solid ".concat(src["tag".concat(type, "OutlineDisabledBorderColor")]),
|
|
27055
|
-
'& $closeIconWrapper': {
|
|
27056
|
-
fill: src["tag".concat(type, "IconDisabledFontColor")],
|
|
27057
|
-
'&:hover': {
|
|
27058
|
-
backgroundColor: 'transparent'
|
|
27059
|
-
}
|
|
27154
|
+
backgroundColor: 'transparent'
|
|
27060
27155
|
}
|
|
27061
27156
|
}
|
|
27062
|
-
},
|
|
27063
|
-
'& $closeIcon': {
|
|
27064
|
-
fill: src["tag".concat(type, "FontColor")]
|
|
27065
27157
|
}
|
|
27066
|
-
};
|
|
27158
|
+
});
|
|
27067
27159
|
};
|
|
27068
27160
|
var TagStyle = {
|
|
27069
27161
|
rootClass: {},
|
|
@@ -27175,32 +27267,32 @@ var TagStyle = {
|
|
|
27175
27267
|
height: 12
|
|
27176
27268
|
}
|
|
27177
27269
|
},
|
|
27178
|
-
info: objectSpread2_default()({},
|
|
27179
|
-
default: objectSpread2_default()({},
|
|
27180
|
-
success: objectSpread2_default()({},
|
|
27181
|
-
warning: objectSpread2_default()({},
|
|
27182
|
-
danger: objectSpread2_default()({},
|
|
27183
|
-
brown: objectSpread2_default()({},
|
|
27184
|
-
magenta: objectSpread2_default()({},
|
|
27185
|
-
purple: objectSpread2_default()({},
|
|
27186
|
-
indigo: objectSpread2_default()({},
|
|
27187
|
-
cyan: objectSpread2_default()({},
|
|
27188
|
-
neon: objectSpread2_default()({},
|
|
27189
|
-
lemon: objectSpread2_default()({},
|
|
27190
|
-
tangerine: objectSpread2_default()({},
|
|
27191
|
-
fill: {},
|
|
27270
|
+
info: objectSpread2_default()({}, brightTag('info', 'Info')),
|
|
27271
|
+
default: objectSpread2_default()({}, brightTag('default', 'Default')),
|
|
27272
|
+
success: objectSpread2_default()({}, brightTag('success', 'Success')),
|
|
27273
|
+
warning: objectSpread2_default()({}, brightTag('warning', 'Warning')),
|
|
27274
|
+
danger: objectSpread2_default()({}, brightTag('danger', 'Danger')),
|
|
27275
|
+
brown: objectSpread2_default()({}, brightTag('brown', 'Brown')),
|
|
27276
|
+
magenta: objectSpread2_default()({}, brightTag('magenta', 'Magenta')),
|
|
27277
|
+
purple: objectSpread2_default()({}, brightTag('purple', 'Purple')),
|
|
27278
|
+
indigo: objectSpread2_default()({}, brightTag('indigo', 'Indigo')),
|
|
27279
|
+
cyan: objectSpread2_default()({}, brightTag('cyan', 'Cyan')),
|
|
27280
|
+
neon: objectSpread2_default()({}, brightTag('neon', 'Neon')),
|
|
27281
|
+
lemon: objectSpread2_default()({}, brightTag('lemon', 'Lemon')),
|
|
27282
|
+
tangerine: objectSpread2_default()({}, brightTag('tangerine', 'Tangerine')),
|
|
27283
|
+
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')),
|
|
27192
27284
|
bright: {},
|
|
27193
|
-
outline: {},
|
|
27194
|
-
brightOutline: {},
|
|
27285
|
+
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')),
|
|
27286
|
+
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')),
|
|
27195
27287
|
rounded: {
|
|
27196
27288
|
borderRadius: src.buttonRoundBorderRadius
|
|
27197
27289
|
}
|
|
27198
27290
|
};
|
|
27199
|
-
/* harmony default export */ var
|
|
27291
|
+
/* harmony default export */ var tag_tag = (TagStyle);
|
|
27200
27292
|
;// CONCATENATED MODULE: ../shineout-style/src/tag/index.ts
|
|
27201
27293
|
|
|
27202
27294
|
|
|
27203
|
-
var useTagStyle = styled(
|
|
27295
|
+
var useTagStyle = styled(tag_tag, 'tag');
|
|
27204
27296
|
|
|
27205
27297
|
/* harmony default export */ var shineout_style_src_tag = ((/* unused pure expression or super */ null && (useTagStyle)));
|
|
27206
27298
|
;// CONCATENATED MODULE: ../shineout-style/src/textarea/textarea.ts
|
|
@@ -28054,6 +28146,7 @@ var treeStyle = {
|
|
|
28054
28146
|
}
|
|
28055
28147
|
},
|
|
28056
28148
|
text: {
|
|
28149
|
+
cursor: 'pointer',
|
|
28057
28150
|
flex: 1,
|
|
28058
28151
|
minWidth: 0,
|
|
28059
28152
|
fontSize: src.treeFontSize,
|
|
@@ -28068,9 +28161,6 @@ var treeStyle = {
|
|
|
28068
28161
|
background: src.treeContentHoverBackgroundColor
|
|
28069
28162
|
}
|
|
28070
28163
|
},
|
|
28071
|
-
textClickable: {
|
|
28072
|
-
cursor: 'pointer'
|
|
28073
|
-
},
|
|
28074
28164
|
// textDisabled: {
|
|
28075
28165
|
// color: Token.treeItemDisabledFontColor,
|
|
28076
28166
|
// },
|
|
@@ -28562,8 +28652,8 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
28562
28652
|
visibility: 'hidden'
|
|
28563
28653
|
},
|
|
28564
28654
|
moreWrapper: {
|
|
28565
|
-
|
|
28566
|
-
|
|
28655
|
+
maxWidth: 400,
|
|
28656
|
+
maxHeight: 160,
|
|
28567
28657
|
overflow: 'auto',
|
|
28568
28658
|
padding: "".concat(src.treeSelectMorePaddingY, " ").concat(src.treeSelectMorePaddingX)
|
|
28569
28659
|
},
|
|
@@ -29889,19 +29979,6 @@ var usePopup = function usePopup(props) {
|
|
|
29889
29979
|
};
|
|
29890
29980
|
};
|
|
29891
29981
|
/* harmony default export */ var use_popup = (usePopup);
|
|
29892
|
-
;// CONCATENATED MODULE: ../hooks/src/utils/attribute.ts
|
|
29893
|
-
var getDataAttribute = function getDataAttribute(attrs) {
|
|
29894
|
-
return Object.keys(attrs).reduce(function (acc, key) {
|
|
29895
|
-
var ns = "data-soui-".concat(key);
|
|
29896
|
-
if (attrs[key] !== undefined) {
|
|
29897
|
-
acc[ns] = attrs[key];
|
|
29898
|
-
}
|
|
29899
|
-
return acc;
|
|
29900
|
-
}, {});
|
|
29901
|
-
};
|
|
29902
|
-
var getDataAttributeName = function getDataAttributeName(name) {
|
|
29903
|
-
return "data-soui-".concat(name);
|
|
29904
|
-
};
|
|
29905
29982
|
;// CONCATENATED MODULE: ../hooks/src/utils/func.ts
|
|
29906
29983
|
// 节流函数
|
|
29907
29984
|
var throttle = function throttle(func, wait) {
|
|
@@ -30120,6 +30197,19 @@ var getFieldId = function getFieldId(name, formName) {
|
|
|
30120
30197
|
if (!name) return undefined;
|
|
30121
30198
|
return "".concat(formName ? "".concat(formName, "_") : '').concat(name);
|
|
30122
30199
|
};
|
|
30200
|
+
;// CONCATENATED MODULE: ../hooks/src/utils/attribute.ts
|
|
30201
|
+
var getDataAttribute = function getDataAttribute(attrs) {
|
|
30202
|
+
return Object.keys(attrs).reduce(function (acc, key) {
|
|
30203
|
+
var ns = "data-soui-".concat(key);
|
|
30204
|
+
if (attrs[key] !== undefined) {
|
|
30205
|
+
acc[ns] = attrs[key];
|
|
30206
|
+
}
|
|
30207
|
+
return acc;
|
|
30208
|
+
}, {});
|
|
30209
|
+
};
|
|
30210
|
+
var getDataAttributeName = function getDataAttributeName(name) {
|
|
30211
|
+
return "data-soui-".concat(name);
|
|
30212
|
+
};
|
|
30123
30213
|
;// CONCATENATED MODULE: ../hooks/src/common/use-position-style/get-position-style.ts
|
|
30124
30214
|
|
|
30125
30215
|
var ReverseDir = {
|
|
@@ -30561,13 +30651,6 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
30561
30651
|
style.right = containerRect.right - rect.right + containerScrollBarWidth - containerScroll.left - (offset ? offset[0] : 0);
|
|
30562
30652
|
style.left = 'auto';
|
|
30563
30653
|
style.transform = '';
|
|
30564
|
-
if (adjust) {
|
|
30565
|
-
overLeft = bodyRect.left - (rect.right - context.popUpWidth);
|
|
30566
|
-
if (style.right < 0 && targetRect) {
|
|
30567
|
-
style.left = bodyRect.width - targetRect.width;
|
|
30568
|
-
style.right = 'auto';
|
|
30569
|
-
}
|
|
30570
|
-
}
|
|
30571
30654
|
} else {
|
|
30572
30655
|
// 居中对齐
|
|
30573
30656
|
style.left = rect.left + rect.width / 2 - containerRect.left + containerScroll.left;
|
|
@@ -31439,6 +31522,7 @@ var AbsoluteList = function AbsoluteList(props) {
|
|
|
31439
31522
|
|
|
31440
31523
|
|
|
31441
31524
|
|
|
31525
|
+
|
|
31442
31526
|
var emptyEvent = function emptyEvent(e) {
|
|
31443
31527
|
return e.stopPropagation();
|
|
31444
31528
|
};
|
|
@@ -31498,7 +31582,17 @@ var Popover = function Popover(props) {
|
|
|
31498
31582
|
Provider = _usePopup.Provider,
|
|
31499
31583
|
providerValue = _usePopup.providerValue;
|
|
31500
31584
|
var events = getTargetProps();
|
|
31585
|
+
var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(0),
|
|
31586
|
+
_React$useState2 = slicedToArray_default()(_React$useState, 2),
|
|
31587
|
+
updateKey = _React$useState2[0],
|
|
31588
|
+
setUpdateKey = _React$useState2[1];
|
|
31589
|
+
var handleUpdateKey = function handleUpdateKey() {
|
|
31590
|
+
setUpdateKey(function (prev) {
|
|
31591
|
+
return (prev + 1) % 2;
|
|
31592
|
+
});
|
|
31593
|
+
};
|
|
31501
31594
|
var bindEvents = function bindEvents() {
|
|
31595
|
+
var _window;
|
|
31502
31596
|
var targetEl = targetRef.current;
|
|
31503
31597
|
if (!targetEl) return;
|
|
31504
31598
|
if (events.onMouseEnter) targetEl.addEventListener('mouseenter', events.onMouseEnter);
|
|
@@ -31508,8 +31602,14 @@ var Popover = function Popover(props) {
|
|
|
31508
31602
|
if (trigger === 'hover' && props.clickToCancelDelay && props.mouseEnterDelay) {
|
|
31509
31603
|
targetEl.addEventListener('click', closePop);
|
|
31510
31604
|
}
|
|
31605
|
+
(_window = window) === null || _window === void 0 || _window.addEventListener('resize', handleUpdateKey);
|
|
31606
|
+
var scrollContainer = getClosestScrollContainer(targetEl);
|
|
31607
|
+
if (scrollContainer) {
|
|
31608
|
+
scrollContainer.addEventListener('scroll', handleUpdateKey);
|
|
31609
|
+
}
|
|
31511
31610
|
};
|
|
31512
31611
|
var unbindEvents = function unbindEvents() {
|
|
31612
|
+
var _window2;
|
|
31513
31613
|
var targetEl = targetRef.current;
|
|
31514
31614
|
if (!targetEl) return;
|
|
31515
31615
|
var events = getTargetProps();
|
|
@@ -31517,6 +31617,11 @@ var Popover = function Popover(props) {
|
|
|
31517
31617
|
if (events.onMouseLeave) targetEl.removeEventListener('mouseleave', events.onMouseLeave);
|
|
31518
31618
|
if (events.onClick) targetEl.removeEventListener('click', events.onClick);
|
|
31519
31619
|
targetEl.removeEventListener('click', closePop);
|
|
31620
|
+
(_window2 = window) === null || _window2 === void 0 || _window2.removeEventListener('resize', handleUpdateKey);
|
|
31621
|
+
var scrollContainer = getClosestScrollContainer(targetEl);
|
|
31622
|
+
if (scrollContainer) {
|
|
31623
|
+
scrollContainer.addEventListener('scroll', handleUpdateKey);
|
|
31624
|
+
}
|
|
31520
31625
|
};
|
|
31521
31626
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
31522
31627
|
bindEvents();
|
|
@@ -31578,6 +31683,7 @@ var Popover = function Popover(props) {
|
|
|
31578
31683
|
adjust: props.adjust,
|
|
31579
31684
|
lazy: props.lazy,
|
|
31580
31685
|
offset: props.offset,
|
|
31686
|
+
updateKey: updateKey,
|
|
31581
31687
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
31582
31688
|
className: classnames_default()(className, popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.rootClass, popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapper, open && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapperOpen), !showArrow && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.hideArrow)),
|
|
31583
31689
|
style: containerStyle
|
|
@@ -40133,7 +40239,7 @@ var Tag = function Tag(props) {
|
|
|
40133
40239
|
}));
|
|
40134
40240
|
};
|
|
40135
40241
|
Tag.Input = tag_input;
|
|
40136
|
-
/* harmony default export */ var
|
|
40242
|
+
/* harmony default export */ var src_tag_tag = (Tag);
|
|
40137
40243
|
;// CONCATENATED MODULE: ../base/src/select/result-more.tsx
|
|
40138
40244
|
|
|
40139
40245
|
|
|
@@ -40236,7 +40342,7 @@ var More = function More(props) {
|
|
|
40236
40342
|
}
|
|
40237
40343
|
if (showNum < 0 || showNum >= data.length) {
|
|
40238
40344
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
40239
|
-
children: [data, /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
40345
|
+
children: [data, /*#__PURE__*/(0,jsx_runtime.jsx)(src_tag_tag, {
|
|
40240
40346
|
className: styles.tag,
|
|
40241
40347
|
jssStyle: jssStyle,
|
|
40242
40348
|
size: size,
|
|
@@ -40257,7 +40363,7 @@ var More = function More(props) {
|
|
|
40257
40363
|
}
|
|
40258
40364
|
var renderCompressedTag = function renderCompressedTag() {
|
|
40259
40365
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
40260
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
40366
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(src_tag_tag, {
|
|
40261
40367
|
className: styles.tag,
|
|
40262
40368
|
jssStyle: jssStyle,
|
|
40263
40369
|
size: size,
|
|
@@ -40472,7 +40578,7 @@ var result_Result = function Result(props) {
|
|
|
40472
40578
|
type: disabled === true ? 'dark' : undefined
|
|
40473
40579
|
})));
|
|
40474
40580
|
}
|
|
40475
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
40581
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(src_tag_tag, objectSpread2_default()(objectSpread2_default()({
|
|
40476
40582
|
disabled: isDisabled,
|
|
40477
40583
|
size: size,
|
|
40478
40584
|
className: classnames_default()(styles.tag, more === 1 && styles.tagOnly, resultClassName),
|
|
@@ -40601,7 +40707,7 @@ var result_Result = function Result(props) {
|
|
|
40601
40707
|
props.setInputText('');
|
|
40602
40708
|
setTimeout(function () {
|
|
40603
40709
|
onFilter === null || onFilter === void 0 || onFilter('', 'blur');
|
|
40604
|
-
},
|
|
40710
|
+
}, 200);
|
|
40605
40711
|
}
|
|
40606
40712
|
|
|
40607
40713
|
// 单选场景下,焦点时自动选中input文本
|
|
@@ -41289,8 +41395,9 @@ var Cascader = function Cascader(props0) {
|
|
|
41289
41395
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
41290
41396
|
if (!value) return;
|
|
41291
41397
|
datum.setValue(value);
|
|
41398
|
+
if (!open) return;
|
|
41292
41399
|
updatePathByValue();
|
|
41293
|
-
}, [value]);
|
|
41400
|
+
}, [value, open]);
|
|
41294
41401
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
41295
41402
|
if (filterText !== undefined) {
|
|
41296
41403
|
updatePath();
|
|
@@ -41801,6 +41908,7 @@ var validate = function validate(value, formData, rules, p) {
|
|
|
41801
41908
|
|
|
41802
41909
|
|
|
41803
41910
|
|
|
41911
|
+
|
|
41804
41912
|
var getValue = function getValue(name, formValue) {
|
|
41805
41913
|
if (!name) return undefined;
|
|
41806
41914
|
if (isArray(name)) {
|
|
@@ -41840,6 +41948,10 @@ function useFormControl(props) {
|
|
|
41840
41948
|
_React$useState2 = slicedToArray_default()(_React$useState, 2),
|
|
41841
41949
|
errorState = _React$useState2[0],
|
|
41842
41950
|
setErrorState = _React$useState2[1];
|
|
41951
|
+
var _React$useRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef({
|
|
41952
|
+
mounted: false
|
|
41953
|
+
}),
|
|
41954
|
+
context = _React$useRef.current;
|
|
41843
41955
|
var value;
|
|
41844
41956
|
var error = errorState;
|
|
41845
41957
|
var inForm = false;
|
|
@@ -41999,7 +42111,11 @@ function useFormControl(props) {
|
|
|
41999
42111
|
} else {
|
|
42000
42112
|
controlFunc.bind(name, defaultValue, validateField, update);
|
|
42001
42113
|
}
|
|
42114
|
+
if (context.mounted) {
|
|
42115
|
+
devUseWarning.warn('Please avoid modifying the name property after the component has mounted, as this may result in unintended behavior or errors.');
|
|
42116
|
+
}
|
|
42002
42117
|
}
|
|
42118
|
+
context.mounted = true;
|
|
42003
42119
|
return function () {
|
|
42004
42120
|
if (inForm && controlFunc) {
|
|
42005
42121
|
if (isArray(name)) {
|
|
@@ -49696,8 +49812,10 @@ var useForm = function useForm(props) {
|
|
|
49696
49812
|
context.updateMap[n] = new Set();
|
|
49697
49813
|
}
|
|
49698
49814
|
context.updateMap[n].add(updateFn);
|
|
49815
|
+
var shouldTriggerResetChange = context.removeArr.has(n);
|
|
49699
49816
|
context.removeArr.delete(n);
|
|
49700
|
-
|
|
49817
|
+
var shouldTriggerDefaultChange = df !== undefined && deepGet(context.value, n) === undefined;
|
|
49818
|
+
if (shouldTriggerDefaultChange || shouldTriggerResetChange) {
|
|
49701
49819
|
if (!context.mounted) context.defaultValues[n] = df;
|
|
49702
49820
|
onChange(function (v) {
|
|
49703
49821
|
deepSet(v, n, df, deepSetOptions);
|
|
@@ -49822,7 +49940,8 @@ var useForm = function useForm(props) {
|
|
|
49822
49940
|
validateFields(keys).catch(function () {});
|
|
49823
49941
|
}
|
|
49824
49942
|
update();
|
|
49825
|
-
|
|
49943
|
+
// 默认值上位时会提前触发外部的onChange, 导致外部的多次setFormValue不能合并后生效的问题(ReactDOM.render方式渲染)
|
|
49944
|
+
setTimeout(updateDefaultValue);
|
|
49826
49945
|
context.resetTime = 0;
|
|
49827
49946
|
}, [props.value]);
|
|
49828
49947
|
external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect(function () {
|
|
@@ -50064,6 +50183,7 @@ var UseFormItem = function UseFormItem() {
|
|
|
50064
50183
|
|
|
50065
50184
|
|
|
50066
50185
|
|
|
50186
|
+
|
|
50067
50187
|
var tooltip_devUseWarning = devUseWarning;
|
|
50068
50188
|
var defaultDelay = 0;
|
|
50069
50189
|
var Tooltip = function Tooltip(props) {
|
|
@@ -50105,14 +50225,30 @@ var Tooltip = function Tooltip(props) {
|
|
|
50105
50225
|
popupRef = _usePopup.popupRef,
|
|
50106
50226
|
closePop = _usePopup.closePop;
|
|
50107
50227
|
var events = getTargetProps();
|
|
50228
|
+
var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(0),
|
|
50229
|
+
_React$useState2 = slicedToArray_default()(_React$useState, 2),
|
|
50230
|
+
updateKey = _React$useState2[0],
|
|
50231
|
+
setUpdateKey = _React$useState2[1];
|
|
50232
|
+
var handleUpdateKey = function handleUpdateKey() {
|
|
50233
|
+
setUpdateKey(function (prev) {
|
|
50234
|
+
return (prev + 1) % 2;
|
|
50235
|
+
});
|
|
50236
|
+
};
|
|
50108
50237
|
var bindEvents = function bindEvents() {
|
|
50238
|
+
var _window;
|
|
50109
50239
|
var targetEl = targetRef.current;
|
|
50110
50240
|
if (!targetEl) return;
|
|
50111
50241
|
if (events.onMouseEnter) targetEl.addEventListener('mouseenter', events.onMouseEnter);
|
|
50112
50242
|
if (events.onMouseLeave) targetEl.addEventListener('mouseleave', events.onMouseLeave);
|
|
50113
50243
|
if (events.onClick) targetEl.addEventListener('click', events.onClick);
|
|
50244
|
+
(_window = window) === null || _window === void 0 || _window.addEventListener('resize', handleUpdateKey);
|
|
50245
|
+
var scrollContainer = getClosestScrollContainer(targetEl);
|
|
50246
|
+
if (scrollContainer) {
|
|
50247
|
+
scrollContainer.addEventListener('scroll', handleUpdateKey);
|
|
50248
|
+
}
|
|
50114
50249
|
};
|
|
50115
50250
|
var unbindEvents = function unbindEvents() {
|
|
50251
|
+
var _window2;
|
|
50116
50252
|
var targetEl = targetRef.current;
|
|
50117
50253
|
if (!targetEl) return;
|
|
50118
50254
|
var events = getTargetProps();
|
|
@@ -50120,6 +50256,11 @@ var Tooltip = function Tooltip(props) {
|
|
|
50120
50256
|
if (events.onMouseLeave) targetEl.removeEventListener('mouseleave', events.onMouseLeave);
|
|
50121
50257
|
if (events.onClick) targetEl.removeEventListener('click', events.onClick);
|
|
50122
50258
|
targetEl.removeEventListener('click', closePop);
|
|
50259
|
+
(_window2 = window) === null || _window2 === void 0 || _window2.removeEventListener('resize', handleUpdateKey);
|
|
50260
|
+
var scrollContainer = getClosestScrollContainer(targetEl);
|
|
50261
|
+
if (scrollContainer) {
|
|
50262
|
+
scrollContainer.addEventListener('scroll', handleUpdateKey);
|
|
50263
|
+
}
|
|
50123
50264
|
};
|
|
50124
50265
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
50125
50266
|
if (!persistent) return;
|
|
@@ -50163,6 +50304,7 @@ var Tooltip = function Tooltip(props) {
|
|
|
50163
50304
|
popupGap: 0,
|
|
50164
50305
|
zIndex: zIndex,
|
|
50165
50306
|
adjust: popsitionProps === 'auto',
|
|
50307
|
+
updateKey: updateKey,
|
|
50166
50308
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
50167
50309
|
className: classnames_default()(className, tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.rootClass, tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapper, open && (tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.wrapperOpen)),
|
|
50168
50310
|
style: {
|
|
@@ -52985,6 +53127,7 @@ var list_List = function List(props) {
|
|
|
52985
53127
|
controlType = props.controlType,
|
|
52986
53128
|
hideCreateOption = props.hideCreateOption,
|
|
52987
53129
|
optionListRef = props.optionListRef,
|
|
53130
|
+
keepScrollTop = props.keepScrollTop,
|
|
52988
53131
|
isAnimationFinish = props.isAnimationFinish,
|
|
52989
53132
|
_props$renderItem = props.renderItem,
|
|
52990
53133
|
renderItemProp = _props$renderItem === void 0 ? function (d) {
|
|
@@ -53152,7 +53295,7 @@ var list_List = function List(props) {
|
|
|
53152
53295
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_list, {
|
|
53153
53296
|
virtualRef: virtualRef,
|
|
53154
53297
|
data: data,
|
|
53155
|
-
keepScrollTop:
|
|
53298
|
+
keepScrollTop: keepScrollTop,
|
|
53156
53299
|
keygen: keygen,
|
|
53157
53300
|
tag: 'ul',
|
|
53158
53301
|
groupKey: groupKey,
|
|
@@ -53282,7 +53425,6 @@ var NodeContent = function NodeContent(props) {
|
|
|
53282
53425
|
var contentStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.tree()) || {};
|
|
53283
53426
|
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));
|
|
53284
53427
|
var contentClass = classnames_default()(contentStyle.content, isString(contentClassProp) && contentClassProp, isFunc(contentClassProp) && contentClassProp(data));
|
|
53285
|
-
var textClass = classnames_default()(contentStyle.text, defineProperty_default()({}, contentStyle.textClickable, actionOnClick && !is_isEmpty(actionOnClick) || parentClickExpand || doubleClickExpand));
|
|
53286
53428
|
var hasExpandIcons = expandIcons !== undefined;
|
|
53287
53429
|
var children = data[childrenKey];
|
|
53288
53430
|
var hasChildren = children && children.length > 0;
|
|
@@ -53426,7 +53568,7 @@ var NodeContent = function NodeContent(props) {
|
|
|
53426
53568
|
}, contentDataProps()), {}, {
|
|
53427
53569
|
children: [onChange && renderCheckbox(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
53428
53570
|
dir: config.direction,
|
|
53429
|
-
className:
|
|
53571
|
+
className: contentStyle.text,
|
|
53430
53572
|
onDoubleClick: onNodeDoubleClick,
|
|
53431
53573
|
onClick: handleNodeClick,
|
|
53432
53574
|
children: renderNode()
|
|
@@ -54160,6 +54302,7 @@ var TreeVirtual = function TreeVirtual(props) {
|
|
|
54160
54302
|
height = props.height,
|
|
54161
54303
|
_props$lineHeight = props.lineHeight,
|
|
54162
54304
|
lineHeight = _props$lineHeight === void 0 ? 36 : _props$lineHeight,
|
|
54305
|
+
rowsInView = props.rowsInView,
|
|
54163
54306
|
line = props.line,
|
|
54164
54307
|
mode = props.mode,
|
|
54165
54308
|
contentClass = props.contentClass,
|
|
@@ -54221,7 +54364,7 @@ var TreeVirtual = function TreeVirtual(props) {
|
|
|
54221
54364
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_list, {
|
|
54222
54365
|
data: datum.dataFlat,
|
|
54223
54366
|
height: height,
|
|
54224
|
-
rowsInView:
|
|
54367
|
+
rowsInView: rowsInView,
|
|
54225
54368
|
scrollerStyle: {
|
|
54226
54369
|
height: '100%',
|
|
54227
54370
|
width: '100%',
|
|
@@ -54241,7 +54384,7 @@ var TreeVirtual = function TreeVirtual(props) {
|
|
|
54241
54384
|
|
|
54242
54385
|
|
|
54243
54386
|
|
|
54244
|
-
var tree_excluded = ["jssStyle", "line", "childrenKey", "data", "value", "mode", "keygen", "virtual", "expanded", "expandIcons", "iconClass", "leafClass", "nodeClass", "contentClass", "rootStyle", "renderItem", "defaultValue", "dataUpdate", "childrenClass", "defaultExpandAll", "defaultExpanded", "parentClickExpand", "doubleClickExpand", "dragImageSelector", "dragImageStyle", "dragSibling", "unmatch", "ignoreSetFlat", "dragHoverExpand", "active", "setActive", "disabled", "inlineNode", "highlight", "className", "onClick", "loader", "getDatum", "onDrop", "onExpand", "onChange", "onDragEnd", "onDragLeave", "onDragOver", "onDragStart", "datum", "actionOnClick", "tiledData"];
|
|
54387
|
+
var tree_excluded = ["jssStyle", "line", "childrenKey", "data", "value", "mode", "keygen", "virtual", "expanded", "expandIcons", "iconClass", "leafClass", "nodeClass", "contentClass", "rootStyle", "renderItem", "defaultValue", "dataUpdate", "childrenClass", "defaultExpandAll", "defaultExpanded", "parentClickExpand", "doubleClickExpand", "dragImageSelector", "dragImageStyle", "dragSibling", "unmatch", "ignoreSetFlat", "dragHoverExpand", "active", "setActive", "disabled", "inlineNode", "highlight", "className", "onClick", "loader", "getDatum", "onDrop", "onExpand", "onChange", "onDragEnd", "onDragLeave", "onDragOver", "onDragStart", "datum", "rowsInView", "actionOnClick", "tiledData"];
|
|
54245
54388
|
|
|
54246
54389
|
|
|
54247
54390
|
|
|
@@ -54303,6 +54446,8 @@ var Tree = function Tree(props) {
|
|
|
54303
54446
|
onDragOver = props.onDragOver,
|
|
54304
54447
|
onDragStart = props.onDragStart,
|
|
54305
54448
|
propsDatum = props.datum,
|
|
54449
|
+
_props$rowsInView = props.rowsInView,
|
|
54450
|
+
rowsInView = _props$rowsInView === void 0 ? 20 : _props$rowsInView,
|
|
54306
54451
|
actionOnClick = props.actionOnClick,
|
|
54307
54452
|
tiledData = props.tiledData,
|
|
54308
54453
|
rest = objectWithoutProperties_default()(props, tree_excluded);
|
|
@@ -54462,6 +54607,7 @@ var Tree = function Tree(props) {
|
|
|
54462
54607
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tree_virtual, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
|
|
54463
54608
|
data: data,
|
|
54464
54609
|
line: line,
|
|
54610
|
+
rowsInView: rowsInView,
|
|
54465
54611
|
expanded: expanded,
|
|
54466
54612
|
height: realHeight,
|
|
54467
54613
|
childrenKey: props.childrenKey || 'children',
|
|
@@ -55503,6 +55649,7 @@ function Select(props0) {
|
|
|
55503
55649
|
renderItem: renderItem,
|
|
55504
55650
|
controlType: controlType,
|
|
55505
55651
|
onLoadMore: onLoadMore,
|
|
55652
|
+
keepScrollTop: !!filterText ? false : true,
|
|
55506
55653
|
isAnimationFinish: isAnimationFinish,
|
|
55507
55654
|
threshold: threshold,
|
|
55508
55655
|
onControlTypeChange: setControlType,
|
|
@@ -60008,12 +60155,15 @@ var Sticky = function Sticky(props) {
|
|
|
60008
60155
|
pointerEvents: 'none'
|
|
60009
60156
|
};
|
|
60010
60157
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
60011
|
-
children: [isFixed ? StickyEl : context.target && context.div && /*#__PURE__*/(0,external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_.createPortal)(StickyEl, context.div), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
60158
|
+
children: [isFixed ? StickyEl : context.target && context.div && /*#__PURE__*/(0,external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_.createPortal)(StickyEl, context.div), /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
|
|
60012
60159
|
className: props.className,
|
|
60013
60160
|
style: objectSpread2_default()(objectSpread2_default()({}, props.style), show && parentVisible ? hideStyle : {}),
|
|
60014
|
-
ref: handleElementRef
|
|
60161
|
+
ref: handleElementRef
|
|
60162
|
+
}, getDataAttribute({
|
|
60163
|
+
sticky: show && parentVisible ? 'true' : 'false'
|
|
60164
|
+
})), {}, {
|
|
60015
60165
|
children: children
|
|
60016
|
-
})]
|
|
60166
|
+
}))]
|
|
60017
60167
|
});
|
|
60018
60168
|
};
|
|
60019
60169
|
/* harmony default export */ var src_sticky_sticky = (Sticky);
|
|
@@ -60159,6 +60309,7 @@ var extractHeightValue = function extractHeightValue(num) {
|
|
|
60159
60309
|
return undefined;
|
|
60160
60310
|
};
|
|
60161
60311
|
var scroll_table_Scroll = function Scroll(props) {
|
|
60312
|
+
var _scrollRef$current, _scrollRef$current2;
|
|
60162
60313
|
var containerRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
60163
60314
|
var scrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
60164
60315
|
var wrapperRef = useForkRef(scrollRef, props.wrapperRef);
|
|
@@ -60189,7 +60340,10 @@ var scroll_table_Scroll = function Scroll(props) {
|
|
|
60189
60340
|
flex: 1,
|
|
60190
60341
|
minWidth: 0,
|
|
60191
60342
|
minHeight: 0,
|
|
60192
|
-
|
|
60343
|
+
// 原生css sticky机制根据最近的父元素的overflow来决定是否sticky
|
|
60344
|
+
// isHeaderSticky: 这种场景非内滚的时候,设置scroll元素的overflow为initial
|
|
60345
|
+
// isEmptyContent: 这种场景,把scroll元素的overflow设置为hidden,把overflow: auto转交给下面的container元素
|
|
60346
|
+
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',
|
|
60193
60347
|
width: '100%'
|
|
60194
60348
|
};
|
|
60195
60349
|
var containerStyle = {
|
|
@@ -60199,6 +60353,7 @@ var scroll_table_Scroll = function Scroll(props) {
|
|
|
60199
60353
|
position: 'sticky',
|
|
60200
60354
|
flexDirection: 'column',
|
|
60201
60355
|
top: 0,
|
|
60356
|
+
// isEmptyContent: overflow设置为auto是为了让empty元素可以sticky left:0 生效
|
|
60202
60357
|
overflow: props.isEmptyContent ? 'auto' : undefined
|
|
60203
60358
|
};
|
|
60204
60359
|
|
|
@@ -61135,13 +61290,6 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
61135
61290
|
autoAddRows: 0
|
|
61136
61291
|
}),
|
|
61137
61292
|
context = _useRef.current;
|
|
61138
|
-
var getTranslate = usePersistFn(function (left, top) {
|
|
61139
|
-
var t = top === undefined ? innerTop + offsetY : top;
|
|
61140
|
-
if (t < 0) {
|
|
61141
|
-
t = 0;
|
|
61142
|
-
}
|
|
61143
|
-
return "translate3d(0, ".concat(0 - t, "px, 0)");
|
|
61144
|
-
});
|
|
61145
61293
|
var getContentHeight = function getContentHeight(index) {
|
|
61146
61294
|
if (props.disabled) return 0;
|
|
61147
61295
|
var sum = 0;
|
|
@@ -61241,7 +61389,7 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
61241
61389
|
};
|
|
61242
61390
|
setHeight(sumHeight);
|
|
61243
61391
|
});
|
|
61244
|
-
var handleScroll = function
|
|
61392
|
+
var handleScroll = usePersistFn(function (info) {
|
|
61245
61393
|
var height = info.height,
|
|
61246
61394
|
y = info.y,
|
|
61247
61395
|
fromDrag = info.fromDrag;
|
|
@@ -61275,7 +61423,7 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
61275
61423
|
} else {
|
|
61276
61424
|
updateIndexAndTopFromTop(scrollTop);
|
|
61277
61425
|
}
|
|
61278
|
-
};
|
|
61426
|
+
});
|
|
61279
61427
|
var scrollToIndex = usePersistFn(function (index, callback) {
|
|
61280
61428
|
if (props.disabled) return;
|
|
61281
61429
|
if (props.scrollRef.current) {
|
|
@@ -61380,15 +61528,24 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
61380
61528
|
}
|
|
61381
61529
|
}, [scrollHeight]);
|
|
61382
61530
|
var finalRowsInView = rowsInView + context.rowSpanRows + context.autoAddRows;
|
|
61383
|
-
var renderData =
|
|
61531
|
+
var renderData = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
61532
|
+
if (props.disabled) return props.data;
|
|
61533
|
+
return toConsumableArray_default()(props.data).slice(startIndex, startIndex + finalRowsInView);
|
|
61534
|
+
}, [props.data, startIndex, finalRowsInView]);
|
|
61535
|
+
var translateStyle = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
61536
|
+
var t = innerTop + offsetY;
|
|
61537
|
+
if (t < 0) {
|
|
61538
|
+
t = 0;
|
|
61539
|
+
}
|
|
61540
|
+
return "translate3d(0, ".concat(0 - t, "px, 0)");
|
|
61541
|
+
}, [innerTop]);
|
|
61384
61542
|
return {
|
|
61385
61543
|
scrollHeight: scrollHeight,
|
|
61386
61544
|
startIndex: startIndex,
|
|
61387
|
-
|
|
61545
|
+
translateStyle: translateStyle,
|
|
61388
61546
|
data: renderData,
|
|
61389
61547
|
handleScroll: handleScroll,
|
|
61390
61548
|
setRowHeight: setRowHeight,
|
|
61391
|
-
getTranslate: getTranslate,
|
|
61392
61549
|
scrollToIndex: scrollToIndex,
|
|
61393
61550
|
scrollColumnByLeft: scrollColumnByLeft,
|
|
61394
61551
|
scrollColumnIntoView: scrollColumnIntoView
|
|
@@ -62422,7 +62579,7 @@ var useTableRow = function useTableRow(props) {
|
|
|
62422
62579
|
};
|
|
62423
62580
|
};
|
|
62424
62581
|
/* harmony default export */ var use_table_row = (useTableRow);
|
|
62425
|
-
;// CONCATENATED MODULE: ../hooks/src/common/use-memo/use-memo.ts
|
|
62582
|
+
;// CONCATENATED MODULE: ../hooks/src/common/use-component-memo/use-memo.ts
|
|
62426
62583
|
|
|
62427
62584
|
function useMemo(getValue, condition, shouldUpdate) {
|
|
62428
62585
|
var cacheRef = external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef({});
|
|
@@ -62458,6 +62615,7 @@ function Td(props) {
|
|
|
62458
62615
|
className = props.className,
|
|
62459
62616
|
direction = props.direction,
|
|
62460
62617
|
role = props.role,
|
|
62618
|
+
data = props.data,
|
|
62461
62619
|
onClick = props.onClick,
|
|
62462
62620
|
onMouseEnter = props.onMouseEnter,
|
|
62463
62621
|
onMouseLeave = props.onMouseLeave,
|
|
@@ -62478,15 +62636,14 @@ function Td(props) {
|
|
|
62478
62636
|
onClick: onClick,
|
|
62479
62637
|
children: content
|
|
62480
62638
|
}, col.key);
|
|
62481
|
-
}, [].concat(toConsumableArray_default()(externalDependencies),
|
|
62482
|
-
// onClick,
|
|
62483
|
-
// onMouseEnter,
|
|
62484
|
-
// onMouseLeave,
|
|
62485
|
-
]), updateFn ? function (prev, next) {
|
|
62639
|
+
}, [data, className, style, col.type, col.treeColumnsName].concat(toConsumableArray_default()(externalDependencies)), updateFn ? function (prev, next) {
|
|
62486
62640
|
if (col.type || col.treeColumnsName) {
|
|
62487
62641
|
return true;
|
|
62488
62642
|
}
|
|
62489
62643
|
return prev.some(function (_, index) {
|
|
62644
|
+
if (index === 0) {
|
|
62645
|
+
return updateFn(prev[index], next[index]);
|
|
62646
|
+
}
|
|
62490
62647
|
return !shallowEqual(prev[index], next[index]);
|
|
62491
62648
|
});
|
|
62492
62649
|
} : undefined);
|
|
@@ -63108,7 +63265,8 @@ var emptyRef = {
|
|
|
63108
63265
|
var theadRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
63109
63266
|
var tfootRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
63110
63267
|
var scrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
63111
|
-
var
|
|
63268
|
+
var headMirrorScrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
63269
|
+
var bottomMirrorScrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
63112
63270
|
var tableRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
63113
63271
|
var browserScrollbarWidth = useScrollbarWidth();
|
|
63114
63272
|
if (props.fixed) {
|
|
@@ -63287,8 +63445,11 @@ var emptyRef = {
|
|
|
63287
63445
|
var target = e.currentTarget;
|
|
63288
63446
|
if (!target) return;
|
|
63289
63447
|
layoutFunc.checkFloat();
|
|
63290
|
-
if (
|
|
63291
|
-
|
|
63448
|
+
if (headMirrorScrollRef.current) {
|
|
63449
|
+
headMirrorScrollRef.current.scrollLeft = target.scrollLeft;
|
|
63450
|
+
}
|
|
63451
|
+
if (bottomMirrorScrollRef.current) {
|
|
63452
|
+
bottomMirrorScrollRef.current.scrollLeft = target.scrollLeft;
|
|
63292
63453
|
}
|
|
63293
63454
|
if (props.onScroll && typeof props.onScroll === 'function') {
|
|
63294
63455
|
var maxWidth = target.scrollWidth - target.clientWidth;
|
|
@@ -63303,8 +63464,11 @@ var emptyRef = {
|
|
|
63303
63464
|
var handleVirtualScroll = usePersistFn(function (info) {
|
|
63304
63465
|
virtualInfo.handleScroll(info);
|
|
63305
63466
|
layoutFunc.checkFloat();
|
|
63306
|
-
if (
|
|
63307
|
-
|
|
63467
|
+
if (headMirrorScrollRef.current) {
|
|
63468
|
+
headMirrorScrollRef.current.scrollLeft = info.scrollLeft;
|
|
63469
|
+
}
|
|
63470
|
+
if (bottomMirrorScrollRef.current) {
|
|
63471
|
+
bottomMirrorScrollRef.current.scrollLeft = info.scrollLeft;
|
|
63308
63472
|
}
|
|
63309
63473
|
if (props.onScroll && typeof props.onScroll === 'function') {
|
|
63310
63474
|
props.onScroll(info.x, info.y, info.scrollLeft, info.scrollTop);
|
|
@@ -63422,7 +63586,7 @@ var emptyRef = {
|
|
|
63422
63586
|
});
|
|
63423
63587
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(StickyWrapper, objectSpread2_default()(objectSpread2_default()({}, props.sticky ? scrollerStickyProps : {}), {}, {
|
|
63424
63588
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
63425
|
-
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.
|
|
63589
|
+
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.mirrorScroller,
|
|
63426
63590
|
style: {
|
|
63427
63591
|
height: browserScrollbarWidth,
|
|
63428
63592
|
width: mirrorScrollRefWidth
|
|
@@ -63433,7 +63597,7 @@ var emptyRef = {
|
|
|
63433
63597
|
scrollRef.current.scrollLeft = target.scrollLeft;
|
|
63434
63598
|
}
|
|
63435
63599
|
},
|
|
63436
|
-
ref:
|
|
63600
|
+
ref: headMirrorScrollRef,
|
|
63437
63601
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
63438
63602
|
style: {
|
|
63439
63603
|
width: scrollRef === null || scrollRef === void 0 || (_scrollRef$current3 = scrollRef.current) === null || _scrollRef$current3 === void 0 ? void 0 : _scrollRef$current3.scrollWidth,
|
|
@@ -63443,6 +63607,46 @@ var emptyRef = {
|
|
|
63443
63607
|
})
|
|
63444
63608
|
}));
|
|
63445
63609
|
};
|
|
63610
|
+
var renderBottomMirrorScroller = function renderBottomMirrorScroller() {
|
|
63611
|
+
var _scrollRef$current4, _scrollRef$current5, _scrollRef$current6;
|
|
63612
|
+
if (!props.showBottomScrollbar) return null;
|
|
63613
|
+
var scrollRefWidth = (scrollRef === null || scrollRef === void 0 || (_scrollRef$current4 = scrollRef.current) === null || _scrollRef$current4 === void 0 ? void 0 : _scrollRef$current4.clientWidth) || 0;
|
|
63614
|
+
var scrollRefScrollWidth = (scrollRef === null || scrollRef === void 0 || (_scrollRef$current5 = scrollRef.current) === null || _scrollRef$current5 === void 0 ? void 0 : _scrollRef$current5.scrollWidth) || 0;
|
|
63615
|
+
var mirrorScrollRefWidth = scrollRefWidth + scrollBarWidth;
|
|
63616
|
+
var showScroll = scrollRefScrollWidth > scrollRefWidth;
|
|
63617
|
+
// 开启了双滚,但是没有滚动条,不显示
|
|
63618
|
+
if (!scrollRefWidth || !mirrorScrollRefWidth || !showScroll) return null;
|
|
63619
|
+
var options = props.showBottomScrollbar === true ? {} : props.showBottomScrollbar;
|
|
63620
|
+
var scrollerStickyProps = {
|
|
63621
|
+
scrollContainer: options.scrollContainer || document.body,
|
|
63622
|
+
bottom: options.bottom || 0,
|
|
63623
|
+
zIndex: options.zIndex || defaultZIndex + 1,
|
|
63624
|
+
parent: tableRef === null || tableRef === void 0 ? void 0 : tableRef.current
|
|
63625
|
+
};
|
|
63626
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(src_sticky_sticky, objectSpread2_default()(objectSpread2_default()({}, scrollerStickyProps), {}, {
|
|
63627
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
63628
|
+
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.mirrorScroller,
|
|
63629
|
+
style: {
|
|
63630
|
+
height: browserScrollbarWidth,
|
|
63631
|
+
width: mirrorScrollRefWidth,
|
|
63632
|
+
marginTop: -browserScrollbarWidth
|
|
63633
|
+
},
|
|
63634
|
+
onScroll: function onScroll(e) {
|
|
63635
|
+
var target = e.currentTarget;
|
|
63636
|
+
if (scrollRef !== null && scrollRef !== void 0 && scrollRef.current && scrollRef.current.scrollLeft !== target.scrollLeft) {
|
|
63637
|
+
scrollRef.current.scrollLeft = target.scrollLeft;
|
|
63638
|
+
}
|
|
63639
|
+
},
|
|
63640
|
+
ref: bottomMirrorScrollRef,
|
|
63641
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
63642
|
+
style: {
|
|
63643
|
+
width: scrollRef === null || scrollRef === void 0 || (_scrollRef$current6 = scrollRef.current) === null || _scrollRef$current6 === void 0 ? void 0 : _scrollRef$current6.scrollWidth,
|
|
63644
|
+
height: 1
|
|
63645
|
+
}
|
|
63646
|
+
})
|
|
63647
|
+
})
|
|
63648
|
+
}));
|
|
63649
|
+
};
|
|
63446
63650
|
if (isRenderVirtualTable) {
|
|
63447
63651
|
var _props$data4, _props$data5;
|
|
63448
63652
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
@@ -63454,6 +63658,7 @@ var emptyRef = {
|
|
|
63454
63658
|
defaultHeight: context.emptyHeight,
|
|
63455
63659
|
isScrollY: isScrollY,
|
|
63456
63660
|
isEmptyContent: !((_props$data4 = props.data) !== null && _props$data4 !== void 0 && _props$data4.length),
|
|
63661
|
+
isHeaderSticky: stickyProps === null || stickyProps === void 0 ? void 0 : stickyProps.css,
|
|
63457
63662
|
children: [!props.hideHeader && /*#__PURE__*/(0,jsx_runtime.jsx)(StickyWrapper, objectSpread2_default()(objectSpread2_default()({}, props.sticky ? stickyProps : {}), {}, {
|
|
63458
63663
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
63459
63664
|
className: headWrapperClass,
|
|
@@ -63468,7 +63673,7 @@ var emptyRef = {
|
|
|
63468
63673
|
})), !!((_props$data5 = props.data) !== null && _props$data5 !== void 0 && _props$data5.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
63469
63674
|
style: {
|
|
63470
63675
|
width: width,
|
|
63471
|
-
transform: virtualInfo.
|
|
63676
|
+
transform: virtualInfo.translateStyle
|
|
63472
63677
|
},
|
|
63473
63678
|
ref: tbodyRef,
|
|
63474
63679
|
children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()(objectSpread2_default()({}, bodyCommonProps), {}, {
|
|
@@ -63486,7 +63691,7 @@ var emptyRef = {
|
|
|
63486
63691
|
children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()({}, footCommonProps))]
|
|
63487
63692
|
})
|
|
63488
63693
|
}) : null, renderEmpty()]
|
|
63489
|
-
})]
|
|
63694
|
+
}), renderBottomMirrorScroller()]
|
|
63490
63695
|
});
|
|
63491
63696
|
}
|
|
63492
63697
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
@@ -63503,7 +63708,7 @@ var emptyRef = {
|
|
|
63503
63708
|
children: renderEmpty()
|
|
63504
63709
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()({}, bodyCommonProps)), /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()({}, footCommonProps))]
|
|
63505
63710
|
})
|
|
63506
|
-
})]
|
|
63711
|
+
}), renderBottomMirrorScroller()]
|
|
63507
63712
|
});
|
|
63508
63713
|
};
|
|
63509
63714
|
var renderLoading = function renderLoading() {
|
|
@@ -64588,7 +64793,7 @@ var tag_jssStyle = {
|
|
|
64588
64793
|
input: useInputStyle
|
|
64589
64794
|
};
|
|
64590
64795
|
var tag_Tag = function Tag(props) {
|
|
64591
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
64796
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(src_tag_tag, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
|
|
64592
64797
|
jssStyle: tag_jssStyle
|
|
64593
64798
|
}));
|
|
64594
64799
|
};
|
|
@@ -65952,17 +66157,28 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
65952
66157
|
var key = datum.getKey(data);
|
|
65953
66158
|
var isDisabled = datum === null || datum === void 0 ? void 0 : datum.isDisabled(key);
|
|
65954
66159
|
var isCheck = datum === null || datum === void 0 ? void 0 : datum.getChecked(key);
|
|
66160
|
+
var contentClass = '';
|
|
66161
|
+
if (props.contentClass) {
|
|
66162
|
+
if (isString(props.contentClass)) {
|
|
66163
|
+
contentClass = props.contentClass;
|
|
66164
|
+
}
|
|
66165
|
+
if (isFunc(props.contentClass)) {
|
|
66166
|
+
contentClass = props.contentClass(data);
|
|
66167
|
+
}
|
|
66168
|
+
}
|
|
65955
66169
|
if (isDisabled) {
|
|
65956
|
-
return classnames_default()(styles.optionDisabled);
|
|
66170
|
+
return classnames_default()(styles.optionDisabled, contentClass);
|
|
65957
66171
|
}
|
|
66172
|
+
var activeClassName = classnames_default()(styles.optionActive, contentClass);
|
|
66173
|
+
var inactiveClassName = classnames_default()(contentClass);
|
|
65958
66174
|
if (multiple) {
|
|
65959
|
-
return isCheck ?
|
|
66175
|
+
return isCheck ? activeClassName : inactiveClassName;
|
|
65960
66176
|
}
|
|
65961
66177
|
if (!isArray(value)) {
|
|
65962
66178
|
var currentData = getDataByValues(value);
|
|
65963
|
-
return currentData === data ?
|
|
66179
|
+
return currentData === data ? activeClassName : inactiveClassName;
|
|
65964
66180
|
}
|
|
65965
|
-
return
|
|
66181
|
+
return inactiveClassName;
|
|
65966
66182
|
};
|
|
65967
66183
|
var checkUnMatched = function checkUnMatched(item) {
|
|
65968
66184
|
return isUnMatchedData(item);
|
|
@@ -65979,7 +66195,7 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
65979
66195
|
if (from !== 'blur') {
|
|
65980
66196
|
focusAndOpen();
|
|
65981
66197
|
}
|
|
65982
|
-
onTiledFilter === null || onTiledFilter === void 0 || onTiledFilter(trim ? text.trim() : text);
|
|
66198
|
+
onTiledFilter === null || onTiledFilter === void 0 || onTiledFilter(trim ? text.trim() : text, from);
|
|
65983
66199
|
};
|
|
65984
66200
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
65985
66201
|
if (virtual && expanded) {
|
|
@@ -69898,7 +70114,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
69898
70114
|
|
|
69899
70115
|
|
|
69900
70116
|
/* harmony default export */ var src_0 = ({
|
|
69901
|
-
version: '3.7.0-beta.
|
|
70117
|
+
version: '3.7.0-beta.7'
|
|
69902
70118
|
});
|
|
69903
70119
|
}();
|
|
69904
70120
|
/******/ return __webpack_exports__;
|