oxy-uni-ui 2.1.0 → 2.1.2
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/attributes.json +1 -1
- package/components/common/abstracts/variable.scss +145 -100
- package/components/common/util.ts +25 -0
- package/components/composables/useDynamicVirtualScroll.ts +80 -0
- package/components/oxy-action-sheet/index.scss +6 -6
- package/components/oxy-backtop/index.scss +1 -1
- package/components/oxy-badge/index.scss +2 -2
- package/components/oxy-button/index.scss +3 -6
- package/components/oxy-calendar/index.scss +2 -2
- package/components/oxy-calendar/oxy-calendar.vue +3 -3
- package/components/oxy-calendar-view/monthPanel/month-panel.vue +72 -37
- package/components/oxy-calendar-view/monthPanel/types.ts +43 -1
- package/components/oxy-calendar-view/types.ts +1 -1
- package/components/oxy-calendar-view/utils.ts +12 -1
- package/components/oxy-calendar-view/yearPanel/types.ts +36 -2
- package/components/oxy-calendar-view/yearPanel/year-panel.vue +64 -45
- package/components/oxy-card/index.scss +4 -4
- package/components/oxy-cell/index.scss +1 -1
- package/components/oxy-cell-group/index.scss +2 -2
- package/components/oxy-checkbox/index.scss +87 -197
- package/components/oxy-collapse/index.scss +1 -1
- package/components/oxy-collapse-item/index.scss +2 -2
- package/components/oxy-corner/index.scss +3 -3
- package/components/oxy-count-to/oxy-count-to.vue +3 -3
- package/components/oxy-count-to/types.ts +1 -1
- package/components/oxy-date-strip-item/index.scss +4 -4
- package/components/oxy-datetime-picker/types.ts +1 -1
- package/components/oxy-datetime-picker-view/types.ts +2 -2
- package/components/oxy-fab/index.scss +1 -5
- package/components/oxy-file-list/index.scss +2 -2
- package/components/oxy-footer/index.scss +2 -2
- package/components/oxy-footer/oxy-footer.vue +2 -3
- package/components/oxy-form-item/index.scss +0 -5
- package/components/oxy-grid/oxy-grid.vue +1 -1
- package/components/oxy-grid-item/index.scss +1 -1
- package/components/oxy-guidance/index.scss +2 -2
- package/components/oxy-img/index.scss +2 -2
- package/components/oxy-img-cropper/index.scss +0 -2
- package/components/oxy-img-lazy/index.scss +0 -1
- package/components/oxy-index-anchor/index.scss +3 -3
- package/components/oxy-input/index.scss +2 -2
- package/components/oxy-input-number/index.scss +21 -3
- package/components/oxy-input-number/oxy-input-number.vue +9 -1
- package/components/oxy-keyboard/index.scss +1 -1
- package/components/oxy-link/index.scss +11 -10
- package/components/oxy-loading/index.scss +1 -1
- package/components/oxy-loadmore/index.scss +1 -1
- package/components/oxy-message-box/index.scss +7 -7
- package/components/oxy-navbar/index.scss +1 -1
- package/components/oxy-navbar/oxy-navbar.vue +2 -3
- package/components/oxy-password-input/index.scss +4 -4
- package/components/oxy-picker/types.ts +1 -1
- package/components/oxy-picker-view/oxy-picker-view.vue +8 -5
- package/components/oxy-picker-view/types.ts +2 -2
- package/components/oxy-progress/index.scss +2 -2
- package/components/oxy-radio/index.scss +8 -4
- package/components/oxy-radio-group/index.scss +0 -1
- package/components/oxy-rich-text/index.scss +2 -6
- package/components/oxy-rich-text/mp-html/mp-html.d.ts +2 -0
- package/components/oxy-rich-text/mp-html/mp-html.vue +2 -1
- package/components/oxy-rich-text/mp-html/node/node.vue +23 -0
- package/components/oxy-rich-text/mp-html/parser.js +6 -6
- package/components/oxy-rich-text/oxy-rich-text.vue +23 -0
- package/components/oxy-search/index.scss +1 -1
- package/components/oxy-segmented/index.scss +4 -8
- package/components/oxy-select/index.scss +6 -6
- package/components/oxy-sidebar-item/index.scss +20 -11
- package/components/oxy-slider/index.scss +4 -5
- package/components/oxy-sort-button/index.scss +6 -9
- package/components/oxy-splitter-panel/index.scss +8 -8
- package/components/oxy-step/index.scss +9 -9
- package/components/oxy-swiper-nav/index.scss +2 -2
- package/components/oxy-switch/index.scss +3 -3
- package/components/oxy-tab/index.scss +8 -2
- package/components/oxy-tabbar/index.scss +3 -3
- package/components/oxy-tabbar/oxy-tabbar.vue +3 -3
- package/components/oxy-table/index.scss +0 -1
- package/components/oxy-table-col/index.scss +1 -2
- package/components/oxy-tabs/index.scss +3 -3
- package/components/oxy-tag/index.scss +160 -20
- package/components/oxy-tag/oxy-tag.vue +14 -2
- package/components/oxy-tag/types.ts +9 -0
- package/components/oxy-text/index.scss +1 -1
- package/components/oxy-textarea/index.scss +2 -6
- package/components/oxy-toast/index.scss +1 -1
- package/components/oxy-tree/index.scss +31 -11
- package/components/oxy-tree/oxy-tree.vue +113 -2
- package/components/oxy-tree/types.ts +1 -0
- package/components/oxy-upload/index.scss +3 -3
- package/components/oxy-video-preview/index.scss +3 -3
- package/components/oxy-virtual-scroll/index.scss +1 -1
- package/components/oxy-voice-player/index.scss +36 -36
- package/components/oxy-watermark/index.scss +1 -1
- package/dev-tools.ts +2 -0
- package/devTools/components/DevToolsOverlay.vue +56 -0
- package/devTools/components/DevToolsUiHost.vue +589 -0
- package/devTools/config.js +55 -0
- package/devTools/core/components/mpDevBubble.vue +174 -0
- package/devTools/core/libs/createH5Bubble.js +156 -0
- package/devTools/core/libs/devCache.js +151 -0
- package/devTools/core/libs/devOptions.js +163 -0
- package/devTools/core/libs/devUi.js +219 -0
- package/devTools/core/libs/drawView.js +140 -0
- package/devTools/core/libs/errorReport.js +64 -0
- package/devTools/core/libs/jsonCompress.js +334 -0
- package/devTools/core/libs/logReport.js +59 -0
- package/devTools/core/libs/pageLinkList.js +125 -0
- package/devTools/core/libs/timeFormat.js +94 -0
- package/devTools/core/proxy/console.js +430 -0
- package/devTools/core/proxy/index.js +36 -0
- package/devTools/core/proxy/request.js +495 -0
- package/devTools/core/proxy/storage.js +113 -0
- package/devTools/core/proxy/uniBus.js +153 -0
- package/devTools/core/proxy/uniListen.js +192 -0
- package/devTools/core/proxy/vueMixin.js +120 -0
- package/devTools/index.js +168 -0
- package/devTools/page/components/bottomTools.vue +1046 -0
- package/devTools/page/components/dialog/addStorage.vue +204 -0
- package/devTools/page/components/dialog/createDir.vue +366 -0
- package/devTools/page/components/dialog/editDialog.vue +192 -0
- package/devTools/page/components/dialog/routeDialog.vue +184 -0
- package/devTools/page/components/dialog/sendRequest.vue +603 -0
- package/devTools/page/components/dialog/textFileEditDialog.vue +391 -0
- package/devTools/page/components/libs/appDelDir.js +86 -0
- package/devTools/page/components/libs/dirReader.js +248 -0
- package/devTools/page/components/libs/fileSize.js +15 -0
- package/devTools/page/components/libs/getRuntimeInfo.js +134 -0
- package/devTools/page/components/listItem/consoleItem.vue +314 -0
- package/devTools/page/components/listItem/errorItem.vue +292 -0
- package/devTools/page/components/listItem/fileSysItem.vue +533 -0
- package/devTools/page/components/listItem/infoList.vue +100 -0
- package/devTools/page/components/listItem/jsRunnerItem.vue +255 -0
- package/devTools/page/components/listItem/logItem.vue +193 -0
- package/devTools/page/components/listItem/networkItem.vue +398 -0
- package/devTools/page/components/listItem/objectAnalysis.vue +651 -0
- package/devTools/page/components/listItem/pages.vue +319 -0
- package/devTools/page/components/listItem/routeItem.vue +153 -0
- package/devTools/page/components/listItem/setting.vue +734 -0
- package/devTools/page/components/listItem/storageList.vue +681 -0
- package/devTools/page/components/listItem/tools.vue +315 -0
- package/devTools/page/components/listItem/vuexList.vue +599 -0
- package/devTools/page/components/main.vue +1867 -0
- package/devTools/page/components/mixins/animationControl.js +91 -0
- package/devTools/page/components/mixins/mp.js +83 -0
- package/devTools/page/components/ui/btnTabs.vue +90 -0
- package/devTools/page/components/ui/codeHisPicker.vue +172 -0
- package/devTools/page/components/ui/h5Cell.vue +13 -0
- package/devTools/page/components/ui/menuBtn.vue +94 -0
- package/devTools/page/components/ui/mobileSwiperScroll.vue +74 -0
- package/devTools/page/components/ui/requestSpeedLimit.vue +52 -0
- package/devTools/page/components/ui/requestTimeoutMock.vue +55 -0
- package/devTools/page/components/ui/subTitleBar.vue +101 -0
- package/devTools/page/static/copy.png +0 -0
- package/devTools/page/static/delete.png +0 -0
- package/devTools/page/static/fileSys/AI.png +0 -0
- package/devTools/page/static/fileSys/DWG.png +0 -0
- package/devTools/page/static/fileSys/EXE.png +0 -0
- package/devTools/page/static/fileSys/GIF.png +0 -0
- package/devTools/page/static/fileSys/HTML.png +0 -0
- package/devTools/page/static/fileSys/PSD.png +0 -0
- package/devTools/page/static/fileSys/RVT.png +0 -0
- package/devTools/page/static/fileSys/SKP.png +0 -0
- package/devTools/page/static/fileSys/SVG.png +0 -0
- package/devTools/page/static/fileSys/excel.png +0 -0
- package/devTools/page/static/fileSys/pdf.png +0 -0
- package/devTools/page/static/fileSys/pptl.png +0 -0
- package/devTools/page/static/fileSys/shipin.png +0 -0
- package/devTools/page/static/fileSys/tupian.png +0 -0
- package/devTools/page/static/fileSys/txt.png +0 -0
- package/devTools/page/static/fileSys/weizhiwenjian.png +0 -0
- package/devTools/page/static/fileSys/wenjianjia.png +0 -0
- package/devTools/page/static/fileSys/word.png +0 -0
- package/devTools/page/static/fileSys/yasuo.png +0 -0
- package/devTools/page/static/fileSys/yinpin.png +0 -0
- package/devTools/page/static/fold.png +0 -0
- package/devTools/page/static/menu.png +0 -0
- package/devTools/page/static/refresh.png +0 -0
- package/devTools/page/static/unfold.png +0 -0
- package/devTools/tools.vue +25 -0
- package/devTools/type/devTools.d.ts +406 -0
- package/oxy-dev-tools/components/DevToolsUiHost.vue +555 -0
- package/oxy-dev-tools/config.js +61 -0
- package/oxy-dev-tools/core/components/mpDevBubble.vue +176 -0
- package/oxy-dev-tools/core/libs/createH5Bubble.js +156 -0
- package/oxy-dev-tools/core/libs/devCache.js +149 -0
- package/oxy-dev-tools/core/libs/devOptions.js +160 -0
- package/oxy-dev-tools/core/libs/devUi.js +219 -0
- package/oxy-dev-tools/core/libs/drawView.js +144 -0
- package/oxy-dev-tools/core/libs/errorReport.js +60 -0
- package/oxy-dev-tools/core/libs/jsonCompress.js +328 -0
- package/oxy-dev-tools/core/libs/logReport.js +55 -0
- package/oxy-dev-tools/core/libs/pageLinkList.js +121 -0
- package/oxy-dev-tools/core/libs/timeFormat.js +93 -0
- package/oxy-dev-tools/core/proxy/console.js +398 -0
- package/oxy-dev-tools/core/proxy/index.js +33 -0
- package/oxy-dev-tools/core/proxy/request.js +473 -0
- package/oxy-dev-tools/core/proxy/storage.js +96 -0
- package/oxy-dev-tools/core/proxy/uniBus.js +148 -0
- package/oxy-dev-tools/core/proxy/uniListen.js +190 -0
- package/oxy-dev-tools/core/proxy/vueMixin.js +115 -0
- package/oxy-dev-tools/index.ts +183 -0
- package/oxy-dev-tools/oxy-dev-tools.vue +62 -0
- package/oxy-dev-tools/page/components/bottomTools.vue +933 -0
- package/oxy-dev-tools/page/components/dialog/addStorage.vue +184 -0
- package/oxy-dev-tools/page/components/dialog/createDir.vue +352 -0
- package/oxy-dev-tools/page/components/dialog/editDialog.vue +178 -0
- package/oxy-dev-tools/page/components/dialog/routeDialog.vue +170 -0
- package/oxy-dev-tools/page/components/dialog/sendRequest.vue +530 -0
- package/oxy-dev-tools/page/components/dialog/textFileEditDialog.vue +379 -0
- package/oxy-dev-tools/page/components/libs/appDelDir.js +77 -0
- package/oxy-dev-tools/page/components/libs/dirReader.js +239 -0
- package/oxy-dev-tools/page/components/libs/fileSize.js +15 -0
- package/oxy-dev-tools/page/components/libs/getRuntimeInfo.js +132 -0
- package/oxy-dev-tools/page/components/listItem/consoleItem.vue +292 -0
- package/oxy-dev-tools/page/components/listItem/errorItem.vue +268 -0
- package/oxy-dev-tools/page/components/listItem/fileSysItem.vue +511 -0
- package/oxy-dev-tools/page/components/listItem/infoList.vue +89 -0
- package/oxy-dev-tools/page/components/listItem/jsRunnerItem.vue +236 -0
- package/oxy-dev-tools/page/components/listItem/logItem.vue +185 -0
- package/oxy-dev-tools/page/components/listItem/networkItem.vue +362 -0
- package/oxy-dev-tools/page/components/listItem/objectAnalysis.vue +642 -0
- package/oxy-dev-tools/page/components/listItem/pages.vue +285 -0
- package/oxy-dev-tools/page/components/listItem/routeItem.vue +140 -0
- package/oxy-dev-tools/page/components/listItem/setting.vue +687 -0
- package/oxy-dev-tools/page/components/listItem/storageList.vue +623 -0
- package/oxy-dev-tools/page/components/listItem/tools.vue +273 -0
- package/oxy-dev-tools/page/components/listItem/vuexList.vue +559 -0
- package/oxy-dev-tools/page/components/main.vue +1824 -0
- package/oxy-dev-tools/page/components/mixins/animationControl.js +80 -0
- package/oxy-dev-tools/page/components/mixins/mp.js +76 -0
- package/oxy-dev-tools/page/components/ui/btnTabs.vue +77 -0
- package/oxy-dev-tools/page/components/ui/codeHisPicker.vue +161 -0
- package/oxy-dev-tools/page/components/ui/h5Cell.vue +13 -0
- package/oxy-dev-tools/page/components/ui/menuBtn.vue +87 -0
- package/oxy-dev-tools/page/components/ui/mobileSwiperScroll.vue +71 -0
- package/oxy-dev-tools/page/components/ui/requestSpeedLimit.vue +47 -0
- package/oxy-dev-tools/page/components/ui/requestTimeoutMock.vue +50 -0
- package/oxy-dev-tools/page/components/ui/subTitleBar.vue +87 -0
- package/oxy-dev-tools/page/static/copy.png +0 -0
- package/oxy-dev-tools/page/static/delete.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/AI.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/DWG.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/EXE.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/GIF.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/HTML.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/PSD.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/RVT.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/SKP.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/SVG.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/excel.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/pdf.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/pptl.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/shipin.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/tupian.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/txt.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/weizhiwenjian.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/wenjianjia.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/word.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/yasuo.png +0 -0
- package/oxy-dev-tools/page/static/fileSys/yinpin.png +0 -0
- package/oxy-dev-tools/page/static/fold.png +0 -0
- package/oxy-dev-tools/page/static/menu.png +0 -0
- package/oxy-dev-tools/page/static/refresh.png +0 -0
- package/oxy-dev-tools/page/static/unfold.png +0 -0
- package/oxy-dev-tools/tools.vue +22 -0
- package/oxy-dev-tools/type/devTools.d.ts +406 -0
- package/package.json +1 -1
- package/tags.json +1 -1
- package/web-types.json +1 -1
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
display: flex;
|
|
28
28
|
flex-direction: column;
|
|
29
29
|
margin: 0 4rpx;
|
|
30
|
-
transition-duration:
|
|
30
|
+
transition-duration: $-transition-duration-slow;
|
|
31
31
|
transition-property: background-color, color;
|
|
32
32
|
transition-timing-function: linear;
|
|
33
33
|
|
|
34
34
|
&-prefix,&-day,&-suffix {
|
|
35
35
|
text-align: center;
|
|
36
|
-
transition-duration:
|
|
36
|
+
transition-duration: $-transition-duration-base;
|
|
37
37
|
transition-property: color;
|
|
38
38
|
transition-timing-function: linear;
|
|
39
39
|
}
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
&-day {
|
|
70
70
|
font-size: $-date-strip-font-size;
|
|
71
71
|
color: $-date-strip-color;
|
|
72
|
-
font-weight: bold;
|
|
72
|
+
font-weight: $-fw-bold;
|
|
73
73
|
}
|
|
74
74
|
&-info {
|
|
75
75
|
display: flex;
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
background-color: $-date-strip-active-color;
|
|
83
83
|
}
|
|
84
84
|
&--active-text {
|
|
85
|
-
color: white;
|
|
85
|
+
color: $-color-white;
|
|
86
86
|
&-none {
|
|
87
87
|
color: $-date-strip-active-color;
|
|
88
88
|
}
|
|
@@ -20,11 +20,11 @@ export const datetimePickerViewProps = {
|
|
|
20
20
|
/**
|
|
21
21
|
* picker内部滚筒高
|
|
22
22
|
*/
|
|
23
|
-
columnsHeight: makeNumberProp(
|
|
23
|
+
columnsHeight: makeNumberProp(434),
|
|
24
24
|
/**
|
|
25
25
|
* picker item的高度
|
|
26
26
|
*/
|
|
27
|
-
itemHeight: makeNumberProp(
|
|
27
|
+
itemHeight: makeNumberProp(70),
|
|
28
28
|
/**
|
|
29
29
|
* 选项的key
|
|
30
30
|
*/
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
@import "../common/abstracts/variable";
|
|
2
2
|
@import "../common/abstracts/mixin";
|
|
3
3
|
|
|
4
|
-
.oxy-theme-dark {
|
|
5
|
-
@include b(fab) {}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
4
|
@include b(fab) {
|
|
9
5
|
position: fixed;
|
|
10
6
|
z-index: 99;
|
|
@@ -60,7 +56,7 @@
|
|
|
60
56
|
|
|
61
57
|
// 动画
|
|
62
58
|
@include e(transition-enter-active, transition-leave-active) {
|
|
63
|
-
transition:
|
|
59
|
+
transition: $-transition-duration-slow $-transition-timing-function-base !important;
|
|
64
60
|
}
|
|
65
61
|
|
|
66
62
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
align-items: center;
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: 100%;
|
|
22
|
-
border:
|
|
22
|
+
border: #{$-border-width-base} solid $-color-border;
|
|
23
23
|
border-radius: $-file-list-card-radius;
|
|
24
24
|
position: relative;
|
|
25
25
|
}
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
.oxy-file-list__delete {
|
|
84
84
|
font-size: $-file-list-action-icon-size;
|
|
85
85
|
color: $-file-list-action-icon-color;
|
|
86
|
-
margin-left:
|
|
86
|
+
margin-left: $-spacing-24;
|
|
87
87
|
}
|
|
88
88
|
& + .oxy-file-list__list--item {
|
|
89
89
|
margin-top: 20rpx;
|
|
@@ -21,7 +21,7 @@ export default {
|
|
|
21
21
|
<script setup lang="ts">
|
|
22
22
|
import { getCurrentInstance, nextTick, onMounted, ref, computed, watch } from 'vue'
|
|
23
23
|
import { footerProps } from './types'
|
|
24
|
-
import { withDefaultUnit } from '../common/util'
|
|
24
|
+
import { convertPxToRpx, withDefaultUnit } from '../common/util'
|
|
25
25
|
import NodeInfo = UniNamespace.NodeInfo
|
|
26
26
|
|
|
27
27
|
const props = defineProps(footerProps)
|
|
@@ -41,8 +41,7 @@ const contentStyle = computed(() => {
|
|
|
41
41
|
|
|
42
42
|
// 设置内容高度(rpx 语义)
|
|
43
43
|
function setHeight(val: number) {
|
|
44
|
-
const
|
|
45
|
-
const heightInRpx = pxPer100Rpx ? (val / pxPer100Rpx) * 100 : val * 2
|
|
44
|
+
const heightInRpx = convertPxToRpx(val)
|
|
46
45
|
placeholderHeight.value = `${heightInRpx}rpx`
|
|
47
46
|
}
|
|
48
47
|
|
|
@@ -73,7 +73,7 @@ watch(
|
|
|
73
73
|
)
|
|
74
74
|
|
|
75
75
|
const rootStyle = computed(() => {
|
|
76
|
-
return `${props.gutter ? 'padding-left:' + props.gutter
|
|
76
|
+
return `${props.gutter ? 'padding-left:' + props.gutter + 'rpx;' + 'padding-bottom:' + props.gutter + 'rpx;' : ''}${props.customStyle}`
|
|
77
77
|
})
|
|
78
78
|
|
|
79
79
|
const handleChildrenChange = debounce(() => {
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
|
|
54
54
|
@include e(next) {
|
|
55
55
|
background: $-guide-tip-action-bg;
|
|
56
|
-
height:
|
|
56
|
+
height: $-size-48;
|
|
57
57
|
width: 100rpx;
|
|
58
58
|
text-align: center;
|
|
59
59
|
border-radius: $-guide-tip-action-radius;
|
|
60
60
|
color: $-guide-tip-action-color;
|
|
61
|
-
line-height:
|
|
61
|
+
line-height: $-lh-base;
|
|
62
62
|
font-size: $-fs-secondary;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -204,7 +204,6 @@
|
|
|
204
204
|
text-align: left;
|
|
205
205
|
margin: 0 40rpx;
|
|
206
206
|
padding-top: 4vh;
|
|
207
|
-
// line-height: 32px;
|
|
208
207
|
box-sizing: border-box;
|
|
209
208
|
|
|
210
209
|
.is-cancel {
|
|
@@ -216,7 +215,6 @@
|
|
|
216
215
|
.is-confirm {
|
|
217
216
|
position: absolute;
|
|
218
217
|
right: 0;
|
|
219
|
-
// height: 32px;
|
|
220
218
|
width: 112rpx;
|
|
221
219
|
border-radius: $-img-cropper-action-radius;
|
|
222
220
|
font-size: $-img-cropper-action-fs;
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
// #ifdef MP-DINGTALK
|
|
12
12
|
@include b(index-anchor-ding) {
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
@include when(sticky){
|
|
15
15
|
position: sticky;
|
|
16
16
|
top: 0;
|
|
17
17
|
left: 0;
|
|
18
|
-
z-index:
|
|
18
|
+
z-index: $-z-index-sticky;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
// #endif
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
position: sticky;
|
|
31
31
|
top: 0;
|
|
32
32
|
left: 0;
|
|
33
|
-
z-index:
|
|
33
|
+
z-index: $-z-index-sticky;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
height: 1px;
|
|
81
81
|
background: $-input-border-color;
|
|
82
82
|
transform: scaleY(0.5);
|
|
83
|
-
transition: background-color
|
|
83
|
+
transition: background-color $-transition-duration-base ease-in-out;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
@include when(not-empty) {
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
@include e(count) {
|
|
304
|
-
margin-left:
|
|
304
|
+
margin-left: $-spacing-32;
|
|
305
305
|
font-size: $-input-count-fs;
|
|
306
306
|
color: $-input-count-color;
|
|
307
307
|
vertical-align: middle;
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@include b(input-number) {
|
|
30
|
-
display: inline-
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
31
32
|
user-select: none;
|
|
32
|
-
line-height: 1.15;
|
|
33
33
|
|
|
34
34
|
@include e(action) {
|
|
35
35
|
position: relative;
|
|
@@ -61,6 +61,11 @@
|
|
|
61
61
|
border-top-right-radius: calc($-input-number-radius * 2);
|
|
62
62
|
border-bottom-right-radius: calc($-input-number-radius * 2);
|
|
63
63
|
}
|
|
64
|
+
|
|
65
|
+
&:not(.is-disabled):active {
|
|
66
|
+
background-color: $-color-bg;
|
|
67
|
+
}
|
|
68
|
+
|
|
64
69
|
@include when(disabled) {
|
|
65
70
|
color: $-input-number-disabled-color;
|
|
66
71
|
}
|
|
@@ -105,7 +110,10 @@
|
|
|
105
110
|
|
|
106
111
|
@include edeep(action-icon) {
|
|
107
112
|
position: absolute;
|
|
108
|
-
display:
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
line-height: 1;
|
|
109
117
|
font-size: $-input-number-icon-size;
|
|
110
118
|
width: $-input-number-icon-size;
|
|
111
119
|
height: $-input-number-icon-size;
|
|
@@ -114,6 +122,16 @@
|
|
|
114
122
|
transform: translate(-50%, -50%);
|
|
115
123
|
}
|
|
116
124
|
|
|
125
|
+
@include when(focus) {
|
|
126
|
+
.oxy-input-number__action::after {
|
|
127
|
+
border-color: $-color-theme;
|
|
128
|
+
}
|
|
129
|
+
.oxy-input-number__input-border {
|
|
130
|
+
border-top-color: $-color-theme;
|
|
131
|
+
border-bottom-color: $-color-theme;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
117
135
|
@include when(disabled) {
|
|
118
136
|
.oxy-input-number__input {
|
|
119
137
|
color: $-input-number-disabled-color;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view
|
|
2
|
+
<view
|
|
3
|
+
:class="`oxy-input-number ${customClass} ${disabled ? 'is-disabled' : ''} ${withoutInput ? 'is-without-input' : ''} ${
|
|
4
|
+
isFocused ? 'is-focus' : ''
|
|
5
|
+
}`"
|
|
6
|
+
:style="customStyle"
|
|
7
|
+
>
|
|
3
8
|
<!-- 减号按钮 -->
|
|
4
9
|
<view
|
|
5
10
|
:class="`oxy-input-number__action ${minDisabled || disableMinus ? 'is-disabled' : ''}`"
|
|
@@ -76,6 +81,7 @@ const emit = defineEmits<{
|
|
|
76
81
|
(e: 'update:modelValue', value: number | string): void
|
|
77
82
|
}>()
|
|
78
83
|
const inputValue = ref<string | number>(getInitValue())
|
|
84
|
+
const isFocused = ref(false)
|
|
79
85
|
let longPressTimer: ReturnType<typeof setTimeout> | null = null
|
|
80
86
|
|
|
81
87
|
/**
|
|
@@ -414,6 +420,7 @@ function handleInput(event: any) {
|
|
|
414
420
|
* 处理失焦事件
|
|
415
421
|
*/
|
|
416
422
|
function handleBlur(event: any) {
|
|
423
|
+
isFocused.value = false
|
|
417
424
|
const val = event.detail.value || ''
|
|
418
425
|
updateValue(val)
|
|
419
426
|
emit('blur', { value: val })
|
|
@@ -423,6 +430,7 @@ function handleBlur(event: any) {
|
|
|
423
430
|
* 处理聚焦事件
|
|
424
431
|
*/
|
|
425
432
|
function handleFocus(event: any) {
|
|
433
|
+
isFocused.value = true
|
|
426
434
|
emit('focus', event.detail)
|
|
427
435
|
}
|
|
428
436
|
|
|
@@ -3,15 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
@include b(link) {
|
|
5
5
|
display: inline-block;
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
@include m(medium) {
|
|
7
8
|
font-size: $-link-font-size-medium;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
@include
|
|
11
|
+
@include m(small) {
|
|
11
12
|
font-size: $-link-font-size-small;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
@include
|
|
15
|
+
@include m(large) {
|
|
15
16
|
font-size: $-link-font-size-large;
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -44,14 +45,14 @@
|
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
@include when(disabled) {
|
|
47
|
-
opacity:
|
|
48
|
+
opacity: $-opacity-disabled;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
.#{$B}__prefix-icon:not(:empty) + .#{$B}__content:not(:empty) {
|
|
52
|
+
padding-left: 8rpx;
|
|
53
|
+
}
|
|
53
54
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
.#{$B}__content:not(:empty) + .#{$B}__suffix-icon:not(:empty) {
|
|
56
|
+
padding-left: 8rpx;
|
|
57
|
+
}
|
|
57
58
|
}
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
text-align: center;
|
|
48
48
|
font-size: $-message-box-title-fs;
|
|
49
49
|
color: $-message-box-title-color;
|
|
50
|
-
line-height:
|
|
51
|
-
font-weight:
|
|
52
|
-
padding-top:
|
|
53
|
-
padding-bottom:
|
|
50
|
+
line-height: $-lh-base;
|
|
51
|
+
font-weight: $-fw-medium;
|
|
52
|
+
padding-top: $-spacing-16;
|
|
53
|
+
padding-bottom: $-spacing-24;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
@include e(content) {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
font-size: $-message-box-content-fs;
|
|
60
60
|
text-align: center;
|
|
61
61
|
overflow: auto;
|
|
62
|
-
line-height:
|
|
62
|
+
line-height: $-lh-base;
|
|
63
63
|
|
|
64
64
|
&::-webkit-scrollbar {
|
|
65
65
|
width: $-message-box-content-scrollbar-width;
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
|
|
90
90
|
@include edeep(actions-btn) {
|
|
91
91
|
&:not(:last-child) {
|
|
92
|
-
margin-right:
|
|
92
|
+
margin-right: $-spacing-32;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
@@ -104,6 +104,6 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
@include e(cancel) {
|
|
107
|
-
margin-right:
|
|
107
|
+
margin-right: $-spacing-32;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -52,7 +52,7 @@ export default {
|
|
|
52
52
|
<script lang="ts" setup>
|
|
53
53
|
import OxyIcon from '../oxy-icon/oxy-icon.vue'
|
|
54
54
|
import { type CSSProperties, computed, getCurrentInstance, nextTick, onMounted, ref, watch } from 'vue'
|
|
55
|
-
import { getRect, isDef, objToStyle, unitConvert } from '../common/util'
|
|
55
|
+
import { convertPxToRpx, getRect, isDef, objToStyle, unitConvert } from '../common/util'
|
|
56
56
|
import { navbarProps } from './types'
|
|
57
57
|
|
|
58
58
|
const props = defineProps(navbarProps)
|
|
@@ -139,8 +139,7 @@ function setPlaceholderHeight() {
|
|
|
139
139
|
const rectBottom = Number(res.bottom)
|
|
140
140
|
const occupiedHeight =
|
|
141
141
|
rectHeight > 0 ? rectHeight : !Number.isNaN(rectTop) && !Number.isNaN(rectBottom) ? Math.max(rectBottom - rectTop, 0) : 0
|
|
142
|
-
const
|
|
143
|
-
const occupiedHeightInRpx = pxPer100Rpx ? (occupiedHeight / pxPer100Rpx) * 100 : occupiedHeight * 2
|
|
142
|
+
const occupiedHeightInRpx = convertPxToRpx(occupiedHeight)
|
|
144
143
|
|
|
145
144
|
placeholderHeight.value = occupiedHeight ? occupiedHeightInRpx : ''
|
|
146
145
|
})
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
height: 100%;
|
|
52
52
|
color: $-password-input-text-color;
|
|
53
53
|
font-size: $-password-input-font-size;
|
|
54
|
-
line-height:
|
|
54
|
+
line-height: $-line-height-base;
|
|
55
55
|
background: $-password-input-background;
|
|
56
56
|
|
|
57
57
|
@include when(border) {
|
|
58
|
-
border:
|
|
58
|
+
border: #{$-border-width-base} solid $-password-input-border-color;
|
|
59
59
|
|
|
60
60
|
&:not(:last-child) {
|
|
61
61
|
border-right: none;
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
width: $-password-input-dot-size;
|
|
81
81
|
height: $-password-input-dot-size;
|
|
82
82
|
background: $-password-input-dot-color;
|
|
83
|
-
border-radius:
|
|
83
|
+
border-radius: $-radius-circle;
|
|
84
84
|
transform: translate(-50%, -50%);
|
|
85
85
|
visibility: hidden;
|
|
86
86
|
}
|
|
@@ -121,4 +121,4 @@
|
|
|
121
121
|
100% {
|
|
122
122
|
opacity: 0;
|
|
123
123
|
}
|
|
124
|
-
}
|
|
124
|
+
}
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
<view class="oxy-picker-view__loading" v-if="loading">
|
|
4
4
|
<oxy-loading :color="loadingColor" />
|
|
5
5
|
</view>
|
|
6
|
-
<view :style="`height: ${
|
|
6
|
+
<view :style="`height: ${innerColumnsHeight}rpx;`">
|
|
7
7
|
<picker-view
|
|
8
8
|
mask-class="oxy-picker-view__mask"
|
|
9
9
|
indicator-class="oxy-picker-view__roller"
|
|
10
|
-
:indicator-style="`height: ${itemHeight
|
|
11
|
-
:style="`height: ${
|
|
10
|
+
:indicator-style="`height: ${itemHeight}rpx;`"
|
|
11
|
+
:style="`height: ${innerColumnsHeight}rpx;`"
|
|
12
12
|
:value="selectedIndex"
|
|
13
13
|
:immediate-change="immediateChange"
|
|
14
14
|
@change="onChange"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
:class="`oxy-picker-view-column__item ${row['disabled'] ? 'oxy-picker-view-column__item--disabled' : ''} ${
|
|
23
23
|
selectedIndex[colIndex] == rowIndex ? 'oxy-picker-view-column__item--active' : ''
|
|
24
24
|
}`"
|
|
25
|
-
:style="`line-height: ${itemHeight
|
|
25
|
+
:style="`line-height: ${itemHeight}rpx;`"
|
|
26
26
|
>
|
|
27
27
|
{{ row[labelKey] }}
|
|
28
28
|
</view>
|
|
@@ -44,13 +44,16 @@ export default {
|
|
|
44
44
|
</script>
|
|
45
45
|
<script lang="ts" setup>
|
|
46
46
|
import OxyLoading from '../oxy-loading/oxy-loading.vue'
|
|
47
|
-
import { getCurrentInstance, ref, watch, nextTick } from 'vue'
|
|
47
|
+
import { computed, getCurrentInstance, ref, watch, nextTick } from 'vue'
|
|
48
48
|
import { deepClone, getType, isArray, isDef, isEqual, range } from '../common/util'
|
|
49
49
|
import { formatArray, pickerViewProps, type ColumnItem, type PickerViewExpose } from './types'
|
|
50
50
|
|
|
51
51
|
const props = defineProps(pickerViewProps)
|
|
52
52
|
const emit = defineEmits(['change', 'pickstart', 'pickend', 'update:modelValue'])
|
|
53
53
|
|
|
54
|
+
// Root has 24rpx vertical padding on top and bottom; compensate here to keep visual viewport stable.
|
|
55
|
+
const innerColumnsHeight = computed(() => Math.max(props.columnsHeight - 48, props.itemHeight))
|
|
56
|
+
|
|
54
57
|
const formatColumns = ref<ColumnItem[][]>([]) // 格式化后的列数据
|
|
55
58
|
const selectedIndex = ref<Array<number>>([]) // 格式化之后,每列选中的下标集合
|
|
56
59
|
|
|
@@ -29,11 +29,11 @@ export const pickerViewProps = {
|
|
|
29
29
|
/**
|
|
30
30
|
* picker内部滚筒高
|
|
31
31
|
*/
|
|
32
|
-
columnsHeight: makeNumberProp(
|
|
32
|
+
columnsHeight: makeNumberProp(434),
|
|
33
33
|
/**
|
|
34
34
|
* picker item的高度
|
|
35
35
|
*/
|
|
36
|
-
itemHeight: makeNumberProp(
|
|
36
|
+
itemHeight: makeNumberProp(70),
|
|
37
37
|
/**
|
|
38
38
|
* 选项对象中,value对应的 key
|
|
39
39
|
*/
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
position: relative;
|
|
22
22
|
flex: 1;
|
|
23
23
|
height: $-progress-height;
|
|
24
|
-
border-radius:
|
|
24
|
+
border-radius: $-progress-radius;
|
|
25
25
|
background: $-progress-bg;
|
|
26
26
|
}
|
|
27
27
|
@include e(inner) {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
top: 0;
|
|
31
31
|
left: 0;
|
|
32
32
|
height: 100%;
|
|
33
|
-
border-radius:
|
|
33
|
+
border-radius: $-progress-radius;
|
|
34
34
|
background: $-progress-color;
|
|
35
35
|
transition-property: width;
|
|
36
36
|
transition-timing-function: linear;
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
vertical-align: top;
|
|
93
93
|
font-size: $-radio-label-fs;
|
|
94
94
|
color: $-radio-label-color;
|
|
95
|
-
line-height:
|
|
95
|
+
line-height: $-lh-base;
|
|
96
96
|
word-break: break-all;
|
|
97
97
|
}
|
|
98
98
|
@include when(checked) {
|
|
@@ -109,8 +109,10 @@
|
|
|
109
109
|
|
|
110
110
|
@include when(dot) {
|
|
111
111
|
.oxy-radio__shape {
|
|
112
|
+
width: $-radio-dot-shape-size;
|
|
113
|
+
height: $-radio-dot-shape-size;
|
|
112
114
|
border: 4rpx solid $-radio-dot-border-color;
|
|
113
|
-
border-radius:
|
|
115
|
+
border-radius: $-radius-circle;
|
|
114
116
|
position: relative;
|
|
115
117
|
display: inline-block;
|
|
116
118
|
box-sizing: border-box;
|
|
@@ -123,7 +125,7 @@
|
|
|
123
125
|
height: $-radio-dot-size;
|
|
124
126
|
left: calc(50% - #{$-radio-dot-size / 2});
|
|
125
127
|
top: calc(50% - #{$-radio-dot-size / 2});
|
|
126
|
-
border-radius:
|
|
128
|
+
border-radius: $-radius-circle;
|
|
127
129
|
background-color: $-color-white;
|
|
128
130
|
transform: scale(0);
|
|
129
131
|
transition: transform .2s ease-in;
|
|
@@ -145,7 +147,7 @@
|
|
|
145
147
|
@include when(button) {
|
|
146
148
|
display: inline-block;
|
|
147
149
|
margin-top: 0;
|
|
148
|
-
margin-right:
|
|
150
|
+
margin-right: $-spacing-24;
|
|
149
151
|
|
|
150
152
|
.oxy-radio__shape {
|
|
151
153
|
display: none;
|
|
@@ -294,6 +296,8 @@
|
|
|
294
296
|
|
|
295
297
|
@include when(dot) {
|
|
296
298
|
.oxy-radio__shape {
|
|
299
|
+
width: $-radio-dot-shape-large-size;
|
|
300
|
+
height: $-radio-dot-shape-large-size;
|
|
297
301
|
&::before {
|
|
298
302
|
width: $-radio-dot-large-size;
|
|
299
303
|
height: $-radio-dot-large-size;
|