@varlet/ui 1.26.8 → 1.27.0-alpha.1649242923701
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/es/action-sheet/ActionSheet.js +29 -27
- package/es/app-bar/AppBar.js +32 -27
- package/es/back-top/BackTop.js +9 -2
- package/es/badge/Badge.js +22 -14
- package/es/bottom-navigation/BottomNavigation.js +167 -0
- package/es/bottom-navigation/BottomNavigationSfc.css +0 -0
- package/es/bottom-navigation/BottomNavigationSfc.less +0 -0
- package/es/bottom-navigation/bottomNavigation.css +1 -0
- package/es/bottom-navigation/bottomNavigation.less +49 -0
- package/es/bottom-navigation/index.js +8 -0
- package/es/bottom-navigation/props.js +40 -0
- package/es/bottom-navigation/provide.js +17 -0
- package/es/bottom-navigation/style/index.js +4 -0
- package/es/bottom-navigation/style/less.js +4 -0
- package/es/bottom-navigation-item/BottomNavigationItem.js +122 -0
- package/es/bottom-navigation-item/BottomNavigationItemSfc.css +0 -0
- package/es/bottom-navigation-item/BottomNavigationItemSfc.less +0 -0
- package/es/bottom-navigation-item/bottomNavigationItem.css +1 -0
- package/es/bottom-navigation-item/bottomNavigationItem.less +78 -0
- package/es/bottom-navigation-item/index.js +8 -0
- package/es/bottom-navigation-item/props.js +22 -0
- package/es/bottom-navigation-item/provide.js +21 -0
- package/es/bottom-navigation-item/style/index.js +6 -0
- package/es/bottom-navigation-item/style/less.js +6 -0
- package/es/button/Button.js +12 -5
- package/es/card/Card.js +33 -28
- package/es/cell/Cell.js +26 -15
- package/es/checkbox/Checkbox.js +28 -26
- package/es/checkbox-group/CheckboxGroup.js +21 -25
- package/es/chip/Chip.js +16 -7
- package/es/chip/chip.css +1 -1
- package/es/chip/chip.less +11 -11
- package/es/col/Col.js +12 -5
- package/es/collapse/Collapse.js +15 -12
- package/es/collapse-item/CollapseItem.js +31 -30
- package/es/collapse-item/collapseItem.css +1 -1
- package/es/collapse-item/collapseItem.less +16 -16
- package/es/countdown/Countdown.js +14 -11
- package/es/counter/Counter.js +30 -27
- package/es/date-picker/DatePicker.js +28 -23
- package/es/date-picker/date-picker.css +1 -1
- package/es/date-picker/date-picker.less +22 -20
- package/es/date-picker/src/day-picker-panel.js +41 -34
- package/es/date-picker/src/month-picker-panel.js +27 -21
- package/es/date-picker/src/panel-header.js +16 -11
- package/es/date-picker/src/year-picker-panel.js +17 -9
- package/es/dialog/Dialog.js +36 -40
- package/es/divider/Divider.js +16 -12
- package/es/form/Form.js +11 -8
- package/es/form-details/FormDetails.js +27 -22
- package/es/icon/Icon.js +8 -1
- package/es/icon/icon.css +1 -1
- package/es/image/Image.js +19 -12
- package/es/image-preview/ImagePreview.js +35 -34
- package/es/index-anchor/IndexAnchor.js +8 -1
- package/es/index-bar/IndexBar.js +22 -20
- package/es/index.js +10 -0
- package/es/input/Input.js +45 -44
- package/es/lazy/index.js +2 -1
- package/es/less.js +2 -0
- package/es/list/List.js +39 -38
- package/es/loading/Loading.js +31 -23
- package/es/loading/loading.css +1 -1
- package/es/loading/loading.less +32 -32
- package/es/menu/Menu.js +12 -10
- package/es/option/Option.js +16 -11
- package/es/pagination/Pagination.js +34 -44
- package/es/pagination/pagination.css +1 -1
- package/es/pagination/pagination.less +8 -8
- package/es/picker/Picker.js +51 -47
- package/es/popup/Popup.js +9 -5
- package/es/progress/Progress.js +44 -35
- package/es/progress/progress.css +1 -1
- package/es/progress/progress.less +12 -12
- package/es/pull-refresh/PullRefresh.js +13 -10
- package/es/radio/Radio.js +25 -25
- package/es/radio-group/RadioGroup.js +19 -19
- package/es/rate/Rate.js +27 -25
- package/es/ripple/index.js +6 -2
- package/es/row/Row.js +11 -4
- package/es/select/Select.js +53 -54
- package/es/skeleton/Skeleton.js +70 -81
- package/es/slider/Slider.js +44 -40
- package/es/slider/slider.css +1 -1
- package/es/slider/slider.less +5 -5
- package/es/snackbar/Snackbar.js +9 -5
- package/es/snackbar/core.js +20 -26
- package/es/snackbar/snackbar.css +1 -1
- package/es/snackbar/snackbar.less +66 -68
- package/es/space/Space.js +8 -3
- package/es/step/Step.js +25 -23
- package/es/step/step.css +1 -1
- package/es/step/step.less +10 -10
- package/es/steps/Steps.js +12 -5
- package/es/sticky/Sticky.js +14 -7
- package/es/style-provider/StyleProvider.js +6 -2
- package/es/style.css +1 -1
- package/es/style.js +2 -0
- package/es/swipe/Swipe.js +22 -16
- package/es/swipe-item/SwipeItem.js +9 -4
- package/es/switch/Switch.js +25 -23
- package/es/switch/switch.css +1 -1
- package/es/switch/switch.less +2 -2
- package/es/tab/Tab.js +8 -1
- package/es/tab-item/TabItem.js +8 -1
- package/es/table/Table.js +27 -20
- package/es/tabs/Tabs.js +16 -11
- package/es/tabs-items/TabsItems.js +10 -5
- package/es/themes/dark/bottomNavigation.js +4 -0
- package/es/themes/dark/bottomNavigationItem.js +3 -0
- package/es/themes/dark/index.js +3 -1
- package/es/time-picker/TimePicker.js +47 -38
- package/es/time-picker/clock.js +26 -22
- package/es/time-picker/timePicker.css +1 -1
- package/es/time-picker/timePicker.less +11 -11
- package/es/umdIndex.js +10 -0
- package/es/uploader/Uploader.js +62 -57
- package/es/utils/components.js +35 -0
- package/es/varlet.esm.js +2082 -1527
- package/highlight/attributes.json +48 -0
- package/highlight/tags.json +20 -0
- package/highlight/web-types.json +155 -1
- package/lib/action-sheet/ActionSheet.js +30 -26
- package/lib/app-bar/AppBar.js +31 -24
- package/lib/back-top/BackTop.js +11 -2
- package/lib/badge/Badge.js +23 -13
- package/lib/bottom-navigation/BottomNavigation.js +183 -0
- package/lib/bottom-navigation/BottomNavigationSfc.css +0 -0
- package/lib/bottom-navigation/BottomNavigationSfc.less +0 -0
- package/lib/bottom-navigation/bottomNavigation.css +1 -0
- package/lib/bottom-navigation/bottomNavigation.less +49 -0
- package/lib/bottom-navigation/index.js +17 -0
- package/lib/bottom-navigation/props.js +45 -0
- package/lib/bottom-navigation/provide.js +27 -0
- package/lib/bottom-navigation/style/index.js +4 -0
- package/lib/bottom-navigation/style/less.js +4 -0
- package/lib/bottom-navigation-item/BottomNavigationItem.js +140 -0
- package/lib/bottom-navigation-item/BottomNavigationItemSfc.css +0 -0
- package/lib/bottom-navigation-item/BottomNavigationItemSfc.less +0 -0
- package/lib/bottom-navigation-item/bottomNavigationItem.css +1 -0
- package/lib/bottom-navigation-item/bottomNavigationItem.less +78 -0
- package/lib/bottom-navigation-item/index.js +17 -0
- package/lib/bottom-navigation-item/props.js +27 -0
- package/lib/bottom-navigation-item/provide.js +28 -0
- package/lib/bottom-navigation-item/style/index.js +6 -0
- package/lib/bottom-navigation-item/style/less.js +6 -0
- package/lib/button/Button.js +13 -4
- package/lib/card/Card.js +34 -27
- package/lib/cell/Cell.js +26 -13
- package/lib/checkbox/Checkbox.js +26 -23
- package/lib/checkbox-group/CheckboxGroup.js +19 -22
- package/lib/chip/Chip.js +18 -7
- package/lib/chip/chip.css +1 -1
- package/lib/chip/chip.less +11 -11
- package/lib/col/Col.js +14 -5
- package/lib/collapse/Collapse.js +15 -10
- package/lib/collapse-item/CollapseItem.js +31 -28
- package/lib/collapse-item/collapseItem.css +1 -1
- package/lib/collapse-item/collapseItem.less +16 -16
- package/lib/countdown/Countdown.js +14 -10
- package/lib/counter/Counter.js +29 -26
- package/lib/date-picker/DatePicker.js +30 -23
- package/lib/date-picker/date-picker.css +1 -1
- package/lib/date-picker/date-picker.less +22 -20
- package/lib/date-picker/src/day-picker-panel.js +41 -32
- package/lib/date-picker/src/month-picker-panel.js +27 -19
- package/lib/date-picker/src/panel-header.js +16 -9
- package/lib/date-picker/src/year-picker-panel.js +19 -9
- package/lib/dialog/Dialog.js +36 -38
- package/lib/divider/Divider.js +16 -10
- package/lib/form/Form.js +11 -6
- package/lib/form-details/FormDetails.js +27 -20
- package/lib/icon/Icon.js +10 -1
- package/lib/icon/icon.css +1 -1
- package/lib/image/Image.js +20 -11
- package/lib/image-preview/ImagePreview.js +35 -33
- package/lib/index-anchor/IndexAnchor.js +10 -1
- package/lib/index-bar/IndexBar.js +24 -20
- package/lib/index.js +6 -0
- package/lib/input/Input.js +45 -43
- package/lib/lazy/index.js +3 -1
- package/lib/less.js +2 -0
- package/lib/list/List.js +39 -36
- package/lib/loading/Loading.js +33 -23
- package/lib/loading/loading.css +1 -1
- package/lib/loading/loading.less +32 -32
- package/lib/menu/Menu.js +12 -9
- package/lib/option/Option.js +16 -9
- package/lib/pagination/Pagination.js +36 -44
- package/lib/pagination/pagination.css +1 -1
- package/lib/pagination/pagination.less +8 -8
- package/lib/picker/Picker.js +51 -46
- package/lib/popup/Popup.js +9 -4
- package/lib/progress/Progress.js +45 -34
- package/lib/progress/progress.css +1 -1
- package/lib/progress/progress.less +12 -12
- package/lib/pull-refresh/PullRefresh.js +14 -10
- package/lib/radio/Radio.js +23 -22
- package/lib/radio-group/RadioGroup.js +17 -16
- package/lib/rate/Rate.js +27 -24
- package/lib/ripple/index.js +7 -2
- package/lib/row/Row.js +12 -3
- package/lib/select/Select.js +53 -53
- package/lib/skeleton/Skeleton.js +69 -78
- package/lib/slider/Slider.js +42 -38
- package/lib/slider/slider.css +1 -1
- package/lib/slider/slider.less +5 -5
- package/lib/snackbar/Snackbar.js +9 -4
- package/lib/snackbar/core.js +20 -25
- package/lib/snackbar/snackbar.css +1 -1
- package/lib/snackbar/snackbar.less +66 -68
- package/lib/space/Space.js +9 -3
- package/lib/step/Step.js +26 -22
- package/lib/step/step.css +1 -1
- package/lib/step/step.less +10 -10
- package/lib/steps/Steps.js +13 -4
- package/lib/sticky/Sticky.js +15 -6
- package/lib/style-provider/StyleProvider.js +8 -2
- package/lib/style.css +1 -1
- package/lib/style.js +2 -0
- package/lib/swipe/Swipe.js +23 -16
- package/lib/swipe-item/SwipeItem.js +10 -3
- package/lib/switch/Switch.js +23 -20
- package/lib/switch/switch.css +1 -1
- package/lib/switch/switch.less +2 -2
- package/lib/tab/Tab.js +10 -1
- package/lib/tab-item/TabItem.js +10 -1
- package/lib/table/Table.js +27 -18
- package/lib/tabs/Tabs.js +18 -11
- package/lib/tabs-items/TabsItems.js +11 -4
- package/lib/themes/dark/bottomNavigation.js +9 -0
- package/lib/themes/dark/bottomNavigationItem.js +8 -0
- package/lib/themes/dark/index.js +5 -1
- package/lib/time-picker/TimePicker.js +49 -38
- package/lib/time-picker/clock.js +26 -20
- package/lib/time-picker/timePicker.css +1 -1
- package/lib/time-picker/timePicker.less +11 -11
- package/lib/uploader/Uploader.js +60 -55
- package/lib/utils/components.js +39 -0
- package/package.json +4 -4
- package/types/bottomNavigation.d.ts +19 -0
- package/types/bottomNavigationItem.d.ts +16 -0
- package/types/global.d.ts +2 -0
- package/types/index.d.ts +2 -0
- package/umd/varlet.js +4 -4
package/lib/loading/loading.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --loading-opacity: 0.38; --loading-desc-margin: 8px 0 0;}.var-loading { position: relative;}.var-loading__content { transition: opacity 0.3s; opacity: 1;}.var-loading__content--active { opacity: var(--loading-opacity); user-select: none;}.var-loading__body { display: flex; justify-content: center; align-items: center; height: 100%; flex-direction: column;}.var-loading__inside { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;}.var-loading__description { color: currentColor; margin: var(--loading-desc-margin);}.var-loading__description--large { font-size: 16px;}.var-loading__description--normal { font-size: 14px;}.var-loading__description--small { font-size: 12px;}.var-loading__description--mini { font-size: 10px;}.var-loading__circle { display: flex;}.var-loading__circle-block { display: inline-block; animation: circle 1.8s linear infinite;}.var-loading__circle-block svg { display: block; width: 100%; height: 100%;}.var-loading__circle-block svg circle { animation: circular 1.5s ease-in-out infinite; stroke: currentColor; stroke-width: 3; stroke-linecap: round;}@keyframes circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); }}@keyframes circular { 0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -40; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -120; }}.var-loading__wave { display: flex; align-items: center; justify-content: center;}.var-loading__wave
|
|
1
|
+
:root { --loading-opacity: 0.38; --loading-desc-margin: 8px 0 0;}.var-loading { position: relative;}.var-loading__content { transition: opacity 0.3s; opacity: 1;}.var-loading__content--active { opacity: var(--loading-opacity); user-select: none;}.var-loading__body { display: flex; justify-content: center; align-items: center; height: 100%; flex-direction: column;}.var-loading__inside { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;}.var-loading__description { color: currentColor; margin: var(--loading-desc-margin);}.var-loading__description--large { font-size: 16px;}.var-loading__description--normal { font-size: 14px;}.var-loading__description--small { font-size: 12px;}.var-loading__description--mini { font-size: 10px;}.var-loading__circle { display: flex;}.var-loading__circle-block { display: inline-block; animation: circle 1.8s linear infinite;}.var-loading__circle-block svg { display: block; width: 100%; height: 100%;}.var-loading__circle-block svg circle { animation: circular 1.5s ease-in-out infinite; stroke: currentColor; stroke-width: 3; stroke-linecap: round;}@keyframes circle { from { transform: rotate(0deg); } to { transform: rotate(360deg); }}@keyframes circular { 0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -40; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -120; }}.var-loading__wave { display: flex; align-items: center; justify-content: center;}.var-loading__wave--large { width: 64px; height: 18px;}.var-loading__wave--normal { width: 50px; height: 16px;}.var-loading__wave--small { width: 36px; height: 14px;}.var-loading__wave--mini { width: 22px; height: 12px;}.var-loading__wave-item { height: 100%; display: inline-block; animation: 1.2s ease-in-out infinite wave;}.var-loading__wave-item:nth-child(1) { animation-delay: -1.2s; margin-left: 0;}.var-loading__wave-item:nth-child(2) { animation-delay: -1.1s;}.var-loading__wave-item:nth-child(3) { animation-delay: -1s;}.var-loading__wave-item:nth-child(4) { animation-delay: -0.9s;}.var-loading__wave-item:nth-child(5) { animation-delay: -0.8s;}.var-loading__wave-item--large { width: 5px; margin-left: 5px;}.var-loading__wave-item--normal { width: 4px; margin-left: 4px;}.var-loading__wave-item--small { width: 3px; margin-left: 3px;}.var-loading__wave-item--mini { width: 2px; margin-left: 2px;}@keyframes wave { 0%, 40%, 100% { transform: scaleY(0.4); } 20% { transform: scaleY(1); }}.var-loading__cube { display: flex; align-items: center;}.var-loading__cube--large { width: 64px; height: 18px;}.var-loading__cube--normal { width: 50px; height: 16px;}.var-loading__cube--small { width: 36px; height: 14px;}.var-loading__cube--mini { width: 22px; height: 12px;}.var-loading__cube-item { display: inline-block; transform-origin: right bottom; animation: 1.5s ease infinite cube;}.var-loading__cube-item:nth-child(1) { animation-delay: 0.2s; margin-left: 0;}.var-loading__cube-item:nth-child(2) { animation-delay: 0.4s;}.var-loading__cube-item:nth-child(3) { animation-delay: 0.6s;}.var-loading__cube-item:nth-child(4) { animation-delay: 0.8s;}.var-loading__cube-item--large { height: 10px; width: 10px; margin-left: 5px;}.var-loading__cube-item--normal { height: 8px; width: 8px; margin-left: 4px;}.var-loading__cube-item--small { height: 6px; width: 6px; margin-left: 3px;}.var-loading__cube-item--mini { height: 4px; width: 4px; margin-left: 2px;}@keyframes cube { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: rotate(90deg) scale(0.3); }}.var-loading__rect { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center;}.var-loading__rect--large { width: 64px; height: 18px;}.var-loading__rect--normal { width: 50px; height: 16px;}.var-loading__rect--small { width: 36px; height: 14px;}.var-loading__rect--mini { width: 22px; height: 12px;}.var-loading__rect-item { animation: 2s ease-in-out infinite rect;}.var-loading__rect-item:nth-child(1) { animation-delay: 1.75s;}.var-loading__rect-item:nth-child(2) { animation-delay: 1.5s;}.var-loading__rect-item:nth-child(3) { animation-delay: 1.25s;}.var-loading__rect-item:nth-child(4) { animation-delay: 1s;}.var-loading__rect-item:nth-child(5) { animation-delay: 0.75s;}.var-loading__rect-item:nth-child(6) { animation-delay: 0.5s;}.var-loading__rect-item:nth-child(7) { animation-delay: 0.25s;}.var-loading__rect-item:nth-child(8) { animation-delay: 0s;}.var-loading__rect-item--large { height: 100%; width: 8px;}.var-loading__rect-item--normal { height: 90%; width: 6.4px;}.var-loading__rect-item--small { height: 80%; width: 4.8px;}.var-loading__rect-item--mini { height: 70%; width: 3.2px;}@keyframes rect { 0% { opacity: 0.3; } 25% { opacity: 1; } 50% { opacity: 0.3; } 65% { opacity: 1; } 100% { opacity: 0.3; }}.var-loading__disappear { display: flex; justify-content: space-around; align-items: center; flex-flow: nowrap;}.var-loading__disappear--large { width: 64px; height: 18px;}.var-loading__disappear--normal { width: 50px; height: 16px;}.var-loading__disappear--small { width: 36px; height: 14px;}.var-loading__disappear--mini { width: 22px; height: 12px;}.var-loading__disappear-item { border-radius: 50%; animation: 0.5s ease-in-out infinite alternate disappear;}.var-loading__disappear-item:nth-child(1) { animation-delay: -0.4s;}.var-loading__disappear-item:nth-child(2) { animation-delay: -0.2s;}.var-loading__disappear-item:nth-child(3) { animation-delay: 0s;}.var-loading__disappear-item--large { height: 15px; width: 15px;}.var-loading__disappear-item--normal { height: 12px; width: 12px;}.var-loading__disappear-item--small { height: 9px; width: 9px;}.var-loading__disappear-item--mini { height: 6px; width: 6px;}@keyframes disappear { 0% { opacity: 1; } 100% { opacity: 0; }}
|
package/lib/loading/loading.less
CHANGED
|
@@ -124,22 +124,22 @@
|
|
|
124
124
|
align-items: center;
|
|
125
125
|
justify-content: center;
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
&--large {
|
|
128
128
|
width: @loading-large-width;
|
|
129
129
|
height: @loading-large-height;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
&--normal {
|
|
133
133
|
width: @loading-normal-width;
|
|
134
134
|
height: @loading-normal-height;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
&--small {
|
|
138
138
|
width: @loading-small-width;
|
|
139
139
|
height: @loading-small-height;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
&--mini {
|
|
143
143
|
width: @loading-mini-width;
|
|
144
144
|
height: @loading-mini-height;
|
|
145
145
|
}
|
|
@@ -171,22 +171,22 @@
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
&-item
|
|
174
|
+
&-item--large {
|
|
175
175
|
width: @loading-wave-size-item-width;
|
|
176
176
|
margin-left: @loading-wave-size-item-margin;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
&-item
|
|
179
|
+
&-item--normal {
|
|
180
180
|
width: @loading-wave-size-item-width - 1;
|
|
181
181
|
margin-left: @loading-wave-size-item-margin - 1;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
&-item
|
|
184
|
+
&-item--small {
|
|
185
185
|
width: @loading-wave-size-item-width - 2;
|
|
186
186
|
margin-left: @loading-wave-size-item-margin - 2;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
&-item
|
|
189
|
+
&-item--mini {
|
|
190
190
|
width: @loading-wave-size-item-width - 3;
|
|
191
191
|
margin-left: @loading-wave-size-item-margin - 3;
|
|
192
192
|
}
|
|
@@ -211,22 +211,22 @@
|
|
|
211
211
|
display: flex;
|
|
212
212
|
align-items: center;
|
|
213
213
|
|
|
214
|
-
|
|
214
|
+
&--large {
|
|
215
215
|
width: @loading-large-width;
|
|
216
216
|
height: @loading-large-height;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
|
|
219
|
+
&--normal {
|
|
220
220
|
width: @loading-normal-width;
|
|
221
221
|
height: @loading-normal-height;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
|
|
224
|
+
&--small {
|
|
225
225
|
width: @loading-small-width;
|
|
226
226
|
height: @loading-small-height;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
&--mini {
|
|
230
230
|
width: @loading-mini-width;
|
|
231
231
|
height: @loading-mini-height;
|
|
232
232
|
}
|
|
@@ -254,25 +254,25 @@
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
&-item
|
|
257
|
+
&-item--large {
|
|
258
258
|
height: @loading-cube-size-item-height;
|
|
259
259
|
width: @loading-cube-size-item-width;
|
|
260
260
|
margin-left: @loading-cube-size-item-margin;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
&-item
|
|
263
|
+
&-item--normal {
|
|
264
264
|
height: @loading-cube-size-item-height - 2;
|
|
265
265
|
width: @loading-cube-size-item-width - 2;
|
|
266
266
|
margin-left: @loading-cube-size-item-margin - 1;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
&-item
|
|
269
|
+
&-item--small {
|
|
270
270
|
height: @loading-cube-size-item-height - 4;
|
|
271
271
|
width: @loading-cube-size-item-width - 4;
|
|
272
272
|
margin-left: @loading-cube-size-item-margin - 2;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
&-item
|
|
275
|
+
&-item--mini {
|
|
276
276
|
height: @loading-cube-size-item-height - 6;
|
|
277
277
|
width: @loading-cube-size-item-width - 6;
|
|
278
278
|
margin-left: @loading-cube-size-item-margin - 3;
|
|
@@ -299,22 +299,22 @@
|
|
|
299
299
|
justify-content: center;
|
|
300
300
|
align-items: center;
|
|
301
301
|
|
|
302
|
-
|
|
302
|
+
&--large {
|
|
303
303
|
width: @loading-large-width;
|
|
304
304
|
height: @loading-large-height;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
|
|
307
|
+
&--normal {
|
|
308
308
|
width: @loading-normal-width;
|
|
309
309
|
height: @loading-normal-height;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
|
|
312
|
+
&--small {
|
|
313
313
|
width: @loading-small-width;
|
|
314
314
|
height: @loading-small-height;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
|
|
317
|
+
&--mini {
|
|
318
318
|
width: @loading-mini-width;
|
|
319
319
|
height: @loading-mini-height;
|
|
320
320
|
}
|
|
@@ -355,22 +355,22 @@
|
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
&-item
|
|
358
|
+
&-item--large {
|
|
359
359
|
height: @loading-rect-size-item-height;
|
|
360
360
|
width: @loading-rect-size-item-width;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
&-item
|
|
363
|
+
&-item--normal {
|
|
364
364
|
height: @loading-rect-size-item-height * 0.9;
|
|
365
365
|
width: @loading-rect-size-item-width * 0.8;
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
-
&-item
|
|
368
|
+
&-item--small {
|
|
369
369
|
height: @loading-rect-size-item-height * 0.8;
|
|
370
370
|
width: @loading-rect-size-item-width * 0.6;
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
&-item
|
|
373
|
+
&-item--mini {
|
|
374
374
|
height: @loading-rect-size-item-height * 0.7;
|
|
375
375
|
width: @loading-rect-size-item-width * 0.4;
|
|
376
376
|
}
|
|
@@ -403,22 +403,22 @@
|
|
|
403
403
|
align-items: center;
|
|
404
404
|
flex-flow: nowrap;
|
|
405
405
|
|
|
406
|
-
|
|
406
|
+
&--large {
|
|
407
407
|
width: @loading-large-width;
|
|
408
408
|
height: @loading-large-height;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
-
|
|
411
|
+
&--normal {
|
|
412
412
|
width: @loading-normal-width;
|
|
413
413
|
height: @loading-normal-height;
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
-
|
|
416
|
+
&--small {
|
|
417
417
|
width: @loading-small-width;
|
|
418
418
|
height: @loading-small-height;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
|
|
421
|
+
&--mini {
|
|
422
422
|
width: @loading-mini-width;
|
|
423
423
|
height: @loading-mini-height;
|
|
424
424
|
}
|
|
@@ -440,22 +440,22 @@
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
-
&-item
|
|
443
|
+
&-item--large {
|
|
444
444
|
height: @loading-disappear-size-item-height;
|
|
445
445
|
width: @loading-disappear-size-item-width;
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
&-item
|
|
448
|
+
&-item--normal {
|
|
449
449
|
height: @loading-disappear-size-item-height * 0.8;
|
|
450
450
|
width: @loading-disappear-size-item-width * 0.8;
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
&-item
|
|
453
|
+
&-item--small {
|
|
454
454
|
height: @loading-disappear-size-item-height * 0.6;
|
|
455
455
|
width: @loading-disappear-size-item-width * 0.6;
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
-
&-item
|
|
458
|
+
&-item--mini {
|
|
459
459
|
height: @loading-disappear-size-item-height * 0.4;
|
|
460
460
|
width: @loading-disappear-size-item-width * 0.4;
|
|
461
461
|
}
|
package/lib/menu/Menu.js
CHANGED
|
@@ -27,6 +27,11 @@ function _isSlot(s) {
|
|
|
27
27
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0, _vue.isVNode)(s);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
var {
|
|
31
|
+
n,
|
|
32
|
+
classes
|
|
33
|
+
} = (0, _components.createNamespace)('menu');
|
|
34
|
+
|
|
30
35
|
var _default = (0, _vue.defineComponent)({
|
|
31
36
|
name: 'VarMenu',
|
|
32
37
|
props: _props.props,
|
|
@@ -57,8 +62,6 @@ var _default = (0, _vue.defineComponent)({
|
|
|
57
62
|
};
|
|
58
63
|
|
|
59
64
|
var handleMenuClose = () => {
|
|
60
|
-
var _props$onUpdateShow;
|
|
61
|
-
|
|
62
65
|
if (clickSelf) {
|
|
63
66
|
clickSelf = false;
|
|
64
67
|
return;
|
|
@@ -68,7 +71,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
68
71
|
return;
|
|
69
72
|
}
|
|
70
73
|
|
|
71
|
-
(
|
|
74
|
+
(0, _components.call)(props['onUpdate:show'], false);
|
|
72
75
|
}; // expose
|
|
73
76
|
|
|
74
77
|
|
|
@@ -87,18 +90,18 @@ var _default = (0, _vue.defineComponent)({
|
|
|
87
90
|
});
|
|
88
91
|
|
|
89
92
|
var renderTransition = () => (0, _vue.createVNode)(_vue.Transition, {
|
|
90
|
-
"name":
|
|
93
|
+
"name": n(),
|
|
91
94
|
"onAfterEnter": props.onOpened,
|
|
92
95
|
"onAfterLeave": props.onClosed
|
|
93
96
|
}, {
|
|
94
97
|
default: () => [(0, _vue.withDirectives)((0, _vue.createVNode)("div", {
|
|
95
|
-
"class":
|
|
98
|
+
"class": classes(n('menu'), 'var-elevation--3'),
|
|
96
99
|
"ref": menu,
|
|
97
100
|
"style": transitionStyle.value,
|
|
98
101
|
"onClick": event => {
|
|
99
102
|
event.stopPropagation();
|
|
100
103
|
}
|
|
101
|
-
}, [
|
|
104
|
+
}, [(0, _components.call)(slots.menu)]), [[_vue.vShow, props.show]])]
|
|
102
105
|
});
|
|
103
106
|
|
|
104
107
|
(0, _vue.watch)(() => props.alignment, resize);
|
|
@@ -114,7 +117,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
114
117
|
resize();
|
|
115
118
|
}
|
|
116
119
|
|
|
117
|
-
newValue ?
|
|
120
|
+
newValue ? (0, _components.call)(onOpen) : (0, _components.call)(onClose);
|
|
118
121
|
});
|
|
119
122
|
|
|
120
123
|
return function (_x) {
|
|
@@ -142,10 +145,10 @@ var _default = (0, _vue.defineComponent)({
|
|
|
142
145
|
var _slot;
|
|
143
146
|
|
|
144
147
|
return (0, _vue.createVNode)("div", {
|
|
145
|
-
"class":
|
|
148
|
+
"class": n(),
|
|
146
149
|
"ref": host,
|
|
147
150
|
"onClick": handleClick
|
|
148
|
-
}, [
|
|
151
|
+
}, [(0, _components.call)(slots.default), to.value ? (0, _vue.createVNode)(_vue.Teleport, {
|
|
149
152
|
"to": to.value,
|
|
150
153
|
"disabled": disabled.value
|
|
151
154
|
}, _isSlot(_slot = renderTransition()) ? _slot : {
|
package/lib/option/Option.js
CHANGED
|
@@ -12,15 +12,16 @@ var _vue = require("vue");
|
|
|
12
12
|
|
|
13
13
|
var _provide = require("./provide");
|
|
14
14
|
|
|
15
|
+
var _components = require("../utils/components");
|
|
16
|
+
|
|
15
17
|
var _props = require("./props");
|
|
16
18
|
|
|
17
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
20
|
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
21
|
+
var {
|
|
22
|
+
n,
|
|
23
|
+
classes
|
|
24
|
+
} = (0, _components.createNamespace)('option');
|
|
24
25
|
|
|
25
26
|
function render(_ctx, _cache) {
|
|
26
27
|
var _component_var_checkbox = (0, _vue.resolveComponent)("var-checkbox");
|
|
@@ -28,7 +29,7 @@ function render(_ctx, _cache) {
|
|
|
28
29
|
var _directive_ripple = (0, _vue.resolveDirective)("ripple");
|
|
29
30
|
|
|
30
31
|
return (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
31
|
-
class: (0, _vue.normalizeClass)(
|
|
32
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), 'var--box', [_ctx.optionSelected, _ctx.n('--selected-color')])),
|
|
32
33
|
style: (0, _vue.normalizeStyle)({
|
|
33
34
|
width: _ctx.wrapWidth,
|
|
34
35
|
color: _ctx.optionSelected ? _ctx.focusColor : undefined
|
|
@@ -37,7 +38,7 @@ function render(_ctx, _cache) {
|
|
|
37
38
|
return _ctx.handleClick && _ctx.handleClick(...arguments);
|
|
38
39
|
})
|
|
39
40
|
}, [(0, _vue.createElementVNode)("div", {
|
|
40
|
-
class: (0, _vue.normalizeClass)(
|
|
41
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('cover'), [_ctx.optionSelected, _ctx.n('--selected-background')])),
|
|
41
42
|
style: (0, _vue.normalizeStyle)({
|
|
42
43
|
background: _ctx.optionSelected ? _ctx.focusColor : undefined
|
|
43
44
|
})
|
|
@@ -53,9 +54,13 @@ function render(_ctx, _cache) {
|
|
|
53
54
|
onChange: _ctx.handleSelect
|
|
54
55
|
}, null, 8
|
|
55
56
|
/* PROPS */
|
|
56
|
-
, ["checked-color", "modelValue", "onChange"])) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.createElementVNode)("div",
|
|
57
|
+
, ["checked-color", "modelValue", "onChange"])) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.createElementVNode)("div", {
|
|
58
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('text'), 'var--ellipsis'))
|
|
59
|
+
}, [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.label), 1
|
|
57
60
|
/* TEXT */
|
|
58
|
-
)])]
|
|
61
|
+
)])], 2
|
|
62
|
+
/* CLASS */
|
|
63
|
+
)], 6
|
|
59
64
|
/* CLASS, STYLE */
|
|
60
65
|
)), [[_directive_ripple]]);
|
|
61
66
|
}
|
|
@@ -113,6 +118,8 @@ var _default = (0, _vue.defineComponent)({
|
|
|
113
118
|
});
|
|
114
119
|
bindSelect(optionProvider);
|
|
115
120
|
return {
|
|
121
|
+
n,
|
|
122
|
+
classes,
|
|
116
123
|
optionSelected,
|
|
117
124
|
wrapWidth,
|
|
118
125
|
multiple,
|
|
@@ -22,18 +22,18 @@ var _shared = require("../utils/shared");
|
|
|
22
22
|
|
|
23
23
|
var _locale = require("../locale");
|
|
24
24
|
|
|
25
|
+
var _components = require("../utils/components");
|
|
26
|
+
|
|
25
27
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
26
28
|
|
|
29
|
+
var {
|
|
30
|
+
n,
|
|
31
|
+
classes
|
|
32
|
+
} = (0, _components.createNamespace)('pagination');
|
|
33
|
+
|
|
27
34
|
var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
|
|
28
35
|
|
|
29
|
-
var _hoisted_1 =
|
|
30
|
-
class: "var-pagination"
|
|
31
|
-
};
|
|
32
|
-
var _hoisted_2 = ["item-mode", "onClick"];
|
|
33
|
-
var _hoisted_3 = {
|
|
34
|
-
key: 4,
|
|
35
|
-
class: "var-pagination__total"
|
|
36
|
-
};
|
|
36
|
+
var _hoisted_1 = ["item-mode", "onClick"];
|
|
37
37
|
|
|
38
38
|
function render(_ctx, _cache) {
|
|
39
39
|
var _component_var_icon = (0, _vue.resolveComponent)("var-icon");
|
|
@@ -46,12 +46,10 @@ function render(_ctx, _cache) {
|
|
|
46
46
|
|
|
47
47
|
var _directive_ripple = (0, _vue.resolveDirective)("ripple");
|
|
48
48
|
|
|
49
|
-
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("ul",
|
|
50
|
-
class: (0, _vue.normalizeClass)(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
'var-elevation--2': !_ctx.simple
|
|
54
|
-
}]),
|
|
49
|
+
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("ul", {
|
|
50
|
+
class: (0, _vue.normalizeClass)(_ctx.n())
|
|
51
|
+
}, [(0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
|
|
52
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), _ctx.n('prev'), [_ctx.current <= 1 || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--hover'), 'var-elevation--2'])),
|
|
55
53
|
onClick: _cache[0] || (_cache[0] = $event => _ctx.clickItem('prev'))
|
|
56
54
|
}, [(0, _vue.renderSlot)(_ctx.$slots, "prev", {}, () => [(0, _vue.createVNode)(_component_var_icon, {
|
|
57
55
|
name: "chevron-left"
|
|
@@ -61,9 +59,7 @@ function render(_ctx, _cache) {
|
|
|
61
59
|
disabled: _ctx.current <= 1 || _ctx.disabled
|
|
62
60
|
}]]), _ctx.simple ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
|
|
63
61
|
key: 0,
|
|
64
|
-
class: (0, _vue.normalizeClass)([
|
|
65
|
-
'var-pagination__item-disabled': _ctx.disabled
|
|
66
|
-
}])
|
|
62
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('simple'), [_ctx.disabled, _ctx.n('item--disabled')]))
|
|
67
63
|
}, [(0, _vue.createVNode)(_component_var_input, {
|
|
68
64
|
modelValue: _ctx.simpleValue,
|
|
69
65
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.simpleValue = $event),
|
|
@@ -83,28 +79,19 @@ function render(_ctx, _cache) {
|
|
|
83
79
|
return (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
|
|
84
80
|
key: _ctx.toNumber(item) + index,
|
|
85
81
|
"item-mode": _ctx.getMode(item, index),
|
|
86
|
-
class: (0, _vue.normalizeClass)(
|
|
87
|
-
'var-pagination__item-active': item === _ctx.current && !_ctx.disabled,
|
|
88
|
-
'var-pagination__item-hide': _ctx.isHideEllipsis(item, index),
|
|
89
|
-
'var-pagination__item-disabled': _ctx.disabled,
|
|
90
|
-
'var-pagination__item-disabled-active': item === _ctx.current && _ctx.disabled
|
|
91
|
-
}]),
|
|
82
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), 'var-elevation--2', [item === _ctx.current && !_ctx.disabled, _ctx.n('item--active')], [_ctx.isHideEllipsis(item, index), _ctx.n('item--hide')], [_ctx.disabled, _ctx.n('item--disabled')], [item === _ctx.current && _ctx.disabled, _ctx.n('item--disabled--active')])),
|
|
92
83
|
onClick: $event => _ctx.clickItem(item, index)
|
|
93
84
|
}, [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(item), 1
|
|
94
85
|
/* TEXT */
|
|
95
86
|
)], 10
|
|
96
87
|
/* CLASS, PROPS */
|
|
97
|
-
,
|
|
88
|
+
, _hoisted_1)), [[_directive_ripple, {
|
|
98
89
|
disabled: _ctx.disabled
|
|
99
90
|
}]]);
|
|
100
91
|
}), 128
|
|
101
92
|
/* KEYED_FRAGMENT */
|
|
102
93
|
)), (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
|
|
103
|
-
class: (0, _vue.normalizeClass)([
|
|
104
|
-
'var-pagination__item-disabled': _ctx.current >= _ctx.pageCount || _ctx.disabled,
|
|
105
|
-
'var-pagination__item-hover': _ctx.simple,
|
|
106
|
-
'var-elevation--2': !_ctx.simple
|
|
107
|
-
}]),
|
|
94
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), _ctx.n('next'), [_ctx.current >= _ctx.pageCount || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--hover'), 'var-elevation--2'])),
|
|
108
95
|
onClick: _cache[4] || (_cache[4] = $event => _ctx.clickItem('next'))
|
|
109
96
|
}, [(0, _vue.renderSlot)(_ctx.$slots, "next", {}, () => [(0, _vue.createVNode)(_component_var_icon, {
|
|
110
97
|
name: "chevron-right"
|
|
@@ -114,9 +101,7 @@ function render(_ctx, _cache) {
|
|
|
114
101
|
disabled: _ctx.current >= _ctx.pageCount || _ctx.disabled
|
|
115
102
|
}]]), _ctx.showSizeChanger ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
|
|
116
103
|
key: 2,
|
|
117
|
-
class: (0, _vue.normalizeClass)([
|
|
118
|
-
'var-pagination__item-disabled': _ctx.disabled
|
|
119
|
-
}])
|
|
104
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('size'), [_ctx.disabled, _ctx.n('item--disabled')]))
|
|
120
105
|
}, [(0, _vue.createVNode)(_component_var_menu, {
|
|
121
106
|
show: _ctx.menuVisible,
|
|
122
107
|
"onUpdate:show": _cache[6] || (_cache[6] = $event => _ctx.menuVisible = $event),
|
|
@@ -124,9 +109,7 @@ function render(_ctx, _cache) {
|
|
|
124
109
|
}, {
|
|
125
110
|
menu: (0, _vue.withCtx)(() => [((0, _vue.openBlock)(true), (0, _vue.createElementBlock)(_vue.Fragment, null, (0, _vue.renderList)(_ctx.sizeOption, (option, index) => {
|
|
126
111
|
return (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_cell, {
|
|
127
|
-
class: (0, _vue.normalizeClass)([
|
|
128
|
-
'var-pagination__list-active': _ctx.size === option
|
|
129
|
-
}]),
|
|
112
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('list'), [_ctx.size === option, _ctx.n('list--active')])),
|
|
130
113
|
key: index,
|
|
131
114
|
onClick: $event => _ctx.clickSize(option)
|
|
132
115
|
}, {
|
|
@@ -143,7 +126,7 @@ function render(_ctx, _cache) {
|
|
|
143
126
|
/* KEYED_FRAGMENT */
|
|
144
127
|
))]),
|
|
145
128
|
default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", {
|
|
146
|
-
class:
|
|
129
|
+
class: (0, _vue.normalizeClass)(_ctx.n('size--open')),
|
|
147
130
|
style: {
|
|
148
131
|
"display": "flex"
|
|
149
132
|
},
|
|
@@ -153,10 +136,14 @@ function render(_ctx, _cache) {
|
|
|
153
136
|
}, [(0, _vue.createElementVNode)("span", null, (0, _vue.toDisplayString)(_ctx.size) + (0, _vue.toDisplayString)(_ctx.pack.paginationItem) + " / " + (0, _vue.toDisplayString)(_ctx.pack.paginationPage), 1
|
|
154
137
|
/* TEXT */
|
|
155
138
|
), (0, _vue.createVNode)(_component_var_icon, {
|
|
156
|
-
class:
|
|
139
|
+
class: (0, _vue.normalizeClass)(_ctx.n('size--open-icon')),
|
|
157
140
|
"var-pagination-cover": "",
|
|
158
141
|
name: "menu-down"
|
|
159
|
-
}
|
|
142
|
+
}, null, 8
|
|
143
|
+
/* PROPS */
|
|
144
|
+
, ["class"])], 2
|
|
145
|
+
/* CLASS */
|
|
146
|
+
)]),
|
|
160
147
|
_: 1
|
|
161
148
|
/* STABLE */
|
|
162
149
|
|
|
@@ -166,9 +153,7 @@ function render(_ctx, _cache) {
|
|
|
166
153
|
/* CLASS */
|
|
167
154
|
)) : (0, _vue.createCommentVNode)("v-if", true), _ctx.showQuickJumper && !_ctx.simple ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
|
|
168
155
|
key: 3,
|
|
169
|
-
class: (0, _vue.normalizeClass)([
|
|
170
|
-
'var-pagination__item-disabled': _ctx.disabled
|
|
171
|
-
}])
|
|
156
|
+
class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('quickly'), [_ctx.disabled, 'item--disabled']))
|
|
172
157
|
}, [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.pack.paginationJump) + " ", 1
|
|
173
158
|
/* TEXT */
|
|
174
159
|
), (0, _vue.createVNode)(_component_var_input, {
|
|
@@ -182,9 +167,14 @@ function render(_ctx, _cache) {
|
|
|
182
167
|
/* PROPS */
|
|
183
168
|
, ["modelValue", "disabled"])], 2
|
|
184
169
|
/* CLASS */
|
|
185
|
-
)) : (0, _vue.createCommentVNode)("v-if", true), _ctx.totalText ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li",
|
|
186
|
-
|
|
187
|
-
|
|
170
|
+
)) : (0, _vue.createCommentVNode)("v-if", true), _ctx.totalText ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
|
|
171
|
+
key: 4,
|
|
172
|
+
class: (0, _vue.normalizeClass)(_ctx.n('total'))
|
|
173
|
+
}, (0, _vue.toDisplayString)(_ctx.totalText), 3
|
|
174
|
+
/* TEXT, CLASS */
|
|
175
|
+
)) : (0, _vue.createCommentVNode)("v-if", true)], 2
|
|
176
|
+
/* CLASS */
|
|
177
|
+
);
|
|
188
178
|
}
|
|
189
179
|
|
|
190
180
|
var _default = (0, _vue.defineComponent)({
|
|
@@ -362,6 +352,8 @@ var _default = (0, _vue.defineComponent)({
|
|
|
362
352
|
immediate: true
|
|
363
353
|
});
|
|
364
354
|
return {
|
|
355
|
+
n,
|
|
356
|
+
classes,
|
|
365
357
|
pack: _locale.pack,
|
|
366
358
|
current,
|
|
367
359
|
menuVisible,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --pagination-font-size: var(--font-size-md); --pagination-active-color: #fff; --pagination-active-bg-color: var(--color-primary); --pagination-hover-bg-color: #edf5ff; --pagination-total-margin: 0 12px; --pagination-total-line-height: 24px; --pagination-item-width: 32px; --pagination-item-height: 32px; --pagination-item-margin: 0 6px; --pagination-item-background: #fff; --pagination-item-border-radius: 4px; --pagination-list-bg-color: #fff; --pagination-list-active-bg-color: #edf5ff; --pagination-list-active-color: var(--color-primary); --pagination-input-width: 32px; --pagination-simple-padding: 0 0 2px 0; --pagination-disabled-color: var(--color-text-disabled); --pagination-bg-disabled-color: var(--color-disabled); --pagination-size-line-height: 24px;}.pagination-flex-nowrap { display: flex; white-space: nowrap; align-items: center;}.var-pagination { display: flex; align-items: center; list-style: none; margin: 0; font-size: var(--pagination-font-size); padding: 0;}.var-pagination__item { display: inline-flex; min-width: var(--pagination-item-width); align-items: center; justify-content: center; margin: var(--pagination-item-margin); height: var(--pagination-item-height); cursor: pointer; border-radius: var(--pagination-item-border-radius); outline: none; transition: all 0.25s; user-select: none; background: var(--pagination-item-background);}.var-pagination__item:hover { background-color: var(--pagination-hover-bg-color);}.var-pagination__item
|
|
1
|
+
:root { --pagination-font-size: var(--font-size-md); --pagination-active-color: #fff; --pagination-active-bg-color: var(--color-primary); --pagination-hover-bg-color: #edf5ff; --pagination-total-margin: 0 12px; --pagination-total-line-height: 24px; --pagination-item-width: 32px; --pagination-item-height: 32px; --pagination-item-margin: 0 6px; --pagination-item-background: #fff; --pagination-item-border-radius: 4px; --pagination-list-bg-color: #fff; --pagination-list-active-bg-color: #edf5ff; --pagination-list-active-color: var(--color-primary); --pagination-input-width: 32px; --pagination-simple-padding: 0 0 2px 0; --pagination-disabled-color: var(--color-text-disabled); --pagination-bg-disabled-color: var(--color-disabled); --pagination-size-line-height: 24px;}.pagination-flex-nowrap { display: flex; white-space: nowrap; align-items: center;}.var-pagination { display: flex; align-items: center; list-style: none; margin: 0; font-size: var(--pagination-font-size); padding: 0;}.var-pagination__item { display: inline-flex; min-width: var(--pagination-item-width); align-items: center; justify-content: center; margin: var(--pagination-item-margin); height: var(--pagination-item-height); cursor: pointer; border-radius: var(--pagination-item-border-radius); outline: none; transition: all 0.25s; user-select: none; background: var(--pagination-item-background);}.var-pagination__item:hover { background-color: var(--pagination-hover-bg-color);}.var-pagination__item--active { color: var(--pagination-active-color); background-color: var(--pagination-active-bg-color) !important;}.var-pagination__item--disabled--active { background: var(--pagination-bg-disabled-color);}.var-pagination__item--hide { display: none;}.var-pagination__item--disabled { cursor: default !important; color: var(--pagination-disabled-color);}.var-pagination__item--disabled:hover { background-color: unset;}.var-pagination__item--hover:hover { background: inherit;}.var-pagination__prev { margin-left: 0;}.var-pagination__total { display: flex; white-space: nowrap; align-items: center; line-height: var(--pagination-total-line-height); margin: var(--pagination-total-margin);}.var-pagination__size { display: flex; white-space: nowrap; align-items: center; line-height: var(--pagination-size-line-height); margin: var(--pagination-item-margin);}.var-pagination__size--open { display: flex; align-items: center; cursor: pointer;}.var-pagination__list { background-color: var(--pagination-list-bg-color); cursor: pointer; transition: all 0.25s;}.var-pagination__list:hover { color: var(--pagination-list-active-color); background-color: var(--pagination-hover-bg-color);}.var-pagination__list--active { background-color: var(--pagination-list-active-bg-color) !important; color: var(--pagination-list-active-color);}.var-pagination__quickly,.var-pagination__simple { display: flex; white-space: nowrap; align-items: center;}.var-pagination__quickly [var-pagination-cover],.var-pagination__simple [var-pagination-cover] { width: var(--pagination-input-width);}.var-pagination__quickly [var-pagination-cover] .var-input__wrap,.var-pagination__simple [var-pagination-cover] .var-input__wrap { padding: 0;}.var-pagination__quickly [var-pagination-cover] .var-input__input,.var-pagination__simple [var-pagination-cover] .var-input__input { height: auto; text-align: center;}.var-pagination__quickly { margin: var(--pagination-item-margin);}.var-pagination__quickly [var-pagination-cover] { margin-left: 6px;}.var-pagination__size--open-icon[var-pagination-cover] { font-size: inherit;}.var-pagination--simple-padding { padding: var(--pagination-simple-padding);}
|
|
@@ -73,20 +73,20 @@
|
|
|
73
73
|
background-color: var(--pagination-hover-bg-color);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
&--active {
|
|
77
77
|
color: var(--pagination-active-color);
|
|
78
78
|
background-color: var(--pagination-active-bg-color) !important;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
&--disabled--active {
|
|
82
82
|
background: var(--pagination-bg-disabled-color);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
&--hide {
|
|
86
86
|
display: none;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
&--disabled {
|
|
90
90
|
cursor: default !important;
|
|
91
91
|
color: var(--pagination-disabled-color);
|
|
92
92
|
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
&--hover {
|
|
99
99
|
&:hover {
|
|
100
100
|
background: inherit;
|
|
101
101
|
}
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
line-height: var(--pagination-size-line-height);
|
|
120
120
|
margin: var(--pagination-item-margin);
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
&--open {
|
|
123
123
|
display: flex;
|
|
124
124
|
align-items: center;
|
|
125
125
|
cursor: pointer;
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
background-color: var(--pagination-hover-bg-color);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
&--active {
|
|
140
140
|
background-color: var(--pagination-list-active-bg-color) !important;
|
|
141
141
|
color: var(--pagination-list-active-color);
|
|
142
142
|
}
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
&__size
|
|
171
|
+
&__size--open-icon[var-pagination-cover] {
|
|
172
172
|
font-size: inherit;
|
|
173
173
|
}
|
|
174
174
|
|