@qn-pandora/pandora-component 3.0.2 → 4.0.0
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/CHANGELOG.json +20 -0
- package/CHANGELOG.md +9 -1
- package/es/components/AutoComplete/style.css +25 -29
- package/es/components/Button/index.d.ts +0 -8
- package/es/components/Button/index.js +4 -4
- package/es/components/Button/style.css +100 -104
- package/es/components/Button/style.less +3 -14
- package/es/components/Card/style.css +28 -2
- package/es/components/CheckTransformList/Item/index.js +7 -3
- package/es/components/CheckTransformList/style.css +50 -21
- package/es/components/Checkbox/style.css +1 -1
- package/es/components/CheckboxList/index.d.ts +2 -0
- package/es/components/CheckboxList/index.js +2 -2
- package/es/components/CheckboxList/style.css +5 -3
- package/es/components/CheckboxList/style.less +4 -2
- package/es/components/Collapse/Panel/index.d.ts +8 -40
- package/es/components/Collapse/Panel/index.js +34 -45
- package/es/components/Collapse/index.d.ts +15 -20
- package/es/components/Collapse/index.js +44 -18
- package/es/components/Collapse/style.css +214 -0
- package/es/components/Collapse/style.less +57 -0
- package/es/components/CollapsiblePanel/style.css +4 -4
- package/es/components/CollapsiblePanel/style.less +4 -4
- package/es/components/DateTimePicker/Base/index.d.ts +1 -0
- package/es/components/DateTimePicker/Base/index.js +29 -13
- package/es/components/DateTimePicker/Base/relativeTimePicker.d.ts +1 -0
- package/es/components/DateTimePicker/Base/relativeTimePicker.js +16 -3
- package/es/components/DateTimePicker/Base/style.css +378 -49
- package/es/components/DateTimePicker/Base/style.less +37 -41
- package/es/components/DateTimePicker/BaseMobile/Absolute/index.d.ts +1 -0
- package/es/components/DateTimePicker/BaseMobile/Absolute/index.js +8 -3
- package/es/components/DateTimePicker/BaseMobile/index.d.ts +2 -0
- package/es/components/DateTimePicker/BaseMobile/index.js +7 -2
- package/es/components/DateTimePicker/BaseMobile/style.css +4 -4
- package/es/components/DateTimePicker/BaseMobile/style.less +4 -4
- package/es/components/DateTimePicker/Collapse/Panel/index.d.ts +41 -0
- package/es/components/DateTimePicker/Collapse/Panel/index.js +51 -0
- package/es/components/{Collapse → DateTimePicker/Collapse}/Panel/style.css +0 -0
- package/es/components/{Collapse → DateTimePicker/Collapse}/Panel/style.less +1 -1
- package/es/components/DateTimePicker/Collapse/index.d.ts +24 -0
- package/es/components/DateTimePicker/Collapse/index.js +42 -0
- package/es/components/DateTimePicker/DisplayInput/index.d.ts +1 -0
- package/es/components/DateTimePicker/DisplayInput/index.js +4 -1
- package/es/components/DateTimePicker/DisplayInput/style.css +47 -16
- package/es/components/DateTimePicker/constants.d.ts +5 -6
- package/es/components/DateTimePicker/constants.js +56 -50
- package/es/components/DateTimePicker/index.js +1 -1
- package/es/components/DateTimePicker/style.css +7 -7
- package/es/components/DateTimePicker/style.less +12 -10
- package/es/components/DateTimePicker/time.d.ts +2 -2
- package/es/components/DateTimePicker/time.js +17 -11
- package/es/components/DateTimePicker/transform.d.ts +4 -0
- package/es/components/DateTimePicker/transform.js +52 -0
- package/es/components/Drawer/style.css +45 -45
- package/es/components/Input/index.d.ts +1 -2
- package/es/components/Input/index.js +0 -2
- package/es/components/Input/style.css +47 -16
- package/es/components/InputNumber/index.d.ts +1 -8
- package/es/components/InputNumber/index.js +1 -35
- package/es/components/Menu/Option.d.ts +4 -0
- package/es/components/Menu/Option.js +2 -1
- package/es/components/Menu/index.d.ts +1 -1
- package/es/components/Menu/style.css +20 -10
- package/es/components/Menu/style.less +10 -0
- package/es/components/NameLimiter/style.css +2 -4
- package/es/components/NameLimiter/style.less +2 -4
- package/es/components/OptionList/OptionItem/style.css +2 -2
- package/es/components/OptionList/OptionItem/style.less +2 -2
- package/es/components/OptionList/style.css +2 -2
- package/es/components/RadioGroup/index.d.ts +53 -0
- package/es/components/RadioGroup/index.js +31 -0
- package/es/components/{SolidRadioGroup → RadioGroup}/style.css +43 -49
- package/es/components/RadioGroup/style.less +32 -0
- package/es/components/RangeInput/index.js +13 -7
- package/es/components/RangeInput/style.css +427 -27
- package/es/components/RemarkName/style.css +2 -4
- package/es/components/Selector/index.js +2 -2
- package/es/components/Selector/style.css +25 -29
- package/es/components/Selector/style.less +27 -28
- package/es/components/SolidRadioGroup/index.d.ts +3 -45
- package/es/components/SolidRadioGroup/index.js +13 -25
- package/es/components/Spin/style.css +0 -1
- package/es/components/Steps/ControlButton/index.js +8 -2
- package/es/components/Steps/style.css +8 -11
- package/es/components/Steps/style.less +9 -12
- package/es/components/Table/index.d.ts +1 -0
- package/es/components/Table/index.js +14 -5
- package/es/components/Table/style.css +91 -25
- package/es/components/Table/style.less +20 -20
- package/es/components/Tabs/style.css +29 -1
- package/es/components/Tabs/style.less +3 -1
- package/es/components/TagList/style.css +10 -10
- package/es/components/TagList/style.less +1 -1
- package/es/components/Timeline/TimelineItem/index.js +6 -4
- package/es/components/Timeline/TimelineItem/style.css +1 -2
- package/es/components/Timeline/TimelineItem/style.less +1 -2
- package/es/components/Transfer/List/index.js +10 -5
- package/es/components/Transfer/List/style.css +3 -0
- package/es/components/Transfer/List/style.less +4 -0
- package/es/components/Transfer/style.css +3 -0
- package/es/components/TreeSelector/style.css +64 -20
- package/es/components/TreeSelector/style.less +9 -7
- package/es/constants/language/check_transform_list/en.d.ts +2 -0
- package/es/constants/language/check_transform_list/en.js +5 -0
- package/es/constants/language/check_transform_list/type.d.ts +6 -0
- package/es/constants/language/check_transform_list/type.js +3 -0
- package/es/constants/language/check_transform_list/zh.d.ts +2 -0
- package/es/constants/language/check_transform_list/zh.js +5 -0
- package/es/constants/language/datetime/en.d.ts +2 -0
- package/es/constants/language/datetime/en.js +79 -0
- package/es/constants/language/datetime/type.d.ts +80 -0
- package/es/constants/language/datetime/type.js +3 -0
- package/es/constants/language/datetime/zh.d.ts +2 -0
- package/es/constants/language/datetime/zh.js +79 -0
- package/es/constants/language/en.d.ts +2 -0
- package/es/constants/language/en.js +14 -0
- package/es/constants/language/range_input/en.d.ts +2 -0
- package/es/constants/language/range_input/en.js +7 -0
- package/es/constants/language/range_input/type.d.ts +8 -0
- package/es/constants/language/range_input/type.js +3 -0
- package/es/constants/language/range_input/zh.d.ts +2 -0
- package/es/constants/language/range_input/zh.js +7 -0
- package/es/constants/language/steps/en.d.ts +2 -0
- package/es/constants/language/steps/en.js +4 -0
- package/es/constants/language/steps/type.d.ts +5 -0
- package/es/constants/language/steps/type.js +3 -0
- package/es/constants/language/steps/zh.d.ts +2 -0
- package/es/constants/language/steps/zh.js +4 -0
- package/es/constants/language/table/en.d.ts +2 -0
- package/es/constants/language/table/en.js +4 -0
- package/es/constants/language/table/type.d.ts +5 -0
- package/es/constants/language/table/type.js +3 -0
- package/es/constants/language/table/zh.d.ts +2 -0
- package/es/constants/language/table/zh.js +4 -0
- package/es/constants/language/transfer/en.d.ts +2 -0
- package/es/constants/language/transfer/en.js +4 -0
- package/es/constants/language/transfer/type.d.ts +5 -0
- package/es/constants/language/transfer/type.js +3 -0
- package/es/constants/language/transfer/zh.d.ts +2 -0
- package/es/constants/language/transfer/zh.js +4 -0
- package/es/constants/language/type.d.ts +15 -0
- package/es/constants/language/type.js +3 -0
- package/es/constants/language/zh.d.ts +2 -0
- package/es/constants/language/zh.js +14 -0
- package/es/index.css +3570 -2886
- package/es/index.d.ts +3 -2
- package/es/index.js +2 -1
- package/es/index.less +4 -5
- package/es/style/theme.less +9 -0
- package/es/utils/language.d.ts +1 -0
- package/es/utils/language.js +15 -0
- package/es/utils/languageLocale.d.ts +1 -0
- package/es/utils/languageLocale.js +9 -0
- package/lib/components/AutoComplete/style.css +25 -29
- package/lib/components/Button/index.d.ts +0 -8
- package/lib/components/Button/index.js +4 -4
- package/lib/components/Button/style.css +100 -104
- package/lib/components/Button/style.less +3 -14
- package/lib/components/Card/style.css +28 -2
- package/lib/components/CheckTransformList/Item/index.js +7 -3
- package/lib/components/CheckTransformList/style.css +50 -21
- package/lib/components/Checkbox/style.css +1 -1
- package/lib/components/CheckboxList/index.d.ts +2 -0
- package/lib/components/CheckboxList/index.js +2 -2
- package/lib/components/CheckboxList/style.css +5 -3
- package/lib/components/CheckboxList/style.less +4 -2
- package/lib/components/Collapse/Panel/index.d.ts +8 -40
- package/lib/components/Collapse/Panel/index.js +35 -46
- package/lib/components/Collapse/index.d.ts +15 -20
- package/lib/components/Collapse/index.js +47 -20
- package/lib/components/Collapse/style.css +214 -0
- package/lib/components/Collapse/style.less +57 -0
- package/lib/components/CollapsiblePanel/style.css +4 -4
- package/lib/components/CollapsiblePanel/style.less +4 -4
- package/lib/components/DateTimePicker/Base/index.d.ts +1 -0
- package/lib/components/DateTimePicker/Base/index.js +29 -13
- package/lib/components/DateTimePicker/Base/relativeTimePicker.d.ts +1 -0
- package/lib/components/DateTimePicker/Base/relativeTimePicker.js +16 -3
- package/lib/components/DateTimePicker/Base/style.css +378 -49
- package/lib/components/DateTimePicker/Base/style.less +37 -41
- package/lib/components/DateTimePicker/BaseMobile/Absolute/index.d.ts +1 -0
- package/lib/components/DateTimePicker/BaseMobile/Absolute/index.js +8 -3
- package/lib/components/DateTimePicker/BaseMobile/index.d.ts +2 -0
- package/lib/components/DateTimePicker/BaseMobile/index.js +7 -2
- package/lib/components/DateTimePicker/BaseMobile/style.css +4 -4
- package/lib/components/DateTimePicker/BaseMobile/style.less +4 -4
- package/lib/components/DateTimePicker/Collapse/Panel/index.d.ts +41 -0
- package/lib/components/DateTimePicker/Collapse/Panel/index.js +64 -0
- package/lib/components/{Collapse → DateTimePicker/Collapse}/Panel/style.css +0 -0
- package/lib/components/{Collapse → DateTimePicker/Collapse}/Panel/style.less +1 -1
- package/lib/components/DateTimePicker/Collapse/index.d.ts +24 -0
- package/lib/components/DateTimePicker/Collapse/index.js +54 -0
- package/lib/components/DateTimePicker/DisplayInput/index.d.ts +1 -0
- package/lib/components/DateTimePicker/DisplayInput/index.js +4 -1
- package/lib/components/DateTimePicker/DisplayInput/style.css +47 -16
- package/lib/components/DateTimePicker/constants.d.ts +5 -6
- package/lib/components/DateTimePicker/constants.js +56 -50
- package/lib/components/DateTimePicker/index.js +1 -1
- package/lib/components/DateTimePicker/style.css +7 -7
- package/lib/components/DateTimePicker/style.less +12 -10
- package/lib/components/DateTimePicker/time.d.ts +2 -2
- package/lib/components/DateTimePicker/time.js +16 -10
- package/lib/components/DateTimePicker/transform.d.ts +4 -0
- package/lib/components/DateTimePicker/transform.js +53 -0
- package/lib/components/Drawer/style.css +45 -45
- package/lib/components/Input/index.d.ts +1 -2
- package/lib/components/Input/index.js +0 -2
- package/lib/components/Input/style.css +47 -16
- package/lib/components/InputNumber/index.d.ts +1 -8
- package/lib/components/InputNumber/index.js +1 -38
- package/lib/components/Menu/Option.d.ts +4 -0
- package/lib/components/Menu/Option.js +2 -1
- package/lib/components/Menu/index.d.ts +1 -1
- package/lib/components/Menu/style.css +20 -10
- package/lib/components/Menu/style.less +10 -0
- package/lib/components/NameLimiter/style.css +2 -4
- package/lib/components/NameLimiter/style.less +2 -4
- package/lib/components/OptionList/OptionItem/style.css +2 -2
- package/lib/components/OptionList/OptionItem/style.less +2 -2
- package/lib/components/OptionList/style.css +2 -2
- package/lib/components/RadioGroup/index.d.ts +53 -0
- package/lib/components/RadioGroup/index.js +44 -0
- package/lib/components/{SolidRadioGroup → RadioGroup}/style.css +43 -49
- package/lib/components/RadioGroup/style.less +32 -0
- package/lib/components/RangeInput/index.js +13 -7
- package/lib/components/RangeInput/style.css +427 -27
- package/lib/components/RemarkName/style.css +2 -4
- package/lib/components/Selector/index.js +1 -1
- package/lib/components/Selector/style.css +25 -29
- package/lib/components/Selector/style.less +27 -28
- package/lib/components/SolidRadioGroup/index.d.ts +3 -45
- package/lib/components/SolidRadioGroup/index.js +13 -25
- package/lib/components/Spin/style.css +0 -1
- package/lib/components/Steps/ControlButton/index.js +8 -2
- package/lib/components/Steps/style.css +8 -11
- package/lib/components/Steps/style.less +9 -12
- package/lib/components/Table/index.d.ts +1 -0
- package/lib/components/Table/index.js +14 -5
- package/lib/components/Table/style.css +91 -25
- package/lib/components/Table/style.less +20 -20
- package/lib/components/Tabs/style.css +29 -1
- package/lib/components/Tabs/style.less +3 -1
- package/lib/components/TagList/style.css +10 -10
- package/lib/components/TagList/style.less +1 -1
- package/lib/components/Timeline/TimelineItem/index.js +6 -4
- package/lib/components/Timeline/TimelineItem/style.css +1 -2
- package/lib/components/Timeline/TimelineItem/style.less +1 -2
- package/lib/components/Transfer/List/index.js +9 -4
- package/lib/components/Transfer/List/style.css +3 -0
- package/lib/components/Transfer/List/style.less +4 -0
- package/lib/components/Transfer/style.css +3 -0
- package/lib/components/TreeSelector/style.css +64 -20
- package/lib/components/TreeSelector/style.less +9 -7
- package/lib/constants/language/check_transform_list/en.d.ts +2 -0
- package/lib/constants/language/check_transform_list/en.js +7 -0
- package/lib/constants/language/check_transform_list/type.d.ts +6 -0
- package/lib/constants/language/check_transform_list/type.js +5 -0
- package/lib/constants/language/check_transform_list/zh.d.ts +2 -0
- package/lib/constants/language/check_transform_list/zh.js +7 -0
- package/lib/constants/language/datetime/en.d.ts +2 -0
- package/lib/constants/language/datetime/en.js +81 -0
- package/lib/constants/language/datetime/type.d.ts +80 -0
- package/lib/constants/language/datetime/type.js +5 -0
- package/lib/constants/language/datetime/zh.d.ts +2 -0
- package/lib/constants/language/datetime/zh.js +81 -0
- package/lib/constants/language/en.d.ts +2 -0
- package/lib/constants/language/en.js +16 -0
- package/lib/constants/language/range_input/en.d.ts +2 -0
- package/lib/constants/language/range_input/en.js +9 -0
- package/lib/constants/language/range_input/type.d.ts +8 -0
- package/lib/constants/language/range_input/type.js +5 -0
- package/lib/constants/language/range_input/zh.d.ts +2 -0
- package/lib/constants/language/range_input/zh.js +9 -0
- package/lib/constants/language/steps/en.d.ts +2 -0
- package/lib/constants/language/steps/en.js +6 -0
- package/lib/constants/language/steps/type.d.ts +5 -0
- package/lib/constants/language/steps/type.js +5 -0
- package/lib/constants/language/steps/zh.d.ts +2 -0
- package/lib/constants/language/steps/zh.js +6 -0
- package/lib/constants/language/table/en.d.ts +2 -0
- package/lib/constants/language/table/en.js +6 -0
- package/lib/constants/language/table/type.d.ts +5 -0
- package/lib/constants/language/table/type.js +5 -0
- package/lib/constants/language/table/zh.d.ts +2 -0
- package/lib/constants/language/table/zh.js +6 -0
- package/lib/constants/language/transfer/en.d.ts +2 -0
- package/lib/constants/language/transfer/en.js +6 -0
- package/lib/constants/language/transfer/type.d.ts +5 -0
- package/lib/constants/language/transfer/type.js +5 -0
- package/lib/constants/language/transfer/zh.d.ts +2 -0
- package/lib/constants/language/transfer/zh.js +6 -0
- package/lib/constants/language/type.d.ts +15 -0
- package/lib/constants/language/type.js +5 -0
- package/lib/constants/language/zh.d.ts +2 -0
- package/lib/constants/language/zh.js +16 -0
- package/lib/index.css +3637 -2953
- package/lib/index.d.ts +3 -2
- package/lib/index.js +3 -0
- package/lib/index.less +7 -8
- package/lib/style/theme.less +9 -0
- package/lib/utils/language.d.ts +1 -0
- package/lib/utils/language.js +21 -0
- package/lib/utils/languageLocale.d.ts +1 -0
- package/lib/utils/languageLocale.js +12 -0
- package/package.json +15 -41
- package/es/components/Collapse/stories/style.stories.css +0 -12
- package/es/components/Collapse/stories/style.stories.less +0 -7
- package/es/components/Input/NumberInput/index.d.ts +0 -29
- package/es/components/Input/NumberInput/index.js +0 -116
- package/es/components/InputNumber/style.css +0 -400
- package/es/components/InputNumber/style.less +0 -45
- package/es/components/SolidRadioGroup/style.less +0 -39
- package/lib/components/Collapse/stories/style.stories.css +0 -12
- package/lib/components/Collapse/stories/style.stories.less +0 -7
- package/lib/components/Input/NumberInput/index.d.ts +0 -29
- package/lib/components/Input/NumberInput/index.js +0 -121
- package/lib/components/InputNumber/style.css +0 -400
- package/lib/components/InputNumber/style.less +0 -45
- package/lib/components/SolidRadioGroup/style.less +0 -39
@@ -265,7 +265,8 @@
|
|
265
265
|
.ant-table-tbody > tr > td > .ant-table-expanded-row-fixed > .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td:last-child {
|
266
266
|
border-radius: 0;
|
267
267
|
}
|
268
|
-
.ant-table-tbody > tr.ant-table-row:hover > td
|
268
|
+
.ant-table-tbody > tr.ant-table-row:hover > td,
|
269
|
+
.ant-table-tbody > tr > td.ant-table-cell-row-hover {
|
269
270
|
background: #e9f0fa;
|
270
271
|
}
|
271
272
|
.ant-table-tbody > tr.ant-table-row-selected > td {
|
@@ -375,6 +376,7 @@ td.ant-table-column-sort {
|
|
375
376
|
content: '';
|
376
377
|
}
|
377
378
|
.ant-table-column-sorter {
|
379
|
+
margin-left: 4px;
|
378
380
|
color: #bfbfbf;
|
379
381
|
font-size: 0;
|
380
382
|
-webkit-transition: color 0.3s;
|
@@ -463,6 +465,39 @@ td.ant-table-column-sort {
|
|
463
465
|
-webkit-box-shadow: none;
|
464
466
|
box-shadow: none;
|
465
467
|
}
|
468
|
+
.ant-table-filter-dropdown .ant-dropdown-menu:empty::after {
|
469
|
+
display: block;
|
470
|
+
padding: 8px 0;
|
471
|
+
color: rgba(0, 0, 0, 0.25);
|
472
|
+
font-size: 12px;
|
473
|
+
text-align: center;
|
474
|
+
content: 'Not Found';
|
475
|
+
}
|
476
|
+
.ant-table-filter-dropdown-tree {
|
477
|
+
padding: 8px 8px 0;
|
478
|
+
}
|
479
|
+
.ant-table-filter-dropdown-tree .ant-tree-treenode .ant-tree-node-content-wrapper:hover {
|
480
|
+
background-color: rgba(44, 109, 210, 0.05);
|
481
|
+
}
|
482
|
+
.ant-table-filter-dropdown-tree .ant-tree-treenode-checkbox-checked .ant-tree-node-content-wrapper,
|
483
|
+
.ant-table-filter-dropdown-tree .ant-tree-treenode-checkbox-checked .ant-tree-node-content-wrapper:hover {
|
484
|
+
background-color: rgba(44, 109, 210, 0.05);
|
485
|
+
}
|
486
|
+
.ant-table-filter-dropdown-search {
|
487
|
+
padding: 8px;
|
488
|
+
border-bottom: 1px #e5e5e5 solid;
|
489
|
+
}
|
490
|
+
.ant-table-filter-dropdown-search-input input {
|
491
|
+
min-width: 140px;
|
492
|
+
}
|
493
|
+
.ant-table-filter-dropdown-search-input .anticon {
|
494
|
+
color: rgba(0, 0, 0, 0.25);
|
495
|
+
}
|
496
|
+
.ant-table-filter-dropdown-checkall {
|
497
|
+
width: 100%;
|
498
|
+
margin-bottom: 4px;
|
499
|
+
margin-left: 4px;
|
500
|
+
}
|
466
501
|
.ant-table-filter-dropdown-submenu > ul {
|
467
502
|
max-height: calc(100vh - 130px);
|
468
503
|
overflow-x: hidden;
|
@@ -479,7 +514,7 @@ td.ant-table-column-sort {
|
|
479
514
|
-webkit-box-pack: justify;
|
480
515
|
-ms-flex-pack: justify;
|
481
516
|
justify-content: space-between;
|
482
|
-
padding: 7px 8px
|
517
|
+
padding: 7px 8px;
|
483
518
|
overflow: hidden;
|
484
519
|
background-color: inherit;
|
485
520
|
border-top: 1px solid #ebecf0;
|
@@ -500,6 +535,9 @@ table tr th.ant-table-selection-column .ant-radio-wrapper,
|
|
500
535
|
table tr td.ant-table-selection-column .ant-radio-wrapper {
|
501
536
|
margin-right: 0;
|
502
537
|
}
|
538
|
+
table tr th.ant-table-selection-column.ant-table-cell-fix-left {
|
539
|
+
z-index: 3;
|
540
|
+
}
|
503
541
|
table tr th.ant-table-selection-column::after {
|
504
542
|
background-color: transparent !important;
|
505
543
|
}
|
@@ -747,13 +785,13 @@ tr.ant-table-expanded-row .ant-descriptions-view table {
|
|
747
785
|
}
|
748
786
|
.ant-table-sticky-holder {
|
749
787
|
position: sticky;
|
750
|
-
z-index:
|
788
|
+
z-index: calc(2 + 1);
|
751
789
|
background: #ffffff;
|
752
790
|
}
|
753
791
|
.ant-table-sticky-scroll {
|
754
792
|
position: sticky;
|
755
793
|
bottom: 0;
|
756
|
-
z-index:
|
794
|
+
z-index: calc(2 + 1);
|
757
795
|
display: -webkit-box;
|
758
796
|
display: -ms-flexbox;
|
759
797
|
display: flex;
|
@@ -832,6 +870,10 @@ tr.ant-table-expanded-row .ant-descriptions-view table {
|
|
832
870
|
.ant-table-wrapper-rtl .ant-table-thead > tr > th[colspan]:not([colspan='1']) {
|
833
871
|
text-align: center;
|
834
872
|
}
|
873
|
+
.ant-table-wrapper-rtl .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
|
874
|
+
right: auto;
|
875
|
+
left: 0;
|
876
|
+
}
|
835
877
|
.ant-table-wrapper-rtl .ant-table-thead > tr > th {
|
836
878
|
text-align: right;
|
837
879
|
}
|
@@ -849,7 +891,7 @@ tr.ant-table-expanded-row .ant-descriptions-view table {
|
|
849
891
|
justify-content: flex-start;
|
850
892
|
}
|
851
893
|
.ant-table-wrapper-rtl .ant-table-column-sorter {
|
852
|
-
margin-right:
|
894
|
+
margin-right: 4px;
|
853
895
|
margin-left: 0;
|
854
896
|
}
|
855
897
|
.ant-table-wrapper-rtl .ant-table-filter-column-title {
|
@@ -858,9 +900,8 @@ tr.ant-table-expanded-row .ant-descriptions-view table {
|
|
858
900
|
.ant-table-rtl .ant-table-thead tr th.ant-table-column-has-sorters .ant-table-filter-column-title {
|
859
901
|
padding: 0 0 0 2.3em;
|
860
902
|
}
|
861
|
-
.ant-table-wrapper-rtl .ant-table-filter-trigger
|
862
|
-
|
863
|
-
left: 0;
|
903
|
+
.ant-table-wrapper-rtl .ant-table-filter-trigger {
|
904
|
+
margin: -4px 4px -4px -6px;
|
864
905
|
}
|
865
906
|
.ant-dropdown-rtl .ant-table-filter-dropdown .ant-checkbox-wrapper + span,
|
866
907
|
.ant-dropdown-rtl .ant-table-filter-dropdown-submenu .ant-checkbox-wrapper + span,
|
@@ -1154,6 +1195,7 @@ tr.ant-table-expanded-row .ant-descriptions-view table {
|
|
1154
1195
|
border-radius: 2px;
|
1155
1196
|
-webkit-transition: all 0.3s;
|
1156
1197
|
transition: all 0.3s;
|
1198
|
+
/* stylelint-disable-next-line selector-no-vendor-prefix */
|
1157
1199
|
width: 50px;
|
1158
1200
|
height: 32px;
|
1159
1201
|
margin: 0 8px;
|
@@ -1163,12 +1205,20 @@ tr.ant-table-expanded-row .ant-descriptions-view table {
|
|
1163
1205
|
}
|
1164
1206
|
.ant-pagination-options-quick-jumper input::-webkit-input-placeholder {
|
1165
1207
|
color: #bfbfbf;
|
1208
|
+
-webkit-user-select: none;
|
1209
|
+
user-select: none;
|
1166
1210
|
}
|
1167
1211
|
.ant-pagination-options-quick-jumper input::-ms-input-placeholder {
|
1168
1212
|
color: #bfbfbf;
|
1213
|
+
-ms-user-select: none;
|
1214
|
+
user-select: none;
|
1169
1215
|
}
|
1170
1216
|
.ant-pagination-options-quick-jumper input::placeholder {
|
1171
1217
|
color: #bfbfbf;
|
1218
|
+
-webkit-user-select: none;
|
1219
|
+
-moz-user-select: none;
|
1220
|
+
-ms-user-select: none;
|
1221
|
+
user-select: none;
|
1172
1222
|
}
|
1173
1223
|
.ant-pagination-options-quick-jumper input:placeholder-shown {
|
1174
1224
|
text-overflow: ellipsis;
|
@@ -1179,15 +1229,18 @@ tr.ant-table-expanded-row .ant-descriptions-view table {
|
|
1179
1229
|
}
|
1180
1230
|
.ant-pagination-options-quick-jumper input:focus,
|
1181
1231
|
.ant-pagination-options-quick-jumper input-focused {
|
1182
|
-
border-color: #
|
1232
|
+
border-color: #9ca0a6;
|
1233
|
+
-webkit-box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
|
1234
|
+
box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
|
1183
1235
|
border-right-width: 1px !important;
|
1184
1236
|
outline: 0;
|
1185
|
-
-webkit-box-shadow: 0 0 0 2px rgba(44, 109, 210, 0.2);
|
1186
|
-
box-shadow: 0 0 0 2px rgba(44, 109, 210, 0.2);
|
1187
1237
|
}
|
1188
1238
|
.ant-pagination-options-quick-jumper input-disabled {
|
1189
1239
|
color: rgba(0, 0, 0, 0.25);
|
1190
1240
|
background-color: #f5f5f5;
|
1241
|
+
border-color: #bfbfbf;
|
1242
|
+
-webkit-box-shadow: none;
|
1243
|
+
box-shadow: none;
|
1191
1244
|
cursor: not-allowed;
|
1192
1245
|
opacity: 1;
|
1193
1246
|
}
|
@@ -1198,6 +1251,9 @@ tr.ant-table-expanded-row .ant-descriptions-view table {
|
|
1198
1251
|
.ant-pagination-options-quick-jumper input[disabled] {
|
1199
1252
|
color: rgba(0, 0, 0, 0.25);
|
1200
1253
|
background-color: #f5f5f5;
|
1254
|
+
border-color: #bfbfbf;
|
1255
|
+
-webkit-box-shadow: none;
|
1256
|
+
box-shadow: none;
|
1201
1257
|
cursor: not-allowed;
|
1202
1258
|
opacity: 1;
|
1203
1259
|
}
|
@@ -1271,6 +1327,11 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
1271
1327
|
.ant-pagination-simple .ant-pagination-simple-pager input:hover {
|
1272
1328
|
border-color: #7a869a;
|
1273
1329
|
}
|
1330
|
+
.ant-pagination-simple .ant-pagination-simple-pager input:focus {
|
1331
|
+
border-color: #9ca0a6;
|
1332
|
+
-webkit-box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
|
1333
|
+
box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
|
1334
|
+
}
|
1274
1335
|
.ant-pagination-simple .ant-pagination-simple-pager input[disabled] {
|
1275
1336
|
color: rgba(0, 0, 0, 0.25);
|
1276
1337
|
background: #f5f5f5;
|
@@ -1435,9 +1496,6 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
1435
1496
|
.pandora-sdk-table-wrapper .ant-table colgroup .ant-table-selection-col {
|
1436
1497
|
width: 36px;
|
1437
1498
|
}
|
1438
|
-
.pandora-sdk-table-wrapper .ant-table-column-sorter .ant-table-column-sorter-inner .on {
|
1439
|
-
color: #2c6dd2 !important;
|
1440
|
-
}
|
1441
1499
|
.pandora-sdk-table-wrapper .ant-table-tbody > tr .ant-table-selection-column {
|
1442
1500
|
text-align: left;
|
1443
1501
|
}
|
@@ -1475,7 +1533,7 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
1475
1533
|
}
|
1476
1534
|
.pandora-sdk-table-wrapper .ant-table-thead > tr > th {
|
1477
1535
|
background: #fafafa;
|
1478
|
-
border-bottom: none
|
1536
|
+
border-bottom: none;
|
1479
1537
|
color: #333;
|
1480
1538
|
font-weight: 500;
|
1481
1539
|
}
|
@@ -1509,11 +1567,11 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
1509
1567
|
}
|
1510
1568
|
.pandora-sdk-table-wrapper .pandora-sdk-odd-table-row,
|
1511
1569
|
.pandora-sdk-table-wrapper .pandora-sdk-odd-table-row + .ant-table-expanded-row {
|
1512
|
-
background: #fafafa
|
1570
|
+
background: #fafafa;
|
1513
1571
|
}
|
1514
1572
|
.pandora-sdk-table-wrapper .pandora-sdk-even-table-row,
|
1515
1573
|
.pandora-sdk-table-wrapper .pandora-sdk-even-table-row + .ant-table-expanded-row {
|
1516
|
-
background: #ffffff
|
1574
|
+
background: #ffffff;
|
1517
1575
|
}
|
1518
1576
|
.pandora-sdk-table-wrapper .ant-table-row:hover {
|
1519
1577
|
background: #e9f0fa;
|
@@ -1541,11 +1599,11 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
1541
1599
|
}
|
1542
1600
|
.pandora-sdk-table-wrapper .ant-pagination-item:hover,
|
1543
1601
|
.pandora-sdk-table-wrapper .ant-pagination-item-active {
|
1544
|
-
border-color: #2c6dd2
|
1602
|
+
border-color: #2c6dd2;
|
1545
1603
|
}
|
1546
1604
|
.pandora-sdk-table-wrapper .ant-pagination-item:hover a,
|
1547
1605
|
.pandora-sdk-table-wrapper .ant-pagination-item-active a {
|
1548
|
-
color: #2c6dd2
|
1606
|
+
color: #2c6dd2;
|
1549
1607
|
}
|
1550
1608
|
.pandora-sdk-table-wrapper .ant-pagination-item-link,
|
1551
1609
|
.pandora-sdk-table-wrapper .ant-pagination-item-link {
|
@@ -1557,19 +1615,19 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
1557
1615
|
}
|
1558
1616
|
.pandora-sdk-table-wrapper .ant-pagination-item-link:hover,
|
1559
1617
|
.pandora-sdk-table-wrapper .ant-pagination-item-link:hover {
|
1560
|
-
border-color: #2c6dd2
|
1618
|
+
border-color: #2c6dd2;
|
1561
1619
|
}
|
1562
1620
|
.pandora-sdk-table-wrapper .ant-pagination-item-link:hover i,
|
1563
1621
|
.pandora-sdk-table-wrapper .ant-pagination-item-link:hover i {
|
1564
|
-
color: #2c6dd2
|
1622
|
+
color: #2c6dd2;
|
1565
1623
|
}
|
1566
1624
|
.pandora-sdk-table-wrapper .ant-pagination-disabled .ant-pagination-item-link:hover,
|
1567
1625
|
.pandora-sdk-table-wrapper .ant-pagination-disabled .ant-pagination-item-link:hover {
|
1568
|
-
border-color: #d9d9d9
|
1626
|
+
border-color: #d9d9d9;
|
1569
1627
|
}
|
1570
1628
|
.pandora-sdk-table-wrapper .ant-pagination-disabled .ant-pagination-item-link:hover i,
|
1571
1629
|
.pandora-sdk-table-wrapper .ant-pagination-disabled .ant-pagination-item-link:hover i {
|
1572
|
-
color: #666
|
1630
|
+
color: #666;
|
1573
1631
|
}
|
1574
1632
|
.pandora-sdk-table-wrapper .ant-pagination-options-size-changer {
|
1575
1633
|
color: #333;
|
@@ -1618,6 +1676,14 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
1618
1676
|
display: block;
|
1619
1677
|
line-height: 28px;
|
1620
1678
|
}
|
1679
|
+
.pandora-sdk-table-wrapper .pandora-sdk-table-empty {
|
1680
|
+
margin: 32px 0;
|
1681
|
+
}
|
1682
|
+
.pandora-sdk-table-wrapper .pandora-sdk-table-empty .pandora-sdk-table-empty-text {
|
1683
|
+
margin-top: 12px;
|
1684
|
+
color: #bfbfbf;
|
1685
|
+
font-size: 14px;
|
1686
|
+
}
|
1621
1687
|
.pandora-sdk-table-batch-opt {
|
1622
1688
|
position: absolute;
|
1623
1689
|
left: 40px;
|
@@ -1639,10 +1705,10 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
1639
1705
|
pointer-events: none;
|
1640
1706
|
color: #bfbfbf;
|
1641
1707
|
}
|
1642
|
-
.pandora-sdk-table-scrollX .ant-table-
|
1708
|
+
.pandora-sdk-table-scrollX .ant-table-body {
|
1643
1709
|
overflow-x: auto !important;
|
1644
1710
|
}
|
1645
|
-
.pandora-sdk-table-scrollY .ant-table-
|
1711
|
+
.pandora-sdk-table-scrollY .ant-table-body {
|
1646
1712
|
overflow-y: auto !important;
|
1647
1713
|
}
|
1648
1714
|
.ant-table-row-collapsed::after {
|
@@ -11,7 +11,6 @@
|
|
11
11
|
text-decoration: underline;
|
12
12
|
}
|
13
13
|
}
|
14
|
-
|
15
14
|
.@{ant-prefix}-table {
|
16
15
|
color: @heading-color;
|
17
16
|
font-size: 12px;
|
@@ -22,14 +21,6 @@
|
|
22
21
|
}
|
23
22
|
}
|
24
23
|
|
25
|
-
.@{ant-prefix}-table-column-sorter {
|
26
|
-
.@{ant-prefix}-table-column-sorter-inner {
|
27
|
-
.on {
|
28
|
-
color: @theme-color !important;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
24
|
.@{ant-prefix}-table-tbody > tr {
|
34
25
|
.@{ant-prefix}-table-selection-column {
|
35
26
|
text-align: left;
|
@@ -85,7 +76,7 @@
|
|
85
76
|
|
86
77
|
.@{ant-prefix}-table-thead > tr > th {
|
87
78
|
background: @table-thead-bg;
|
88
|
-
border-bottom: none
|
79
|
+
border-bottom: none;
|
89
80
|
color: @table-thead-color;
|
90
81
|
font-weight: 500;
|
91
82
|
.@{ant-prefix}-table-selection {
|
@@ -142,11 +133,11 @@
|
|
142
133
|
|
143
134
|
.@{sdk-prefix}-odd-table-row,
|
144
135
|
.@{sdk-prefix}-odd-table-row + .@{ant-prefix}-table-expanded-row {
|
145
|
-
background: @table-row-even-bg
|
136
|
+
background: @table-row-even-bg;
|
146
137
|
}
|
147
138
|
.@{sdk-prefix}-even-table-row,
|
148
139
|
.@{sdk-prefix}-even-table-row + .@{ant-prefix}-table-expanded-row {
|
149
|
-
background: @table-row-odd-bg
|
140
|
+
background: @table-row-odd-bg;
|
150
141
|
}
|
151
142
|
|
152
143
|
.@{ant-prefix}-table-row {
|
@@ -182,9 +173,9 @@
|
|
182
173
|
|
183
174
|
.@{ant-prefix}-pagination-item:hover,
|
184
175
|
.@{ant-prefix}-pagination-item-active {
|
185
|
-
border-color: @table-link-color
|
176
|
+
border-color: @table-link-color;
|
186
177
|
a {
|
187
|
-
color: @table-link-color
|
178
|
+
color: @table-link-color;
|
188
179
|
}
|
189
180
|
}
|
190
181
|
|
@@ -198,18 +189,18 @@
|
|
198
189
|
|
199
190
|
.@{ant-prefix}-pagination-item-link:hover,
|
200
191
|
.@{ant-prefix}-pagination-item-link:hover {
|
201
|
-
border-color: @table-link-color
|
192
|
+
border-color: @table-link-color;
|
202
193
|
i {
|
203
|
-
color: @table-link-color
|
194
|
+
color: @table-link-color;
|
204
195
|
}
|
205
196
|
}
|
206
197
|
|
207
198
|
.@{ant-prefix}-pagination-disabled {
|
208
199
|
.@{ant-prefix}-pagination-item-link:hover,
|
209
200
|
.@{ant-prefix}-pagination-item-link:hover {
|
210
|
-
border-color: @pagination-item-border-color
|
201
|
+
border-color: @pagination-item-border-color;
|
211
202
|
i {
|
212
|
-
color: @pagination-item-text-color
|
203
|
+
color: @pagination-item-text-color;
|
213
204
|
}
|
214
205
|
}
|
215
206
|
}
|
@@ -252,6 +243,14 @@
|
|
252
243
|
display: block;
|
253
244
|
line-height: 28px;
|
254
245
|
}
|
246
|
+
.@{sdk-prefix}-table-empty {
|
247
|
+
margin: 32px 0;
|
248
|
+
.@{sdk-prefix}-table-empty-text {
|
249
|
+
margin-top: 12px;
|
250
|
+
color: @icon-color;
|
251
|
+
font-size: 14px;
|
252
|
+
}
|
253
|
+
}
|
255
254
|
}
|
256
255
|
|
257
256
|
.@{sdk-prefix}-table-batch-opt {
|
@@ -279,14 +278,15 @@
|
|
279
278
|
}
|
280
279
|
}
|
281
280
|
|
281
|
+
// 表格滚动条样式,覆盖style中的样式important不能去掉
|
282
282
|
.@{sdk-prefix}-table-scrollX {
|
283
|
-
.@{ant-prefix}-table-
|
283
|
+
.@{ant-prefix}-table-body {
|
284
284
|
overflow-x: auto !important;
|
285
285
|
}
|
286
286
|
}
|
287
287
|
|
288
288
|
.@{sdk-prefix}-table-scrollY {
|
289
|
-
.@{ant-prefix}-table-
|
289
|
+
.@{ant-prefix}-table-body {
|
290
290
|
overflow-y: auto !important;
|
291
291
|
}
|
292
292
|
}
|
@@ -355,6 +355,12 @@
|
|
355
355
|
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
356
356
|
}
|
357
357
|
.ant-tabs-dropdown-menu-item {
|
358
|
+
display: -webkit-box;
|
359
|
+
display: -ms-flexbox;
|
360
|
+
display: flex;
|
361
|
+
-webkit-box-align: center;
|
362
|
+
-ms-flex-align: center;
|
363
|
+
align-items: center;
|
358
364
|
min-width: 120px;
|
359
365
|
margin: 0;
|
360
366
|
padding: 5px 12px;
|
@@ -369,6 +375,26 @@
|
|
369
375
|
-webkit-transition: all 0.3s;
|
370
376
|
transition: all 0.3s;
|
371
377
|
}
|
378
|
+
.ant-tabs-dropdown-menu-item > span {
|
379
|
+
-webkit-box-flex: 1;
|
380
|
+
-ms-flex: 1;
|
381
|
+
flex: 1;
|
382
|
+
white-space: nowrap;
|
383
|
+
}
|
384
|
+
.ant-tabs-dropdown-menu-item-remove {
|
385
|
+
-webkit-box-flex: 0;
|
386
|
+
-ms-flex: none;
|
387
|
+
flex: none;
|
388
|
+
margin-left: 12px;
|
389
|
+
color: rgba(0, 0, 0, 0.45);
|
390
|
+
font-size: 12px;
|
391
|
+
background: transparent;
|
392
|
+
border: 0;
|
393
|
+
cursor: pointer;
|
394
|
+
}
|
395
|
+
.ant-tabs-dropdown-menu-item-remove:hover {
|
396
|
+
color: #2c6dd2;
|
397
|
+
}
|
372
398
|
.ant-tabs-dropdown-menu-item:hover {
|
373
399
|
background: rgba(44, 109, 210, 0.05);
|
374
400
|
}
|
@@ -948,9 +974,11 @@
|
|
948
974
|
opacity: 1;
|
949
975
|
pointer-events: auto;
|
950
976
|
}
|
977
|
+
.pandora-sdk-tabs span.anticon.anticon-reload.pandora-sdk-tabs-refresh-icon {
|
978
|
+
margin-right: 0;
|
979
|
+
}
|
951
980
|
.pandora-sdk-tabs .pandora-sdk-tabs-refresh-icon {
|
952
981
|
margin-left: 8px;
|
953
|
-
margin-right: 0 !important;
|
954
982
|
font-size: 12px;
|
955
983
|
color: #d9d9d9;
|
956
984
|
-webkit-transition: color 0.5s, opacity 0.2s;
|
@@ -13,9 +13,11 @@
|
|
13
13
|
pointer-events: auto;
|
14
14
|
}
|
15
15
|
}
|
16
|
+
span.anticon.anticon-reload.@{sdk-prefix}-tabs-refresh-icon {
|
17
|
+
margin-right: 0;
|
18
|
+
}
|
16
19
|
.@{sdk-prefix}-tabs-refresh-icon {
|
17
20
|
margin-left: 8px;
|
18
|
-
margin-right: 0 !important;
|
19
21
|
font-size: 12px;
|
20
22
|
color: @font-disable-color;
|
21
23
|
transition: color 0.5s, opacity 0.2s;
|
@@ -211,14 +211,14 @@
|
|
211
211
|
border-color: #722ed1;
|
212
212
|
}
|
213
213
|
.ant-tag-success {
|
214
|
-
color: #
|
215
|
-
background: #
|
216
|
-
border-color: #
|
214
|
+
color: #20c997;
|
215
|
+
background: #f0fff8;
|
216
|
+
border-color: #99f0cd;
|
217
217
|
}
|
218
218
|
.ant-tag-processing {
|
219
|
-
color: #
|
220
|
-
background: #
|
221
|
-
border-color: #
|
219
|
+
color: #7a869a;
|
220
|
+
background: #ccd3d9;
|
221
|
+
border-color: #b4b9bf;
|
222
222
|
}
|
223
223
|
.ant-tag-error {
|
224
224
|
color: #f5222d;
|
@@ -226,9 +226,9 @@
|
|
226
226
|
border-color: #ffa39e;
|
227
227
|
}
|
228
228
|
.ant-tag-warning {
|
229
|
-
color: #
|
230
|
-
background: #
|
231
|
-
border-color: #
|
229
|
+
color: #f0a818;
|
230
|
+
background: #fffbe6;
|
231
|
+
border-color: #ffe694;
|
232
232
|
}
|
233
233
|
.ant-tag > .anticon + span,
|
234
234
|
.ant-tag > span + .anticon {
|
@@ -270,7 +270,7 @@
|
|
270
270
|
max-width: 400px;
|
271
271
|
max-height: 1000px;
|
272
272
|
overflow: auto;
|
273
|
-
padding: 8px
|
273
|
+
padding: 8px;
|
274
274
|
}
|
275
275
|
.pandora-sdk-popover > div {
|
276
276
|
margin: 4px;
|
@@ -6,15 +6,17 @@ import { SDK_PREFIX } from '../../../constants/style';
|
|
6
6
|
export default function TimelineItem(props) {
|
7
7
|
var _a = props.lineLeft, lineLeft = _a === void 0 ? '50%' : _a, _b = props.showLine, showLine = _b === void 0 ? true : _b, time = props.time, dot = props.dot, color = props.color, content = props.content;
|
8
8
|
var linePosition = React.useMemo(function () {
|
9
|
-
return lineLeft
|
9
|
+
return lineLeft;
|
10
10
|
}, [lineLeft]);
|
11
11
|
var contentWidth = React.useMemo(function () {
|
12
12
|
return 100 - +linePosition.slice(0, linePosition.length - 1) + "%";
|
13
13
|
}, [linePosition]);
|
14
|
-
var timeRight = contentWidth;
|
15
14
|
return (React.createElement("li", { className: SDK_PREFIX + "-timeline-item" },
|
16
|
-
React.createElement("div", { className: SDK_PREFIX + "-timeline-item-time", style: { right:
|
15
|
+
React.createElement("div", { className: SDK_PREFIX + "-timeline-item-time", style: { right: contentWidth } }, time),
|
17
16
|
showLine && (React.createElement("div", { className: SDK_PREFIX + "-timeline-item-tail", style: { left: linePosition } })),
|
18
17
|
React.createElement("div", { className: SDK_PREFIX + "-timeline-item-head", style: { left: linePosition } }, dot || (React.createElement("span", { className: SDK_PREFIX + "-timeline-item-head-dot", style: { background: color } }))),
|
19
|
-
React.createElement("div", { className: SDK_PREFIX + "-timeline-item-content", style: {
|
18
|
+
React.createElement("div", { className: SDK_PREFIX + "-timeline-item-content", style: {
|
19
|
+
marginLeft: "calc(" + linePosition + " + 18px)",
|
20
|
+
width: contentWidth
|
21
|
+
} }, content)));
|
20
22
|
}
|
@@ -35,7 +35,6 @@
|
|
35
35
|
}
|
36
36
|
.pandora-sdk-timeline-item .pandora-sdk-timeline-item-content {
|
37
37
|
text-align: left;
|
38
|
-
margin-left: 22%;
|
39
38
|
color: #333;
|
40
39
|
text-overflow: ellipsis;
|
41
40
|
display: -webkit-box;
|
@@ -46,6 +45,6 @@
|
|
46
45
|
margin-right: 18px;
|
47
46
|
position: absolute;
|
48
47
|
text-align: right;
|
49
|
-
font-size:
|
48
|
+
font-size: 14px;
|
50
49
|
color: #333;
|
51
50
|
}
|
@@ -32,7 +32,6 @@
|
|
32
32
|
|
33
33
|
.@{sdk-prefix}-timeline-item-content {
|
34
34
|
text-align: left;
|
35
|
-
margin-left: 22%;
|
36
35
|
color: @font-color-7;
|
37
36
|
text-overflow: ellipsis;
|
38
37
|
display: -webkit-box;
|
@@ -44,7 +43,7 @@
|
|
44
43
|
margin-right: 18px;
|
45
44
|
position: absolute;
|
46
45
|
text-align: right;
|
47
|
-
font-size:
|
46
|
+
font-size: 14px;
|
48
47
|
color: @font-color-7;
|
49
48
|
}
|
50
49
|
}
|
@@ -18,14 +18,18 @@ var __spread = (this && this.__spread) || function () {
|
|
18
18
|
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
19
19
|
return ar;
|
20
20
|
};
|
21
|
-
import React, { useState, useCallback } from 'react';
|
21
|
+
import React, { useState, useCallback, useContext } from 'react';
|
22
22
|
import { Input, Checkbox } from 'antd';
|
23
|
+
import { ConfigContext } from 'antd/es/config-provider';
|
24
|
+
import { Search } from '@qn-pandora/pandora-component-icons';
|
23
25
|
import ListBody from '../ListBody';
|
26
|
+
import { formatString } from '../../../utils/language';
|
24
27
|
import { SDK_PREFIX } from '../../../constants/style';
|
25
|
-
|
28
|
+
import { TransferLocale } from '../../../constants/language/transfer/type';
|
26
29
|
export default function List(props) {
|
27
30
|
var _a = __read(useState(''), 2), searchValue = _a[0], setSearchValue = _a[1];
|
28
|
-
var
|
31
|
+
var locale = useContext(ConfigContext).locale;
|
32
|
+
var title = props.title, type = props.type, searchPlaceHolder = props.searchPlaceHolder, _b = props.dataSource, dataSource = _b === void 0 ? [] : _b, _c = props.targetKeys, targetKeys = _c === void 0 ? [] : _c, selectAllTitle = props.selectAllTitle, onTargetKeysChange = props.onTargetKeysChange;
|
29
33
|
var onToggleAll = useCallback(function (e) {
|
30
34
|
if (e.target.checked === true) {
|
31
35
|
var targetKeys_1 = dataSource.map(function (item) { return item.key; });
|
@@ -37,7 +41,7 @@ export default function List(props) {
|
|
37
41
|
}, [dataSource, onTargetKeysChange]);
|
38
42
|
var selectedAllNode = (React.createElement(Checkbox, { className: SDK_PREFIX + "-transfer-mb10", checked: dataSource.every(function (item) { return item.checked; }), indeterminate: dataSource.some(function (item) { return item.checked; }) &&
|
39
43
|
!dataSource.every(function (item) { return item.checked; }), onChange: onToggleAll },
|
40
|
-
React.createElement("strong", null, selectAllTitle)));
|
44
|
+
React.createElement("strong", null, selectAllTitle || formatString(TransferLocale.select_all, locale))));
|
41
45
|
var onCheckboxChange = useCallback(function (key, checked) {
|
42
46
|
var keys = __spread(targetKeys);
|
43
47
|
if (checked) {
|
@@ -51,7 +55,8 @@ export default function List(props) {
|
|
51
55
|
return (React.createElement("div", { className: SDK_PREFIX + "-transfer-list" },
|
52
56
|
React.createElement("div", { className: SDK_PREFIX + "-transfer-title" }, title),
|
53
57
|
React.createElement("div", { className: SDK_PREFIX + "-transfer-search" },
|
54
|
-
React.createElement(
|
58
|
+
React.createElement(Input, { placeholder: searchPlaceHolder ||
|
59
|
+
formatString(TransferLocale.placeholder, locale), value: searchValue, onChange: function (e) { return setSearchValue(e.target.value); }, className: SDK_PREFIX + "-transfer-mb10", prefix: React.createElement(Search, { className: SDK_PREFIX + "-search-icon" }) })),
|
55
60
|
type === "source" /* Source */ && selectedAllNode,
|
56
61
|
React.createElement(ListBody, { dataSource: dataSource.filter(function (item) { return item.name.includes(searchValue); }), onChange: onCheckboxChange })));
|
57
62
|
}
|