@didaoktv/didaoui-uniapp 1.4.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/components/dd-action-sheet/dd-action-sheet.vue +4 -3
- package/components/dd-alert/dd-alert.vue +4 -3
- package/components/dd-backtop/dd-backtop.vue +3 -2
- package/components/dd-badge/dd-badge.vue +3 -1
- package/components/dd-barcode/dd-barcode.vue +5 -1
- package/components/dd-car-keyboard/dd-car-keyboard.vue +0 -2
- package/components/dd-cascader/dd-cascader.vue +0 -6
- package/components/dd-coupon/dd-coupon.vue +8 -6
- package/components/dd-cropper/dd-cropper.vue +19 -8
- package/components/dd-date-picker/dd-date-picker.vue +4 -4
- package/components/dd-drawer/dd-drawer.vue +4 -3
- package/components/dd-dropdown-item/dd-dropdown-item.vue +4 -4
- package/components/dd-dropdown-menu/dd-dropdown-menu.vue +9 -10
- package/components/dd-goods-card/dd-goods-card.vue +261 -0
- package/components/dd-keyboard/dd-keyboard.vue +0 -2
- package/components/dd-keyboard/keyboard.js +0 -1
- package/components/dd-keyboard/props.js +0 -5
- package/components/dd-loading/dd-loading.vue +4 -3
- package/components/dd-mini-program-navbar/dd-mini-program-navbar.vue +4 -2
- package/components/dd-modal/dd-modal.vue +5 -4
- package/components/dd-navigation/dd-navigation.vue +3 -1
- package/components/dd-overlay/dd-overlay.vue +3 -3
- package/components/dd-picker/dd-picker.vue +4 -4
- package/components/dd-popover/dd-popover.vue +4 -5
- package/components/dd-popup/dd-popup.vue +6 -7
- package/components/dd-poster/dd-poster.vue +10 -8
- package/components/dd-pull-refresh/dd-pull-refresh.vue +4 -4
- package/components/dd-qrcode/dd-qrcode.vue +1 -8
- package/components/dd-room-card/dd-room-card.vue +3 -2
- package/components/dd-segmented-tab/dd-segmented-tab.vue +3 -1
- package/components/dd-step/dd-step.vue +6 -2
- package/components/dd-sticky/dd-sticky.vue +3 -1
- package/components/dd-submit-bar/dd-submit-bar.vue +3 -2
- package/components/dd-swipe/dd-swipe.vue +3 -2
- package/components/dd-swipe-action/dd-swipe-action.vue +5 -5
- package/components/dd-tabbar/dd-tabbar.vue +3 -1
- package/components/dd-toast/dd-toast.vue +4 -2
- package/components/dd-top-navbar/dd-top-navbar.vue +3 -1
- package/index.ts +4 -3
- package/libs/config/zIndex.d.ts +7 -7
- package/libs/config/zIndex.js +13 -20
- package/package.json +1 -1
- package/scss/_variables.scss +0 -12
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
<view
|
|
4
4
|
class="dd-pull-refresh__track"
|
|
5
5
|
:class="{ 'dd-pull-refresh__track--anim': !pulling }"
|
|
6
|
-
:style="{ transform: `translateY(${distance}px)
|
|
6
|
+
:style="{ transform: `translateY(${distance}px)`, zIndex: zIndexConfig.base + 1 }"
|
|
7
7
|
>
|
|
8
|
-
<view class="dd-pull-refresh__head" :style="{ height: headHeightPx + 'px' }">
|
|
8
|
+
<view class="dd-pull-refresh__head" :style="{ height: headHeightPx + 'px', zIndex: zIndexConfig.base }">
|
|
9
9
|
<view class="dd-pull-refresh__head-inner">
|
|
10
10
|
<view v-if="status === 'loading'" class="dd-pull-refresh__spinner"></view>
|
|
11
11
|
<text class="dd-pull-refresh__text">{{ statusText }}</text>
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
|
|
33
33
|
<script setup lang="ts">
|
|
34
34
|
import { computed, ref, watch } from 'vue'
|
|
35
|
+
// z-index 统一取 libs/config/zIndex.js(内容层 base 档内 +1,下拉头垫底取 base 档)
|
|
36
|
+
import zIndexConfig from '../../libs/config/zIndex.js'
|
|
35
37
|
|
|
36
38
|
type Status = 'pulling' | 'loosing' | 'loading' | 'success'
|
|
37
39
|
|
|
@@ -182,7 +184,6 @@ watch(
|
|
|
182
184
|
&__track {
|
|
183
185
|
position: relative;
|
|
184
186
|
height: 100%;
|
|
185
|
-
z-index: 1;
|
|
186
187
|
background: var(--dd-bg, #{$dd-bg});
|
|
187
188
|
|
|
188
189
|
&--anim {
|
|
@@ -197,7 +198,6 @@ watch(
|
|
|
197
198
|
right: 0;
|
|
198
199
|
overflow: hidden;
|
|
199
200
|
transform: translateY(-100%);
|
|
200
|
-
z-index: 0;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
&__head-inner {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
<template>
|
|
2
2
|
<view class="dd-qrcode"
|
|
3
3
|
:id="rootId"
|
|
4
4
|
:style="{
|
|
@@ -496,13 +496,6 @@ export default {
|
|
|
496
496
|
|
|
497
497
|
&__content {
|
|
498
498
|
position: relative;
|
|
499
|
-
|
|
500
|
-
&__canvas {
|
|
501
|
-
position: fixed;
|
|
502
|
-
top: -99999rpx;
|
|
503
|
-
left: -99999rpx;
|
|
504
|
-
z-index: -99999;
|
|
505
|
-
}
|
|
506
499
|
}
|
|
507
500
|
}
|
|
508
501
|
</style>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<!-- grid 模式: 方形卡 + 顶部状态栏 -->
|
|
10
10
|
<template v-if="view === 'grid'">
|
|
11
11
|
<view class="dd-room-card__topbar"></view>
|
|
12
|
-
<view v-if="type === 'vip'" class="dd-room-card__vip-tag"><text>VIP</text></view>
|
|
12
|
+
<view v-if="type === 'vip'" class="dd-room-card__vip-tag" :style="{ zIndex: zIndexConfig.base + 1 }"><text>VIP</text></view>
|
|
13
13
|
<view class="dd-room-card__grid-inner">
|
|
14
14
|
<text class="dd-room-card__no">{{ roomNo }}</text>
|
|
15
15
|
<view class="dd-room-card__status">
|
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
|
|
45
45
|
<script setup lang="ts">
|
|
46
46
|
import { computed } from 'vue'
|
|
47
|
+
// z-index 统一取 libs/config/zIndex.js(VIP 角标抬到卡片内容之上取 base 档内 +1)
|
|
48
|
+
import zIndexConfig from '../../libs/config/zIndex.js'
|
|
47
49
|
|
|
48
50
|
interface Props {
|
|
49
51
|
view?: 'grid' | 'list'
|
|
@@ -169,7 +171,6 @@ function onClick() {
|
|
|
169
171
|
position: absolute;
|
|
170
172
|
top: 12rpx;
|
|
171
173
|
right: 12rpx;
|
|
172
|
-
z-index: 2;
|
|
173
174
|
padding: 2rpx 12rpx;
|
|
174
175
|
background: var(--dd-gradient-primary, #{$dd-gradient-primary});
|
|
175
176
|
border-radius: $dd-radius-sm;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
:key="index"
|
|
14
14
|
class="dd-seg__item"
|
|
15
15
|
:class="{ 'dd-seg__item--active': index === modelValue }"
|
|
16
|
+
:style="{ zIndex: zIndexConfig.base }"
|
|
16
17
|
@click="onSelect(index)"
|
|
17
18
|
>
|
|
18
19
|
<text class="dd-seg__label">{{ labelOf(opt) }}</text>
|
|
@@ -44,6 +45,8 @@
|
|
|
44
45
|
<script setup lang="ts">
|
|
45
46
|
import { nextTick, onMounted, ref, watch } from 'vue'
|
|
46
47
|
import { getCurrentInstance } from 'vue'
|
|
48
|
+
// z-index 统一取 libs/config/zIndex.js(分段项盖住滑块指示器取 base 档)
|
|
49
|
+
import zIndexConfig from '../../libs/config/zIndex.js'
|
|
47
50
|
|
|
48
51
|
interface Props {
|
|
49
52
|
modelValue?: number
|
|
@@ -128,7 +131,6 @@ watch(() => props.options, measure)
|
|
|
128
131
|
|
|
129
132
|
.dd-seg__item {
|
|
130
133
|
position: relative;
|
|
131
|
-
z-index: 1;
|
|
132
134
|
min-width: 120rpx;
|
|
133
135
|
padding: 12rpx $dd-space-4;
|
|
134
136
|
@include dd-flex-center;
|
|
@@ -42,6 +42,8 @@
|
|
|
42
42
|
<script setup lang="ts">
|
|
43
43
|
import { computed, inject } from 'vue'
|
|
44
44
|
import DdIcon from '../dd-icon/dd-icon.vue'
|
|
45
|
+
// z-index 统一取 libs/config/zIndex.js(圆点/连接线的层内叠放取 base 档)
|
|
46
|
+
import zIndexConfig from '../../libs/config/zIndex.js'
|
|
45
47
|
|
|
46
48
|
type StepStatus = 'wait' | 'process' | 'finish'
|
|
47
49
|
|
|
@@ -81,11 +83,15 @@ const isActive = computed(() => status.value === 'finish' || status.value === 'p
|
|
|
81
83
|
const circleStyle = computed(() => ({
|
|
82
84
|
background: isActive.value ? activeColor.value : '#2A2A2A',
|
|
83
85
|
color: isActive.value ? '#FFFFFF' : inactiveColor.value,
|
|
86
|
+
// z-index 统一取 libs/config/zIndex.js(圆点 base 档内 +1,盖住连接线)
|
|
87
|
+
zIndex: zIndexConfig.base + 1,
|
|
84
88
|
}))
|
|
85
89
|
|
|
86
90
|
// ponytail: 水平连接线整段按本步骤 status 着色,current/首个 wait 左半段颜色为近似值
|
|
87
91
|
const lineStyle = computed(() => ({
|
|
88
92
|
background: status.value === 'finish' ? activeColor.value : inactiveColor.value,
|
|
93
|
+
// z-index 统一取 libs/config/zIndex.js(连接线垫底取 base 档)
|
|
94
|
+
zIndex: zIndexConfig.base,
|
|
89
95
|
}))
|
|
90
96
|
</script>
|
|
91
97
|
|
|
@@ -125,7 +131,6 @@ const lineStyle = computed(() => ({
|
|
|
125
131
|
right: 0;
|
|
126
132
|
height: 1px;
|
|
127
133
|
transform: translateY(-50%);
|
|
128
|
-
z-index: 0;
|
|
129
134
|
|
|
130
135
|
&--first {
|
|
131
136
|
left: 50%;
|
|
@@ -143,7 +148,6 @@ const lineStyle = computed(() => ({
|
|
|
143
148
|
|
|
144
149
|
&__circle {
|
|
145
150
|
position: relative;
|
|
146
|
-
z-index: 1;
|
|
147
151
|
width: $dd-size-icon-md;
|
|
148
152
|
height: $dd-size-icon-md;
|
|
149
153
|
border-radius: $dd-radius-full;
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
<script setup lang="ts">
|
|
12
12
|
import { computed, getCurrentInstance, onMounted, onUnmounted, ref } from 'vue'
|
|
13
|
+
// z-index 统一取 libs/config/zIndex.js:默认吸顶层级取 sticky 档(zIndex prop 保留可覆盖)
|
|
14
|
+
import zIndexConfig from '../../libs/config/zIndex.js'
|
|
13
15
|
|
|
14
16
|
interface Props {
|
|
15
17
|
offsetTop?: number // rpx
|
|
@@ -19,7 +21,7 @@ interface Props {
|
|
|
19
21
|
|
|
20
22
|
const props = withDefaults(defineProps<Props>(), {
|
|
21
23
|
offsetTop: 0,
|
|
22
|
-
zIndex:
|
|
24
|
+
zIndex: zIndexConfig.sticky,
|
|
23
25
|
disabled: false,
|
|
24
26
|
})
|
|
25
27
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
class="dd-submit-bar__placeholder"
|
|
5
5
|
:class="{ 'dd-submit-bar__placeholder--safe': safeAreaInsetBottom }"
|
|
6
6
|
></view>
|
|
7
|
-
<view class="dd-submit-bar" :class="{ 'dd-submit-bar--safe': safeAreaInsetBottom }">
|
|
7
|
+
<view class="dd-submit-bar" :class="{ 'dd-submit-bar--safe': safeAreaInsetBottom }" :style="{ zIndex: zIndexConfig.sticky }">
|
|
8
8
|
<slot name="top"></slot>
|
|
9
9
|
<view v-if="hasTip" class="dd-submit-bar__tip">
|
|
10
10
|
<dd-icon v-if="tipIcon" :name="tipIcon" class="dd-submit-bar__tip-icon" />
|
|
@@ -44,6 +44,8 @@ import type { CSSProperties } from 'vue'
|
|
|
44
44
|
import DdButton from '../dd-button/dd-button.vue'
|
|
45
45
|
import DdIcon from '../dd-icon/dd-icon.vue'
|
|
46
46
|
import DdPrice from '../dd-price/dd-price.vue'
|
|
47
|
+
// z-index 统一取 libs/config/zIndex.js(底部固定条取 sticky 档)
|
|
48
|
+
import zIndexConfig from '../../libs/config/zIndex.js'
|
|
47
49
|
|
|
48
50
|
interface Props {
|
|
49
51
|
/** 提示文案(tip 区域,如「小计不含服务费」) */
|
|
@@ -128,7 +130,6 @@ function onSubmit() {
|
|
|
128
130
|
left: 0;
|
|
129
131
|
right: 0;
|
|
130
132
|
bottom: 0;
|
|
131
|
-
z-index: $dd-z-index-sticky;
|
|
132
133
|
background: var(--dd-bg-card, #{$dd-bg-card});
|
|
133
134
|
|
|
134
135
|
&--safe {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<slot></slot>
|
|
15
15
|
</swiper>
|
|
16
16
|
<slot name="indicator" :active="current" :count="count">
|
|
17
|
-
<view v-if="showIndicators && count > 1" class="dd-swipe__indicators" :class="`dd-swipe__indicators--${vertical ? 'vertical' : 'horizontal'}`">
|
|
17
|
+
<view v-if="showIndicators && count > 1" class="dd-swipe__indicators" :class="`dd-swipe__indicators--${vertical ? 'vertical' : 'horizontal'}`" :style="{ zIndex: zIndexConfig.base + 1 }">
|
|
18
18
|
<view
|
|
19
19
|
v-for="i in count"
|
|
20
20
|
:key="i"
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
|
|
31
31
|
<script setup lang="ts">
|
|
32
32
|
import { computed, provide, ref } from 'vue'
|
|
33
|
+
// z-index 统一取 libs/config/zIndex.js(指示点盖住轮播内容取 base 档内 +1)
|
|
34
|
+
import zIndexConfig from '../../libs/config/zIndex.js'
|
|
33
35
|
|
|
34
36
|
interface Props {
|
|
35
37
|
width?: string
|
|
@@ -113,7 +115,6 @@ defineExpose({ jumpTo, current })
|
|
|
113
115
|
&__indicators {
|
|
114
116
|
position: absolute;
|
|
115
117
|
display: flex;
|
|
116
|
-
z-index: 2;
|
|
117
118
|
|
|
118
119
|
&--horizontal {
|
|
119
120
|
bottom: $dd-space-3;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="dd-swipe-action" :class="{ 'dd-swipe-action--disabled': disabled }">
|
|
3
3
|
<!-- 左侧操作层 (右滑露出) -->
|
|
4
|
-
<view class="dd-swipe-action__actions dd-swipe-action__actions--left" :style="{ width: leftWidthPx + 'px' }">
|
|
4
|
+
<view class="dd-swipe-action__actions dd-swipe-action__actions--left" :style="{ width: leftWidthPx + 'px', zIndex: zIndexConfig.base }">
|
|
5
5
|
<view
|
|
6
6
|
v-for="(action, i) in leftActions"
|
|
7
7
|
:key="'l' + i"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</view>
|
|
15
15
|
</view>
|
|
16
16
|
<!-- 右侧操作层 (左滑露出) -->
|
|
17
|
-
<view class="dd-swipe-action__actions dd-swipe-action__actions--right" :style="{ width: rightWidthPx + 'px' }">
|
|
17
|
+
<view class="dd-swipe-action__actions dd-swipe-action__actions--right" :style="{ width: rightWidthPx + 'px', zIndex: zIndexConfig.base }">
|
|
18
18
|
<view
|
|
19
19
|
v-for="(action, i) in rightActions"
|
|
20
20
|
:key="'r' + i"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<view
|
|
31
31
|
class="dd-swipe-action__content"
|
|
32
32
|
:class="{ 'dd-swipe-action__content--anim': animating }"
|
|
33
|
-
:style="{ transform: `translateX(${translateX}px)
|
|
33
|
+
:style="{ transform: `translateX(${translateX}px)`, zIndex: zIndexConfig.base + 1 }"
|
|
34
34
|
@touchstart="onTouchStart"
|
|
35
35
|
@touchmove.stop.prevent="onTouchMove"
|
|
36
36
|
@touchend="onTouchEnd"
|
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
<script setup lang="ts">
|
|
45
45
|
import { computed, ref } from 'vue'
|
|
46
46
|
import DdIcon from '../dd-icon/dd-icon.vue'
|
|
47
|
+
// z-index 统一取 libs/config/zIndex.js(操作层 base 档,内容层档内 +1 盖住操作层)
|
|
48
|
+
import zIndexConfig from '../../libs/config/zIndex.js'
|
|
47
49
|
|
|
48
50
|
interface SwipeAction {
|
|
49
51
|
text?: string
|
|
@@ -187,7 +189,6 @@ defineExpose({ close })
|
|
|
187
189
|
top: 0;
|
|
188
190
|
bottom: 0;
|
|
189
191
|
display: flex;
|
|
190
|
-
z-index: 0;
|
|
191
192
|
|
|
192
193
|
&--left {
|
|
193
194
|
left: 0;
|
|
@@ -234,7 +235,6 @@ defineExpose({ close })
|
|
|
234
235
|
|
|
235
236
|
&__content {
|
|
236
237
|
position: relative;
|
|
237
|
-
z-index: 1;
|
|
238
238
|
width: 100%;
|
|
239
239
|
background: var(--dd-bg-elevated, #{$dd-bg-elevated});
|
|
240
240
|
transform: translateX(0);
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
'dd-tabbar--border': border,
|
|
12
12
|
'dd-tabbar--safe': safeAreaInsetBottom,
|
|
13
13
|
}"
|
|
14
|
+
:style="{ zIndex: zIndexConfig.sticky }"
|
|
14
15
|
>
|
|
15
16
|
<slot></slot>
|
|
16
17
|
</view>
|
|
@@ -18,6 +19,8 @@
|
|
|
18
19
|
|
|
19
20
|
<script setup lang="ts">
|
|
20
21
|
import { computed, provide, ref } from 'vue'
|
|
22
|
+
// z-index 统一取 libs/config/zIndex.js(fixed 时吸底层级取 sticky 档;非 fixed 时为 static,z-index 天然失效)
|
|
23
|
+
import zIndexConfig from '../../libs/config/zIndex.js'
|
|
21
24
|
|
|
22
25
|
interface Props {
|
|
23
26
|
modelValue?: string | number
|
|
@@ -96,7 +99,6 @@ provide('ddTabbar', {
|
|
|
96
99
|
left: 0;
|
|
97
100
|
right: 0;
|
|
98
101
|
bottom: 0;
|
|
99
|
-
z-index: $dd-z-index-sticky;
|
|
100
102
|
}
|
|
101
103
|
}
|
|
102
104
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<dd-portal>
|
|
3
|
-
<view class="dd-toast" :class="[`dd-toast--${toastState.position}`, { 'dd-toast--show': toastState.visible }]">
|
|
3
|
+
<view class="dd-toast" :class="[`dd-toast--${toastState.position}`, { 'dd-toast--show': toastState.visible }]" :style="{ zIndex: zIndexConfig.toast }">
|
|
4
4
|
<view class="dd-toast__capsule">
|
|
5
5
|
<view v-if="showIcon" class="dd-toast__icon">
|
|
6
6
|
<view v-if="toastState.type === 'loading'" class="dd-toast__spinner"></view>
|
|
@@ -81,6 +81,8 @@ export function showError(message: string) {
|
|
|
81
81
|
import { computed } from 'vue'
|
|
82
82
|
import DdPortal from '../dd-portal/dd-portal.vue'
|
|
83
83
|
import DdIcon from '../dd-icon/dd-icon.vue'
|
|
84
|
+
// z-index 统一取 libs/config/zIndex.js(toast 必须压过 dialog/popup/keyboard 等一切弹出层)
|
|
85
|
+
import zIndexConfig from '../../libs/config/zIndex.js'
|
|
84
86
|
|
|
85
87
|
// text 类型强制隐藏图标
|
|
86
88
|
const showIcon = computed(() => toastState.icon && toastState.type !== 'text')
|
|
@@ -105,7 +107,7 @@ const iconName = computed(() => {
|
|
|
105
107
|
transform: translateX(-50%) scale(0.9);
|
|
106
108
|
opacity: 0;
|
|
107
109
|
visibility: hidden;
|
|
108
|
-
z-index
|
|
110
|
+
/* z-index 由模板注入(libs/config/zIndex.js) */
|
|
109
111
|
@include dd-no-touch; // pointer-events none
|
|
110
112
|
@include dd-transition(opacity 0.25s ease, transform 0.25s ease, visibility 0.25s);
|
|
111
113
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
'dd-topbar--transparent': transparent,
|
|
7
7
|
'dd-topbar--border': border && !transparent,
|
|
8
8
|
}"
|
|
9
|
+
:style="{ zIndex: zIndexConfig.sticky }"
|
|
9
10
|
>
|
|
10
11
|
<view
|
|
11
12
|
v-if="fixed && statusBarHeight > 0"
|
|
@@ -39,6 +40,8 @@
|
|
|
39
40
|
import { computed } from 'vue'
|
|
40
41
|
import DdIcon from '../dd-icon/dd-icon.vue'
|
|
41
42
|
import { getStatusBarHeight, isH5 } from '../../libs/utils'
|
|
43
|
+
// z-index 统一取 libs/config/zIndex.js(fixed 时吸顶层级取 sticky 档;非 fixed 时为 static,z-index 天然失效)
|
|
44
|
+
import zIndexConfig from '../../libs/config/zIndex.js'
|
|
42
45
|
|
|
43
46
|
interface Props {
|
|
44
47
|
title?: string
|
|
@@ -102,7 +105,6 @@ function onBack() {
|
|
|
102
105
|
top: 0;
|
|
103
106
|
left: 0;
|
|
104
107
|
right: 0;
|
|
105
|
-
z-index: $dd-z-index-sticky;
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
&--transparent {
|
package/index.ts
CHANGED
|
@@ -42,9 +42,10 @@ import DdDropdownItem from './components/dd-dropdown-item/dd-dropdown-item.vue'
|
|
|
42
42
|
import DdSidebar from './components/dd-sidebar/dd-sidebar.vue'
|
|
43
43
|
import DdSidebarItem from './components/dd-sidebar-item/dd-sidebar-item.vue'
|
|
44
44
|
|
|
45
|
-
// === Layout (
|
|
45
|
+
// === Layout (10) ===
|
|
46
46
|
import DdCard from './components/dd-card/dd-card.vue'
|
|
47
47
|
import DdRoomCard from './components/dd-room-card/dd-room-card.vue'
|
|
48
|
+
import DdGoodsCard from './components/dd-goods-card/dd-goods-card.vue'
|
|
48
49
|
import DdFeatureGrid from './components/dd-feature-grid/dd-feature-grid.vue'
|
|
49
50
|
import DdSticky from './components/dd-sticky/dd-sticky.vue'
|
|
50
51
|
import DdBillDetail from './components/dd-bill-detail/dd-bill-detail.vue'
|
|
@@ -120,7 +121,7 @@ const components = {
|
|
|
120
121
|
DdDrawer, DdTabbar, DdTabbarItem, DdBacktop,
|
|
121
122
|
DdCollapse, DdCollapseItem, DdDropdownMenu, DdDropdownItem,
|
|
122
123
|
DdSidebar, DdSidebarItem,
|
|
123
|
-
DdCard, DdRoomCard, DdFeatureGrid, DdSticky, DdBillDetail, DdWorkorderCard, DdCalendar, DdQrcode,
|
|
124
|
+
DdCard, DdRoomCard, DdGoodsCard, DdFeatureGrid, DdSticky, DdBillDetail, DdWorkorderCard, DdCalendar, DdQrcode,
|
|
124
125
|
DdSubmitBar,
|
|
125
126
|
DdTag, DdStatCard, DdChampionCard, DdAvatar, DdAvatarGroup, DdBadge,
|
|
126
127
|
DdListCell, DdCell, DdCellGroup, DdCountDown, DdDivider,
|
|
@@ -152,7 +153,7 @@ export {
|
|
|
152
153
|
DdDrawer, DdTabbar, DdTabbarItem, DdBacktop,
|
|
153
154
|
DdCollapse, DdCollapseItem, DdDropdownMenu, DdDropdownItem,
|
|
154
155
|
DdSidebar, DdSidebarItem,
|
|
155
|
-
DdCard, DdRoomCard, DdFeatureGrid, DdSticky, DdBillDetail, DdWorkorderCard, DdCalendar, DdQrcode,
|
|
156
|
+
DdCard, DdRoomCard, DdGoodsCard, DdFeatureGrid, DdSticky, DdBillDetail, DdWorkorderCard, DdCalendar, DdQrcode,
|
|
156
157
|
DdSubmitBar,
|
|
157
158
|
DdTag, DdStatCard, DdChampionCard, DdAvatar, DdAvatarGroup, DdBadge,
|
|
158
159
|
DdListCell, DdCell, DdCellGroup, DdCountDown, DdDivider,
|
package/libs/config/zIndex.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// libs/config/zIndex.js 的类型声明(该库多为 JS 文件,allowJs 未开启,TS 侧导入需要此声明)
|
|
2
2
|
declare const zIndex: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
base: number
|
|
4
|
+
sticky: number
|
|
5
|
+
overlay: number
|
|
5
6
|
popup: number
|
|
6
|
-
mask: number
|
|
7
7
|
dialogMask: number
|
|
8
8
|
dialog: number
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
noNetwork: number
|
|
10
|
+
cropper: number
|
|
11
|
+
loading: number
|
|
12
|
+
toast: number
|
|
13
13
|
}
|
|
14
14
|
export default zIndex
|
package/libs/config/zIndex.js
CHANGED
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* modal: 999
|
|
5
|
-
* navigate: 998
|
|
6
|
-
* tabbar: 998
|
|
7
|
-
* toast: 999
|
|
8
|
-
*/
|
|
1
|
+
// z-index 唯一真源档位表(ADR 0013):组件只准选档或档内 +1 派生,禁止魔数。
|
|
2
|
+
// uniapp 在 H5 中各 API 的 z-index 平台事实(页面层必须低于它们):
|
|
3
|
+
// actionsheet: 999 / modal: 999 / toast: 999 / navigate: 998 / tabbar: 998
|
|
9
4
|
|
|
10
5
|
export default {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
//
|
|
14
|
-
popup:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
sticky: 970,
|
|
22
|
-
indexListSticky: 965
|
|
6
|
+
base: 1, // 普通层内叠放
|
|
7
|
+
sticky: 100, // 页面内吸顶/吸底/导航族/浮钮(H5 须低于平台弹层 998)
|
|
8
|
+
overlay: 2000, // 遮罩
|
|
9
|
+
popup: 2001, // 弹层面板(overlay+1)
|
|
10
|
+
dialogMask: 2010, // 对话框遮罩
|
|
11
|
+
dialog: 2011, // 对话框面板(dialogMask+1)
|
|
12
|
+
noNetwork: 2020, // 断网提示
|
|
13
|
+
cropper: 2025, // 全屏裁剪工作界面(非提示类,须低于 loading/toast)
|
|
14
|
+
loading: 2030, // 全屏加载
|
|
15
|
+
toast: 2040, // 提示(最高)
|
|
23
16
|
}
|
package/package.json
CHANGED
package/scss/_variables.scss
CHANGED
|
@@ -359,15 +359,3 @@ $dd-popup-duration: 0.3s !default;
|
|
|
359
359
|
$dd-popover-offset: 8px !default;
|
|
360
360
|
$dd-step-inactive-color: $dd-neutral-500 !default;
|
|
361
361
|
$dd-step-active-color: $dd-primary-500 !default;
|
|
362
|
-
|
|
363
|
-
// === z-index 层级 ===
|
|
364
|
-
$dd-z-index-base: 1 !default;
|
|
365
|
-
$dd-z-index-sticky: 100 !default;
|
|
366
|
-
$dd-z-index-fixed: 1000 !default;
|
|
367
|
-
$dd-z-index-overlay: 2000 !default;
|
|
368
|
-
$dd-z-index-popup: 2001 !default;
|
|
369
|
-
$dd-z-index-modal: 3000 !default;
|
|
370
|
-
$dd-z-index-toast: 4000 !default;
|
|
371
|
-
$dd-z-index-loading: 5000 !default;
|
|
372
|
-
// 全屏裁剪覆盖层:三画布 + 操作条需压过全部全局层级
|
|
373
|
-
$dd-z-index-cropper: 100000 !default;
|