oxy-uni-ui 1.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/LICENSE +21 -0
- package/README.md +13 -0
- package/attributes.json +1 -0
- package/components/common/AbortablePromise.ts +28 -0
- package/components/common/abstracts/_config.scss +7 -0
- package/components/common/abstracts/_function.scss +89 -0
- package/components/common/abstracts/_mixin.scss +385 -0
- package/components/common/abstracts/variable.scss +974 -0
- package/components/common/base64.ts +29 -0
- package/components/common/canvasHelper.ts +49 -0
- package/components/common/clickoutside.ts +25 -0
- package/components/common/event.ts +8 -0
- package/components/common/interceptor.ts +43 -0
- package/components/common/props.ts +51 -0
- package/components/common/util.ts +778 -0
- package/components/composables/index.ts +11 -0
- package/components/composables/useCell.ts +13 -0
- package/components/composables/useChildren.ts +113 -0
- package/components/composables/useCountDown.ts +138 -0
- package/components/composables/useLockScroll.ts +37 -0
- package/components/composables/useParent.ts +41 -0
- package/components/composables/usePopover.ts +176 -0
- package/components/composables/useQueue.ts +52 -0
- package/components/composables/useRaf.ts +37 -0
- package/components/composables/useTouch.ts +43 -0
- package/components/composables/useTranslate.ts +12 -0
- package/components/composables/useUpload.ts +364 -0
- package/components/oxy-action-sheet/index.scss +204 -0
- package/components/oxy-action-sheet/oxy-action-sheet.vue +155 -0
- package/components/oxy-action-sheet/types.ts +118 -0
- package/components/oxy-backtop/index.scss +25 -0
- package/components/oxy-backtop/oxy-backtop.vue +45 -0
- package/components/oxy-backtop/types.ts +37 -0
- package/components/oxy-badge/index.scss +63 -0
- package/components/oxy-badge/oxy-badge.vue +61 -0
- package/components/oxy-badge/types.ts +41 -0
- package/components/oxy-button/index.scss +336 -0
- package/components/oxy-button/oxy-button.vue +195 -0
- package/components/oxy-button/types.ts +133 -0
- package/components/oxy-calendar/index.scss +158 -0
- package/components/oxy-calendar/oxy-calendar.vue +451 -0
- package/components/oxy-calendar/types.ts +217 -0
- package/components/oxy-calendar-view/index.scss +0 -0
- package/components/oxy-calendar-view/month/index.scss +162 -0
- package/components/oxy-calendar-view/month/month.vue +389 -0
- package/components/oxy-calendar-view/month/types.ts +20 -0
- package/components/oxy-calendar-view/monthPanel/index.scss +89 -0
- package/components/oxy-calendar-view/monthPanel/month-panel.vue +374 -0
- package/components/oxy-calendar-view/monthPanel/types.ts +48 -0
- package/components/oxy-calendar-view/oxy-calendar-view.vue +111 -0
- package/components/oxy-calendar-view/types.ts +109 -0
- package/components/oxy-calendar-view/utils.ts +429 -0
- package/components/oxy-calendar-view/year/index.scss +153 -0
- package/components/oxy-calendar-view/year/types.ts +20 -0
- package/components/oxy-calendar-view/year/year.vue +202 -0
- package/components/oxy-calendar-view/yearPanel/index.scss +24 -0
- package/components/oxy-calendar-view/yearPanel/types.ts +38 -0
- package/components/oxy-calendar-view/yearPanel/year-panel.vue +135 -0
- package/components/oxy-card/index.scss +71 -0
- package/components/oxy-card/oxy-card.vue +37 -0
- package/components/oxy-card/types.ts +30 -0
- package/components/oxy-cell/index.scss +206 -0
- package/components/oxy-cell/oxy-cell.vue +140 -0
- package/components/oxy-cell/types.ts +111 -0
- package/components/oxy-cell-group/index.scss +56 -0
- package/components/oxy-cell-group/oxy-cell-group.vue +45 -0
- package/components/oxy-cell-group/types.ts +32 -0
- package/components/oxy-checkbox/index.scss +285 -0
- package/components/oxy-checkbox/oxy-checkbox.vue +177 -0
- package/components/oxy-checkbox/types.ts +68 -0
- package/components/oxy-checkbox-group/index.scss +20 -0
- package/components/oxy-checkbox-group/oxy-checkbox-group.vue +100 -0
- package/components/oxy-checkbox-group/types.ts +59 -0
- package/components/oxy-circle/index.scss +18 -0
- package/components/oxy-circle/oxy-circle.vue +296 -0
- package/components/oxy-circle/types.ts +54 -0
- package/components/oxy-col/index.scss +19 -0
- package/components/oxy-col/oxy-col.vue +49 -0
- package/components/oxy-col/types.ts +15 -0
- package/components/oxy-col-picker/index.scss +168 -0
- package/components/oxy-col-picker/oxy-col-picker.vue +498 -0
- package/components/oxy-col-picker/types.ts +166 -0
- package/components/oxy-collapse/index.scss +55 -0
- package/components/oxy-collapse/oxy-collapse.vue +151 -0
- package/components/oxy-collapse/types.ts +58 -0
- package/components/oxy-collapse-item/index.scss +90 -0
- package/components/oxy-collapse-item/oxy-collapse-item.vue +171 -0
- package/components/oxy-collapse-item/types.ts +48 -0
- package/components/oxy-config-provider/oxy-config-provider.vue +73 -0
- package/components/oxy-config-provider/types.ts +1052 -0
- package/components/oxy-count-down/index.scss +15 -0
- package/components/oxy-count-down/oxy-count-down.vue +60 -0
- package/components/oxy-count-down/types.ts +41 -0
- package/components/oxy-count-down/utils.ts +52 -0
- package/components/oxy-count-to/index.scss +7 -0
- package/components/oxy-count-to/oxy-count-to.vue +125 -0
- package/components/oxy-count-to/types.ts +117 -0
- package/components/oxy-curtain/index.scss +85 -0
- package/components/oxy-curtain/oxy-curtain.vue +172 -0
- package/components/oxy-curtain/types.ts +73 -0
- package/components/oxy-datetime-picker/index.scss +164 -0
- package/components/oxy-datetime-picker/oxy-datetime-picker.vue +801 -0
- package/components/oxy-datetime-picker/types.ts +231 -0
- package/components/oxy-datetime-picker-view/oxy-datetime-picker-view.vue +499 -0
- package/components/oxy-datetime-picker-view/types.ts +120 -0
- package/components/oxy-datetime-picker-view/util.ts +30 -0
- package/components/oxy-design-uni/oxy-design-uni.vue +5 -0
- package/components/oxy-divider/index.scss +100 -0
- package/components/oxy-divider/oxy-divider.vue +52 -0
- package/components/oxy-divider/types.ts +35 -0
- package/components/oxy-drop-menu/index.scss +86 -0
- package/components/oxy-drop-menu/oxy-drop-menu.vue +166 -0
- package/components/oxy-drop-menu/types.ts +38 -0
- package/components/oxy-drop-menu-item/index.scss +66 -0
- package/components/oxy-drop-menu-item/oxy-drop-menu-item.vue +221 -0
- package/components/oxy-drop-menu-item/types.ts +94 -0
- package/components/oxy-fab/index.scss +116 -0
- package/components/oxy-fab/oxy-fab.vue +276 -0
- package/components/oxy-fab/types.ts +66 -0
- package/components/oxy-floating-panel/index.scss +64 -0
- package/components/oxy-floating-panel/oxy-floating-panel.vue +140 -0
- package/components/oxy-floating-panel/type.ts +32 -0
- package/components/oxy-form/oxy-form.vue +207 -0
- package/components/oxy-form/types.ts +76 -0
- package/components/oxy-form-item/index.scss +18 -0
- package/components/oxy-form-item/oxy-form-item.vue +56 -0
- package/components/oxy-form-item/types.ts +16 -0
- package/components/oxy-gap/index.scss +9 -0
- package/components/oxy-gap/oxy-gap.vue +36 -0
- package/components/oxy-gap/types.ts +17 -0
- package/components/oxy-grid/index.scss +9 -0
- package/components/oxy-grid/oxy-grid.vue +106 -0
- package/components/oxy-grid/types.ts +50 -0
- package/components/oxy-grid-item/index.scss +148 -0
- package/components/oxy-grid-item/oxy-grid-item.vue +176 -0
- package/components/oxy-grid-item/types.ts +77 -0
- package/components/oxy-icon/index.scss +1230 -0
- package/components/oxy-icon/oxy-icon.vue +53 -0
- package/components/oxy-icon/oxy-icons.ttf +0 -0
- package/components/oxy-icon/types.ts +21 -0
- package/components/oxy-img/index.scss +19 -0
- package/components/oxy-img/oxy-img.vue +81 -0
- package/components/oxy-img/types.ts +61 -0
- package/components/oxy-img-cropper/index.scss +231 -0
- package/components/oxy-img-cropper/oxy-img-cropper.vue +664 -0
- package/components/oxy-img-cropper/types.ts +76 -0
- package/components/oxy-index-anchor/index.scss +35 -0
- package/components/oxy-index-anchor/oxy-index-anchor.vue +55 -0
- package/components/oxy-index-anchor/type.ts +9 -0
- package/components/oxy-index-bar/index.scss +39 -0
- package/components/oxy-index-bar/oxy-index-bar.vue +156 -0
- package/components/oxy-index-bar/type.ts +23 -0
- package/components/oxy-input/index.scss +323 -0
- package/components/oxy-input/oxy-input.vue +300 -0
- package/components/oxy-input/placeholder.scss +21 -0
- package/components/oxy-input/types.ts +189 -0
- package/components/oxy-input-number/index.scss +132 -0
- package/components/oxy-input-number/oxy-input-number.vue +464 -0
- package/components/oxy-input-number/types.ts +101 -0
- package/components/oxy-keyboard/constants.ts +81 -0
- package/components/oxy-keyboard/index.scss +102 -0
- package/components/oxy-keyboard/key/index.scss +79 -0
- package/components/oxy-keyboard/key/index.vue +76 -0
- package/components/oxy-keyboard/key/types.ts +11 -0
- package/components/oxy-keyboard/oxy-keyboard.vue +206 -0
- package/components/oxy-keyboard/types.ts +92 -0
- package/components/oxy-loading/index.scss +37 -0
- package/components/oxy-loading/oxy-loading.vue +90 -0
- package/components/oxy-loading/types.ts +22 -0
- package/components/oxy-loadmore/index.scss +39 -0
- package/components/oxy-loadmore/oxy-loadmore.vue +59 -0
- package/components/oxy-loadmore/types.ts +30 -0
- package/components/oxy-message-box/index.scss +108 -0
- package/components/oxy-message-box/index.ts +87 -0
- package/components/oxy-message-box/oxy-message-box.vue +291 -0
- package/components/oxy-message-box/types.ts +132 -0
- package/components/oxy-navbar/index.scss +93 -0
- package/components/oxy-navbar/oxy-navbar.vue +111 -0
- package/components/oxy-navbar/types.ts +52 -0
- package/components/oxy-navbar-capsule/index.scss +66 -0
- package/components/oxy-navbar-capsule/oxy-navbar-capsule.vue +35 -0
- package/components/oxy-navbar-capsule/types.ts +8 -0
- package/components/oxy-notice-bar/index.scss +68 -0
- package/components/oxy-notice-bar/oxy-notice-bar.vue +266 -0
- package/components/oxy-notice-bar/types.ts +67 -0
- package/components/oxy-notify/index.scss +34 -0
- package/components/oxy-notify/index.ts +61 -0
- package/components/oxy-notify/oxy-notify.vue +85 -0
- package/components/oxy-notify/types.ts +66 -0
- package/components/oxy-number-keyboard/index.scss +78 -0
- package/components/oxy-number-keyboard/key/index.scss +81 -0
- package/components/oxy-number-keyboard/key/index.vue +78 -0
- package/components/oxy-number-keyboard/key/types.ts +11 -0
- package/components/oxy-number-keyboard/oxy-number-keyboard.vue +151 -0
- package/components/oxy-number-keyboard/types.ts +83 -0
- package/components/oxy-overlay/index.scss +17 -0
- package/components/oxy-overlay/oxy-overlay.vue +47 -0
- package/components/oxy-overlay/types.ts +25 -0
- package/components/oxy-pagination/index.scss +57 -0
- package/components/oxy-pagination/oxy-pagination.vue +110 -0
- package/components/oxy-pagination/types.ts +41 -0
- package/components/oxy-password-input/index.scss +124 -0
- package/components/oxy-password-input/oxy-password-input.vue +49 -0
- package/components/oxy-password-input/types.ts +33 -0
- package/components/oxy-picker/index.scss +110 -0
- package/components/oxy-picker/oxy-picker.vue +412 -0
- package/components/oxy-picker/types.ts +189 -0
- package/components/oxy-picker-view/index.scss +92 -0
- package/components/oxy-picker-view/oxy-picker-view.vue +369 -0
- package/components/oxy-picker-view/types.ts +152 -0
- package/components/oxy-popover/index.scss +116 -0
- package/components/oxy-popover/oxy-popover.vue +180 -0
- package/components/oxy-popover/types.ts +69 -0
- package/components/oxy-popup/index.scss +84 -0
- package/components/oxy-popup/oxy-popup.vue +169 -0
- package/components/oxy-popup/types.ts +95 -0
- package/components/oxy-progress/index.scss +68 -0
- package/components/oxy-progress/oxy-progress.vue +197 -0
- package/components/oxy-progress/types.ts +35 -0
- package/components/oxy-radio/index.scss +301 -0
- package/components/oxy-radio/oxy-radio.vue +118 -0
- package/components/oxy-radio/types.ts +42 -0
- package/components/oxy-radio-group/index.scss +23 -0
- package/components/oxy-radio-group/oxy-radio-group.vue +51 -0
- package/components/oxy-radio-group/types.ts +39 -0
- package/components/oxy-rate/index.scss +25 -0
- package/components/oxy-rate/oxy-rate.vue +178 -0
- package/components/oxy-rate/types.ts +103 -0
- package/components/oxy-resize/index.scss +27 -0
- package/components/oxy-resize/oxy-resize.vue +144 -0
- package/components/oxy-resize/types.ts +6 -0
- package/components/oxy-root-portal/oxy-root-portal.vue +50 -0
- package/components/oxy-row/index.scss +10 -0
- package/components/oxy-row/oxy-row.vue +42 -0
- package/components/oxy-row/types.ts +16 -0
- package/components/oxy-search/index.scss +148 -0
- package/components/oxy-search/oxy-search.vue +187 -0
- package/components/oxy-search/types.ts +93 -0
- package/components/oxy-segmented/index.scss +101 -0
- package/components/oxy-segmented/oxy-segmented.vue +143 -0
- package/components/oxy-segmented/types.ts +71 -0
- package/components/oxy-select-picker/index.scss +102 -0
- package/components/oxy-select-picker/oxy-select-picker.vue +432 -0
- package/components/oxy-select-picker/types.ts +123 -0
- package/components/oxy-sidebar/index.scss +25 -0
- package/components/oxy-sidebar/oxy-sidebar.vue +63 -0
- package/components/oxy-sidebar/types.ts +38 -0
- package/components/oxy-sidebar-item/index.scss +97 -0
- package/components/oxy-sidebar-item/oxy-sidebar-item.vue +116 -0
- package/components/oxy-sidebar-item/types.ts +31 -0
- package/components/oxy-signature/index.scss +31 -0
- package/components/oxy-signature/oxy-signature.vue +630 -0
- package/components/oxy-signature/types.ts +108 -0
- package/components/oxy-skeleton/index.scss +96 -0
- package/components/oxy-skeleton/index.ts +1 -0
- package/components/oxy-skeleton/oxy-skeleton.vue +110 -0
- package/components/oxy-skeleton/types.ts +69 -0
- package/components/oxy-slider/index.scss +98 -0
- package/components/oxy-slider/oxy-slider.vue +356 -0
- package/components/oxy-slider/types.ts +138 -0
- package/components/oxy-sort-button/index.scss +89 -0
- package/components/oxy-sort-button/oxy-sort-button.vue +69 -0
- package/components/oxy-sort-button/types.ts +43 -0
- package/components/oxy-status-tip/images/collect.png +0 -0
- package/components/oxy-status-tip/images/content.png +0 -0
- package/components/oxy-status-tip/images/network.png +0 -0
- package/components/oxy-status-tip/images/search.png +0 -0
- package/components/oxy-status-tip/index.scss +37 -0
- package/components/oxy-status-tip/oxy-status-tip.vue +71 -0
- package/components/oxy-status-tip/types.ts +50 -0
- package/components/oxy-step/index.scss +235 -0
- package/components/oxy-step/oxy-step.vue +150 -0
- package/components/oxy-step/types.ts +33 -0
- package/components/oxy-steps/index.scss +10 -0
- package/components/oxy-steps/oxy-steps.vue +28 -0
- package/components/oxy-steps/types.ts +50 -0
- package/components/oxy-sticky/index.scss +9 -0
- package/components/oxy-sticky/oxy-sticky.vue +190 -0
- package/components/oxy-sticky/types.ts +13 -0
- package/components/oxy-sticky-box/index.scss +6 -0
- package/components/oxy-sticky-box/oxy-sticky-box.vue +155 -0
- package/components/oxy-sticky-box/types.ts +11 -0
- package/components/oxy-swipe-action/index.scss +22 -0
- package/components/oxy-swipe-action/oxy-swipe-action.vue +294 -0
- package/components/oxy-swipe-action/types.ts +40 -0
- package/components/oxy-swiper/index.scss +53 -0
- package/components/oxy-swiper/oxy-swiper.vue +318 -0
- package/components/oxy-swiper/types.ts +264 -0
- package/components/oxy-swiper-nav/index.scss +159 -0
- package/components/oxy-swiper-nav/oxy-swiper-nav.vue +37 -0
- package/components/oxy-swiper-nav/types.ts +42 -0
- package/components/oxy-switch/index.scss +58 -0
- package/components/oxy-switch/oxy-switch.vue +83 -0
- package/components/oxy-switch/types.ts +58 -0
- package/components/oxy-tab/index.scss +16 -0
- package/components/oxy-tab/oxy-tab.vue +88 -0
- package/components/oxy-tab/types.ts +30 -0
- package/components/oxy-tabbar/index.scss +62 -0
- package/components/oxy-tabbar/oxy-tabbar.vue +91 -0
- package/components/oxy-tabbar/types.ts +73 -0
- package/components/oxy-tabbar-item/index.scss +55 -0
- package/components/oxy-tabbar-item/oxy-tabbar-item.vue +99 -0
- package/components/oxy-tabbar-item/types.ts +51 -0
- package/components/oxy-table/index.scss +163 -0
- package/components/oxy-table/oxy-table.vue +283 -0
- package/components/oxy-table/types.ts +58 -0
- package/components/oxy-table-col/index.scss +46 -0
- package/components/oxy-table-col/oxy-table-col.vue +149 -0
- package/components/oxy-table-col/types.ts +54 -0
- package/components/oxy-tabs/index.scss +299 -0
- package/components/oxy-tabs/oxy-tabs.vue +443 -0
- package/components/oxy-tabs/types.ts +107 -0
- package/components/oxy-tag/index.scss +115 -0
- package/components/oxy-tag/oxy-tag.vue +148 -0
- package/components/oxy-tag/types.ts +81 -0
- package/components/oxy-text/index.scss +37 -0
- package/components/oxy-text/oxy-text.vue +139 -0
- package/components/oxy-text/types.ts +98 -0
- package/components/oxy-textarea/index.scss +340 -0
- package/components/oxy-textarea/oxy-textarea.vue +296 -0
- package/components/oxy-textarea/placeholder.scss +20 -0
- package/components/oxy-textarea/types.ts +288 -0
- package/components/oxy-toast/index.scss +75 -0
- package/components/oxy-toast/index.ts +92 -0
- package/components/oxy-toast/oxy-toast.vue +198 -0
- package/components/oxy-toast/types.ts +181 -0
- package/components/oxy-tooltip/index.scss +66 -0
- package/components/oxy-tooltip/oxy-tooltip.vue +141 -0
- package/components/oxy-tooltip/types.ts +107 -0
- package/components/oxy-transition/index.scss +95 -0
- package/components/oxy-transition/oxy-transition.vue +232 -0
- package/components/oxy-transition/types.ts +98 -0
- package/components/oxy-upload/index.scss +175 -0
- package/components/oxy-upload/oxy-upload.vue +673 -0
- package/components/oxy-upload/types.ts +391 -0
- package/components/oxy-video-preview/index.scss +34 -0
- package/components/oxy-video-preview/oxy-video-preview.vue +72 -0
- package/components/oxy-video-preview/types.ts +23 -0
- package/components/oxy-watermark/index.scss +18 -0
- package/components/oxy-watermark/oxy-watermark.vue +486 -0
- package/components/oxy-watermark/types.ts +76 -0
- package/dayjs/constant.js +26 -0
- package/dayjs/index.d.ts +430 -0
- package/dayjs/index.js +542 -0
- package/dayjs/locale/en.js +13 -0
- package/dayjs/utils.js +59 -0
- package/global.d.ts +101 -0
- package/index.ts +12 -0
- package/locale/index.ts +32 -0
- package/locale/lang/ar-SA.ts +133 -0
- package/locale/lang/en-US.ts +133 -0
- package/locale/lang/zh-CN.ts +137 -0
- package/package.json +1 -0
- package/tags.json +1 -0
- package/web-types.json +1 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { ComponentPublicInstance, ExtractPropTypes } from 'vue'
|
|
2
|
+
import { baseProps, makeBooleanProp, makeNumberProp, makeNumericProp, makeStringProp } from '../common/props'
|
|
3
|
+
|
|
4
|
+
export const imgCropperProps = {
|
|
5
|
+
...baseProps,
|
|
6
|
+
/**
|
|
7
|
+
* 打开图片裁剪组件
|
|
8
|
+
*/
|
|
9
|
+
modelValue: makeBooleanProp(false),
|
|
10
|
+
/**
|
|
11
|
+
* 取消按钮文案
|
|
12
|
+
*/
|
|
13
|
+
cancelButtonText: String,
|
|
14
|
+
/**
|
|
15
|
+
* 确认按钮文案
|
|
16
|
+
*/
|
|
17
|
+
confirmButtonText: String,
|
|
18
|
+
/**
|
|
19
|
+
* 是否禁用旋转
|
|
20
|
+
*/
|
|
21
|
+
disabledRotate: makeBooleanProp(false),
|
|
22
|
+
/** canvas绘图参数 start **/
|
|
23
|
+
/**
|
|
24
|
+
* 目标文件的类型,wx.canvasToTempFilePath属性介绍
|
|
25
|
+
*/
|
|
26
|
+
fileType: makeStringProp('png'),
|
|
27
|
+
/**
|
|
28
|
+
* 生成的图片质量 wx.canvasToTempFilePath属性介绍
|
|
29
|
+
*/
|
|
30
|
+
quality: makeNumberProp(1),
|
|
31
|
+
/**
|
|
32
|
+
* 设置导出图片尺寸
|
|
33
|
+
*/
|
|
34
|
+
exportScale: makeNumberProp(2),
|
|
35
|
+
/** canvas绘图参数 end **/
|
|
36
|
+
/**
|
|
37
|
+
* 图片源路径
|
|
38
|
+
*/
|
|
39
|
+
imgSrc: makeStringProp(''),
|
|
40
|
+
/**
|
|
41
|
+
* 图片宽
|
|
42
|
+
*/
|
|
43
|
+
imgWidth: makeNumericProp(''),
|
|
44
|
+
/**
|
|
45
|
+
* 图片高
|
|
46
|
+
*/
|
|
47
|
+
imgHeight: makeNumericProp(''),
|
|
48
|
+
/**
|
|
49
|
+
* 最大缩放
|
|
50
|
+
*/
|
|
51
|
+
maxScale: makeNumberProp(3),
|
|
52
|
+
/**
|
|
53
|
+
* 裁剪框宽高比,格式为 width:height
|
|
54
|
+
*/
|
|
55
|
+
aspectRatio: makeStringProp('1:1')
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type ImgCropperProps = ExtractPropTypes<typeof imgCropperProps>
|
|
59
|
+
|
|
60
|
+
export type ImgCropperExpose = {
|
|
61
|
+
/**
|
|
62
|
+
* 逆转是否使用动画
|
|
63
|
+
*/
|
|
64
|
+
revertIsAnimation: (animation: boolean) => void
|
|
65
|
+
/**
|
|
66
|
+
* 初始化图片的大小和角度以及距离
|
|
67
|
+
*/
|
|
68
|
+
resetImg: () => void
|
|
69
|
+
/**
|
|
70
|
+
* 控制旋转角度
|
|
71
|
+
* @param angle 角度
|
|
72
|
+
*/
|
|
73
|
+
setRoate: (angle: number) => void
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type ImgCropperInstance = ComponentPublicInstance<ImgCropperProps, ImgCropperExpose>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@import "./../common/abstracts/_mixin.scss";
|
|
2
|
+
@import "./../common/abstracts/variable.scss";
|
|
3
|
+
|
|
4
|
+
.oxy-theme-dark {
|
|
5
|
+
@include b(index-anchor) {
|
|
6
|
+
background-color: $-color-gray-8;
|
|
7
|
+
color: $-color-white;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// #ifdef MP-DINGTALK
|
|
12
|
+
@include b(index-anchor-ding) {
|
|
13
|
+
|
|
14
|
+
@include when(sticky){
|
|
15
|
+
position: sticky;
|
|
16
|
+
top: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
z-index: 1;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
// #endif
|
|
22
|
+
|
|
23
|
+
@include b(index-anchor) {
|
|
24
|
+
background-color: $-color-gray-2;
|
|
25
|
+
padding: 10px;
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
color: $-color-title;
|
|
28
|
+
|
|
29
|
+
@include when(sticky){
|
|
30
|
+
position: sticky;
|
|
31
|
+
top: 0;
|
|
32
|
+
left: 0;
|
|
33
|
+
z-index: 1;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- #ifdef MP-DINGTALK -->
|
|
3
|
+
<view :class="`oxy-index-anchor-ding ${isSticky ? 'is-sticky' : ''}`">
|
|
4
|
+
<!-- #endif -->
|
|
5
|
+
<view :class="`oxy-index-anchor ${isSticky ? 'is-sticky' : ''} ${customClass}`" :style="customStyle" :id="indexAnchorId">
|
|
6
|
+
<slot>
|
|
7
|
+
{{ index }}
|
|
8
|
+
</slot>
|
|
9
|
+
</view>
|
|
10
|
+
<!-- #ifdef MP-DINGTALK -->
|
|
11
|
+
</view>
|
|
12
|
+
<!-- #endif -->
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script setup lang="ts">
|
|
16
|
+
import { indexAnchorProps } from './type'
|
|
17
|
+
import { onMounted, getCurrentInstance, ref, computed } from 'vue'
|
|
18
|
+
import { indexBarInjectionKey } from '../oxy-index-bar/type'
|
|
19
|
+
import { getRect, isDef, uuid } from '../common/util'
|
|
20
|
+
import { useParent } from '../composables/useParent'
|
|
21
|
+
|
|
22
|
+
const props = defineProps(indexAnchorProps)
|
|
23
|
+
|
|
24
|
+
const { parent: indexBar } = useParent(indexBarInjectionKey)
|
|
25
|
+
|
|
26
|
+
const indexAnchorId = ref<string>(`indexBar${uuid()}`)
|
|
27
|
+
|
|
28
|
+
const { proxy } = getCurrentInstance()!
|
|
29
|
+
|
|
30
|
+
const top = ref<number>(0)
|
|
31
|
+
|
|
32
|
+
const isSticky = computed(() => {
|
|
33
|
+
return indexBar && indexBar.props.sticky && indexBar.anchorState.activeIndex === props.index
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
function getInfo() {
|
|
37
|
+
getRect(`#${indexAnchorId.value}`, false, proxy).then((res) => {
|
|
38
|
+
if (isDef(indexBar)) {
|
|
39
|
+
top.value = Math.floor(res.top!)
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
onMounted(() => {
|
|
45
|
+
getInfo()
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
defineExpose({
|
|
49
|
+
top
|
|
50
|
+
})
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<style lang="scss" scoped>
|
|
54
|
+
@import './index.scss';
|
|
55
|
+
</style>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue'
|
|
2
|
+
import { baseProps, makeRequiredProp } from '../common/props'
|
|
3
|
+
|
|
4
|
+
export const indexAnchorProps = {
|
|
5
|
+
...baseProps,
|
|
6
|
+
index: makeRequiredProp([String, Number])
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type IndexAnchorProps = ExtractPropTypes<typeof indexAnchorProps>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@import "./../common/abstracts/_mixin.scss";
|
|
2
|
+
@import "./../common/abstracts/variable.scss";
|
|
3
|
+
|
|
4
|
+
.oxy-theme-dark {
|
|
5
|
+
@include b(index-bar) {
|
|
6
|
+
@include e(index) {
|
|
7
|
+
color: $-color-white;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@include b(index-bar) {
|
|
13
|
+
position: relative;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
|
|
17
|
+
@include e(content) {
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include e(sidebar) {
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 50%;
|
|
25
|
+
right: 4px;
|
|
26
|
+
transform: translateY(-50%);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@include e(index) {
|
|
30
|
+
font-size: 12px;
|
|
31
|
+
font-weight: $-fw-medium;
|
|
32
|
+
color: $-color-title;
|
|
33
|
+
padding: 4px 6px;
|
|
34
|
+
|
|
35
|
+
@include when(active) {
|
|
36
|
+
color: $-color-theme;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="oxy-index-bar" :id="indexBarId">
|
|
3
|
+
<!-- #ifdef MP-DINGTALK -->
|
|
4
|
+
<view class="oxy-index-bar" :id="indexBarId">
|
|
5
|
+
<!-- #endif -->
|
|
6
|
+
<scroll-view :scrollTop="scrollState.scrollTop" :scroll-y="true" class="oxy-index-bar__content" @scroll="hanleScroll">
|
|
7
|
+
<slot></slot>
|
|
8
|
+
</scroll-view>
|
|
9
|
+
<view
|
|
10
|
+
class="oxy-index-bar__sidebar"
|
|
11
|
+
@touchstart.stop.prevent="handleTouchStart"
|
|
12
|
+
@touchmove.stop.prevent="handleTouchMove"
|
|
13
|
+
@touchend.stop.prevent="handleTouchEnd"
|
|
14
|
+
@touchcancel.stop.prevent="handleTouchEnd"
|
|
15
|
+
>
|
|
16
|
+
<view class="oxy-index-bar__index" :class="{ 'is-active': item.index === state.activeIndex }" v-for="item in children" :key="item.index">
|
|
17
|
+
{{ item.index }}
|
|
18
|
+
</view>
|
|
19
|
+
</view>
|
|
20
|
+
<!-- #ifdef MP-DINGTALK -->
|
|
21
|
+
</view>
|
|
22
|
+
<!-- #endif -->
|
|
23
|
+
</view>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script setup lang="ts">
|
|
27
|
+
import type { AnchorIndex } from './type'
|
|
28
|
+
import { indexBarInjectionKey, indexBarProps } from './type'
|
|
29
|
+
import { ref, getCurrentInstance, onMounted, reactive, nextTick, watch } from 'vue'
|
|
30
|
+
import { getRect, isDef, uuid, pause } from '../common/util'
|
|
31
|
+
import { useChildren } from '../composables/useChildren'
|
|
32
|
+
|
|
33
|
+
const props = defineProps(indexBarProps)
|
|
34
|
+
|
|
35
|
+
const indexBarId = ref<string>(`indexBar${uuid()}`)
|
|
36
|
+
|
|
37
|
+
const { proxy } = getCurrentInstance()!
|
|
38
|
+
|
|
39
|
+
const state = reactive({
|
|
40
|
+
activeIndex: null as AnchorIndex | null
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
const { linkChildren, children } = useChildren(indexBarInjectionKey)
|
|
44
|
+
|
|
45
|
+
linkChildren({ props, anchorState: state })
|
|
46
|
+
|
|
47
|
+
watch(
|
|
48
|
+
() => children,
|
|
49
|
+
(newValue) => {
|
|
50
|
+
if (!newValue.length) {
|
|
51
|
+
state.activeIndex = null // 或者设置为一个默认值,如第一个子项的索引
|
|
52
|
+
return
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (!isDef(state.activeIndex) || !newValue.find((item) => item.index === state.activeIndex)) {
|
|
56
|
+
state.activeIndex = newValue[0].index
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{ deep: true, immediate: true }
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
const scrollState = reactive({
|
|
63
|
+
scrollTop: 0, // 即将滚动到的位置
|
|
64
|
+
prevScrollTop: 0, // 上次记录的位置
|
|
65
|
+
// 滚动距离
|
|
66
|
+
touching: false
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
// 组件距离页面顶部的高度
|
|
70
|
+
let offsetTop = 0
|
|
71
|
+
let sidebarInfo = {
|
|
72
|
+
// 侧边栏距离顶部的高度
|
|
73
|
+
offsetTop: 0,
|
|
74
|
+
// 高度固定24px
|
|
75
|
+
indexHeight: 24
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function init() {
|
|
79
|
+
setTimeout(() => {
|
|
80
|
+
Promise.all([
|
|
81
|
+
getRect(`#${indexBarId.value}`, false, proxy),
|
|
82
|
+
getRect('.oxy-index-bar__sidebar', false, proxy),
|
|
83
|
+
getRect('.oxy-index-bar__index', false, proxy)
|
|
84
|
+
]).then(([bar, sidebar, index]) => {
|
|
85
|
+
offsetTop = bar.top!
|
|
86
|
+
sidebarInfo.offsetTop = sidebar.top!
|
|
87
|
+
sidebarInfo.indexHeight = index.height!
|
|
88
|
+
})
|
|
89
|
+
}, 100)
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
onMounted(() => {
|
|
93
|
+
init()
|
|
94
|
+
})
|
|
95
|
+
|
|
96
|
+
function hanleScroll(scrollEvent: any) {
|
|
97
|
+
if (scrollState.touching) {
|
|
98
|
+
return
|
|
99
|
+
}
|
|
100
|
+
const { detail } = scrollEvent
|
|
101
|
+
const scrolltop = Math.floor(detail.scrollTop)
|
|
102
|
+
const anchor = children.find((item, index) => {
|
|
103
|
+
if (!isDef(children[index + 1])) return true
|
|
104
|
+
if (item.$.exposed!.top.value - offsetTop <= scrolltop && children[index + 1].$.exposed!.top.value - offsetTop > scrolltop) return true
|
|
105
|
+
return false
|
|
106
|
+
})
|
|
107
|
+
if (isDef(anchor) && state.activeIndex !== anchor.index) {
|
|
108
|
+
state.activeIndex = anchor.index
|
|
109
|
+
}
|
|
110
|
+
scrollState.prevScrollTop = scrolltop
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function getAnchorByPageY(pageY: number) {
|
|
114
|
+
const y = pageY - sidebarInfo.offsetTop
|
|
115
|
+
let idx = Math.floor(y / sidebarInfo.indexHeight)
|
|
116
|
+
if (idx < 0) idx = 0
|
|
117
|
+
else if (idx > children.length - 1) idx = children.length - 1
|
|
118
|
+
return children[idx]
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function handleTouchStart() {
|
|
122
|
+
scrollState.touching = true
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function handleTouchMove(e: TouchEvent) {
|
|
126
|
+
const clientY = e.touches[0].pageY
|
|
127
|
+
if (state.activeIndex === getAnchorByPageY(clientY).index) {
|
|
128
|
+
return
|
|
129
|
+
}
|
|
130
|
+
state.activeIndex = getAnchorByPageY(clientY).index
|
|
131
|
+
setScrollTop(getAnchorByPageY(clientY).$.exposed!.top.value - offsetTop)
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
async function handleTouchEnd(e: TouchEvent) {
|
|
135
|
+
const clientY = e.changedTouches[0].pageY
|
|
136
|
+
state.activeIndex = getAnchorByPageY(clientY).index
|
|
137
|
+
setScrollTop(getAnchorByPageY(clientY).$.exposed!.top.value - offsetTop)
|
|
138
|
+
await pause()
|
|
139
|
+
scrollState.touching = false
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function setScrollTop(top: number) {
|
|
143
|
+
if (scrollState.scrollTop === top) {
|
|
144
|
+
scrollState.scrollTop = scrollState.prevScrollTop
|
|
145
|
+
nextTick(() => {
|
|
146
|
+
scrollState.scrollTop = top
|
|
147
|
+
})
|
|
148
|
+
} else {
|
|
149
|
+
scrollState.scrollTop = top
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
</script>
|
|
153
|
+
|
|
154
|
+
<style lang="scss" scoped>
|
|
155
|
+
@import './index.scss';
|
|
156
|
+
</style>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { InjectionKey } from 'vue'
|
|
2
|
+
import type { ExtractPropTypes } from 'vue'
|
|
3
|
+
import { makeBooleanProp } from '../common/props'
|
|
4
|
+
|
|
5
|
+
export type AnchorIndex = number | string
|
|
6
|
+
|
|
7
|
+
export const indexBarProps = {
|
|
8
|
+
/**
|
|
9
|
+
* @description 索引是否吸顶
|
|
10
|
+
*/
|
|
11
|
+
sticky: makeBooleanProp(false)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type IndexBarProps = ExtractPropTypes<typeof indexBarProps>
|
|
15
|
+
|
|
16
|
+
export type InderBarProvide = {
|
|
17
|
+
props: { sticky?: boolean }
|
|
18
|
+
anchorState: {
|
|
19
|
+
activeIndex: AnchorIndex | null // 当前激活的索引
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const indexBarInjectionKey: InjectionKey<InderBarProvide> = Symbol('oxy-index-bar')
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
@import "../common/abstracts/variable";
|
|
2
|
+
@import "../common/abstracts/mixin";
|
|
3
|
+
|
|
4
|
+
.oxy-theme-dark {
|
|
5
|
+
@include b(input) {
|
|
6
|
+
background: $-dark-background2;
|
|
7
|
+
|
|
8
|
+
&::after {
|
|
9
|
+
background: $-dark-color-gray;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@include when(not-empty) {
|
|
13
|
+
&:not(.is-disabled) {
|
|
14
|
+
&::after {
|
|
15
|
+
background-color: $-dark-color;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@include e(inner) {
|
|
22
|
+
color: $-dark-color;
|
|
23
|
+
|
|
24
|
+
&::-webkit-input-placeholder {
|
|
25
|
+
color: $-dark-color3;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@include e(count) {
|
|
30
|
+
color: $-dark-color3;
|
|
31
|
+
background: transparent;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include e(count-current) {
|
|
35
|
+
color: $-dark-color;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:deep(.oxy-input__icon),
|
|
39
|
+
:deep(.oxy-input__clear) {
|
|
40
|
+
color: $-dark-color;
|
|
41
|
+
background: transparent;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include when(cell) {
|
|
45
|
+
background-color: $-dark-background2;
|
|
46
|
+
line-height: $-cell-line-height;
|
|
47
|
+
|
|
48
|
+
@include when(border) {
|
|
49
|
+
@include halfPixelBorder("top", $-input-cell-padding, $-dark-border-color);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@include when(disabled) {
|
|
54
|
+
|
|
55
|
+
.oxy-input__inner {
|
|
56
|
+
color: $-dark-color-gray;
|
|
57
|
+
background: transparent;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
@include e(label) {
|
|
63
|
+
color: $-dark-color;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@include b(input) {
|
|
69
|
+
position: relative;
|
|
70
|
+
-webkit-tap-highlight-color: transparent;
|
|
71
|
+
text-align: left;
|
|
72
|
+
background: $-input-bg;
|
|
73
|
+
|
|
74
|
+
&::after {
|
|
75
|
+
position: absolute;
|
|
76
|
+
content: "";
|
|
77
|
+
bottom: 0;
|
|
78
|
+
left: 0;
|
|
79
|
+
right: 0;
|
|
80
|
+
height: 1px;
|
|
81
|
+
background: $-input-border-color;
|
|
82
|
+
transform: scaleY(0.5);
|
|
83
|
+
transition: background-color 0.2s ease-in-out;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@include when(not-empty) {
|
|
87
|
+
&:not(.is-disabled) {
|
|
88
|
+
&::after {
|
|
89
|
+
background-color: $-input-not-empty-border-color;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@include e(label) {
|
|
95
|
+
position: relative;
|
|
96
|
+
display: flex;
|
|
97
|
+
width: $-input-cell-label-width;
|
|
98
|
+
color: $-cell-title-color;
|
|
99
|
+
margin-right: $-cell-padding;
|
|
100
|
+
box-sizing: border-box;
|
|
101
|
+
font-size: $-input-fs;
|
|
102
|
+
flex-shrink: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@include e(label-inner) {
|
|
106
|
+
display: inline-block;
|
|
107
|
+
font-size: $-input-fs;
|
|
108
|
+
line-height: $-cell-line-height;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
@include e(required) {
|
|
114
|
+
font-size: $-cell-required-size;
|
|
115
|
+
color: $-cell-required-color;
|
|
116
|
+
margin-left: $-cell-required-margin;
|
|
117
|
+
|
|
118
|
+
@include m(left) {
|
|
119
|
+
margin-left: 0;
|
|
120
|
+
margin-right: $-cell-required-margin;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@include e(body) {
|
|
125
|
+
flex: 1;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@include e(value) {
|
|
129
|
+
position: relative;
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: row;
|
|
132
|
+
align-items: center;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
@include e(prefix) {
|
|
137
|
+
margin-right: $-input-icon-margin;
|
|
138
|
+
font-size: $-input-fs;
|
|
139
|
+
line-height: initial;
|
|
140
|
+
|
|
141
|
+
:deep(.oxy-input__icon),
|
|
142
|
+
:deep(.oxy-input__clear) {
|
|
143
|
+
margin-left: 0;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@include e(suffix) {
|
|
148
|
+
flex-shrink: 0;
|
|
149
|
+
line-height: initial;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@include e(error-message){
|
|
153
|
+
color: $-form-item-error-message-color;
|
|
154
|
+
font-size: $-form-item-error-message-font-size;
|
|
155
|
+
line-height: $-form-item-error-message-line-height;
|
|
156
|
+
text-align: left;
|
|
157
|
+
vertical-align: middle;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@include when(disabled) {
|
|
161
|
+
|
|
162
|
+
.oxy-input__inner {
|
|
163
|
+
color: $-input-disabled-color;
|
|
164
|
+
background: transparent;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@include when(error) {
|
|
169
|
+
|
|
170
|
+
.oxy-input__inner {
|
|
171
|
+
color: $-input-error-color;
|
|
172
|
+
background: transparent;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@include when(no-border) {
|
|
177
|
+
&::after {
|
|
178
|
+
display: none;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.oxy-input__inner {
|
|
182
|
+
height: $-input-inner-height-no-border;
|
|
183
|
+
padding-top: 0;
|
|
184
|
+
padding-bottom: 0;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@include when(cell) {
|
|
189
|
+
display: flex;
|
|
190
|
+
align-items: flex-start;
|
|
191
|
+
padding: $-input-cell-padding $-input-padding;
|
|
192
|
+
background-color: $-input-cell-bg;
|
|
193
|
+
|
|
194
|
+
&.is-error::after {
|
|
195
|
+
background: $-input-cell-border-color;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
:deep(.oxy-input__icon),
|
|
199
|
+
:deep(.oxy-input__clear) {
|
|
200
|
+
display: inline-flex;
|
|
201
|
+
align-items: center;
|
|
202
|
+
height: $-input-cell-height;
|
|
203
|
+
line-height: $-input-cell-height;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.oxy-input__prefix {
|
|
207
|
+
display: inline-block;
|
|
208
|
+
margin-right: $-cell-icon-right;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.oxy-input__inner {
|
|
212
|
+
height: $-input-cell-height;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&.oxy-input::after {
|
|
216
|
+
display: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
@include when(center) {
|
|
221
|
+
align-items: center;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@include when(border) {
|
|
225
|
+
@include halfPixelBorder("top", $-input-cell-padding);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@include when(large) {
|
|
230
|
+
padding: $-input-cell-padding-large;
|
|
231
|
+
|
|
232
|
+
.oxy-input__prefix {
|
|
233
|
+
font-size: $-input-fs-large;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.oxy-input__label-inner {
|
|
237
|
+
font-size: $-input-fs-large;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.oxy-input__inner {
|
|
241
|
+
font-size: $-input-fs-large;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
.oxy-input__count {
|
|
246
|
+
font-size: $-input-count-fs-large;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
:deep(.oxy-input__icon),
|
|
250
|
+
:deep(.oxy-input__clear) {
|
|
251
|
+
font-size: $-input-icon-size-large;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
@include e(inner) {
|
|
258
|
+
flex: 1;
|
|
259
|
+
height: $-input-inner-height;
|
|
260
|
+
font-size: $-input-fs;
|
|
261
|
+
color: $-input-color;
|
|
262
|
+
outline: none;
|
|
263
|
+
border: none;
|
|
264
|
+
background: none;
|
|
265
|
+
padding: 0;
|
|
266
|
+
box-sizing: border-box;
|
|
267
|
+
|
|
268
|
+
&::-webkit-input-placeholder {
|
|
269
|
+
color: $-input-placeholder-color;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
@include when(align-right) {
|
|
273
|
+
text-align: right;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
@include e(readonly-mask) {
|
|
278
|
+
position: absolute;
|
|
279
|
+
top: 0;
|
|
280
|
+
left: 0;
|
|
281
|
+
z-index: 2;
|
|
282
|
+
width: 100%;
|
|
283
|
+
height: 100%;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
@include edeep(icon) {
|
|
288
|
+
margin-left: $-input-icon-margin;
|
|
289
|
+
font-size: $-input-icon-size;
|
|
290
|
+
color: $-input-icon-color;
|
|
291
|
+
vertical-align: middle;
|
|
292
|
+
background: $-input-bg;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
@include edeep(clear) {
|
|
296
|
+
margin-left: $-input-icon-margin;
|
|
297
|
+
font-size: $-input-icon-size;
|
|
298
|
+
color: $-input-clear-color;
|
|
299
|
+
vertical-align: middle;
|
|
300
|
+
background: $-input-bg;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
@include e(count) {
|
|
304
|
+
margin-left: 15px;
|
|
305
|
+
font-size: $-input-count-fs;
|
|
306
|
+
color: $-input-count-color;
|
|
307
|
+
vertical-align: middle;
|
|
308
|
+
background: $-input-bg;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
@include e(count-current) {
|
|
312
|
+
color: $-input-count-current-color;
|
|
313
|
+
|
|
314
|
+
@include when(error) {
|
|
315
|
+
color: $-input-error-color;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.oxy-input__count,
|
|
320
|
+
.oxy-input__count-current {
|
|
321
|
+
display: inline-flex;
|
|
322
|
+
}
|
|
323
|
+
}
|