@tplc/wot 0.0.1
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/components/common/AbortablePromise.ts +36 -0
- package/components/common/abstracts/_config.scss +7 -0
- package/components/common/abstracts/_function.scss +76 -0
- package/components/common/abstracts/_mixin.scss +339 -0
- package/components/common/abstracts/variable.scss +1346 -0
- package/components/common/base64.ts +30 -0
- package/components/common/canvasHelper.ts +49 -0
- package/components/common/clickoutside.ts +34 -0
- package/components/common/dayjs.ts +157 -0
- package/components/common/event.ts +8 -0
- package/components/common/props.ts +51 -0
- package/components/common/util.ts +751 -0
- package/components/composables/useCell.ts +13 -0
- package/components/composables/useChildren.ts +122 -0
- package/components/composables/useCountDown.ts +138 -0
- package/components/composables/useLockScroll.ts +39 -0
- package/components/composables/useParent.ts +41 -0
- package/components/composables/usePopover.ts +193 -0
- package/components/composables/useQueue.ts +52 -0
- package/components/composables/useRaf.ts +37 -0
- package/components/composables/useTouch.ts +44 -0
- package/components/composables/useTranslate.ts +22 -0
- package/components/wd-action-sheet/index.scss +204 -0
- package/components/wd-action-sheet/types.ts +128 -0
- package/components/wd-action-sheet/wd-action-sheet.vue +174 -0
- package/components/wd-backtop/index.scss +25 -0
- package/components/wd-backtop/types.ts +37 -0
- package/components/wd-backtop/wd-backtop.vue +48 -0
- package/components/wd-badge/index.scss +59 -0
- package/components/wd-badge/types.ts +53 -0
- package/components/wd-badge/wd-badge.vue +69 -0
- package/components/wd-button/index.scss +340 -0
- package/components/wd-button/types.ts +112 -0
- package/components/wd-button/wd-button.vue +176 -0
- package/components/wd-calendar/index.scss +244 -0
- package/components/wd-calendar/types.ts +235 -0
- package/components/wd-calendar/wd-calendar.vue +456 -0
- package/components/wd-calendar-view/index.scss +9 -0
- package/components/wd-calendar-view/month/index.scss +151 -0
- package/components/wd-calendar-view/month/month.vue +391 -0
- package/components/wd-calendar-view/month/types.ts +19 -0
- package/components/wd-calendar-view/monthPanel/index.scss +89 -0
- package/components/wd-calendar-view/monthPanel/month-panel.vue +388 -0
- package/components/wd-calendar-view/monthPanel/types.ts +48 -0
- package/components/wd-calendar-view/types.ts +134 -0
- package/components/wd-calendar-view/utils.ts +451 -0
- package/components/wd-calendar-view/wd-calendar-view.vue +111 -0
- package/components/wd-calendar-view/year/index.scss +148 -0
- package/components/wd-calendar-view/year/types.ts +19 -0
- package/components/wd-calendar-view/year/year.vue +220 -0
- package/components/wd-calendar-view/yearPanel/index.scss +24 -0
- package/components/wd-calendar-view/yearPanel/types.ts +38 -0
- package/components/wd-calendar-view/yearPanel/year-panel.vue +140 -0
- package/components/wd-card/index.scss +70 -0
- package/components/wd-card/types.ts +30 -0
- package/components/wd-card/wd-card.vue +40 -0
- package/components/wd-cell/index.scss +189 -0
- package/components/wd-cell/types.ts +96 -0
- package/components/wd-cell/wd-cell.vue +135 -0
- package/components/wd-cell-group/index.scss +55 -0
- package/components/wd-cell-group/types.ts +41 -0
- package/components/wd-cell-group/wd-cell-group.vue +45 -0
- package/components/wd-checkbox/index.scss +285 -0
- package/components/wd-checkbox/types.ts +68 -0
- package/components/wd-checkbox/wd-checkbox.vue +185 -0
- package/components/wd-checkbox-group/index.scss +20 -0
- package/components/wd-checkbox-group/types.ts +59 -0
- package/components/wd-checkbox-group/wd-checkbox-group.vue +103 -0
- package/components/wd-circle/index.scss +18 -0
- package/components/wd-circle/types.ts +54 -0
- package/components/wd-circle/wd-circle.vue +318 -0
- package/components/wd-col/index.scss +19 -0
- package/components/wd-col/types.ts +15 -0
- package/components/wd-col/wd-col.vue +91 -0
- package/components/wd-col-picker/index.scss +241 -0
- package/components/wd-col-picker/types.ts +170 -0
- package/components/wd-col-picker/wd-col-picker.vue +550 -0
- package/components/wd-collapse/index.scss +55 -0
- package/components/wd-collapse/types.ts +63 -0
- package/components/wd-collapse/wd-collapse.vue +160 -0
- package/components/wd-collapse-item/index.scss +79 -0
- package/components/wd-collapse-item/types.ts +36 -0
- package/components/wd-collapse-item/wd-collapse-item.vue +182 -0
- package/components/wd-config-provider/types.ts +1023 -0
- package/components/wd-config-provider/wd-config-provider.vue +82 -0
- package/components/wd-count-down/index.scss +14 -0
- package/components/wd-count-down/types.ts +41 -0
- package/components/wd-count-down/utils.ts +52 -0
- package/components/wd-count-down/wd-count-down.vue +60 -0
- package/components/wd-count-to/index.scss +6 -0
- package/components/wd-count-to/types.ts +110 -0
- package/components/wd-count-to/wd-count-to.vue +134 -0
- package/components/wd-curtain/index.scss +80 -0
- package/components/wd-curtain/types.ts +45 -0
- package/components/wd-curtain/wd-curtain.vue +174 -0
- package/components/wd-datetime-picker/index.scss +243 -0
- package/components/wd-datetime-picker/types.ts +225 -0
- package/components/wd-datetime-picker/wd-datetime-picker.vue +827 -0
- package/components/wd-datetime-picker-view/index.scss +0 -0
- package/components/wd-datetime-picker-view/types.ts +137 -0
- package/components/wd-datetime-picker-view/wd-datetime-picker-view.vue +514 -0
- package/components/wd-divider/index.scss +32 -0
- package/components/wd-divider/types.ts +12 -0
- package/components/wd-divider/wd-divider.vue +29 -0
- package/components/wd-drop-menu/index.scss +89 -0
- package/components/wd-drop-menu/types.ts +38 -0
- package/components/wd-drop-menu/wd-drop-menu.vue +128 -0
- package/components/wd-drop-menu-item/index.scss +66 -0
- package/components/wd-drop-menu-item/types.ts +78 -0
- package/components/wd-drop-menu-item/wd-drop-menu-item.vue +230 -0
- package/components/wd-fab/index.scss +115 -0
- package/components/wd-fab/types.ts +61 -0
- package/components/wd-fab/wd-fab.vue +257 -0
- package/components/wd-form/index.scss +10 -0
- package/components/wd-form/types.ts +93 -0
- package/components/wd-form/wd-form.vue +185 -0
- package/components/wd-form-item/index.scss +17 -0
- package/components/wd-form-item/types.ts +22 -0
- package/components/wd-form-item/wd-form-item.vue +65 -0
- package/components/wd-gap/index.scss +9 -0
- package/components/wd-gap/types.ts +23 -0
- package/components/wd-gap/wd-gap.vue +39 -0
- package/components/wd-grid/index.scss +9 -0
- package/components/wd-grid/types.ts +54 -0
- package/components/wd-grid/wd-grid.vue +107 -0
- package/components/wd-grid-item/index.scss +137 -0
- package/components/wd-grid-item/types.ts +74 -0
- package/components/wd-grid-item/wd-grid-item.vue +181 -0
- package/components/wd-icon/index.scss +1222 -0
- package/components/wd-icon/types.ts +21 -0
- package/components/wd-icon/wd-icon.vue +53 -0
- package/components/wd-icon/wd-icons.ttf +0 -0
- package/components/wd-img/index.scss +19 -0
- package/components/wd-img/types.ts +53 -0
- package/components/wd-img/wd-img.vue +76 -0
- package/components/wd-img-cropper/index.scss +227 -0
- package/components/wd-img-cropper/types.ts +87 -0
- package/components/wd-img-cropper/wd-img-cropper.vue +659 -0
- package/components/wd-index-anchor/index.scss +34 -0
- package/components/wd-index-anchor/type.ts +9 -0
- package/components/wd-index-anchor/wd-index-anchor.vue +57 -0
- package/components/wd-index-bar/index.scss +39 -0
- package/components/wd-index-bar/type.ts +28 -0
- package/components/wd-index-bar/wd-index-bar.vue +158 -0
- package/components/wd-input/index.scss +326 -0
- package/components/wd-input/types.ts +182 -0
- package/components/wd-input/wd-input.vue +327 -0
- package/components/wd-input-number/index.scss +132 -0
- package/components/wd-input-number/types.ts +78 -0
- package/components/wd-input-number/wd-input-number.vue +221 -0
- package/components/wd-loading/index.scss +34 -0
- package/components/wd-loading/types.ts +31 -0
- package/components/wd-loading/wd-loading.vue +90 -0
- package/components/wd-loadmore/index.scss +39 -0
- package/components/wd-loadmore/types.ts +24 -0
- package/components/wd-loadmore/wd-loadmore.vue +53 -0
- package/components/wd-message-box/index.scss +121 -0
- package/components/wd-message-box/index.ts +95 -0
- package/components/wd-message-box/types.ts +116 -0
- package/components/wd-message-box/wd-message-box.vue +326 -0
- package/components/wd-navbar/index.scss +103 -0
- package/components/wd-navbar/types.ts +52 -0
- package/components/wd-navbar/wd-navbar.vue +142 -0
- package/components/wd-navbar-capsule/index.scss +65 -0
- package/components/wd-navbar-capsule/types.ts +0 -0
- package/components/wd-navbar-capsule/wd-navbar-capsule.vue +31 -0
- package/components/wd-notice-bar/index.scss +86 -0
- package/components/wd-notice-bar/types.ts +56 -0
- package/components/wd-notice-bar/wd-notice-bar.vue +223 -0
- package/components/wd-notify/index.scss +34 -0
- package/components/wd-notify/index.ts +59 -0
- package/components/wd-notify/types.ts +62 -0
- package/components/wd-notify/wd-notify.vue +83 -0
- package/components/wd-number-keyboard/index.scss +78 -0
- package/components/wd-number-keyboard/key/index.scss +79 -0
- package/components/wd-number-keyboard/key/index.vue +76 -0
- package/components/wd-number-keyboard/key/types.ts +11 -0
- package/components/wd-number-keyboard/types.ts +79 -0
- package/components/wd-number-keyboard/wd-number-keyboard.vue +173 -0
- package/components/wd-overlay/index.scss +17 -0
- package/components/wd-overlay/types.ts +25 -0
- package/components/wd-overlay/wd-overlay.vue +46 -0
- package/components/wd-pagination/index.scss +57 -0
- package/components/wd-pagination/types.ts +41 -0
- package/components/wd-pagination/wd-pagination.vue +121 -0
- package/components/wd-password-input/index.scss +123 -0
- package/components/wd-password-input/types.ts +48 -0
- package/components/wd-password-input/wd-password-input.vue +58 -0
- package/components/wd-picker/index.scss +216 -0
- package/components/wd-picker/types.ts +186 -0
- package/components/wd-picker/wd-picker.vue +409 -0
- package/components/wd-picker-view/index.scss +91 -0
- package/components/wd-picker-view/types.ts +162 -0
- package/components/wd-picker-view/wd-picker-view.vue +361 -0
- package/components/wd-popover/index.scss +123 -0
- package/components/wd-popover/types.ts +69 -0
- package/components/wd-popover/wd-popover.vue +216 -0
- package/components/wd-popup/index.scss +112 -0
- package/components/wd-popup/types.ts +68 -0
- package/components/wd-popup/wd-popup.vue +227 -0
- package/components/wd-progress/index.scss +62 -0
- package/components/wd-progress/types.ts +40 -0
- package/components/wd-progress/wd-progress.vue +201 -0
- package/components/wd-radio/index.scss +300 -0
- package/components/wd-radio/types.ts +42 -0
- package/components/wd-radio/wd-radio.vue +136 -0
- package/components/wd-radio-group/index.scss +23 -0
- package/components/wd-radio-group/types.ts +36 -0
- package/components/wd-radio-group/wd-radio-group.vue +54 -0
- package/components/wd-rate/index.scss +24 -0
- package/components/wd-rate/types.ts +91 -0
- package/components/wd-rate/wd-rate.vue +131 -0
- package/components/wd-resize/index.scss +26 -0
- package/components/wd-resize/types.ts +6 -0
- package/components/wd-resize/wd-resize.vue +155 -0
- package/components/wd-row/index.scss +10 -0
- package/components/wd-row/types.ts +16 -0
- package/components/wd-row/wd-row.vue +63 -0
- package/components/wd-search/index.scss +148 -0
- package/components/wd-search/types.ts +83 -0
- package/components/wd-search/wd-search.vue +237 -0
- package/components/wd-segmented/index.scss +97 -0
- package/components/wd-segmented/types.ts +68 -0
- package/components/wd-segmented/wd-segmented.vue +143 -0
- package/components/wd-select-picker/index.scss +177 -0
- package/components/wd-select-picker/types.ts +116 -0
- package/components/wd-select-picker/wd-select-picker.vue +486 -0
- package/components/wd-sidebar/index.scss +25 -0
- package/components/wd-sidebar/types.ts +28 -0
- package/components/wd-sidebar/wd-sidebar.vue +41 -0
- package/components/wd-sidebar-item/index.scss +93 -0
- package/components/wd-sidebar-item/types.ts +31 -0
- package/components/wd-sidebar-item/wd-sidebar-item.vue +114 -0
- package/components/wd-skeleton/index.scss +101 -0
- package/components/wd-skeleton/index.ts +1 -0
- package/components/wd-skeleton/types.ts +69 -0
- package/components/wd-skeleton/wd-skeleton.vue +135 -0
- package/components/wd-slider/index.scss +91 -0
- package/components/wd-slider/types.ts +104 -0
- package/components/wd-slider/wd-slider.vue +377 -0
- package/components/wd-sort-button/index.scss +86 -0
- package/components/wd-sort-button/types.ts +43 -0
- package/components/wd-sort-button/wd-sort-button.vue +76 -0
- package/components/wd-status-tip/index.scss +37 -0
- package/components/wd-status-tip/types.ts +59 -0
- package/components/wd-status-tip/wd-status-tip.vue +94 -0
- package/components/wd-step/index.scss +236 -0
- package/components/wd-step/types.ts +33 -0
- package/components/wd-step/wd-step.vue +151 -0
- package/components/wd-steps/index.scss +10 -0
- package/components/wd-steps/types.ts +59 -0
- package/components/wd-steps/wd-steps.vue +37 -0
- package/components/wd-sticky/index.scss +9 -0
- package/components/wd-sticky/types.ts +13 -0
- package/components/wd-sticky/wd-sticky.vue +190 -0
- package/components/wd-sticky-box/index.scss +6 -0
- package/components/wd-sticky-box/types.ts +20 -0
- package/components/wd-sticky-box/wd-sticky-box.vue +154 -0
- package/components/wd-swipe-action/index.scss +22 -0
- package/components/wd-swipe-action/types.ts +43 -0
- package/components/wd-swipe-action/wd-swipe-action.vue +307 -0
- package/components/wd-swiper/index.scss +23 -0
- package/components/wd-swiper/types.ts +189 -0
- package/components/wd-swiper/wd-swiper.vue +202 -0
- package/components/wd-swiper-nav/index.scss +153 -0
- package/components/wd-swiper-nav/types.ts +42 -0
- package/components/wd-swiper-nav/wd-swiper-nav.vue +37 -0
- package/components/wd-switch/index.scss +58 -0
- package/components/wd-switch/types.ts +56 -0
- package/components/wd-switch/wd-switch.vue +83 -0
- package/components/wd-tab/index.scss +8 -0
- package/components/wd-tab/types.ts +20 -0
- package/components/wd-tab/wd-tab.vue +100 -0
- package/components/wd-tabbar/index.scss +57 -0
- package/components/wd-tabbar/types.ts +88 -0
- package/components/wd-tabbar/wd-tabbar.vue +104 -0
- package/components/wd-tabbar-item/index.scss +52 -0
- package/components/wd-tabbar-item/types.ts +51 -0
- package/components/wd-tabbar-item/wd-tabbar-item.vue +101 -0
- package/components/wd-table/index.scss +132 -0
- package/components/wd-table/types.ts +69 -0
- package/components/wd-table/wd-table.vue +255 -0
- package/components/wd-table-col/index.scss +44 -0
- package/components/wd-table-col/types.ts +54 -0
- package/components/wd-table-col/wd-table-col.vue +149 -0
- package/components/wd-tabs/index.scss +280 -0
- package/components/wd-tabs/types.ts +71 -0
- package/components/wd-tabs/wd-tabs.vue +528 -0
- package/components/wd-tag/index.scss +115 -0
- package/components/wd-tag/types.ts +81 -0
- package/components/wd-tag/wd-tag.vue +154 -0
- package/components/wd-text/index.scss +34 -0
- package/components/wd-text/types.ts +98 -0
- package/components/wd-text/wd-text.vue +138 -0
- package/components/wd-textarea/index.scss +343 -0
- package/components/wd-textarea/types.ts +298 -0
- package/components/wd-textarea/wd-textarea.vue +303 -0
- package/components/wd-toast/index.scss +66 -0
- package/components/wd-toast/index.ts +109 -0
- package/components/wd-toast/types.ts +76 -0
- package/components/wd-toast/wd-toast.vue +212 -0
- package/components/wd-tooltip/index.scss +61 -0
- package/components/wd-tooltip/types.ts +102 -0
- package/components/wd-tooltip/wd-tooltip.vue +167 -0
- package/components/wd-transition/index.scss +91 -0
- package/components/wd-transition/types.ts +89 -0
- package/components/wd-transition/wd-transition.vue +221 -0
- package/components/wd-upload/index.scss +173 -0
- package/components/wd-upload/types.ts +378 -0
- package/components/wd-upload/utils.ts +152 -0
- package/components/wd-upload/wd-upload.vue +737 -0
- package/components/wd-video-preview/index.scss +34 -0
- package/components/wd-video-preview/types.ts +32 -0
- package/components/wd-video-preview/wd-video-preview.vue +76 -0
- package/components/wd-watermark/index.scss +18 -0
- package/components/wd-watermark/types.ts +82 -0
- package/components/wd-watermark/wd-watermark.vue +592 -0
- package/components/wot-design-uni/wot-design-uni.vue +14 -0
- package/global.d.ts +108 -0
- package/index.ts +30 -0
- package/locale/index.ts +41 -0
- package/locale/lang/en-US.ts +128 -0
- package/locale/lang/th-TH.ts +127 -0
- package/locale/lang/vi-VN.ts +89 -0
- package/locale/lang/zh-CN.ts +127 -0
- package/locale/lang/zh-HK.ts +84 -0
- package/locale/lang/zh-TW.ts +84 -0
- package/package.json +20 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<wd-transition
|
|
3
|
+
:show="show"
|
|
4
|
+
name="fade"
|
|
5
|
+
custom-class="wd-overlay"
|
|
6
|
+
:duration="duration"
|
|
7
|
+
:custom-style="`z-index: ${zIndex}; ${customStyle}`"
|
|
8
|
+
@click="handleClick"
|
|
9
|
+
@touchmove.stop.prevent="lockScroll ? noop : ''"
|
|
10
|
+
>
|
|
11
|
+
<slot></slot>
|
|
12
|
+
</wd-transition>
|
|
13
|
+
</template>
|
|
14
|
+
<script lang="ts">
|
|
15
|
+
export default {
|
|
16
|
+
name: 'wd-overlay',
|
|
17
|
+
options: {
|
|
18
|
+
virtualHost: true,
|
|
19
|
+
addGlobalClass: true,
|
|
20
|
+
styleIsolation: 'shared',
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<script lang="ts" setup>
|
|
26
|
+
import useLockScroll from '../composables/useLockScroll'
|
|
27
|
+
import { overlayProps } from './types'
|
|
28
|
+
|
|
29
|
+
const props = defineProps(overlayProps)
|
|
30
|
+
|
|
31
|
+
const emit = defineEmits(['click'])
|
|
32
|
+
|
|
33
|
+
function handleClick() {
|
|
34
|
+
emit('click')
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function noop() {}
|
|
38
|
+
|
|
39
|
+
// #ifdef H5
|
|
40
|
+
useLockScroll(() => props.show && props.lockScroll)
|
|
41
|
+
// #endif
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<style lang="scss">
|
|
45
|
+
@import './index';
|
|
46
|
+
</style>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@import './../common/abstracts/_mixin';
|
|
2
|
+
@import './../common/abstracts/variable';
|
|
3
|
+
|
|
4
|
+
.wot-theme-dark {
|
|
5
|
+
@include b(pager) {
|
|
6
|
+
background-color: $-dark-background;
|
|
7
|
+
@include e(message) {
|
|
8
|
+
color: $-dark-color3;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@include b(pager) {
|
|
14
|
+
user-select: none;
|
|
15
|
+
background-color: #fff;
|
|
16
|
+
|
|
17
|
+
@include edeep(icon) {
|
|
18
|
+
font-size: $-pagination-icon-size;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@include e(content) {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: flex-start;
|
|
25
|
+
padding: $-pagination-content-padding;
|
|
26
|
+
}
|
|
27
|
+
@include e(message) {
|
|
28
|
+
padding: $-pagination-message-padding;
|
|
29
|
+
font-size: $-pagination-message-fs;
|
|
30
|
+
color: $-pagination-message-color;
|
|
31
|
+
text-align: center;
|
|
32
|
+
}
|
|
33
|
+
@include edeep(nav) {
|
|
34
|
+
min-width: $-pagination-nav-width;
|
|
35
|
+
@include m(active) {
|
|
36
|
+
color: rgba(0, 0, 0, 0.65);
|
|
37
|
+
}
|
|
38
|
+
@include m(disabled) {
|
|
39
|
+
color: rgba(0, 0, 0, 0.15);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
@include e(size) {
|
|
43
|
+
flex: 1;
|
|
44
|
+
font-size: $-pagination-nav-content-fs;
|
|
45
|
+
text-align: center;
|
|
46
|
+
}
|
|
47
|
+
@include e(separator) {
|
|
48
|
+
padding: $-pagination-nav-sepatator-padding;
|
|
49
|
+
}
|
|
50
|
+
@include edeep(left) {
|
|
51
|
+
display: inline-block;
|
|
52
|
+
transform: rotate(180deg) translateY(1px);
|
|
53
|
+
}
|
|
54
|
+
@include e(current) {
|
|
55
|
+
color: $-pagination-nav-current-color;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { baseProps, makeBooleanProp, makeNumberProp, makeRequiredProp } from '../common/props'
|
|
2
|
+
|
|
3
|
+
export const paginationProps = {
|
|
4
|
+
...baseProps,
|
|
5
|
+
/**
|
|
6
|
+
* 当前页
|
|
7
|
+
*/
|
|
8
|
+
modelValue: makeRequiredProp(Number),
|
|
9
|
+
/**
|
|
10
|
+
* 总页数,如果有total,则优先使用total计算页数
|
|
11
|
+
*/
|
|
12
|
+
totalPage: makeNumberProp(1),
|
|
13
|
+
/**
|
|
14
|
+
* 是否展示分页为Icon图标
|
|
15
|
+
*/
|
|
16
|
+
showIcon: makeBooleanProp(false),
|
|
17
|
+
/**
|
|
18
|
+
* 是否展示总条数
|
|
19
|
+
*/
|
|
20
|
+
showMessage: makeBooleanProp(false),
|
|
21
|
+
/**
|
|
22
|
+
* 总条数
|
|
23
|
+
*/
|
|
24
|
+
total: makeNumberProp(0),
|
|
25
|
+
/**
|
|
26
|
+
* 每页条数
|
|
27
|
+
*/
|
|
28
|
+
pageSize: makeNumberProp(10),
|
|
29
|
+
/**
|
|
30
|
+
* 上一页文本
|
|
31
|
+
*/
|
|
32
|
+
prevText: String,
|
|
33
|
+
/**
|
|
34
|
+
* 下一页文本
|
|
35
|
+
*/
|
|
36
|
+
nextText: String,
|
|
37
|
+
/**
|
|
38
|
+
* 总页数只有一页时是否隐藏
|
|
39
|
+
*/
|
|
40
|
+
hideIfOnePage: makeBooleanProp(true),
|
|
41
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
:class="`wd-pager ${customClass}`"
|
|
4
|
+
:style="customStyle"
|
|
5
|
+
v-if="!(hideIfOnePage && totalPageNum === 1)"
|
|
6
|
+
>
|
|
7
|
+
<view class="wd-pager__content">
|
|
8
|
+
<wd-button
|
|
9
|
+
:plain="modelValue > 1"
|
|
10
|
+
type="info"
|
|
11
|
+
size="small"
|
|
12
|
+
:disabled="modelValue <= 1"
|
|
13
|
+
custom-class="wd-pager__nav"
|
|
14
|
+
@click="sub"
|
|
15
|
+
>
|
|
16
|
+
<text v-if="!showIcon">{{ prevText || translate('prev') }}</text>
|
|
17
|
+
<wd-icon
|
|
18
|
+
v-else
|
|
19
|
+
:custom-class="`wd-pager__left wd-pager__icon ${modelValue <= 1 ? 'wd-pager__nav--disabled' : 'wd-pager__nav--active'}`"
|
|
20
|
+
name="arrow-right"
|
|
21
|
+
></wd-icon>
|
|
22
|
+
</wd-button>
|
|
23
|
+
<view class="wd-pager__size">
|
|
24
|
+
<text class="wd-pager__current">{{ modelValue }}</text>
|
|
25
|
+
<text class="wd-pager__separator">/</text>
|
|
26
|
+
<text>{{ totalPageNum }}</text>
|
|
27
|
+
</view>
|
|
28
|
+
<wd-button
|
|
29
|
+
:plain="modelValue < totalPageNum"
|
|
30
|
+
type="info"
|
|
31
|
+
size="small"
|
|
32
|
+
:disabled="modelValue >= totalPageNum"
|
|
33
|
+
custom-class="wd-pager__nav"
|
|
34
|
+
@click="add"
|
|
35
|
+
>
|
|
36
|
+
<text v-if="!showIcon">{{ nextText || translate('next') }}</text>
|
|
37
|
+
<wd-icon
|
|
38
|
+
v-else
|
|
39
|
+
:custom-class="`wd-pager__icon ${modelValue >= totalPageNum ? 'wd-pager__nav--disabled' : 'wd-pager__nav--active'}`"
|
|
40
|
+
name="arrow-right"
|
|
41
|
+
></wd-icon>
|
|
42
|
+
</wd-button>
|
|
43
|
+
</view>
|
|
44
|
+
<view class="wd-pager__message" v-if="showMessage">
|
|
45
|
+
<text>{{ translate('page', modelValue) }},</text>
|
|
46
|
+
<text v-if="total">{{ translate('total', total) }},</text>
|
|
47
|
+
<text>{{ translate('size', pageSize) }}</text>
|
|
48
|
+
</view>
|
|
49
|
+
</view>
|
|
50
|
+
</template>
|
|
51
|
+
|
|
52
|
+
<script lang="ts">
|
|
53
|
+
export default {
|
|
54
|
+
name: 'wd-pagination',
|
|
55
|
+
options: {
|
|
56
|
+
virtualHost: true,
|
|
57
|
+
addGlobalClass: true,
|
|
58
|
+
styleIsolation: 'shared',
|
|
59
|
+
},
|
|
60
|
+
}
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<script lang="ts" setup>
|
|
64
|
+
import { ref, watch } from 'vue'
|
|
65
|
+
import { useTranslate } from '../composables/useTranslate'
|
|
66
|
+
import { paginationProps } from './types'
|
|
67
|
+
|
|
68
|
+
const { translate } = useTranslate('pagination')
|
|
69
|
+
|
|
70
|
+
const props = defineProps(paginationProps)
|
|
71
|
+
const emit = defineEmits(['change', 'update:modelValue'])
|
|
72
|
+
|
|
73
|
+
const totalPageNum = ref<number>(0) // 总页数
|
|
74
|
+
|
|
75
|
+
watch(
|
|
76
|
+
() => props.totalPage,
|
|
77
|
+
(newValue) => {
|
|
78
|
+
if (!totalPageNum.value && newValue) {
|
|
79
|
+
totalPageNum.value = newValue
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{ immediate: true, deep: true },
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
watch(
|
|
86
|
+
() => props.total,
|
|
87
|
+
() => {
|
|
88
|
+
updateTotalPage()
|
|
89
|
+
},
|
|
90
|
+
{ immediate: true, deep: true },
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
function add() {
|
|
94
|
+
const { modelValue } = props
|
|
95
|
+
if (modelValue > totalPageNum.value - 1) {
|
|
96
|
+
return
|
|
97
|
+
}
|
|
98
|
+
emit('change', { value: modelValue + 1 })
|
|
99
|
+
emit('update:modelValue', modelValue + 1)
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function sub() {
|
|
103
|
+
const { modelValue } = props
|
|
104
|
+
if (modelValue < 2) {
|
|
105
|
+
return
|
|
106
|
+
}
|
|
107
|
+
emit('change', { value: modelValue - 1 })
|
|
108
|
+
emit('update:modelValue', modelValue - 1)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function updateTotalPage() {
|
|
112
|
+
const { total, pageSize } = props
|
|
113
|
+
if (total) {
|
|
114
|
+
totalPageNum.value = Math.ceil(total / pageSize)
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
</script>
|
|
118
|
+
|
|
119
|
+
<style lang="scss" scoped>
|
|
120
|
+
@import './index';
|
|
121
|
+
</style>
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
@import '../common/abstracts/variable';
|
|
2
|
+
@import '../common/abstracts/mixin';
|
|
3
|
+
|
|
4
|
+
.wot-theme-dark {
|
|
5
|
+
@include b(password-input) {
|
|
6
|
+
@include e(item) {
|
|
7
|
+
color: $-dark-color;
|
|
8
|
+
background: $-dark-background2;
|
|
9
|
+
|
|
10
|
+
@include when(border) {
|
|
11
|
+
border-color: $-dark-border-color;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include e(mask) {
|
|
16
|
+
background-color: $-dark-color;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@include e(cursor) {
|
|
20
|
+
background-color: $-dark-color;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include e(info) {
|
|
24
|
+
color: $-dark-color;
|
|
25
|
+
|
|
26
|
+
@include when(border) {
|
|
27
|
+
color: $-dark-color2;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@include b(password-input) {
|
|
34
|
+
position: relative;
|
|
35
|
+
margin: 0 $-password-input-margin;
|
|
36
|
+
user-select: none;
|
|
37
|
+
|
|
38
|
+
@include e(security) {
|
|
39
|
+
display: flex;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: $-password-input-height;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@include e(item) {
|
|
46
|
+
position: relative;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex: 1;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
height: 100%;
|
|
52
|
+
font-size: $-password-input-font-size;
|
|
53
|
+
line-height: 1.2;
|
|
54
|
+
color: $-password-input-text-color;
|
|
55
|
+
background: $-password-input-background;
|
|
56
|
+
|
|
57
|
+
@include when(border) {
|
|
58
|
+
border: 1px solid $-password-input-border-color;
|
|
59
|
+
|
|
60
|
+
&:not(:last-child) {
|
|
61
|
+
border-right: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:first-child {
|
|
65
|
+
border-top-left-radius: $-password-input-radius;
|
|
66
|
+
border-bottom-left-radius: $-password-input-radius;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:last-child {
|
|
70
|
+
border-top-right-radius: $-password-input-radius;
|
|
71
|
+
border-bottom-right-radius: $-password-input-radius;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@include e(mask) {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 50%;
|
|
79
|
+
left: 50%;
|
|
80
|
+
width: $-password-input-dot-size;
|
|
81
|
+
height: $-password-input-dot-size;
|
|
82
|
+
visibility: hidden;
|
|
83
|
+
background: $-password-input-dot-color;
|
|
84
|
+
border-radius: 100%;
|
|
85
|
+
transform: translate(-50%, -50%);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@include e(cursor) {
|
|
89
|
+
position: absolute;
|
|
90
|
+
top: 50%;
|
|
91
|
+
left: 50%;
|
|
92
|
+
width: $-password-input-cursor-width;
|
|
93
|
+
height: $-password-input-cursor-height;
|
|
94
|
+
background: $-password-input-cursor-color;
|
|
95
|
+
transform: translate(-50%, -50%);
|
|
96
|
+
animation: $-password-input-cursor-duration cursor-flicker infinite;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@include e(info) {
|
|
100
|
+
margin-top: $-password-input-margin;
|
|
101
|
+
font-size: $-password-input-info-font-size;
|
|
102
|
+
color: $-password-input-info-color;
|
|
103
|
+
text-align: center;
|
|
104
|
+
|
|
105
|
+
@include when(error) {
|
|
106
|
+
color: $-password-input-error-info-color;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@keyframes cursor-flicker {
|
|
112
|
+
from {
|
|
113
|
+
opacity: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
50% {
|
|
117
|
+
opacity: 1;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
100% {
|
|
121
|
+
opacity: 0;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: weisheng
|
|
3
|
+
* @Date: 2024-03-15 20:40:34
|
|
4
|
+
* @LastEditTime: 2024-03-18 15:12:17
|
|
5
|
+
* @LastEditors: weisheng
|
|
6
|
+
* @Description:
|
|
7
|
+
* @FilePath: \wot-design-uni\src\uni_modules\wot-design-uni\components\wd-password-input\types.ts
|
|
8
|
+
* 记得注释
|
|
9
|
+
*/
|
|
10
|
+
import {
|
|
11
|
+
baseProps,
|
|
12
|
+
makeBooleanProp,
|
|
13
|
+
makeNumberProp,
|
|
14
|
+
makeNumericProp,
|
|
15
|
+
makeStringProp,
|
|
16
|
+
} from '../common/props'
|
|
17
|
+
|
|
18
|
+
export const passwordInputProps = {
|
|
19
|
+
...baseProps,
|
|
20
|
+
/**
|
|
21
|
+
* 绑定的值
|
|
22
|
+
*/
|
|
23
|
+
modelValue: makeStringProp(''),
|
|
24
|
+
/**
|
|
25
|
+
* 是否隐藏密码内容
|
|
26
|
+
*/
|
|
27
|
+
mask: makeBooleanProp(true),
|
|
28
|
+
/**
|
|
29
|
+
* 输入框下方文字提示
|
|
30
|
+
*/
|
|
31
|
+
info: makeStringProp(''),
|
|
32
|
+
/**
|
|
33
|
+
* 输入框下方错误提示
|
|
34
|
+
*/
|
|
35
|
+
errorInfo: makeStringProp(''),
|
|
36
|
+
/**
|
|
37
|
+
* 输入框格子之间的间距,如 20px 2em,默认单位为 px
|
|
38
|
+
*/
|
|
39
|
+
gutter: makeNumericProp(0),
|
|
40
|
+
/**
|
|
41
|
+
* 密码最大长度
|
|
42
|
+
*/
|
|
43
|
+
length: makeNumberProp(6),
|
|
44
|
+
/**
|
|
45
|
+
* 是否已聚焦,聚焦时会显示光标
|
|
46
|
+
*/
|
|
47
|
+
focused: makeBooleanProp(true),
|
|
48
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view :class="`wd-password-input ${customClass}`" :style="customStyle">
|
|
3
|
+
<view @touchstart="onTouchStart" class="wd-password-input__security">
|
|
4
|
+
<view
|
|
5
|
+
v-for="(_, index) in length"
|
|
6
|
+
:key="index"
|
|
7
|
+
:class="`wd-password-input__item ${gutter ? '' : 'is-border'}`"
|
|
8
|
+
:style="{ marginLeft: index !== 0 && gutter ? addUnit(gutter) : 0 }"
|
|
9
|
+
>
|
|
10
|
+
<view
|
|
11
|
+
v-if="focused && index === modelValue.length"
|
|
12
|
+
class="wd-password-input__cursor"
|
|
13
|
+
></view>
|
|
14
|
+
<view v-else :class="`wd-password-input__value`">
|
|
15
|
+
<view
|
|
16
|
+
:style="{ visibility: mask && modelValue[index] ? 'visible' : 'hidden' }"
|
|
17
|
+
class="wd-password-input__mask"
|
|
18
|
+
></view>
|
|
19
|
+
<text v-if="!mask && modelValue[index]">{{ modelValue[index] }}</text>
|
|
20
|
+
</view>
|
|
21
|
+
</view>
|
|
22
|
+
</view>
|
|
23
|
+
<view
|
|
24
|
+
v-if="info || errorInfo"
|
|
25
|
+
:class="`wd-password-input__info ${errorInfo ? 'is-error' : ''}`"
|
|
26
|
+
>
|
|
27
|
+
{{ errorInfo || info }}
|
|
28
|
+
</view>
|
|
29
|
+
</view>
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
<script lang="ts">
|
|
33
|
+
export default {
|
|
34
|
+
name: 'wd-password-input',
|
|
35
|
+
options: {
|
|
36
|
+
virtualHost: true,
|
|
37
|
+
addGlobalClass: true,
|
|
38
|
+
styleIsolation: 'shared',
|
|
39
|
+
},
|
|
40
|
+
}
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<script lang="ts" setup>
|
|
44
|
+
import { addUnit } from '../common/util'
|
|
45
|
+
import { passwordInputProps } from './types'
|
|
46
|
+
|
|
47
|
+
defineProps(passwordInputProps)
|
|
48
|
+
|
|
49
|
+
const emit = defineEmits(['focus'])
|
|
50
|
+
|
|
51
|
+
function onTouchStart(event: Event) {
|
|
52
|
+
emit('focus', event)
|
|
53
|
+
}
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<style lang="scss" scoped>
|
|
57
|
+
@import './index';
|
|
58
|
+
</style>
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
@import './../common/abstracts/_mixin';
|
|
2
|
+
@import './../common/abstracts/variable';
|
|
3
|
+
|
|
4
|
+
.wot-theme-dark {
|
|
5
|
+
@include b(picker) {
|
|
6
|
+
@include when(border) {
|
|
7
|
+
.wd-picker__cell {
|
|
8
|
+
@include halfPixelBorder('top', $-cell-padding, $-dark-border-color);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@include e(title) {
|
|
13
|
+
color: $-dark-color;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@include e(label) {
|
|
17
|
+
color: $-dark-color;
|
|
18
|
+
}
|
|
19
|
+
@include e(value) {
|
|
20
|
+
color: $-dark-color;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include e(placeholder) {
|
|
24
|
+
color: $-dark-color-gray;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:deep(.wd-picker__arrow) {
|
|
28
|
+
color: $-dark-color;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include e(cell) {
|
|
32
|
+
color: $-dark-color;
|
|
33
|
+
background-color: $-dark-background2;
|
|
34
|
+
@include when(disabled) {
|
|
35
|
+
.wd-picker__value {
|
|
36
|
+
color: $-dark-color3;
|
|
37
|
+
}
|
|
38
|
+
.wd-picker__placeholder {
|
|
39
|
+
color: $-dark-color-gray;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include when(disabled) {
|
|
45
|
+
.wd-picker__value {
|
|
46
|
+
color: $-dark-color3;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.wd-picker__placeholder {
|
|
50
|
+
color: $-dark-color-gray;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@include e(action) {
|
|
55
|
+
@include m(cancel) {
|
|
56
|
+
color: $-dark-color;
|
|
57
|
+
}
|
|
58
|
+
@include when(loading) {
|
|
59
|
+
color: $-dark-color3;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@include b(picker) {
|
|
66
|
+
@include edeep(popup) {
|
|
67
|
+
border-radius: 16px 16px 0px 0px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@include when(border) {
|
|
71
|
+
.wd-picker__cell {
|
|
72
|
+
@include halfPixelBorder('top', $-cell-padding);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
@include when(large) {
|
|
76
|
+
.wd-picker__cell {
|
|
77
|
+
font-size: $-cell-title-fs-large;
|
|
78
|
+
}
|
|
79
|
+
:deep(.wd-picker__arrow) {
|
|
80
|
+
font-size: $-cell-icon-size-large;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
@include when(error) {
|
|
84
|
+
.wd-picker__value,
|
|
85
|
+
:deep(.wd-picker__arrow) {
|
|
86
|
+
color: $-input-error-color;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
@include when(align-right) {
|
|
90
|
+
.wd-picker__value {
|
|
91
|
+
text-align: right;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
@include e(cell) {
|
|
95
|
+
position: relative;
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: flex-start;
|
|
98
|
+
padding: $-cell-wrapper-padding $-cell-padding;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
font-size: $-cell-title-fs;
|
|
101
|
+
line-height: $-cell-line-height;
|
|
102
|
+
color: $-cell-title-color;
|
|
103
|
+
text-decoration: none;
|
|
104
|
+
background-color: $-color-white;
|
|
105
|
+
|
|
106
|
+
@include when(disabled) {
|
|
107
|
+
.wd-picker__value {
|
|
108
|
+
color: $-input-disabled-color;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@include when(disabled) {
|
|
114
|
+
.wd-picker__value {
|
|
115
|
+
color: $-picker-column-disabled-color;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@include e(error-message) {
|
|
120
|
+
font-size: $-form-item-error-message-font-size;
|
|
121
|
+
line-height: $-form-item-error-message-line-height;
|
|
122
|
+
color: $-form-item-error-message-color;
|
|
123
|
+
text-align: left;
|
|
124
|
+
vertical-align: middle;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@include e(label) {
|
|
128
|
+
position: relative;
|
|
129
|
+
box-sizing: border-box;
|
|
130
|
+
width: $-input-cell-label-width;
|
|
131
|
+
margin-right: $-cell-padding;
|
|
132
|
+
color: $-cell-title-color;
|
|
133
|
+
|
|
134
|
+
@include when(required) {
|
|
135
|
+
padding-left: 12px;
|
|
136
|
+
|
|
137
|
+
&::after {
|
|
138
|
+
position: absolute;
|
|
139
|
+
top: 2px;
|
|
140
|
+
left: 0;
|
|
141
|
+
font-size: $-cell-required-size;
|
|
142
|
+
line-height: 1.1;
|
|
143
|
+
color: $-cell-required-color;
|
|
144
|
+
content: '*';
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@include e(value-wraper) {
|
|
150
|
+
display: flex;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@include e(value) {
|
|
154
|
+
flex: 1;
|
|
155
|
+
margin-right: 10px;
|
|
156
|
+
color: $-cell-value-color;
|
|
157
|
+
|
|
158
|
+
@include when(ellipsis) {
|
|
159
|
+
@include lineEllipsis;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@include e(body) {
|
|
164
|
+
flex: 1;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@include e(placeholder) {
|
|
168
|
+
color: $-input-placeholder-color;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@include edeep(arrow) {
|
|
172
|
+
display: block;
|
|
173
|
+
font-size: $-cell-icon-size;
|
|
174
|
+
line-height: $-cell-line-height;
|
|
175
|
+
color: $-cell-arrow-color;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@include e(wraper) {
|
|
179
|
+
padding-bottom: var(--window-bottom);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@include e(toolbar) {
|
|
183
|
+
position: relative;
|
|
184
|
+
box-sizing: border-box;
|
|
185
|
+
display: flex;
|
|
186
|
+
align-items: center;
|
|
187
|
+
justify-content: space-between;
|
|
188
|
+
height: $-picker-toolbar-height;
|
|
189
|
+
font-size: $-picker-toolbar-fs;
|
|
190
|
+
line-height: $-picker-action-height;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@include e(action) {
|
|
194
|
+
display: block;
|
|
195
|
+
padding: 24px 15px 14px 15px;
|
|
196
|
+
font-size: $-picker-toolbar-fs;
|
|
197
|
+
color: $-picker-toolbar-finish-color;
|
|
198
|
+
background: transparent;
|
|
199
|
+
border: none;
|
|
200
|
+
outline: none;
|
|
201
|
+
|
|
202
|
+
@include m(cancel) {
|
|
203
|
+
color: $-picker-toolbar-cancel-color;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@include when(loading) {
|
|
207
|
+
color: $-picker-loading-button-color;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
@include e(title) {
|
|
211
|
+
display: block;
|
|
212
|
+
padding-top: 10px;
|
|
213
|
+
font-weight: $-action-sheet-weight;
|
|
214
|
+
color: $-picker-toolbar-title-color;
|
|
215
|
+
}
|
|
216
|
+
}
|