oxy-uni-ui 1.2.3 → 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/attributes.json +1 -1
- package/components/common/abstracts/variable.scss +353 -328
- package/components/common/util.ts +185 -32
- package/components/composables/index.ts +1 -0
- package/components/composables/usePopover.ts +24 -20
- package/components/composables/useVirtualScroll.ts +10 -9
- package/components/composables/useWindowResize.ts +35 -0
- package/components/oxy-action-sheet/index.scss +24 -11
- package/components/oxy-action-sheet/oxy-action-sheet.vue +27 -19
- package/components/oxy-action-sheet/types.ts +7 -0
- package/components/oxy-backtop/index.scss +3 -3
- package/components/oxy-backtop/oxy-backtop.vue +9 -6
- package/components/oxy-backtop/types.ts +7 -7
- package/components/oxy-badge/index.scss +4 -4
- package/components/oxy-badge/oxy-badge.vue +3 -3
- package/components/oxy-badge/types.ts +2 -2
- package/components/oxy-button/index.scss +5 -5
- package/components/oxy-button/oxy-button.vue +5 -1
- package/components/oxy-calendar/index.scss +11 -11
- package/components/oxy-calendar/oxy-calendar.vue +1 -0
- package/components/oxy-calendar/types.ts +5 -0
- package/components/oxy-calendar-view/month/index.scss +4 -4
- package/components/oxy-calendar-view/month/types.ts +36 -0
- package/components/oxy-calendar-view/monthPanel/index.scss +7 -7
- package/components/oxy-calendar-view/monthPanel/month-panel.vue +14 -8
- package/components/oxy-calendar-view/year/index.scss +4 -4
- package/components/oxy-calendar-view/yearPanel/index.scss +4 -4
- package/components/oxy-calendar-view/yearPanel/year-panel.vue +21 -5
- package/components/oxy-card/index.scss +2 -2
- package/components/oxy-cell/index.scss +8 -8
- package/components/oxy-checkbox/index.scss +7 -7
- package/components/oxy-checkbox-group/index.scss +2 -2
- package/components/oxy-circle/oxy-circle.vue +10 -7
- package/components/oxy-circle/types.ts +5 -5
- package/components/oxy-col/oxy-col.vue +2 -2
- package/components/oxy-col-picker/index.scss +4 -4
- package/components/oxy-col-picker/oxy-col-picker.vue +6 -5
- package/components/oxy-col-picker/types.ts +7 -2
- package/components/oxy-collapse/index.scss +2 -2
- package/components/oxy-collapse-item/oxy-collapse-item.vue +3 -3
- package/components/oxy-corner/index.scss +32 -32
- package/components/oxy-count-to/oxy-count-to.vue +3 -3
- package/components/oxy-curtain/index.scss +15 -15
- package/components/oxy-curtain/oxy-curtain.vue +4 -2
- package/components/oxy-curtain/types.ts +6 -1
- package/components/oxy-date-strip/oxy-date-strip.vue +2 -2
- package/components/oxy-date-strip/types.ts +1 -1
- package/components/oxy-date-strip-item/index.scss +3 -3
- package/components/oxy-datetime-picker/index.scss +11 -11
- package/components/oxy-datetime-picker/oxy-datetime-picker.vue +1 -0
- package/components/oxy-datetime-picker/types.ts +5 -0
- package/components/oxy-drop-menu/index.scss +3 -3
- package/components/oxy-drop-menu/oxy-drop-menu.vue +3 -3
- package/components/oxy-drop-menu-item/index.scss +1 -1
- package/components/oxy-drop-menu-item/oxy-drop-menu-item.vue +4 -3
- package/components/oxy-drop-menu-item/types.ts +5 -0
- package/components/oxy-echarts/types.ts +6 -0
- package/components/oxy-fab/index.scss +8 -8
- package/components/oxy-fab/oxy-fab.vue +22 -3
- package/components/oxy-file-list/index.scss +24 -23
- package/components/oxy-file-list/oxy-file-list.vue +2 -2
- package/components/oxy-floating-panel/oxy-floating-panel.vue +13 -9
- package/components/oxy-floating-panel/{type.ts → types.ts} +8 -8
- package/components/oxy-footer/index.scss +19 -0
- package/components/oxy-footer/oxy-footer.vue +78 -0
- package/components/oxy-footer/types.ts +17 -0
- package/components/oxy-form-item/types.ts +22 -1
- package/components/oxy-gap/oxy-gap.vue +2 -2
- package/components/oxy-gap/types.ts +2 -2
- package/components/oxy-grid/oxy-grid.vue +1 -1
- package/components/oxy-grid/types.ts +1 -1
- package/components/oxy-grid-item/index.scss +1 -1
- package/components/oxy-grid-item/oxy-grid-item.vue +7 -5
- package/components/oxy-grid-item/types.ts +1 -1
- package/components/oxy-guidance/index.scss +75 -0
- package/components/oxy-guidance/oxy-guidance.vue +201 -0
- package/components/oxy-guidance/types.ts +33 -0
- package/components/oxy-icon/oxy-icon.vue +2 -2
- package/components/oxy-icon/types.ts +1 -1
- package/components/oxy-img/oxy-img.vue +4 -4
- package/components/oxy-img/types.ts +3 -3
- package/components/oxy-img-cropper/index.scss +12 -12
- package/components/oxy-img-cropper/oxy-img-cropper.vue +97 -52
- package/components/oxy-img-cropper/types.ts +2 -2
- package/components/oxy-img-lazy/oxy-img-lazy.vue +3 -3
- package/components/oxy-img-lazy/types.ts +3 -3
- package/components/oxy-index-anchor/index.scss +2 -2
- package/components/oxy-index-anchor/oxy-index-anchor.vue +2 -2
- package/components/oxy-index-anchor/{type.ts → types.ts} +3 -0
- package/components/oxy-index-bar/index.scss +3 -3
- package/components/oxy-index-bar/oxy-index-bar.vue +3 -3
- package/components/oxy-index-bar/{type.ts → types.ts} +2 -2
- package/components/oxy-input/index.scss +1 -1
- package/components/oxy-input-number/index.scss +5 -5
- package/components/oxy-input-number/oxy-input-number.vue +2 -2
- package/components/oxy-input-number/types.ts +3 -2
- package/components/oxy-keyboard/index.scss +5 -5
- package/components/oxy-keyboard/key/index.scss +3 -3
- package/components/oxy-keyboard/key/index.vue +2 -2
- package/components/oxy-keyboard/key/types.ts +15 -0
- package/components/oxy-keyboard/oxy-keyboard.vue +1 -0
- package/components/oxy-keyboard/types.ts +5 -0
- package/components/oxy-link/index.scss +2 -2
- package/components/oxy-list/oxy-list.vue +4 -3
- package/components/oxy-loading/oxy-loading.vue +8 -4
- package/components/oxy-loading/types.ts +1 -1
- package/components/oxy-loadmore/index.scss +3 -3
- package/components/oxy-long-press-menu/index.scss +93 -0
- package/components/oxy-long-press-menu/oxy-long-press-menu.vue +338 -0
- package/components/oxy-long-press-menu/types.ts +34 -0
- package/components/oxy-message-box/index.scss +12 -11
- package/components/oxy-message-box/oxy-message-box.vue +11 -3
- package/components/oxy-message-box/types.ts +14 -0
- package/components/oxy-navbar/index.scss +2 -2
- package/components/oxy-navbar/oxy-navbar.vue +58 -13
- package/components/oxy-navbar/types.ts +8 -1
- package/components/oxy-navbar-capsule/types.ts +3 -0
- package/components/oxy-notice-bar/index.scss +3 -3
- package/components/oxy-notice-bar/oxy-notice-bar.vue +9 -5
- package/components/oxy-notice-bar/types.ts +3 -3
- package/components/oxy-notify/index.ts +1 -0
- package/components/oxy-notify/oxy-notify.vue +3 -2
- package/components/oxy-notify/types.ts +7 -0
- package/components/oxy-pagination/index.scss +1 -1
- package/components/oxy-password-input/oxy-password-input.vue +2 -2
- package/components/oxy-password-input/types.ts +1 -1
- package/components/oxy-picker/index.scss +45 -2
- package/components/oxy-picker/oxy-picker.vue +100 -14
- package/components/oxy-picker/types.ts +29 -1
- package/components/oxy-picker-view/index.scss +3 -3
- package/components/oxy-picker-view/oxy-picker-view.vue +4 -4
- package/components/oxy-popover/index.scss +9 -9
- package/components/oxy-popup/index.scss +2 -2
- package/components/oxy-popup/oxy-popup.vue +35 -2
- package/components/oxy-popup/types.ts +8 -1
- package/components/oxy-progress/index.scss +3 -3
- package/components/oxy-qrcode/draw.ts +398 -0
- package/components/oxy-qrcode/index.scss +2 -0
- package/components/oxy-qrcode/oxy-qrcode.vue +124 -0
- package/components/oxy-qrcode/qrcode.ts +936 -0
- package/components/oxy-qrcode/types.ts +42 -0
- package/components/oxy-radio/index.scss +10 -10
- package/components/oxy-radio-group/index.scss +2 -2
- package/components/oxy-rate/types.ts +4 -4
- package/components/oxy-resize/index.scss +2 -2
- package/components/oxy-resize/oxy-resize.vue +4 -4
- package/components/oxy-resize/types.ts +3 -0
- package/components/oxy-rich-text/index.scss +30 -29
- package/components/oxy-rich-text/mp-html/mp-html.vue +33 -24
- package/components/oxy-rich-text/mp-html/node/node.vue +30 -19
- package/components/oxy-rich-text/oxy-rich-text.vue +31 -31
- package/components/oxy-rich-text/types.ts +6 -1
- package/components/oxy-row/oxy-row.vue +3 -3
- package/components/oxy-row/types.ts +1 -1
- package/components/oxy-search/index.scss +3 -3
- package/components/oxy-segmented/index.scss +16 -16
- package/components/oxy-segmented/oxy-segmented.vue +23 -3
- package/components/oxy-select/index.scss +144 -68
- package/components/oxy-select/oxy-select.vue +85 -50
- package/components/oxy-select/types.ts +13 -1
- package/components/oxy-select-picker/index.scss +7 -7
- package/components/oxy-select-picker/oxy-select-picker.vue +1 -0
- package/components/oxy-select-picker/types.ts +2 -0
- package/components/oxy-sidebar-item/index.scss +1 -1
- package/components/oxy-signature/oxy-signature.vue +18 -10
- package/components/oxy-signature/types.ts +106 -13
- package/components/oxy-skeleton/oxy-skeleton.vue +6 -6
- package/components/oxy-skeleton/types.ts +1 -1
- package/components/oxy-slider/index.scss +3 -3
- package/components/oxy-sort-button/index.scss +8 -8
- package/components/oxy-status-tip/index.scss +4 -4
- package/components/oxy-status-tip/oxy-status-tip.vue +5 -5
- package/components/oxy-status-tip/types.ts +3 -3
- package/components/oxy-step/index.scss +14 -14
- package/components/oxy-sticky/oxy-sticky.vue +6 -6
- package/components/oxy-stream-render/types.ts +4 -1
- package/components/oxy-swipe-action/oxy-swipe-action.vue +27 -2
- package/components/oxy-swiper/oxy-swiper.vue +6 -6
- package/components/oxy-swiper/types.ts +5 -5
- package/components/oxy-switch/index.scss +8 -8
- package/components/oxy-switch/oxy-switch.vue +2 -2
- package/components/oxy-switch/types.ts +1 -1
- package/components/oxy-tab/index.scss +11 -1
- package/components/oxy-tabbar/index.scss +1 -1
- package/components/oxy-tabbar/oxy-tabbar.vue +39 -10
- package/components/oxy-table/index.scss +5 -5
- package/components/oxy-table/oxy-table.vue +8 -6
- package/components/oxy-table/types.ts +2 -2
- package/components/oxy-table-col/oxy-table-col.vue +3 -3
- package/components/oxy-table-col/types.ts +2 -2
- package/components/oxy-tabs/index.scss +43 -15
- package/components/oxy-tabs/oxy-tabs.vue +53 -19
- package/components/oxy-tabs/types.ts +15 -3
- package/components/oxy-tag/index.scss +15 -15
- package/components/oxy-text/index.scss +5 -1
- package/components/oxy-text/oxy-text.vue +76 -7
- package/components/oxy-text/types.ts +12 -0
- package/components/oxy-textarea/index.scss +6 -6
- package/components/oxy-toast/oxy-toast.vue +24 -8
- package/components/oxy-tooltip/index.scss +9 -9
- package/components/oxy-tree/index.scss +51 -15
- package/components/oxy-tree/oxy-tree.vue +13 -9
- package/components/oxy-tree/types.ts +12 -9
- package/components/oxy-upload/index.scss +21 -21
- package/components/oxy-upload/types.ts +2 -2
- package/components/oxy-verification-code/index.scss +6 -0
- package/components/oxy-verification-code/oxy-verification-code.vue +187 -0
- package/components/oxy-verification-code/types.ts +82 -0
- package/components/oxy-video-preview/index.scss +4 -4
- package/components/oxy-virtual-scroll/index.scss +4 -4
- package/components/oxy-virtual-scroll/oxy-virtual-scroll.vue +11 -7
- package/components/oxy-virtual-scroll/types.ts +14 -14
- package/components/oxy-voice-player/index.scss +908 -0
- package/components/oxy-voice-player/oxy-voice-player.vue +821 -0
- package/components/oxy-voice-player/types.ts +567 -0
- package/components/oxy-waterfall/oxy-waterfall.vue +6 -6
- package/components/oxy-waterfall/types.ts +6 -6
- package/components/oxy-watermark/oxy-watermark.vue +35 -13
- package/components/oxy-watermark/types.ts +14 -14
- package/global.d.ts +2 -0
- package/locale/lang/ar-SA.ts +3 -0
- package/locale/lang/en-US.ts +3 -0
- package/locale/lang/zh-CN.ts +3 -0
- package/package.json +97 -1
- package/tags.json +1 -1
- package/web-types.json +1 -1
- package/components/oxy-number-keyboard/index.scss +0 -78
- package/components/oxy-number-keyboard/key/index.scss +0 -81
- package/components/oxy-number-keyboard/key/index.vue +0 -78
- package/components/oxy-number-keyboard/key/types.ts +0 -11
- package/components/oxy-number-keyboard/oxy-number-keyboard.vue +0 -151
- package/components/oxy-number-keyboard/types.ts +0 -83
- package/components/oxy-tree/components/tree-node-content.vue +0 -72
- package/components/oxy-tree/index.ts +0 -51
- package/oxy-uni-ui.zip +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { PropType } from 'vue'
|
|
2
|
+
import { baseProps, makeNumberProp, makeNumericProp, makeStringProp } from '../common/props'
|
|
3
|
+
|
|
4
|
+
// 二维码样式
|
|
5
|
+
export type ClQrcodeMode = 'rect' | 'circular' | 'line' | 'rectSmall'
|
|
6
|
+
|
|
7
|
+
export const qrcodeProps = {
|
|
8
|
+
...baseProps,
|
|
9
|
+
/** 二维码内容 */
|
|
10
|
+
text: makeStringProp(''),
|
|
11
|
+
/** 二维码中心图标 */
|
|
12
|
+
logo: makeStringProp(''),
|
|
13
|
+
/** 二维码宽度,number 与纯数字字符串按 rpx 处理 */
|
|
14
|
+
width: makeNumericProp(400),
|
|
15
|
+
/** 二维码高度,number 与纯数字字符串按 rpx 处理 */
|
|
16
|
+
height: makeNumericProp(400),
|
|
17
|
+
/** 二维码中心图标大小,number 与纯数字字符串按 rpx 处理 */
|
|
18
|
+
logoSize: makeNumericProp(80),
|
|
19
|
+
/** 二维码内边距,number 与纯数字字符串按 rpx 处理 */
|
|
20
|
+
padding: makeNumericProp(0),
|
|
21
|
+
/** 二维码前景色 */
|
|
22
|
+
foreground: makeStringProp('#000'),
|
|
23
|
+
/** 二维码背景颜色 */
|
|
24
|
+
background: makeStringProp('#FFFFFF'),
|
|
25
|
+
/** 二维码错误级别
|
|
26
|
+
* 默认值:H
|
|
27
|
+
* 可选值:L、M、Q、H
|
|
28
|
+
* */
|
|
29
|
+
ecc: {
|
|
30
|
+
type: String as PropType<'L' | 'M' | 'Q' | 'H'>,
|
|
31
|
+
default: 'H'
|
|
32
|
+
},
|
|
33
|
+
/** 二维码样式 rect 普通矩形、circular 小圆点、line 线条、rectSmall 小方格*/
|
|
34
|
+
mode: {
|
|
35
|
+
type: String as PropType<ClQrcodeMode>,
|
|
36
|
+
default: 'circular'
|
|
37
|
+
},
|
|
38
|
+
/** 二维码边框颜色 */
|
|
39
|
+
pdColor: makeStringProp(''),
|
|
40
|
+
/** 二维码边框圆角,number 与纯数字字符串按 rpx 处理 */
|
|
41
|
+
pdRadius: makeNumericProp(0)
|
|
42
|
+
}
|
|
@@ -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: 40rpx;
|
|
96
96
|
word-break: break-all;
|
|
97
97
|
}
|
|
98
98
|
@include when(checked) {
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
|
|
110
110
|
@include when(dot) {
|
|
111
111
|
.oxy-radio__shape {
|
|
112
|
-
border:
|
|
112
|
+
border: 4rpx solid $-radio-dot-border-color;
|
|
113
113
|
border-radius: 50%;
|
|
114
114
|
position: relative;
|
|
115
115
|
display: inline-block;
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
@include when(button) {
|
|
146
146
|
display: inline-block;
|
|
147
147
|
margin-top: 0;
|
|
148
|
-
margin-right:
|
|
148
|
+
margin-right: 20rpx;
|
|
149
149
|
|
|
150
150
|
.oxy-radio__shape {
|
|
151
151
|
display: none;
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
height: $-radio-button-height;
|
|
155
155
|
min-width: $-radio-button-min-width;
|
|
156
156
|
max-width: $-radio-button-max-width;
|
|
157
|
-
padding:
|
|
157
|
+
padding: 10rpx 30rpx;
|
|
158
158
|
margin-right: 0;
|
|
159
159
|
border-radius: $-radio-button-radius;
|
|
160
160
|
background-color: $-radio-button-bg;
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
}
|
|
188
188
|
.oxy-radio__shape {
|
|
189
189
|
display: block;
|
|
190
|
-
margin-right:
|
|
190
|
+
margin-right: 8rpx;
|
|
191
191
|
float: left;
|
|
192
192
|
&::after {
|
|
193
193
|
content: "";
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
|
|
199
199
|
@include when(dot) {
|
|
200
200
|
.oxy-radio__shape {
|
|
201
|
-
margin-top:
|
|
201
|
+
margin-top: 4rpx;
|
|
202
202
|
}
|
|
203
203
|
@include when(large) {
|
|
204
204
|
.oxy-radio__shape {
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
&.icon-placement-right {
|
|
211
211
|
.oxy-radio__shape {
|
|
212
212
|
margin-right: 0;
|
|
213
|
-
margin-left:
|
|
213
|
+
margin-left: 8rpx;
|
|
214
214
|
float: right;
|
|
215
215
|
}
|
|
216
216
|
}
|
|
@@ -257,18 +257,18 @@
|
|
|
257
257
|
|
|
258
258
|
// 以下内容用于解决父子组件样式隔离的问题 —— START
|
|
259
259
|
@include when(cell-radio) {
|
|
260
|
-
padding:
|
|
260
|
+
padding: 26rpx 30rpx;
|
|
261
261
|
margin: 0;
|
|
262
262
|
|
|
263
263
|
@include when(large) {
|
|
264
|
-
padding:
|
|
264
|
+
padding: 28rpx 30rpx;
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
@include when(button-radio) {
|
|
269
269
|
display: inline-flex;
|
|
270
270
|
width: 33.3333%;
|
|
271
|
-
padding:
|
|
271
|
+
padding: 24rpx 24rpx 0 0;
|
|
272
272
|
box-sizing: border-box;
|
|
273
273
|
|
|
274
274
|
.oxy-radio__label {
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
background-color: $-radio-bg;
|
|
12
12
|
font-size: 0;
|
|
13
13
|
|
|
14
|
-
// 上下
|
|
14
|
+
// 上下40rpx 左右30rpx 内部间隔24rpx
|
|
15
15
|
@include when(button) {
|
|
16
16
|
width: 100%;
|
|
17
17
|
height: 100%;
|
|
18
|
-
padding:
|
|
18
|
+
padding: 16rpx 6rpx 40rpx 30rpx;
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
overflow: hidden;
|
|
21
21
|
height: auto;
|
|
@@ -31,16 +31,16 @@ export const rateProps = {
|
|
|
31
31
|
/**
|
|
32
32
|
* 图标大小
|
|
33
33
|
* 类型: string
|
|
34
|
-
* 默认值: '
|
|
34
|
+
* 默认值: '32rpx'
|
|
35
35
|
*/
|
|
36
|
-
size: makeStringProp('
|
|
36
|
+
size: makeStringProp('32rpx'),
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* 图标间距
|
|
40
40
|
* 类型: string
|
|
41
|
-
* 默认值: '
|
|
41
|
+
* 默认值: '8rpx'
|
|
42
42
|
*/
|
|
43
|
-
space: makeStringProp('
|
|
43
|
+
space: makeStringProp('8rpx'),
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* 未选中的图标颜色
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
:scroll-left="expandScrollLeft"
|
|
14
14
|
@scroll="onScrollHandler"
|
|
15
15
|
>
|
|
16
|
-
<view class="oxy-resize__wrapper--placeholder" style="height:
|
|
16
|
+
<view class="oxy-resize__wrapper--placeholder" style="height: 200000rpx; width: 200000rpx"></view>
|
|
17
17
|
</scroll-view>
|
|
18
18
|
<!--监听插槽变小-->
|
|
19
19
|
<scroll-view
|
|
@@ -43,7 +43,7 @@ export default {
|
|
|
43
43
|
|
|
44
44
|
<script lang="ts" setup>
|
|
45
45
|
import { computed, getCurrentInstance, onMounted, ref } from 'vue'
|
|
46
|
-
import {
|
|
46
|
+
import { objToStyle, unitConvert, uuid } from '../common/util'
|
|
47
47
|
import { resizeProps } from './types'
|
|
48
48
|
|
|
49
49
|
const props = defineProps(resizeProps)
|
|
@@ -59,8 +59,8 @@ const scrollEventCount = ref<number>(0)
|
|
|
59
59
|
|
|
60
60
|
const rootStyle = computed(() => {
|
|
61
61
|
const style: Record<string, string | number> = {
|
|
62
|
-
width:
|
|
63
|
-
height:
|
|
62
|
+
width: unitConvert(width.value, 0, { output: 'px' }),
|
|
63
|
+
height: unitConvert(height.value, 0, { output: 'px' })
|
|
64
64
|
}
|
|
65
65
|
return `${objToStyle(style)}${props.customStyle}`
|
|
66
66
|
})
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
height: 100%;
|
|
9
|
+
text-align: left;
|
|
9
10
|
|
|
10
11
|
&.editable {
|
|
11
12
|
border: 1px solid $-rich-text-editable-border-color;
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
.rich-text-main {
|
|
16
17
|
flex: 1;
|
|
17
18
|
overflow-y: auto;
|
|
18
|
-
padding:
|
|
19
|
+
padding: 16rpx;
|
|
19
20
|
position: relative;
|
|
20
21
|
|
|
21
22
|
}
|
|
@@ -27,26 +28,26 @@
|
|
|
27
28
|
.editor_toolbox {
|
|
28
29
|
width: 100%;
|
|
29
30
|
background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
|
|
30
|
-
padding:
|
|
31
|
+
padding: 8rpx 16rpx;
|
|
31
32
|
box-sizing: border-box;
|
|
32
33
|
flex-wrap: wrap;
|
|
33
|
-
gap:
|
|
34
|
+
gap: 8rpx;
|
|
34
35
|
display: flex;
|
|
35
36
|
align-items: center;
|
|
36
37
|
border-bottom: 1px solid $-color-border-light;
|
|
37
|
-
box-shadow: 0
|
|
38
|
+
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.03);
|
|
38
39
|
|
|
39
40
|
.oxy-icon {
|
|
40
41
|
cursor: pointer;
|
|
41
|
-
width:
|
|
42
|
-
height:
|
|
42
|
+
width: 64rpx;
|
|
43
|
+
height: 64rpx;
|
|
43
44
|
display: inline-flex;
|
|
44
45
|
align-items: center;
|
|
45
46
|
justify-content: center;
|
|
46
|
-
border-radius:
|
|
47
|
+
border-radius: 12rpx;
|
|
47
48
|
transition: all 0.2s ease;
|
|
48
49
|
color: $-color-secondary;
|
|
49
|
-
font-size:
|
|
50
|
+
font-size: 36rpx;
|
|
50
51
|
|
|
51
52
|
&:hover {
|
|
52
53
|
background-color: rgba(0, 0, 0, 0.05);
|
|
@@ -59,11 +60,11 @@
|
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
image {
|
|
62
|
-
width:
|
|
63
|
-
height:
|
|
63
|
+
width: 32rpx;
|
|
64
|
+
height: 32rpx;
|
|
64
65
|
cursor: pointer;
|
|
65
|
-
padding:
|
|
66
|
-
border-radius:
|
|
66
|
+
padding: 16rpx;
|
|
67
|
+
border-radius: 12rpx;
|
|
67
68
|
transition: all 0.2s ease;
|
|
68
69
|
box-sizing: content-box;
|
|
69
70
|
display: inline-block;
|
|
@@ -80,10 +81,10 @@
|
|
|
80
81
|
|
|
81
82
|
svg {
|
|
82
83
|
cursor: pointer;
|
|
83
|
-
width:
|
|
84
|
-
height:
|
|
85
|
-
padding:
|
|
86
|
-
border-radius:
|
|
84
|
+
width: 32rpx;
|
|
85
|
+
height: 32rpx;
|
|
86
|
+
padding: 16rpx;
|
|
87
|
+
border-radius: 12rpx;
|
|
87
88
|
transition: all 0.2s ease;
|
|
88
89
|
box-sizing: content-box;
|
|
89
90
|
display: inline-block;
|
|
@@ -91,7 +92,7 @@
|
|
|
91
92
|
|
|
92
93
|
&:hover {
|
|
93
94
|
background-color: rgba(0, 0, 0, 0.05);
|
|
94
|
-
transform: translateY(-
|
|
95
|
+
transform: translateY(-2rpx);
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
&:active {
|
|
@@ -106,22 +107,22 @@
|
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
.dialog-title {
|
|
109
|
-
font-size:
|
|
110
|
-
line-height:
|
|
110
|
+
font-size: 32rpx;
|
|
111
|
+
line-height: 92rpx;
|
|
111
112
|
text-align: center;
|
|
112
|
-
height:
|
|
113
|
+
height: 92rpx;
|
|
113
114
|
font-weight: $-fw-semibold;
|
|
114
115
|
color: $-color-black;
|
|
115
116
|
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
.oxy-rich-text__popup {
|
|
119
|
-
padding: 0
|
|
120
|
+
padding: 0 24rpx 24rpx 24rpx;
|
|
120
121
|
|
|
121
122
|
.oxy-rich-text__emoji-content {
|
|
122
123
|
display: flex;
|
|
123
|
-
font-size:
|
|
124
|
-
line-height:
|
|
124
|
+
font-size: 40rpx;
|
|
125
|
+
line-height: 70rpx;
|
|
125
126
|
text-align: center;
|
|
126
127
|
|
|
127
128
|
.oxy-rich-text__emoji-block {
|
|
@@ -133,23 +134,23 @@
|
|
|
133
134
|
border-top: 1px dashed $-rich-text-popup-divider-color;
|
|
134
135
|
width: 80%;
|
|
135
136
|
height: 0;
|
|
136
|
-
margin:
|
|
137
|
+
margin: 40rpx auto;
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
.oxy-rich-text__link-input {
|
|
140
|
-
margin-bottom:
|
|
141
|
+
margin-bottom: 32rpx;
|
|
141
142
|
|
|
142
143
|
.oxy-rich-text__link-label {
|
|
143
|
-
font-size:
|
|
144
|
+
font-size: 28rpx;
|
|
144
145
|
color: $-color-secondary;
|
|
145
|
-
margin-bottom:
|
|
146
|
+
margin-bottom: 16rpx;
|
|
146
147
|
}
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
.oxy-rich-text__link-buttons {
|
|
150
151
|
display: flex;
|
|
151
|
-
gap:
|
|
152
|
-
margin-top:
|
|
152
|
+
gap: 24rpx;
|
|
153
|
+
margin-top: 40rpx;
|
|
153
154
|
|
|
154
155
|
.oxy-button {
|
|
155
156
|
flex: 1;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
id="_root"
|
|
4
4
|
class="mp-html"
|
|
5
5
|
:class="(selectable ? '_select ' : '') + '_root'"
|
|
6
|
-
:style="(editable ? 'min-height:
|
|
6
|
+
:style="(editable ? 'min-height:400rpx;' : '') + containerStyle"
|
|
7
7
|
@tap="_containTap"
|
|
8
8
|
>
|
|
9
9
|
<slot v-if="!nodes[0]" />
|
|
@@ -11,14 +11,19 @@
|
|
|
11
11
|
<node v-else :childs="nodes" :opts="[lazyLoad, loadingImg, errorImg, showImgMenu, selectable, editable, placeholder, 'nodes']" name="span" />
|
|
12
12
|
<!-- #endif -->
|
|
13
13
|
<!-- #ifdef APP-PLUS-NVUE -->
|
|
14
|
-
<web-view
|
|
14
|
+
<web-view
|
|
15
|
+
ref="web"
|
|
16
|
+
src="/static/app-plus/mp-html/local.html"
|
|
17
|
+
:style="'margin-top:' + toPx(-2) + ';height:' + toPx(height)"
|
|
18
|
+
@onPostMessage="_onMessage"
|
|
19
|
+
/>
|
|
15
20
|
<!-- #endif -->
|
|
16
|
-
<view v-if="tooltip" class="_tooltip_contain" :style="'top:' + tooltip.top
|
|
21
|
+
<view v-if="tooltip" class="_tooltip_contain" :style="'top:' + toPx(tooltip.top)">
|
|
17
22
|
<view class="_tooltip">
|
|
18
23
|
<view v-for="(item, index) in tooltip.items" v-bind:key="index" class="_tooltip_item" :data-i="index" @tap="_tooltipTap">{{ item }}</view>
|
|
19
24
|
</view>
|
|
20
25
|
</view>
|
|
21
|
-
<view v-if="slider" class="_slider" :style="'top:' + slider.top
|
|
26
|
+
<view v-if="slider" class="_slider" :style="'top:' + toPx(slider.top)">
|
|
22
27
|
<slider
|
|
23
28
|
:value="slider.value"
|
|
24
29
|
:min="slider.min"
|
|
@@ -27,12 +32,12 @@
|
|
|
27
32
|
block-size="14"
|
|
28
33
|
show-value
|
|
29
34
|
activeColor="white"
|
|
30
|
-
style="padding:
|
|
35
|
+
style="padding: 6rpx"
|
|
31
36
|
@changing="_sliderChanging"
|
|
32
37
|
@change="_sliderChange"
|
|
33
38
|
/>
|
|
34
39
|
</view>
|
|
35
|
-
<view v-if="color" class="_tooltip_contain" :style="'top:' + color.top
|
|
40
|
+
<view v-if="color" class="_tooltip_contain" :style="'top:' + toPx(color.top)">
|
|
36
41
|
<view class="_tooltip" style="overflow-y: hidden">
|
|
37
42
|
<view
|
|
38
43
|
v-for="(item, index) in color.items"
|
|
@@ -85,6 +90,7 @@ import highlight from './highlight/index.js'
|
|
|
85
90
|
import latex from './latex/index.js'
|
|
86
91
|
import style from './style/index.js'
|
|
87
92
|
import editable from './editable/index.js'
|
|
93
|
+
import { unitConvert } from '../../common/util'
|
|
88
94
|
const plugins = [markdown, highlight, latex, style, editable]
|
|
89
95
|
// #ifdef APP-PLUS-NVUE
|
|
90
96
|
const dom = weex.requireModule('dom')
|
|
@@ -184,6 +190,9 @@ export default {
|
|
|
184
190
|
this._hook('onDetached')
|
|
185
191
|
},
|
|
186
192
|
methods: {
|
|
193
|
+
toPx(value) {
|
|
194
|
+
return unitConvert(value, 0, { output: 'px' })
|
|
195
|
+
},
|
|
187
196
|
_containTap() {
|
|
188
197
|
if (!this._lock && !this.slider && !this.color) {
|
|
189
198
|
this._edit = undefined
|
|
@@ -587,7 +596,7 @@ export default {
|
|
|
587
596
|
/* #ifndef APP-PLUS-NVUE */
|
|
588
597
|
/* 根节点样式 */
|
|
589
598
|
._root {
|
|
590
|
-
padding:
|
|
599
|
+
padding: 2rpx 0;
|
|
591
600
|
overflow-x: auto;
|
|
592
601
|
overflow-y: hidden;
|
|
593
602
|
-webkit-overflow-scrolling: touch;
|
|
@@ -602,8 +611,8 @@ export default {
|
|
|
602
611
|
/* 提示条 */
|
|
603
612
|
._tooltip_contain {
|
|
604
613
|
position: absolute;
|
|
605
|
-
right:
|
|
606
|
-
left:
|
|
614
|
+
right: 40rpx;
|
|
615
|
+
left: 40rpx;
|
|
607
616
|
text-align: center;
|
|
608
617
|
}
|
|
609
618
|
|
|
@@ -612,29 +621,29 @@ export default {
|
|
|
612
621
|
display: inline-block;
|
|
613
622
|
width: auto;
|
|
614
623
|
max-width: 100%;
|
|
615
|
-
height:
|
|
616
|
-
padding: 0
|
|
624
|
+
height: 60rpx;
|
|
625
|
+
padding: 0 6rpx;
|
|
617
626
|
overflow-x: auto;
|
|
618
627
|
overflow-y: hidden;
|
|
619
|
-
font-size:
|
|
620
|
-
line-height:
|
|
628
|
+
font-size: 28rpx;
|
|
629
|
+
line-height: 60rpx;
|
|
621
630
|
white-space: nowrap;
|
|
622
|
-
padding-bottom:
|
|
631
|
+
padding-bottom: 4rpx;
|
|
623
632
|
border: 1px solid transparent;
|
|
624
633
|
}
|
|
625
634
|
|
|
626
635
|
._tooltip::-webkit-scrollbar {
|
|
627
|
-
height:
|
|
636
|
+
height: 8rpx;
|
|
628
637
|
}
|
|
629
638
|
|
|
630
639
|
._tooltip::-webkit-scrollbar-track {
|
|
631
640
|
background: rgba(255, 255, 255, 0.1);
|
|
632
|
-
border-radius:
|
|
641
|
+
border-radius: 4rpx;
|
|
633
642
|
}
|
|
634
643
|
|
|
635
644
|
._tooltip::-webkit-scrollbar-thumb {
|
|
636
645
|
background: rgba(255, 255, 255, 1);
|
|
637
|
-
border-radius:
|
|
646
|
+
border-radius: 4rpx;
|
|
638
647
|
}
|
|
639
648
|
|
|
640
649
|
._tooltip::-webkit-scrollbar-thumb:hover {
|
|
@@ -645,16 +654,16 @@ export default {
|
|
|
645
654
|
display: inline-block;
|
|
646
655
|
width: auto;
|
|
647
656
|
padding: 0 2vw;
|
|
648
|
-
line-height:
|
|
657
|
+
line-height: 60rpx;
|
|
649
658
|
background-color: black;
|
|
650
659
|
color: white;
|
|
651
660
|
}
|
|
652
661
|
|
|
653
662
|
._color_item {
|
|
654
663
|
display: inline-block;
|
|
655
|
-
width:
|
|
656
|
-
height:
|
|
657
|
-
margin:
|
|
664
|
+
width: 36rpx;
|
|
665
|
+
height: 36rpx;
|
|
666
|
+
margin: 10rpx 2vw;
|
|
658
667
|
border: 1px solid #dfe2e5;
|
|
659
668
|
border-radius: 50%;
|
|
660
669
|
}
|
|
@@ -662,14 +671,14 @@ export default {
|
|
|
662
671
|
/* 图片宽度滚动条 */
|
|
663
672
|
._slider {
|
|
664
673
|
position: absolute;
|
|
665
|
-
left:
|
|
666
|
-
width:
|
|
674
|
+
left: 40rpx;
|
|
675
|
+
width: 440rpx;
|
|
667
676
|
}
|
|
668
677
|
|
|
669
678
|
._tooltip,
|
|
670
679
|
._slider {
|
|
671
680
|
background-color: black;
|
|
672
|
-
border-radius:
|
|
681
|
+
border-radius: 6rpx;
|
|
673
682
|
opacity: 0.75;
|
|
674
683
|
}
|
|
675
684
|
</style>
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view @tap="nodeTap" :id="attrs.id" :class="'_block _'+name+' '+attrs.class" :style="(ctrl.root&&opts[5]!=='simple'?'border:1px solid black;padding:
|
|
2
|
+
<view @tap="nodeTap" :id="attrs.id" :class="'_block _'+name+' '+attrs.class" :style="(ctrl.root&&opts[5]!=='simple'?'border:1px solid black;padding:10rpx;display:block;':'')+attrs.style">
|
|
3
3
|
<block v-for="(n, i) in nodes" v-bind:key="i">
|
|
4
4
|
<!-- 图片 -->
|
|
5
5
|
<!-- 占位图 -->
|
|
6
6
|
<image v-if="n.name==='img'&&!n.t&&((opts[1]&&!ctrl[i])||ctrl[i]<0)" class="_img" :style="n.attrs.style" :src="ctrl[i]<0?opts[2]:opts[1]" mode="widthFix" />
|
|
7
7
|
<!-- 显示图片 -->
|
|
8
8
|
<!-- #ifdef H5 || (APP-PLUS && VUE2) -->
|
|
9
|
-
<img v-if="n.name==='img'" :id="n.attrs.id" :class="'_img '+n.attrs.class" :style="(ctrl['e'+i]&&opts[5]!=='simple'?'border:1px dashed black;padding:
|
|
9
|
+
<img v-if="n.name==='img'" :id="n.attrs.id" :class="'_img '+n.attrs.class" :style="(ctrl['e'+i]&&opts[5]!=='simple'?'border:1px dashed black;padding:6rpx;':'')+(ctrl[i]===-1?'display:none;':'')+n.attrs.style" :src="n.attrs.src||(ctrl.load?n.attrs['data-src']:'')" :data-i="i" @load="imgLoad" @error="mediaError" @tap.stop="imgTap" @longpress="imgLongTap" />
|
|
10
10
|
<!-- #endif -->
|
|
11
11
|
<!-- #ifndef H5 || (APP-PLUS && VUE2) -->
|
|
12
12
|
<!-- 表格中的图片,使用 rich-text 防止大小不正确 -->
|
|
13
13
|
<rich-text v-if="n.name==='img'&&n.t" :style="'display:'+n.t" :nodes="[{attrs:{style:n.attrs.style||'',src:n.attrs.src},name:'img'}]" :data-i="i" @tap.stop="imgTap" />
|
|
14
14
|
<!-- #endif -->
|
|
15
15
|
<!-- #ifdef APP-HARMONY -->
|
|
16
|
-
<image v-else-if="n.name==='img'" :id="n.attrs.id||('n'+i)" :class="'_img '+n.attrs.class" :style="(ctrl['e'+i]&&opts[5]!=='simple'?'border:1px dashed black;padding:
|
|
16
|
+
<image v-else-if="n.name==='img'" :id="n.attrs.id||('n'+i)" :class="'_img '+n.attrs.class" :style="(ctrl['e'+i]&&opts[5]!=='simple'?'border:1px dashed black;padding:6rpx;':'')+(ctrl[i]===-1?'display:none;':'')+'width:'+ctrl[i]+'px;'+n.attrs.style" :src="n.attrs.src||(ctrl.load?n.attrs['data-src']:'')" :mode="!n.h?'widthFix':(!n.w?'heightFix':(n.m||'scaleToFill'))" :data-i="i" @load="imgLoad" @error="mediaError" @tap.stop="imgTap" @longpress="imgLongTap" />
|
|
17
17
|
<!-- #endif -->
|
|
18
18
|
<!-- #ifndef H5 || APP-PLUS || MP-KUAISHOU -->
|
|
19
|
-
<image v-else-if="n.name==='img'" :id="n.attrs.id" :class="'_img '+n.attrs.class" :style="(ctrl['e'+i]&&opts[5]!=='simple'?'border:1px dashed black;padding:
|
|
19
|
+
<image v-else-if="n.name==='img'" :id="n.attrs.id" :class="'_img '+n.attrs.class" :style="(ctrl['e'+i]&&opts[5]!=='simple'?'border:1px dashed black;padding:6rpx;':'')+(ctrl[i]===-1?'display:none;':'')+'width:'+(ctrl[i]||1)+'px;height:'+(ctrl['h'+i]||1)+'px;'+n.attrs.style" :src="n.attrs.src" :mode="!n.h?'widthFix':(!n.w?'heightFix':(n.m||'scaleToFill'))" :lazy-load="opts[0]" :webp="n.webp" :show-menu-by-longpress="!opts[5]&&opts[3]&&!n.attrs.ignore" :image-menu-prevent="opts[5]||!opts[3]||n.attrs.ignore" :data-i="i" @load="imgLoad" @error="mediaError" @tap.stop="imgTap" @longpress="imgLongTap" />
|
|
20
20
|
<!-- #endif -->
|
|
21
21
|
<!-- #ifdef MP-KUAISHOU -->
|
|
22
|
-
<image v-else-if="n.name==='img'" :id="n.attrs.id" :class="'_img '+n.attrs.class" :style="(ctrl['e'+i]&&opts[5]!=='simple'?'border:1px dashed black;padding:
|
|
22
|
+
<image v-else-if="n.name==='img'" :id="n.attrs.id" :class="'_img '+n.attrs.class" :style="(ctrl['e'+i]&&opts[5]!=='simple'?'border:1px dashed black;padding:6rpx;':'')+(ctrl[i]===-1?'display:none;':'')+n.attrs.style" :src="n.attrs.src" :lazy-load="opts[0]" :data-i="i" @load="imgLoad" @error="mediaError" @tap.stop="imgTap"></image>
|
|
23
23
|
<!-- #endif -->
|
|
24
24
|
<!-- #ifdef APP-PLUS && VUE3 -->
|
|
25
|
-
<image v-else-if="n.name==='img'" :id="n.attrs.id" :class="'_img '+n.attrs.class" :style="(ctrl['e'+i]&&opts[5]!=='simple'?'border:1px dashed black;padding:
|
|
25
|
+
<image v-else-if="n.name==='img'" :id="n.attrs.id" :class="'_img '+n.attrs.class" :style="(ctrl['e'+i]&&opts[5]!=='simple'?'border:1px dashed black;padding:6rpx;':'')+(ctrl[i]===-1?'display:none;':'')+'width:'+(ctrl[i]||1)+'px;'+n.attrs.style" :src="n.attrs.src||(ctrl.load?n.attrs['data-src']:'')" :mode="!n.h?'widthFix':(!n.w?'heightFix':(n.m||''))" :data-i="i" @load="imgLoad" @error="mediaError" @tap.stop="imgTap" @longpress="imgLongTap" />
|
|
26
26
|
<!-- #endif -->
|
|
27
27
|
<!-- 文本 -->
|
|
28
28
|
<text v-else-if="n.type==='text'&&!ctrl['e'+i]" :data-i="i" :user-select="opts[4]" :decode="!opts[5]" @tap="editStart">{{n.text}}
|
|
29
29
|
<text v-if="!n.text" style="color:gray">{{opts[6]||'请输入'}}</text>
|
|
30
30
|
</text>
|
|
31
|
-
<text v-else-if="n.type==='text'&&ctrl['e'+i]===1" :data-i="i" style="border:1px dashed black;min-width:
|
|
31
|
+
<text v-else-if="n.type==='text'&&ctrl['e'+i]===1" :data-i="i" style="border:1px dashed black;min-width:100rpx;width:auto;padding:10rpx;display:block" @tap.stop="editStart">{{n.text}}
|
|
32
32
|
<text v-if="!n.text" style="color:gray">{{opts[6]||'请输入'}}</text>
|
|
33
33
|
</text>
|
|
34
|
-
<textarea v-else-if="n.type==='text'" :style="opts[5]==='simple'?'':'border:1px dashed black;'+'min-width:
|
|
34
|
+
<textarea v-else-if="n.type==='text'" :style="opts[5]==='simple'?'':'border:1px dashed black;'+'min-width:100rpx;width:auto;padding:10rpx'" auto-height maxlength="-1" :focus="ctrl['e'+i]===3" :value="n.text" :data-i="i" @input="editInput" @blur="editEnd" />
|
|
35
35
|
<text v-else-if="n.name==='br'">\n</text>
|
|
36
36
|
<!-- 链接 -->
|
|
37
37
|
<view v-else-if="n.name==='a'" :id="n.attrs.id" :class="(n.attrs.href?'_a ':'')+n.attrs.class" hover-class="_hover" :style="'display:inline;'+n.attrs.style" :data-i="i" @tap.stop="linkTap">
|
|
@@ -114,6 +114,7 @@ module.exports = {
|
|
|
114
114
|
</script>
|
|
115
115
|
<script>
|
|
116
116
|
import Parser from '../parser'
|
|
117
|
+
import { unitConvert } from '../../../common/util'
|
|
117
118
|
function getTop(e) {
|
|
118
119
|
let top
|
|
119
120
|
top = e.currentTarget.offsetTop
|
|
@@ -393,13 +394,23 @@ export default {
|
|
|
393
394
|
changing: val => {
|
|
394
395
|
if (Math.abs(val - value) > 2) {
|
|
395
396
|
// 字号变换超过 2 时更新到视图
|
|
396
|
-
parent.changeStyle(
|
|
397
|
+
parent.changeStyle(
|
|
398
|
+
'font-size',
|
|
399
|
+
i,
|
|
400
|
+
unitConvert(val, 0, { output: 'px' }),
|
|
401
|
+
unitConvert(value, 0, { output: 'px' })
|
|
402
|
+
)
|
|
397
403
|
value = e.detail.value
|
|
398
404
|
}
|
|
399
405
|
},
|
|
400
406
|
change: val => {
|
|
401
407
|
if (val !== value) {
|
|
402
|
-
parent.changeStyle(
|
|
408
|
+
parent.changeStyle(
|
|
409
|
+
'font-size',
|
|
410
|
+
i,
|
|
411
|
+
unitConvert(val, 0, { output: 'px' }),
|
|
412
|
+
unitConvert(value, 0, { output: 'px' })
|
|
413
|
+
)
|
|
403
414
|
}
|
|
404
415
|
this.root._editVal(`${parent.opts[7]}.${i}.attrs.style`, style, parent.childs[i].attrs.style)
|
|
405
416
|
}
|
|
@@ -915,7 +926,7 @@ export default {
|
|
|
915
926
|
|
|
916
927
|
/deep/ .md-table,
|
|
917
928
|
/deep/ .md-blockquote {
|
|
918
|
-
margin-bottom:
|
|
929
|
+
margin-bottom: 32rpx;
|
|
919
930
|
}
|
|
920
931
|
|
|
921
932
|
/deep/ .md-table {
|
|
@@ -937,7 +948,7 @@ export default {
|
|
|
937
948
|
|
|
938
949
|
/deep/ .md-th,
|
|
939
950
|
/deep/ .md-td {
|
|
940
|
-
padding:
|
|
951
|
+
padding: 12rpx 26rpx !important;
|
|
941
952
|
border: 1px solid #dfe2e5;
|
|
942
953
|
}
|
|
943
954
|
|
|
@@ -956,7 +967,7 @@ export default {
|
|
|
956
967
|
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
|
|
957
968
|
font-size: 85%;
|
|
958
969
|
background-color: rgba(27, 31, 35, 0.05);
|
|
959
|
-
border-radius:
|
|
970
|
+
border-radius: 6rpx;
|
|
960
971
|
}
|
|
961
972
|
|
|
962
973
|
/deep/ .md-pre .md-code {
|
|
@@ -983,14 +994,14 @@ export default {
|
|
|
983
994
|
|
|
984
995
|
/* #endif */
|
|
985
996
|
/deep/ ._video {
|
|
986
|
-
width:
|
|
987
|
-
height:
|
|
997
|
+
width: 600rpx;
|
|
998
|
+
height: 450rpx;
|
|
988
999
|
display: inline-block;
|
|
989
1000
|
background-color: black;
|
|
990
1001
|
}
|
|
991
1002
|
/* a 标签默认效果 */
|
|
992
1003
|
._a {
|
|
993
|
-
padding:
|
|
1004
|
+
padding: 3rpx 0 3rpx 0;
|
|
994
1005
|
color: #366092;
|
|
995
1006
|
word-break: break-all;
|
|
996
1007
|
}
|
|
@@ -1080,7 +1091,7 @@ export default {
|
|
|
1080
1091
|
._ol,
|
|
1081
1092
|
._ul {
|
|
1082
1093
|
display: block;
|
|
1083
|
-
padding-left:
|
|
1094
|
+
padding-left: 80rpx;
|
|
1084
1095
|
margin: 1em 0;
|
|
1085
1096
|
}
|
|
1086
1097
|
|
|
@@ -1154,8 +1165,8 @@ export default {
|
|
|
1154
1165
|
|
|
1155
1166
|
/* #ifdef APP-PLUS */
|
|
1156
1167
|
._video {
|
|
1157
|
-
width:
|
|
1158
|
-
height:
|
|
1168
|
+
width: 600rpx;
|
|
1169
|
+
height: 450rpx;
|
|
1159
1170
|
}
|
|
1160
1171
|
/* #endif */
|
|
1161
1172
|
</style>
|