@gm-pc/react 1.27.0 → 1.27.1-beta.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/package.json +3 -3
- package/src/common/hooks/index.ts +5 -5
- package/src/common/hooks/use_form/index.ts +2 -2
- package/src/common/hooks/use_form/use_form.ts +184 -184
- package/src/common/hooks/use_form/utils.ts +23 -23
- package/src/common/hooks/use_mutation_observer.ts +19 -19
- package/src/common/utils/date.ts +28 -28
- package/src/common/utils/get_record_partical_object.ts +4 -4
- package/src/common/utils/index.ts +3 -3
- package/src/common/utils/utils.ts +16 -16
- package/src/component/affix/affix.tsx +31 -31
- package/src/component/affix/index.ts +2 -2
- package/src/component/affix/stories.tsx +16 -16
- package/src/component/affix/style.less +3 -3
- package/src/component/auto_complete/auto_complete.tsx +202 -202
- package/src/component/auto_complete/index.ts +6 -6
- package/src/component/auto_complete/stories.tsx +37 -37
- package/src/component/auto_full/auto_full.tsx +36 -36
- package/src/component/auto_full/index.ts +1 -1
- package/src/component/box/box.tsx +29 -29
- package/src/component/box/box_form.tsx +83 -83
- package/src/component/box/box_pagination.tsx +12 -12
- package/src/component/box/box_panel.tsx +91 -91
- package/src/component/box/box_table.tsx +57 -57
- package/src/component/box/index.ts +10 -10
- package/src/component/box/stories.tsx +119 -119
- package/src/component/box/style.less +41 -41
- package/src/component/button/button.tsx +94 -94
- package/src/component/button/button_text.tsx +33 -33
- package/src/component/button/index.ts +4 -4
- package/src/component/button/stories.tsx +131 -131
- package/src/component/button/style.less +158 -158
- package/src/component/calendar/calendar.tsx +25 -25
- package/src/component/calendar/content.tsx +87 -87
- package/src/component/calendar/day.tsx +106 -106
- package/src/component/calendar/head.tsx +244 -244
- package/src/component/calendar/index.ts +4 -4
- package/src/component/calendar/range_calendar.tsx +121 -121
- package/src/component/calendar/stories.tsx +54 -54
- package/src/component/calendar/style.less +136 -136
- package/src/component/calendar/types.ts +56 -56
- package/src/component/calendar/week.tsx +27 -27
- package/src/component/card/card.tsx +148 -148
- package/src/component/card/form_card.tsx +42 -42
- package/src/component/card/index.ts +2 -2
- package/src/component/card/stories.tsx +90 -90
- package/src/component/card/style.less +125 -125
- package/src/component/checkbox/checkbox.tsx +75 -75
- package/src/component/checkbox/checkbox_group.tsx +51 -51
- package/src/component/checkbox/index.ts +5 -5
- package/src/component/checkbox/stories.tsx +152 -152
- package/src/component/checkbox/style.less +73 -73
- package/src/component/checkbox/util.ts +19 -19
- package/src/component/collapse/collapse.tsx +27 -27
- package/src/component/collapse/index.ts +2 -2
- package/src/component/collapse/stories.tsx +21 -21
- package/src/component/color_picker/color_list.ts +34 -34
- package/src/component/color_picker/color_picker.tsx +43 -43
- package/src/component/color_picker/color_select.tsx +97 -97
- package/src/component/color_picker/index.ts +2 -2
- package/src/component/color_picker/stories.tsx +20 -20
- package/src/component/color_picker/style.less +41 -41
- package/src/component/config_provider/config_provider.tsx +16 -16
- package/src/component/config_provider/context.ts +10 -10
- package/src/component/config_provider/index.ts +3 -3
- package/src/component/controlled_form/context.tsx +18 -18
- package/src/component/controlled_form/controlled_form.tsx +141 -141
- package/src/component/controlled_form/index.ts +8 -8
- package/src/component/controlled_form/items/index.tsx +115 -115
- package/src/component/controlled_form/items/utils.ts +132 -132
- package/src/component/controlled_form/stories/components/date_range_filter.tsx +83 -83
- package/src/component/controlled_form/stories/components/index.ts +2 -2
- package/src/component/controlled_form/stories/components/search_filter.tsx +52 -52
- package/src/component/controlled_form/stories/stories.tsx +372 -372
- package/src/component/date_picker/date_picker.tsx +187 -187
- package/src/component/date_picker/index.ts +2 -2
- package/src/component/date_picker/overlay.tsx +115 -115
- package/src/component/date_picker/stories.tsx +109 -109
- package/src/component/date_picker/style.less +23 -23
- package/src/component/date_picker/time_select.tsx +58 -58
- package/src/component/date_picker/types.ts +7 -7
- package/src/component/date_range_picker/date_range_picker.tsx +144 -144
- package/src/component/date_range_picker/index.ts +2 -2
- package/src/component/date_range_picker/left.tsx +107 -107
- package/src/component/date_range_picker/overlay.tsx +204 -204
- package/src/component/date_range_picker/stories.tsx +181 -181
- package/src/component/date_range_picker/style.less +41 -41
- package/src/component/date_range_picker/time_range_select.tsx +144 -144
- package/src/component/date_range_picker/two.tsx +108 -108
- package/src/component/date_range_picker/types.ts +42 -42
- package/src/component/date_range_picker/util.ts +11 -11
- package/src/component/dialog/alert.tsx +38 -38
- package/src/component/dialog/confirm.tsx +120 -120
- package/src/component/dialog/delete_com.tsx +27 -27
- package/src/component/dialog/dialog.tsx +70 -70
- package/src/component/dialog/index.ts +16 -16
- package/src/component/dialog/prompt.tsx +95 -95
- package/src/component/dialog/stories.tsx +195 -195
- package/src/component/dialog/types.ts +70 -70
- package/src/component/divider/divider.tsx +25 -25
- package/src/component/divider/index.ts +2 -2
- package/src/component/divider/stories.tsx +14 -14
- package/src/component/divider/style.less +29 -29
- package/src/component/flex/flex.tsx +133 -133
- package/src/component/flex/index.ts +2 -2
- package/src/component/flex/stories.tsx +17 -17
- package/src/component/flex/style.less +105 -105
- package/src/component/flip_number/flip_number.tsx +209 -209
- package/src/component/flip_number/index.ts +2 -2
- package/src/component/flip_number/stories.tsx +28 -28
- package/src/component/flip_number/utils.ts +58 -58
- package/src/component/form/context.tsx +15 -15
- package/src/component/form/form.tsx +142 -142
- package/src/component/form/form_block.tsx +39 -39
- package/src/component/form/form_button.tsx +28 -28
- package/src/component/form/form_group.tsx +157 -157
- package/src/component/form/form_item.tsx +141 -141
- package/src/component/form/form_panel.tsx +63 -63
- package/src/component/form/index.ts +15 -15
- package/src/component/form/stories.tsx +448 -448
- package/src/component/form/style.less +159 -159
- package/src/component/form/types.ts +110 -110
- package/src/component/function_set/function_set.tsx +84 -84
- package/src/component/function_set/index.ts +2 -2
- package/src/component/function_set/overlay.tsx +41 -41
- package/src/component/function_set/stories.tsx +71 -71
- package/src/component/function_set/types.ts +15 -15
- package/src/component/function_set/utils.ts +21 -21
- package/src/component/grid/col.tsx +55 -55
- package/src/component/grid/index.ts +3 -3
- package/src/component/grid/mixin.less +48 -48
- package/src/component/grid/row.tsx +27 -27
- package/src/component/grid/stories.tsx +65 -65
- package/src/component/grid/style.less +27 -27
- package/src/component/grid/types.ts +35 -35
- package/src/component/grid/util.ts +12 -12
- package/src/component/icon_down_up/icon_down_up.tsx +22 -22
- package/src/component/icon_down_up/index.ts +2 -2
- package/src/component/icon_down_up/stories.tsx +21 -21
- package/src/component/icon_down_up/style.less +10 -10
- package/src/component/icon_expand/icon_expand.tsx +22 -22
- package/src/component/icon_expand/index.ts +1 -1
- package/src/component/img_uploader/img_uploader.tsx +168 -168
- package/src/component/img_uploader/index.ts +2 -2
- package/src/component/img_uploader/stories.tsx +58 -58
- package/src/component/img_uploader/style.less +22 -22
- package/src/component/input/index.ts +5 -5
- package/src/component/input/input.tsx +24 -24
- package/src/component/input/input_close.tsx +51 -51
- package/src/component/input/stories.tsx +56 -56
- package/src/component/input/style.less +33 -33
- package/src/component/input_number/index.ts +2 -2
- package/src/component/input_number/input_number.tsx +115 -115
- package/src/component/input_number/stories.tsx +27 -27
- package/src/component/input_number/style.less +10 -10
- package/src/component/input_number/utils.ts +44 -44
- package/src/component/label/index.tsx +19 -19
- package/src/component/label/stories.tsx +26 -26
- package/src/component/label/style.less +34 -34
- package/src/component/layout_root/index.ts +2 -2
- package/src/component/layout_root/layout_root.tsx +116 -116
- package/src/component/layout_root/types.ts +38 -38
- package/src/component/level_list/index.ts +2 -2
- package/src/component/level_list/level_item.tsx +79 -79
- package/src/component/level_list/level_list.tsx +123 -123
- package/src/component/level_list/stories/constants.ts +72 -72
- package/src/component/level_list/stories/stories.tsx +87 -87
- package/src/component/level_list/style.less +41 -41
- package/src/component/level_list/types.ts +36 -36
- package/src/component/level_list/utils.ts +19 -19
- package/src/component/level_select/index.ts +7 -7
- package/src/component/level_select/level_select.tsx +216 -216
- package/src/component/level_select/multiple_level_select.tsx +104 -104
- package/src/component/level_select/stories.tsx +102 -102
- package/src/component/level_select/types.ts +38 -38
- package/src/component/level_select/util.ts +20 -20
- package/src/component/list/base.tsx +129 -129
- package/src/component/list/index.ts +3 -3
- package/src/component/list/list.tsx +61 -61
- package/src/component/list/stories.tsx +113 -113
- package/src/component/list/style.less +58 -58
- package/src/component/list/types.ts +37 -37
- package/src/component/loading/index.ts +10 -10
- package/src/component/loading/loading.tsx +26 -26
- package/src/component/loading/loading_chunk.tsx +37 -37
- package/src/component/loading/loading_full_screen.tsx +45 -45
- package/src/component/loading/stories.tsx +43 -43
- package/src/component/loading/style.less +69 -69
- package/src/component/loading/types.ts +30 -30
- package/src/component/mask/index.ts +2 -2
- package/src/component/mask/mask.tsx +22 -22
- package/src/component/mask/style.less +10 -10
- package/src/component/modal/clean_modal.tsx +14 -14
- package/src/component/modal/index.ts +5 -5
- package/src/component/modal/modal.tsx +145 -145
- package/src/component/modal/right_side_modal.tsx +22 -22
- package/src/component/modal/stories.tsx +132 -132
- package/src/component/modal/style.less +138 -138
- package/src/component/modal/types.ts +27 -27
- package/src/component/more_select/base.tsx +408 -408
- package/src/component/more_select/index.ts +6 -6
- package/src/component/more_select/more_select.tsx +137 -137
- package/src/component/more_select/render_list_filter.ts +39 -39
- package/src/component/more_select/stories.tsx +323 -323
- package/src/component/more_select/style.less +72 -72
- package/src/component/more_select/types.ts +114 -114
- package/src/component/multiple_selection/index.ts +2 -2
- package/src/component/multiple_selection/multiple_selection.tsx +118 -118
- package/src/component/multiple_selection/stories.tsx +37 -37
- package/src/component/multiple_selection/style.less +57 -57
- package/src/component/n_progress/index.ts +1 -1
- package/src/component/n_progress/n_progress.tsx +39 -39
- package/src/component/n_progress/stories.tsx +25 -25
- package/src/component/n_progress/style.less +39 -39
- package/src/component/nav/a.tsx +7 -7
- package/src/component/nav/index.ts +10 -10
- package/src/component/nav/nav.tsx +114 -114
- package/src/component/nav/nav_item.tsx +98 -98
- package/src/component/nav/nav_single_item.tsx +28 -28
- package/src/component/nav/popup.tsx +100 -100
- package/src/component/nav/portal.ts +17 -17
- package/src/component/nav/stories.tsx +152 -152
- package/src/component/nav/style.less +246 -246
- package/src/component/nav/types.ts +93 -93
- package/src/component/pagination/index.ts +2 -2
- package/src/component/pagination/left.tsx +56 -56
- package/src/component/pagination/page_with_count.tsx +115 -115
- package/src/component/pagination/page_without_count.tsx +64 -64
- package/src/component/pagination/pagination.tsx +23 -23
- package/src/component/pagination/right.tsx +79 -79
- package/src/component/pagination/stories.tsx +63 -63
- package/src/component/pagination/style.less +51 -51
- package/src/component/pagination/types.ts +18 -18
- package/src/component/pagination/util.ts +7 -7
- package/src/component/popover/index.ts +2 -2
- package/src/component/popover/popover.tsx +279 -279
- package/src/component/popover/stories.tsx +104 -104
- package/src/component/popover/types.ts +25 -25
- package/src/component/popover/utils.ts +22 -22
- package/src/component/popup/element_in_viewport.ts +33 -33
- package/src/component/popup/index.ts +4 -4
- package/src/component/popup/popup.tsx +149 -149
- package/src/component/popup/popup_content_confirm.tsx +106 -106
- package/src/component/popup/style.less +107 -107
- package/src/component/price/constant.ts +4 -4
- package/src/component/price/event_bus.ts +13 -13
- package/src/component/price/index.ts +2 -2
- package/src/component/price/price.tsx +154 -154
- package/src/component/price/stories.tsx +22 -22
- package/src/component/progress/index.ts +2 -2
- package/src/component/progress/progress.tsx +53 -53
- package/src/component/progress/stories.tsx +20 -20
- package/src/component/progress/style.less +35 -35
- package/src/component/progress_circle/index.ts +2 -2
- package/src/component/progress_circle/progress_circle.tsx +85 -85
- package/src/component/progress_circle/stories.tsx +31 -31
- package/src/component/progress_circle/style.less +21 -21
- package/src/component/radio/index.ts +5 -5
- package/src/component/radio/radio.tsx +72 -72
- package/src/component/radio/radio_group.tsx +48 -48
- package/src/component/radio/stories.tsx +103 -103
- package/src/component/radio/style.less +56 -56
- package/src/component/radio/util.ts +19 -19
- package/src/component/recommend_input/index.ts +2 -2
- package/src/component/recommend_input/recommend_input.tsx +100 -100
- package/src/component/recommend_input/stories.tsx +47 -47
- package/src/component/recommend_input/style.less +25 -25
- package/src/component/select/index.ts +2 -2
- package/src/component/select/select.tsx +172 -172
- package/src/component/select/stories.tsx +140 -140
- package/src/component/select/style.less +4 -4
- package/src/component/select/types.ts +29 -29
- package/src/component/selection/index.ts +2 -2
- package/src/component/selection/selection.tsx +162 -162
- package/src/component/selection/stories.tsx +45 -45
- package/src/component/selection/style.less +65 -65
- package/src/component/steps/index.ts +2 -2
- package/src/component/steps/steps.tsx +61 -61
- package/src/component/steps/stories.tsx +18 -18
- package/src/component/steps/style.less +39 -39
- package/src/component/storage/index.ts +1 -1
- package/src/component/storage/storage.ts +7 -7
- package/src/component/storage/stories.tsx +7 -7
- package/src/component/switch/index.ts +2 -2
- package/src/component/switch/stories.tsx +39 -39
- package/src/component/switch/style.less +60 -60
- package/src/component/switch/switch.tsx +127 -127
- package/src/component/table_select/index.ts +2 -2
- package/src/component/table_select/stories.tsx +97 -97
- package/src/component/table_select/style.less +20 -20
- package/src/component/table_select/table_select.tsx +92 -92
- package/src/component/table_select/types.ts +30 -30
- package/src/component/table_select/util.ts +15 -15
- package/src/component/tabs/index.ts +2 -2
- package/src/component/tabs/stories.tsx +172 -172
- package/src/component/tabs/style.less +149 -149
- package/src/component/tabs/tabs.tsx +232 -232
- package/src/component/textarea/index.ts +3 -3
- package/src/component/textarea/stories.tsx +37 -37
- package/src/component/textarea/style.less +12 -12
- package/src/component/textarea/textarea.tsx +22 -22
- package/src/component/time_span/index.ts +4 -4
- package/src/component/time_span/stories.tsx +87 -87
- package/src/component/time_span/style.less +45 -45
- package/src/component/time_span/time_span.tsx +129 -129
- package/src/component/time_span/time_span_picker.tsx +71 -71
- package/src/component/time_span/types.ts +58 -58
- package/src/component/time_span/util.ts +18 -18
- package/src/component/tip/index.ts +2 -2
- package/src/component/tip/stories.tsx +44 -44
- package/src/component/tip/style.less +53 -53
- package/src/component/tip/tip.tsx +95 -95
- package/src/component/tip/types.ts +20 -20
- package/src/component/tooltip/index.ts +2 -2
- package/src/component/tooltip/stories.tsx +32 -32
- package/src/component/tooltip/tooltip.tsx +40 -40
- package/src/component/transfer/index.ts +2 -2
- package/src/component/transfer/stories.tsx +140 -140
- package/src/component/transfer/transfer.tsx +147 -147
- package/src/component/transfer/types.ts +42 -42
- package/src/component/tree/bottom.tsx +34 -34
- package/src/component/tree/find.tsx +73 -73
- package/src/component/tree/index.ts +2 -2
- package/src/component/tree/item.tsx +75 -75
- package/src/component/tree/list.tsx +123 -123
- package/src/component/tree/search.tsx +29 -29
- package/src/component/tree/stories.tsx +309 -309
- package/src/component/tree/style.less +35 -35
- package/src/component/tree/tree.tsx +238 -238
- package/src/component/tree/types.ts +155 -155
- package/src/component/tree/util.ts +208 -208
- package/src/component/uploader/default_container.tsx +24 -24
- package/src/component/uploader/default_image.tsx +15 -15
- package/src/component/uploader/index.ts +10 -10
- package/src/component/uploader/stories.tsx +53 -53
- package/src/component/uploader/style.less +22 -22
- package/src/component/uploader/types.ts +25 -25
- package/src/component/uploader/uploader.tsx +62 -62
- package/src/component/v_browser/context/browser.ts +7 -7
- package/src/component/v_browser/context/browserWindow.ts +7 -7
- package/src/component/v_browser/hooks/useWindowEffect.ts +53 -53
- package/src/component/v_browser/index.ts +4 -4
- package/src/component/v_browser/types.ts +46 -46
- package/src/component/v_browser/ui/iframe_portal.tsx +28 -28
- package/src/component/v_browser/ui/index.tsx +213 -213
- package/src/component/v_browser/ui/style.less +113 -113
- package/src/component/v_browser/ui/window_wrapper.tsx +74 -74
- package/src/component/v_browser/v_browser.stories.mdx +128 -128
- package/src/component/v_browser/v_browser.tsx +287 -287
- package/src/css/base.less +64 -64
- package/src/css/bg.less +52 -52
- package/src/css/border.less +40 -40
- package/src/css/cursor.less +19 -19
- package/src/css/display.less +16 -16
- package/src/css/distance.less +93 -93
- package/src/css/error.less +8 -8
- package/src/css/other.less +15 -15
- package/src/css/overflow.less +23 -23
- package/src/css/position.less +11 -11
- package/src/css/svg.less +48 -48
- package/src/css/text.less +127 -127
- package/src/css/var/mixin.less +75 -75
- package/src/css/var/variables.less +125 -125
- package/src/event_type.ts +11 -11
- package/src/index.less +64 -64
- package/src/index.ts +61 -61
- package/src/svg/calendar-month.svg +8 -8
- package/src/svg/calendar-year.svg +13 -13
- package/src/svg/calendar.svg +17 -17
- package/src/svg/check-detail.svg +18 -18
- package/src/svg/close-circle.svg +13 -13
- package/src/svg/close-square.svg +12 -12
- package/src/svg/closeup.svg +20 -20
- package/src/svg/delete.svg +10 -10
- package/src/svg/down-small.svg +1 -1
- package/src/svg/down.svg +1 -1
- package/src/svg/edit-box.svg +17 -17
- package/src/svg/edit-pen.svg +17 -17
- package/src/svg/empty.svg +27 -27
- package/src/svg/expand.svg +21 -21
- package/src/svg/left-small.svg +1 -1
- package/src/svg/more.svg +10 -10
- package/src/svg/next.svg +40 -40
- package/src/svg/pen.svg +12 -12
- package/src/svg/remove.svg +1 -1
- package/src/svg/right-small.svg +1 -1
- package/src/svg/search.svg +8 -8
- package/src/svg/setting.svg +17 -17
- package/src/svg/up-small.svg +1 -1
- package/src/svg/up.svg +1 -1
- package/src/svg/vbrowser-tab-delete.svg +8 -8
- package/src/svg/vbrowser-tab-left.svg +8 -8
- package/src/svg/vbrowser-tab-right.svg +8 -8
- package/src/types.ts +33 -33
- package/src/validator/index.ts +16 -16
- package/src/validator/rules.ts +61 -61
- package/src/validator/types.ts +10 -10
- package/src/validator/validator.ts +95 -95
- package/src/var.less +2 -2
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
// 注意注意
|
|
2
|
-
// gm-list gm-list-item.active 被 Select 使用
|
|
3
|
-
.gm-list {
|
|
4
|
-
border: 1px solid var(--gm-color-border);
|
|
5
|
-
background: white;
|
|
6
|
-
// 注意,overflow-y 会被 FunctionSet 覆盖
|
|
7
|
-
overflow-y: auto;
|
|
8
|
-
min-width: 80px;
|
|
9
|
-
|
|
10
|
-
.gm-list-item {
|
|
11
|
-
line-height: 1;
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
padding: 10px;
|
|
14
|
-
background: white;
|
|
15
|
-
|
|
16
|
-
&.active {
|
|
17
|
-
color: var(--gm-color-primary-active);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.gmDisabledWith();
|
|
21
|
-
|
|
22
|
-
&.will-active {
|
|
23
|
-
background-color: var(--gm-color-bg-primary-light);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:hover {
|
|
27
|
-
background-color: var(--gm-color-bg-primary-light);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&.gm-list-group {
|
|
32
|
-
line-height: 1;
|
|
33
|
-
|
|
34
|
-
.gm-list-group-item {
|
|
35
|
-
border-bottom: 1px solid var(--gm-color-border);
|
|
36
|
-
|
|
37
|
-
&:last-child {
|
|
38
|
-
border-bottom: none;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.gm-list-label {
|
|
43
|
-
color: var(--gm-color-secondary);
|
|
44
|
-
padding: 9px 10px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.gm-list-item {
|
|
48
|
-
padding: 9px 10px 9px 22px;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/** 字体大小 */
|
|
53
|
-
&.gm-list-text-sm {
|
|
54
|
-
.gm-list-item {
|
|
55
|
-
font-size: var(--gm-size-text-sm);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
1
|
+
// 注意注意
|
|
2
|
+
// gm-list gm-list-item.active 被 Select 使用
|
|
3
|
+
.gm-list {
|
|
4
|
+
border: 1px solid var(--gm-color-border);
|
|
5
|
+
background: white;
|
|
6
|
+
// 注意,overflow-y 会被 FunctionSet 覆盖
|
|
7
|
+
overflow-y: auto;
|
|
8
|
+
min-width: 80px;
|
|
9
|
+
|
|
10
|
+
.gm-list-item {
|
|
11
|
+
line-height: 1;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
padding: 10px;
|
|
14
|
+
background: white;
|
|
15
|
+
|
|
16
|
+
&.active {
|
|
17
|
+
color: var(--gm-color-primary-active);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.gmDisabledWith();
|
|
21
|
+
|
|
22
|
+
&.will-active {
|
|
23
|
+
background-color: var(--gm-color-bg-primary-light);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:hover {
|
|
27
|
+
background-color: var(--gm-color-bg-primary-light);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.gm-list-group {
|
|
32
|
+
line-height: 1;
|
|
33
|
+
|
|
34
|
+
.gm-list-group-item {
|
|
35
|
+
border-bottom: 1px solid var(--gm-color-border);
|
|
36
|
+
|
|
37
|
+
&:last-child {
|
|
38
|
+
border-bottom: none;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.gm-list-label {
|
|
43
|
+
color: var(--gm-color-secondary);
|
|
44
|
+
padding: 9px 10px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.gm-list-item {
|
|
48
|
+
padding: 9px 10px 9px 22px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** 字体大小 */
|
|
53
|
+
&.gm-list-text-sm {
|
|
54
|
+
.gm-list-item {
|
|
55
|
+
font-size: var(--gm-size-text-sm);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { CSSProperties, HTMLAttributes, ReactNode } from 'react'
|
|
2
|
-
|
|
3
|
-
import { ListDataItem, ListGroupDataItem } from '../../types'
|
|
4
|
-
|
|
5
|
-
interface CommonListProps<V> {
|
|
6
|
-
multiple?: boolean
|
|
7
|
-
isGroupList?: boolean
|
|
8
|
-
renderItem?(item: ListDataItem<V>, index: number): ReactNode | string
|
|
9
|
-
willActiveIndex?: number
|
|
10
|
-
isScrollTo?: boolean
|
|
11
|
-
/* 少用,给与更多 Item 的响应 */
|
|
12
|
-
getItemProps?(item: ListDataItem<V>): HTMLAttributes<HTMLDivElement>
|
|
13
|
-
className?: string
|
|
14
|
-
style?: CSSProperties
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface ListBaseProps<V> extends CommonListProps<V> {
|
|
18
|
-
data: ListGroupDataItem<V>[]
|
|
19
|
-
selected: V[]
|
|
20
|
-
onSelect?(selected: V[]): void
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface ListProps<V> extends CommonListProps<V> {
|
|
24
|
-
/** 区分 group */
|
|
25
|
-
data: ListDataItem<V>[] | ListGroupDataItem<V>[]
|
|
26
|
-
/**
|
|
27
|
-
* 多选传 value 数组
|
|
28
|
-
*/
|
|
29
|
-
selected?: V | V[]
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* 多选返回 value 数组
|
|
33
|
-
*/
|
|
34
|
-
onSelect?(selected: V | V[]): void
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type { ListBaseProps, ListProps }
|
|
1
|
+
import { CSSProperties, HTMLAttributes, ReactNode } from 'react'
|
|
2
|
+
|
|
3
|
+
import { ListDataItem, ListGroupDataItem } from '../../types'
|
|
4
|
+
|
|
5
|
+
interface CommonListProps<V> {
|
|
6
|
+
multiple?: boolean
|
|
7
|
+
isGroupList?: boolean
|
|
8
|
+
renderItem?(item: ListDataItem<V>, index: number): ReactNode | string
|
|
9
|
+
willActiveIndex?: number
|
|
10
|
+
isScrollTo?: boolean
|
|
11
|
+
/* 少用,给与更多 Item 的响应 */
|
|
12
|
+
getItemProps?(item: ListDataItem<V>): HTMLAttributes<HTMLDivElement>
|
|
13
|
+
className?: string
|
|
14
|
+
style?: CSSProperties
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface ListBaseProps<V> extends CommonListProps<V> {
|
|
18
|
+
data: ListGroupDataItem<V>[]
|
|
19
|
+
selected: V[]
|
|
20
|
+
onSelect?(selected: V[]): void
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface ListProps<V> extends CommonListProps<V> {
|
|
24
|
+
/** 区分 group */
|
|
25
|
+
data: ListDataItem<V>[] | ListGroupDataItem<V>[]
|
|
26
|
+
/**
|
|
27
|
+
* 多选传 value 数组
|
|
28
|
+
*/
|
|
29
|
+
selected?: V | V[]
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 多选返回 value 数组
|
|
33
|
+
*/
|
|
34
|
+
onSelect?(selected: V | V[]): void
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type { ListBaseProps, ListProps }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { default as Loading } from './loading'
|
|
2
|
-
export { default as LoadingChunk } from './loading_chunk'
|
|
3
|
-
export { default as LoadingFullScreen } from './loading_full_screen'
|
|
4
|
-
|
|
5
|
-
export type {
|
|
6
|
-
LoadingProps,
|
|
7
|
-
LoadingChunkProps,
|
|
8
|
-
LoadingFullScreenProps,
|
|
9
|
-
LoadingFullScreenStatic,
|
|
10
|
-
} from './types'
|
|
1
|
+
export { default as Loading } from './loading'
|
|
2
|
+
export { default as LoadingChunk } from './loading_chunk'
|
|
3
|
+
export { default as LoadingFullScreen } from './loading_full_screen'
|
|
4
|
+
|
|
5
|
+
export type {
|
|
6
|
+
LoadingProps,
|
|
7
|
+
LoadingChunkProps,
|
|
8
|
+
LoadingFullScreenProps,
|
|
9
|
+
LoadingFullScreenStatic,
|
|
10
|
+
} from './types'
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import React, { FC } from 'react'
|
|
2
|
-
import { LoadingProps } from './types'
|
|
3
|
-
|
|
4
|
-
const Loading: FC<LoadingProps> = ({ size = '1em', type = 'default' }) => {
|
|
5
|
-
return (
|
|
6
|
-
<svg
|
|
7
|
-
className='gm-loading'
|
|
8
|
-
style={{
|
|
9
|
-
width: size,
|
|
10
|
-
height: size,
|
|
11
|
-
}}
|
|
12
|
-
viewBox='0 0 50 50'
|
|
13
|
-
>
|
|
14
|
-
<circle
|
|
15
|
-
className='gm-loading-path'
|
|
16
|
-
cx='25'
|
|
17
|
-
cy='25'
|
|
18
|
-
r='20'
|
|
19
|
-
fill='none'
|
|
20
|
-
stroke={type === 'default' ? '#0363ff' : '#fff'}
|
|
21
|
-
/>
|
|
22
|
-
</svg>
|
|
23
|
-
)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export default Loading
|
|
1
|
+
import React, { FC } from 'react'
|
|
2
|
+
import { LoadingProps } from './types'
|
|
3
|
+
|
|
4
|
+
const Loading: FC<LoadingProps> = ({ size = '1em', type = 'default' }) => {
|
|
5
|
+
return (
|
|
6
|
+
<svg
|
|
7
|
+
className='gm-loading'
|
|
8
|
+
style={{
|
|
9
|
+
width: size,
|
|
10
|
+
height: size,
|
|
11
|
+
}}
|
|
12
|
+
viewBox='0 0 50 50'
|
|
13
|
+
>
|
|
14
|
+
<circle
|
|
15
|
+
className='gm-loading-path'
|
|
16
|
+
cx='25'
|
|
17
|
+
cy='25'
|
|
18
|
+
r='20'
|
|
19
|
+
fill='none'
|
|
20
|
+
stroke={type === 'default' ? '#0363ff' : '#fff'}
|
|
21
|
+
/>
|
|
22
|
+
</svg>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default Loading
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import React, { FC } from 'react'
|
|
2
|
-
import classNames from 'classnames'
|
|
3
|
-
import Loading from './loading'
|
|
4
|
-
import { Flex } from '../flex'
|
|
5
|
-
import { LoadingChunkProps } from './types'
|
|
6
|
-
|
|
7
|
-
const LoadingChunk: FC<LoadingChunkProps> = ({
|
|
8
|
-
loading,
|
|
9
|
-
className,
|
|
10
|
-
children,
|
|
11
|
-
size = '40px',
|
|
12
|
-
style,
|
|
13
|
-
text,
|
|
14
|
-
...rest
|
|
15
|
-
}) => {
|
|
16
|
-
return (
|
|
17
|
-
<div
|
|
18
|
-
{...rest}
|
|
19
|
-
className={classNames(className, {
|
|
20
|
-
'gm-loading-chunk': loading,
|
|
21
|
-
})}
|
|
22
|
-
style={style}
|
|
23
|
-
>
|
|
24
|
-
{children}
|
|
25
|
-
{loading && (
|
|
26
|
-
<Flex alignCenter justifyCenter className='gm-loading-mask'>
|
|
27
|
-
<Flex column alignCenter>
|
|
28
|
-
<Loading size={size} />
|
|
29
|
-
{text && <span className='gm-loading-text'>{text}</span>}
|
|
30
|
-
</Flex>
|
|
31
|
-
</Flex>
|
|
32
|
-
)}
|
|
33
|
-
</div>
|
|
34
|
-
)
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export default LoadingChunk
|
|
1
|
+
import React, { FC } from 'react'
|
|
2
|
+
import classNames from 'classnames'
|
|
3
|
+
import Loading from './loading'
|
|
4
|
+
import { Flex } from '../flex'
|
|
5
|
+
import { LoadingChunkProps } from './types'
|
|
6
|
+
|
|
7
|
+
const LoadingChunk: FC<LoadingChunkProps> = ({
|
|
8
|
+
loading,
|
|
9
|
+
className,
|
|
10
|
+
children,
|
|
11
|
+
size = '40px',
|
|
12
|
+
style,
|
|
13
|
+
text,
|
|
14
|
+
...rest
|
|
15
|
+
}) => {
|
|
16
|
+
return (
|
|
17
|
+
<div
|
|
18
|
+
{...rest}
|
|
19
|
+
className={classNames(className, {
|
|
20
|
+
'gm-loading-chunk': loading,
|
|
21
|
+
})}
|
|
22
|
+
style={style}
|
|
23
|
+
>
|
|
24
|
+
{children}
|
|
25
|
+
{loading && (
|
|
26
|
+
<Flex alignCenter justifyCenter className='gm-loading-mask'>
|
|
27
|
+
<Flex column alignCenter>
|
|
28
|
+
<Loading size={size} />
|
|
29
|
+
{text && <span className='gm-loading-text'>{text}</span>}
|
|
30
|
+
</Flex>
|
|
31
|
+
</Flex>
|
|
32
|
+
)}
|
|
33
|
+
</div>
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export default LoadingChunk
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import React, { FC, PropsWithChildren } from 'react'
|
|
2
|
-
import Loading from './loading'
|
|
3
|
-
import { LayoutRoot } from '../layout_root'
|
|
4
|
-
import { Flex } from '../flex'
|
|
5
|
-
import EVENT_TYPE from '../../event_type'
|
|
6
|
-
import { LoadingFullScreenProps, LoadingFullScreenStatic } from './types'
|
|
7
|
-
|
|
8
|
-
const LoadingFullScreen: FC<LoadingFullScreenProps> & LoadingFullScreenStatic = ({
|
|
9
|
-
text,
|
|
10
|
-
size = '40px',
|
|
11
|
-
}) => {
|
|
12
|
-
return (
|
|
13
|
-
<Flex alignCenter justifyCenter className='gm-loading-full-screen'>
|
|
14
|
-
<Flex column alignCenter>
|
|
15
|
-
<Loading size={size} />
|
|
16
|
-
{text && <span className='gm-loading-text'>{text}</span>}
|
|
17
|
-
</Flex>
|
|
18
|
-
</Flex>
|
|
19
|
-
)
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
LoadingFullScreen.render = function (
|
|
23
|
-
props: PropsWithChildren<LoadingFullScreenProps>
|
|
24
|
-
): void {
|
|
25
|
-
window.dispatchEvent(new window.CustomEvent(EVENT_TYPE.FULL_LOADING_SHOW))
|
|
26
|
-
LayoutRoot.setComponent(LayoutRoot.Type.FULL_LOADING, <LoadingFullScreen {...props} />)
|
|
27
|
-
|
|
28
|
-
const documentBody = window.document.body
|
|
29
|
-
|
|
30
|
-
if (documentBody) {
|
|
31
|
-
documentBody.classList.add('gm-loading-body-overflow')
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
LoadingFullScreen.hide = function () {
|
|
36
|
-
window.dispatchEvent(new window.CustomEvent(EVENT_TYPE.FULL_LOADING_HIDE))
|
|
37
|
-
LayoutRoot.removeComponent(LayoutRoot.Type.FULL_LOADING)
|
|
38
|
-
|
|
39
|
-
const documentBody = window.document.body
|
|
40
|
-
if (documentBody) {
|
|
41
|
-
documentBody.classList.remove('gm-loading-body-overflow')
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export default LoadingFullScreen
|
|
1
|
+
import React, { FC, PropsWithChildren } from 'react'
|
|
2
|
+
import Loading from './loading'
|
|
3
|
+
import { LayoutRoot } from '../layout_root'
|
|
4
|
+
import { Flex } from '../flex'
|
|
5
|
+
import EVENT_TYPE from '../../event_type'
|
|
6
|
+
import { LoadingFullScreenProps, LoadingFullScreenStatic } from './types'
|
|
7
|
+
|
|
8
|
+
const LoadingFullScreen: FC<LoadingFullScreenProps> & LoadingFullScreenStatic = ({
|
|
9
|
+
text,
|
|
10
|
+
size = '40px',
|
|
11
|
+
}) => {
|
|
12
|
+
return (
|
|
13
|
+
<Flex alignCenter justifyCenter className='gm-loading-full-screen'>
|
|
14
|
+
<Flex column alignCenter>
|
|
15
|
+
<Loading size={size} />
|
|
16
|
+
{text && <span className='gm-loading-text'>{text}</span>}
|
|
17
|
+
</Flex>
|
|
18
|
+
</Flex>
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
LoadingFullScreen.render = function (
|
|
23
|
+
props: PropsWithChildren<LoadingFullScreenProps>
|
|
24
|
+
): void {
|
|
25
|
+
window.dispatchEvent(new window.CustomEvent(EVENT_TYPE.FULL_LOADING_SHOW))
|
|
26
|
+
LayoutRoot.setComponent(LayoutRoot.Type.FULL_LOADING, <LoadingFullScreen {...props} />)
|
|
27
|
+
|
|
28
|
+
const documentBody = window.document.body
|
|
29
|
+
|
|
30
|
+
if (documentBody) {
|
|
31
|
+
documentBody.classList.add('gm-loading-body-overflow')
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
LoadingFullScreen.hide = function () {
|
|
36
|
+
window.dispatchEvent(new window.CustomEvent(EVENT_TYPE.FULL_LOADING_HIDE))
|
|
37
|
+
LayoutRoot.removeComponent(LayoutRoot.Type.FULL_LOADING)
|
|
38
|
+
|
|
39
|
+
const documentBody = window.document.body
|
|
40
|
+
if (documentBody) {
|
|
41
|
+
documentBody.classList.remove('gm-loading-body-overflow')
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export default LoadingFullScreen
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import Loading from './loading'
|
|
3
|
-
import LoadingChunk from './loading_chunk'
|
|
4
|
-
import LoadingFullScreen from './loading_full_screen'
|
|
5
|
-
import { Button } from '../button'
|
|
6
|
-
|
|
7
|
-
export const ComLoading = () => (
|
|
8
|
-
<div>
|
|
9
|
-
<Loading />
|
|
10
|
-
<Loading size='5em' />
|
|
11
|
-
</div>
|
|
12
|
-
)
|
|
13
|
-
|
|
14
|
-
export const ComLoadingChunk = () => (
|
|
15
|
-
<LoadingChunk loading text='加载中...'>
|
|
16
|
-
<div
|
|
17
|
-
style={{
|
|
18
|
-
height: '100px',
|
|
19
|
-
}}
|
|
20
|
-
>
|
|
21
|
-
这是内容
|
|
22
|
-
</div>
|
|
23
|
-
</LoadingChunk>
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
export const ComLoadingFullScreen = () => (
|
|
27
|
-
<Button
|
|
28
|
-
onClick={() => {
|
|
29
|
-
LoadingFullScreen.render({
|
|
30
|
-
text: '拼命加载中...',
|
|
31
|
-
})
|
|
32
|
-
setTimeout(() => {
|
|
33
|
-
LoadingFullScreen.hide()
|
|
34
|
-
}, 10000)
|
|
35
|
-
}}
|
|
36
|
-
>
|
|
37
|
-
整页加载
|
|
38
|
-
</Button>
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
export default {
|
|
42
|
-
title: '反馈/Loading',
|
|
43
|
-
}
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Loading from './loading'
|
|
3
|
+
import LoadingChunk from './loading_chunk'
|
|
4
|
+
import LoadingFullScreen from './loading_full_screen'
|
|
5
|
+
import { Button } from '../button'
|
|
6
|
+
|
|
7
|
+
export const ComLoading = () => (
|
|
8
|
+
<div>
|
|
9
|
+
<Loading />
|
|
10
|
+
<Loading size='5em' />
|
|
11
|
+
</div>
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
export const ComLoadingChunk = () => (
|
|
15
|
+
<LoadingChunk loading text='加载中...'>
|
|
16
|
+
<div
|
|
17
|
+
style={{
|
|
18
|
+
height: '100px',
|
|
19
|
+
}}
|
|
20
|
+
>
|
|
21
|
+
这是内容
|
|
22
|
+
</div>
|
|
23
|
+
</LoadingChunk>
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
export const ComLoadingFullScreen = () => (
|
|
27
|
+
<Button
|
|
28
|
+
onClick={() => {
|
|
29
|
+
LoadingFullScreen.render({
|
|
30
|
+
text: '拼命加载中...',
|
|
31
|
+
})
|
|
32
|
+
setTimeout(() => {
|
|
33
|
+
LoadingFullScreen.hide()
|
|
34
|
+
}, 10000)
|
|
35
|
+
}}
|
|
36
|
+
>
|
|
37
|
+
整页加载
|
|
38
|
+
</Button>
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
export default {
|
|
42
|
+
title: '反馈/Loading',
|
|
43
|
+
}
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
.gm-loading {
|
|
2
|
-
animation: gm-loading-rotate 2s linear infinite;
|
|
3
|
-
|
|
4
|
-
.gm-loading-path {
|
|
5
|
-
animation: gm-loading-dash 1.5s ease-in-out infinite;
|
|
6
|
-
stroke-dasharray: 90, 150;
|
|
7
|
-
stroke-dashoffset: 0;
|
|
8
|
-
stroke-width: 2;
|
|
9
|
-
// stroke: var(--gm-color-primary);
|
|
10
|
-
stroke-linecap: round;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.gm-loading-text {
|
|
15
|
-
color: var(--gm-color-primary);
|
|
16
|
-
word-break: keep-all;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@keyframes gm-loading-rotate {
|
|
20
|
-
100% {
|
|
21
|
-
transform: rotate(360deg);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@keyframes gm-loading-dash {
|
|
26
|
-
0% {
|
|
27
|
-
stroke-dasharray: 1, 200;
|
|
28
|
-
stroke-dashoffset: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
50% {
|
|
32
|
-
stroke-dasharray: 90, 150;
|
|
33
|
-
stroke-dashoffset: -40px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
100% {
|
|
37
|
-
stroke-dasharray: 90, 150;
|
|
38
|
-
stroke-dashoffset: -120px;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.gm-loading-body-overflow {
|
|
43
|
-
overflow: hidden;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.gm-loading-full-screen {
|
|
47
|
-
position: fixed;
|
|
48
|
-
top: 0;
|
|
49
|
-
right: 0;
|
|
50
|
-
bottom: 0;
|
|
51
|
-
left: 0;
|
|
52
|
-
background-color: rgba(255, 255, 255, 0.8);
|
|
53
|
-
z-index: 8000;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.gm-loading-chunk {
|
|
57
|
-
position: relative;
|
|
58
|
-
|
|
59
|
-
.gm-loading-mask {
|
|
60
|
-
position: absolute;
|
|
61
|
-
background-color: rgba(255, 255, 255, 0.8);
|
|
62
|
-
margin: 0;
|
|
63
|
-
top: 0;
|
|
64
|
-
right: 0;
|
|
65
|
-
bottom: 0;
|
|
66
|
-
left: 0;
|
|
67
|
-
z-index: 90;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
1
|
+
.gm-loading {
|
|
2
|
+
animation: gm-loading-rotate 2s linear infinite;
|
|
3
|
+
|
|
4
|
+
.gm-loading-path {
|
|
5
|
+
animation: gm-loading-dash 1.5s ease-in-out infinite;
|
|
6
|
+
stroke-dasharray: 90, 150;
|
|
7
|
+
stroke-dashoffset: 0;
|
|
8
|
+
stroke-width: 2;
|
|
9
|
+
// stroke: var(--gm-color-primary);
|
|
10
|
+
stroke-linecap: round;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.gm-loading-text {
|
|
15
|
+
color: var(--gm-color-primary);
|
|
16
|
+
word-break: keep-all;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@keyframes gm-loading-rotate {
|
|
20
|
+
100% {
|
|
21
|
+
transform: rotate(360deg);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@keyframes gm-loading-dash {
|
|
26
|
+
0% {
|
|
27
|
+
stroke-dasharray: 1, 200;
|
|
28
|
+
stroke-dashoffset: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
50% {
|
|
32
|
+
stroke-dasharray: 90, 150;
|
|
33
|
+
stroke-dashoffset: -40px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
100% {
|
|
37
|
+
stroke-dasharray: 90, 150;
|
|
38
|
+
stroke-dashoffset: -120px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.gm-loading-body-overflow {
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.gm-loading-full-screen {
|
|
47
|
+
position: fixed;
|
|
48
|
+
top: 0;
|
|
49
|
+
right: 0;
|
|
50
|
+
bottom: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
background-color: rgba(255, 255, 255, 0.8);
|
|
53
|
+
z-index: 8000;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.gm-loading-chunk {
|
|
57
|
+
position: relative;
|
|
58
|
+
|
|
59
|
+
.gm-loading-mask {
|
|
60
|
+
position: absolute;
|
|
61
|
+
background-color: rgba(255, 255, 255, 0.8);
|
|
62
|
+
margin: 0;
|
|
63
|
+
top: 0;
|
|
64
|
+
right: 0;
|
|
65
|
+
bottom: 0;
|
|
66
|
+
left: 0;
|
|
67
|
+
z-index: 90;
|
|
68
|
+
}
|
|
69
|
+
}
|