@didaoktv/didaoui-uniapp 1.0.0 → 1.2.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 +16 -7
- package/components/dd-action-sheet/dd-action-sheet.vue +3 -3
- package/components/dd-album/album.js +19 -0
- package/components/dd-album/dd-album.vue +345 -0
- package/components/dd-album/props.js +89 -0
- package/components/dd-avatar/avatar.js +19 -0
- package/components/dd-avatar/dd-avatar.vue +172 -160
- package/components/dd-avatar/props.js +84 -0
- package/components/dd-avatar-group/avatarGroup.js +14 -0
- package/components/dd-avatar-group/dd-avatar-group.vue +110 -0
- package/components/dd-avatar-group/props.js +57 -0
- package/components/dd-badge/dd-badge.vue +2 -2
- package/components/dd-barcode/dd-barcode.vue +1030 -0
- package/components/dd-bill-detail/dd-bill-detail.vue +265 -0
- package/components/dd-button/dd-button.vue +17 -17
- package/components/dd-calendar/dd-calendar.vue +357 -0
- package/components/dd-canvas/dd-canvas.vue +1088 -0
- package/components/dd-capsule-button/dd-capsule-button.vue +6 -6
- package/components/dd-car-keyboard/carKeyboard.js +6 -0
- package/components/dd-car-keyboard/dd-car-keyboard.vue +315 -0
- package/components/dd-car-keyboard/props.js +19 -0
- package/components/dd-cascader/dd-cascader.vue +405 -0
- package/components/dd-cell/dd-cell.vue +50 -23
- package/components/dd-cell-group/dd-cell-group.vue +32 -25
- package/components/dd-champion-card/dd-champion-card.vue +4 -4
- package/components/dd-checkbox/dd-checkbox.vue +30 -39
- package/components/dd-checkbox-group/dd-checkbox-group.vue +67 -0
- package/components/dd-copy/dd-copy.vue +74 -0
- package/components/dd-coupon/dd-coupon.vue +368 -0
- package/components/dd-cropper/dd-cropper.vue +1297 -0
- package/components/dd-dialog/dd-dialog.vue +1 -1
- package/components/dd-divider/dd-divider.vue +3 -3
- package/components/dd-dropdown-item/dd-dropdown-item.vue +5 -5
- package/components/dd-empty-state/dd-empty-state.vue +1 -1
- package/components/dd-field/dd-field.vue +531 -106
- package/components/dd-form/dd-form.vue +116 -0
- package/components/dd-form/rules.ts +84 -0
- package/components/dd-goods-sku/dd-goods-sku.vue +434 -0
- package/components/dd-icon/dd-icon.vue +2 -2
- package/components/dd-image/dd-image.vue +4 -4
- package/components/dd-input/dd-input.vue +5 -5
- package/components/dd-keyboard/dd-keyboard.vue +178 -0
- package/components/dd-keyboard/keyboard.js +22 -0
- package/components/dd-keyboard/props.js +89 -0
- package/components/dd-link/dd-link.vue +87 -0
- package/components/dd-link/link.js +18 -0
- package/components/dd-link/props.js +44 -0
- package/components/dd-list-cell/dd-list-cell.vue +4 -4
- package/components/dd-loading/dd-loading.vue +1 -1
- package/components/dd-loadmore/dd-loadmore.vue +2 -2
- package/components/dd-markdown/dd-markdown.vue +344 -0
- package/components/dd-markdown/marked.esm.mjs +7 -0
- package/components/dd-mini-program-navbar/dd-mini-program-navbar.vue +9 -9
- package/components/dd-navigation/dd-navigation.vue +5 -5
- package/components/dd-number-keyboard/dd-number-keyboard.vue +200 -0
- package/components/dd-number-keyboard/numberKeyboard.js +8 -0
- package/components/dd-number-keyboard/props.js +24 -0
- package/components/dd-parse/dd-parse.vue +534 -0
- package/components/dd-parse/node/handler.wxs +26 -0
- package/components/dd-parse/node/node.vue +603 -0
- package/components/dd-parse/parse.js +13 -0
- package/components/dd-parse/parser.js +1400 -0
- package/components/dd-parse/props.js +57 -0
- package/components/dd-popover/dd-popover.vue +10 -10
- package/components/dd-popover-item/dd-popover-item.vue +3 -3
- package/components/dd-popup/dd-popup.vue +5 -5
- package/components/dd-poster/dd-poster.vue +695 -0
- package/components/dd-progress/dd-progress.vue +3 -3
- package/components/dd-pull-refresh/dd-pull-refresh.vue +3 -3
- package/components/dd-qrcode/dd-qrcode.vue +509 -0
- package/components/dd-qrcode/qrcode.js +1283 -0
- package/components/dd-radio/dd-radio.vue +19 -20
- package/components/dd-radio-group/dd-radio-group.vue +53 -0
- package/components/dd-rate/dd-rate.vue +1 -1
- package/components/dd-room-card/dd-room-card.vue +3 -3
- package/components/dd-search-bar/dd-search-bar.vue +8 -8
- package/components/dd-segmented-tab/dd-segmented-tab.vue +6 -6
- package/components/dd-signature/dd-signature.vue +513 -0
- package/components/dd-skeleton/dd-skeleton.vue +1 -1
- package/components/dd-slider/dd-slider.vue +4 -4
- package/components/dd-stat-card/dd-stat-card.vue +5 -5
- package/components/dd-step/dd-step.vue +11 -11
- package/components/dd-stepper/dd-stepper.vue +6 -6
- package/components/dd-swipe-action/dd-swipe-action.vue +1 -1
- package/components/dd-swipeable-tab/dd-swipeable-tab.vue +1 -1
- package/components/dd-tabbar-item/dd-tabbar-item.vue +8 -8
- package/components/dd-tag/dd-tag.vue +17 -1
- package/components/dd-text/dd-text.vue +250 -0
- package/components/dd-text/props.js +120 -0
- package/components/dd-text/text.js +30 -0
- package/components/dd-text/value.js +87 -0
- package/components/dd-toast/dd-toast.vue +2 -2
- package/components/dd-upload/dd-upload.vue +4 -4
- package/components/dd-workorder-card/dd-workorder-card.vue +237 -0
- package/index.ts +50 -9
- package/libs/config/color.js +16 -0
- package/libs/config/config.js +25 -0
- package/libs/config/props.js +185 -0
- package/libs/config/zIndex.js +20 -0
- package/libs/function/digit.js +167 -0
- package/libs/function/index.js +932 -0
- package/libs/function/test.js +327 -0
- package/libs/i18n/index.d.ts +2 -0
- package/libs/i18n/index.js +89 -0
- package/libs/i18n/locales/zh-Hans.js +86 -0
- package/libs/mixin/button.js +18 -0
- package/libs/mixin/mixin.js +44 -0
- package/libs/mixin/mpMixin.js +13 -0
- package/libs/mixin/openType.js +27 -0
- package/libs/utils.ts +462 -0
- package/libs/vue.js +3 -0
- package/package.json +1 -1
- package/scss/_dd-shared.scss +40 -0
- package/scss/_variables.scss +4 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { defineMixin } from '../../libs/vue'
|
|
2
|
+
import ParseDefaultProps from './parse'
|
|
3
|
+
import { registerComponentProps } from '../../libs/config/props.js'
|
|
4
|
+
|
|
5
|
+
const defProps = registerComponentProps(ParseDefaultProps)
|
|
6
|
+
export const props = defineMixin({
|
|
7
|
+
props: {
|
|
8
|
+
containerStyle: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: null
|
|
11
|
+
},
|
|
12
|
+
content: String,
|
|
13
|
+
copyLink: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: () => defProps.parse.copyLink
|
|
16
|
+
},
|
|
17
|
+
domain: String,
|
|
18
|
+
errorImg: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: () => defProps.parse.errorImg
|
|
21
|
+
},
|
|
22
|
+
lazyLoad: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: () => defProps.parse.lazyLoad
|
|
25
|
+
},
|
|
26
|
+
loadingImg: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: () => defProps.parse.loadingImg
|
|
29
|
+
},
|
|
30
|
+
pauseVideo: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: () => defProps.parse.pauseVideo
|
|
33
|
+
},
|
|
34
|
+
previewImg: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: () => defProps.parse.previewImg
|
|
37
|
+
},
|
|
38
|
+
scrollTable: Boolean,
|
|
39
|
+
selectable: Boolean,
|
|
40
|
+
setTitle: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: () => defProps.parse.setTitle
|
|
43
|
+
},
|
|
44
|
+
showImgMenu: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: () => defProps.parse.showImgMenu
|
|
47
|
+
},
|
|
48
|
+
tagStyle: {
|
|
49
|
+
type: Object,
|
|
50
|
+
default: () => {}
|
|
51
|
+
},
|
|
52
|
+
useAnchor: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: null
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
})
|
|
@@ -155,29 +155,29 @@ provide('ddPopover', {
|
|
|
155
155
|
|
|
156
156
|
&__arrow {
|
|
157
157
|
position: absolute;
|
|
158
|
-
width:
|
|
159
|
-
height:
|
|
158
|
+
width: $dd-space-2;
|
|
159
|
+
height: $dd-space-2;
|
|
160
160
|
transform: rotate(45deg);
|
|
161
161
|
|
|
162
162
|
&--bottom {
|
|
163
|
-
top: -
|
|
163
|
+
top: -$dd-space-1;
|
|
164
164
|
left: 50%;
|
|
165
|
-
margin-left: -
|
|
165
|
+
margin-left: -$dd-space-1;
|
|
166
166
|
}
|
|
167
167
|
&--top {
|
|
168
|
-
bottom: -
|
|
168
|
+
bottom: -$dd-space-1;
|
|
169
169
|
left: 50%;
|
|
170
|
-
margin-left: -
|
|
170
|
+
margin-left: -$dd-space-1;
|
|
171
171
|
}
|
|
172
172
|
&--left {
|
|
173
|
-
right: -
|
|
173
|
+
right: -$dd-space-1;
|
|
174
174
|
top: 50%;
|
|
175
|
-
margin-top: -
|
|
175
|
+
margin-top: -$dd-space-1;
|
|
176
176
|
}
|
|
177
177
|
&--right {
|
|
178
|
-
left: -
|
|
178
|
+
left: -$dd-space-1;
|
|
179
179
|
top: 50%;
|
|
180
|
-
margin-top: -
|
|
180
|
+
margin-top: -$dd-space-1;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
|
|
@@ -54,8 +54,8 @@ function onClick() {
|
|
|
54
54
|
display: flex;
|
|
55
55
|
align-items: center;
|
|
56
56
|
height: 80rpx;
|
|
57
|
-
padding: 0
|
|
58
|
-
gap:
|
|
57
|
+
padding: 0 $dd-space-4;
|
|
58
|
+
gap: $dd-space-2;
|
|
59
59
|
color: inherit;
|
|
60
60
|
background: transparent;
|
|
61
61
|
@include dd-transition(background 0.15s ease);
|
|
@@ -75,7 +75,7 @@ function onClick() {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&__icon {
|
|
78
|
-
font-size:
|
|
78
|
+
font-size: $dd-font-size-h4;
|
|
79
79
|
line-height: 1;
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -154,7 +154,7 @@ onUnmounted(() => {
|
|
|
154
154
|
&__overlay {
|
|
155
155
|
position: fixed;
|
|
156
156
|
inset: 0;
|
|
157
|
-
background:
|
|
157
|
+
background: $dd-color-overlay-strong;
|
|
158
158
|
backdrop-filter: blur(8px);
|
|
159
159
|
-webkit-backdrop-filter: blur(8px);
|
|
160
160
|
opacity: 0;
|
|
@@ -230,10 +230,10 @@ onUnmounted(() => {
|
|
|
230
230
|
@include dd-flex-center;
|
|
231
231
|
z-index: 2;
|
|
232
232
|
|
|
233
|
-
&--top-left { top:
|
|
234
|
-
&--top-right { top:
|
|
235
|
-
&--bottom-left { bottom:
|
|
236
|
-
&--bottom-right { bottom:
|
|
233
|
+
&--top-left { top: $dd-space-2; left: $dd-space-2; }
|
|
234
|
+
&--top-right { top: $dd-space-2; right: $dd-space-2; }
|
|
235
|
+
&--bottom-left { bottom: $dd-space-2; left: $dd-space-2; }
|
|
236
|
+
&--bottom-right { bottom: $dd-space-2; right: $dd-space-2; }
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
&__safe-bottom {
|