mali-applet-ui 0.0.21 → 0.0.24
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/components/ml-amount-input/ml-amount-input.vue +2 -1
- package/components/ml-button/ml-button.vue +10 -5
- package/components/ml-checkbox/ml-checkbox.vue +2 -2
- package/components/ml-checkbox-group/ml-checkbox-group.vue +1 -1
- package/components/ml-col/ml-col.vue +53 -0
- package/components/ml-date-picker/ml-date-picker.vue +1 -1
- package/components/ml-date-range-picker/ml-date-range-picker.vue +1 -1
- package/components/ml-datetime-picker/ml-datetime-picker.vue +1 -1
- package/components/ml-datetime-range-picker/ml-datetime-range-picker.vue +1 -1
- package/components/ml-echarts/ml-echarts.vue +1 -1
- package/components/ml-form/ml-form.vue +1 -1
- package/components/ml-form-item/ml-form-item.vue +1 -1
- package/components/ml-full-watermark/ml-full-watermark.vue +1 -1
- package/components/ml-icon/ml-icon.vue +4 -3
- package/components/ml-input/ml-input.vue +48 -7
- package/components/ml-month-picker/ml-month-picker.vue +1 -1
- package/components/ml-number-input/ml-number-input.vue +2 -1
- package/components/ml-progress-bar/ml-progress-bar.vue +1 -1
- package/components/ml-province-city-picker/ml-province-city-picker.vue +1 -1
- package/components/ml-radio/ml-radio.vue +2 -2
- package/components/ml-radio-button/ml-radio-button.vue +40 -0
- package/components/ml-radio-group/ml-radio-group.vue +1 -1
- package/components/ml-row/ml-row.vue +4 -1
- package/components/ml-section/ml-section.vue +41 -0
- package/components/ml-select-picker/ml-select-picker.vue +1 -1
- package/components/{ml-layout-tabbar/ml-layout-tabbar.vue → ml-tabbar/ml-tabbar.vue} +13 -13
- package/components/ml-table/ml-table.vue +7 -22
- package/components/ml-tabs/ml-tabs.vue +48 -0
- package/components/ml-textarea/ml-textarea.vue +2 -1
- package/components/ml-year-picker/ml-year-picker.vue +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import XEUtils from 'xe-utils'
|
|
|
7
7
|
import { toNumMoneyToChinese } from '../../utils'
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
|
-
name: '
|
|
10
|
+
name: 'MlAmountInput',
|
|
11
11
|
props: {
|
|
12
12
|
value: String,
|
|
13
13
|
align: String,
|
|
@@ -111,6 +111,7 @@ export default {
|
|
|
111
111
|
}
|
|
112
112
|
&.is-border {
|
|
113
113
|
border: 1px solid #e5e5e5;
|
|
114
|
+
border-radius: 10rpx;
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
117
|
</style>
|
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
8
|
export default {
|
|
9
|
-
name: '
|
|
9
|
+
name: 'MlButton',
|
|
10
|
+
options: {
|
|
11
|
+
virtualHost: true
|
|
12
|
+
},
|
|
10
13
|
props: {
|
|
11
14
|
content: String,
|
|
12
15
|
status: String,
|
|
@@ -29,21 +32,23 @@ export default {
|
|
|
29
32
|
|
|
30
33
|
<style lang="scss">
|
|
31
34
|
.ml-button {
|
|
35
|
+
width: 100%;
|
|
32
36
|
margin: 0 10rpx;
|
|
33
37
|
&.type-button {
|
|
34
38
|
line-height: 80rpx;
|
|
35
39
|
border: 1px solid #e5e5e5;
|
|
40
|
+
border-radius: 10rpx;
|
|
36
41
|
}
|
|
37
42
|
&.is-round {
|
|
38
43
|
border-radius: 40rpx;
|
|
39
44
|
}
|
|
40
45
|
&.status-primary {
|
|
41
46
|
color: #ffffff;
|
|
42
|
-
background:
|
|
47
|
+
background: $uni-color-primary;
|
|
43
48
|
}
|
|
44
49
|
&.status-success {
|
|
45
50
|
color: #ffffff;
|
|
46
|
-
background:
|
|
51
|
+
background: $uni-color-success;
|
|
47
52
|
}
|
|
48
53
|
&.status-info {
|
|
49
54
|
color: #ffffff;
|
|
@@ -51,11 +56,11 @@ export default {
|
|
|
51
56
|
}
|
|
52
57
|
&.status-warning {
|
|
53
58
|
color: #ffffff;
|
|
54
|
-
background:
|
|
59
|
+
background: $uni-color-warning;
|
|
55
60
|
}
|
|
56
61
|
&.status-danger {
|
|
57
62
|
color: #ffffff;
|
|
58
|
-
background:
|
|
63
|
+
background: $uni-color-error;
|
|
59
64
|
}
|
|
60
65
|
}
|
|
61
66
|
</style>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
<script>
|
|
13
13
|
export default {
|
|
14
|
-
name: '
|
|
14
|
+
name: 'MlCheckbox',
|
|
15
15
|
props: {
|
|
16
16
|
value: [Boolean, Number, String],
|
|
17
17
|
label: {
|
|
@@ -50,7 +50,7 @@ export default {
|
|
|
50
50
|
display: inline-block;
|
|
51
51
|
margin-right: 20rpx;
|
|
52
52
|
&.is-checked {
|
|
53
|
-
color:
|
|
53
|
+
color: $uni-color-primary;
|
|
54
54
|
}
|
|
55
55
|
.checkbox-icon {
|
|
56
56
|
display: inline-block;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="ml-col" :class="[span && !width ? `span-${span}` : '', align ? `align-${align}` : '', width ? 'is-fixed' : '']" :style="styles">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
</view>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
name: 'MlCol',
|
|
10
|
+
options: {
|
|
11
|
+
virtualHost: true
|
|
12
|
+
},
|
|
13
|
+
props: {
|
|
14
|
+
span: [String, Number],
|
|
15
|
+
align: String,
|
|
16
|
+
width: String
|
|
17
|
+
},
|
|
18
|
+
computed: {
|
|
19
|
+
styles () {
|
|
20
|
+
const rest = {}
|
|
21
|
+
if (this.width) {
|
|
22
|
+
rest.width = this.width
|
|
23
|
+
}
|
|
24
|
+
return rest
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<style lang="scss">
|
|
31
|
+
.ml-col {
|
|
32
|
+
$spans: 4.16667%, 8.33333%, 12.5%, 16.66667%, 20.83333%, 25%, 29.16667%, 33.33333%,
|
|
33
|
+
37.5%, 41.66667%, 45.83333%, 50%, 54.16667%, 58.33333%, 62.5%, 66.66667%,
|
|
34
|
+
70.83333%, 75%, 79.16667%, 83.33333%, 87.5%, 91.66667%, 95.83333%, 100%;
|
|
35
|
+
&.align-left {
|
|
36
|
+
text-align: left;
|
|
37
|
+
}
|
|
38
|
+
&.align-center {
|
|
39
|
+
text-align: center;
|
|
40
|
+
}
|
|
41
|
+
&.align-right {
|
|
42
|
+
text-align: right;
|
|
43
|
+
}
|
|
44
|
+
&:not(.is-fixed) {
|
|
45
|
+
flex-grow: 1;
|
|
46
|
+
}
|
|
47
|
+
@for $index from 0 to length($spans) {
|
|
48
|
+
&.span-#{$index + 1} {
|
|
49
|
+
width: nth($spans, $index + 1);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
</style>
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<text class="ml-icon" :class="[`${prefix}${name}`]" @click="clickEvent"></text>
|
|
2
|
+
<text class="ml-icon" :class="[name ? `${prefix}${name}` : '', className]" @click="clickEvent"></text>
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
6
6
|
export default {
|
|
7
|
-
name: '
|
|
7
|
+
name: 'MlIcon',
|
|
8
8
|
props: {
|
|
9
|
-
name: String
|
|
9
|
+
name: String,
|
|
10
|
+
className: String
|
|
10
11
|
},
|
|
11
12
|
data () {
|
|
12
13
|
return {
|
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="ml-input" :class="{'is-right': align === 'right', 'is-border': border, 'is-disabled': disabled}">
|
|
2
|
+
<view class="ml-input" :class="{'is-right': align === 'right', 'is-border': border, 'is-prefix': prefixIcon || type === 'search', 'is-suffix': suffixIcon, 'is-disabled': disabled}">
|
|
3
|
+
<view v-if="prefixIcon || type === 'search'" class="ml-input-prefix-icon">
|
|
4
|
+
<ml-icon v-if="prefixIcon" :className="prefixIcon"></ml-icon>
|
|
5
|
+
<ml-icon v-else name="search"></ml-icon>
|
|
6
|
+
</view>
|
|
3
7
|
<input
|
|
4
8
|
v-model="inpVal"
|
|
5
9
|
type="text"
|
|
6
|
-
class="input-inp"
|
|
10
|
+
class="ml-input-inp"
|
|
7
11
|
:placeholder="placeholder"
|
|
8
12
|
@input="inputEvent" />
|
|
13
|
+
<view v-if="suffixIcon" class="ml-input-suffix-icon">
|
|
14
|
+
<ml-icon :className="suffixIcon"></ml-icon>
|
|
15
|
+
</view>
|
|
9
16
|
</view>
|
|
10
17
|
</template>
|
|
11
18
|
|
|
12
19
|
<script>
|
|
13
20
|
export default {
|
|
14
|
-
name: '
|
|
21
|
+
name: 'MlInput',
|
|
15
22
|
props: {
|
|
16
23
|
value: [Number, String],
|
|
24
|
+
type: String,
|
|
17
25
|
align: String,
|
|
18
26
|
border: Boolean,
|
|
19
27
|
disabled: Boolean,
|
|
28
|
+
prefixIcon: String,
|
|
29
|
+
suffixIcon: String,
|
|
20
30
|
placeholder: {
|
|
21
31
|
type: String,
|
|
22
32
|
default: '请输入'
|
|
@@ -47,19 +57,50 @@ export default {
|
|
|
47
57
|
|
|
48
58
|
<style lang="scss">
|
|
49
59
|
.ml-input {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: row;
|
|
50
62
|
font-size: $uni-font-size-base;
|
|
51
|
-
.input-inp {
|
|
52
|
-
padding: 0
|
|
63
|
+
.ml-input-inp {
|
|
64
|
+
padding: 0 20rpx;
|
|
53
65
|
height: 70rpx;
|
|
66
|
+
width: 100%;
|
|
67
|
+
}
|
|
68
|
+
.ml-input-prefix-icon,
|
|
69
|
+
.ml-input-suffix-icon {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-shrink: 0;
|
|
72
|
+
align-items: center;
|
|
73
|
+
border: 1px solid #e5e5e5;
|
|
74
|
+
}
|
|
75
|
+
.ml-input-prefix-icon {
|
|
76
|
+
padding-left: 20rpx;
|
|
77
|
+
border-right: 0;
|
|
78
|
+
}
|
|
79
|
+
.ml-input-suffix-icon {
|
|
80
|
+
padding-right: 20rpx;
|
|
81
|
+
border-left: 0;
|
|
54
82
|
}
|
|
55
83
|
&.is-right {
|
|
56
|
-
.input-inp {
|
|
84
|
+
.ml-input-inp {
|
|
57
85
|
text-align: right;
|
|
58
86
|
}
|
|
59
87
|
}
|
|
88
|
+
&.is-prefix,
|
|
89
|
+
&.is-suffix,
|
|
60
90
|
&.is-border {
|
|
61
|
-
.input-inp {
|
|
91
|
+
.ml-input-inp {
|
|
62
92
|
border: 1px solid #e5e5e5;
|
|
93
|
+
border-radius: 10rpx;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
&.is-prefix {
|
|
97
|
+
.ml-input-inp {
|
|
98
|
+
border-left: 0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
&.is-suffix {
|
|
102
|
+
.ml-input-inp {
|
|
103
|
+
border-right: 0;
|
|
63
104
|
}
|
|
64
105
|
}
|
|
65
106
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<script>
|
|
6
6
|
export default {
|
|
7
|
-
name: '
|
|
7
|
+
name: 'MlNumberInput',
|
|
8
8
|
props: {
|
|
9
9
|
value: String,
|
|
10
10
|
align: String,
|
|
@@ -53,6 +53,7 @@ export default {
|
|
|
53
53
|
}
|
|
54
54
|
&.is-border {
|
|
55
55
|
border: 1px solid #e5e5e5;
|
|
56
|
+
border-radius: 10rpx;
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
</style>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
<script>
|
|
13
13
|
export default {
|
|
14
|
-
name: '
|
|
14
|
+
name: 'MlRadio',
|
|
15
15
|
props: {
|
|
16
16
|
value: [Boolean, Number, String],
|
|
17
17
|
label: {
|
|
@@ -41,7 +41,7 @@ export default {
|
|
|
41
41
|
display: inline-block;
|
|
42
42
|
margin-right: 20rpx;
|
|
43
43
|
&.is-checked {
|
|
44
|
-
color:
|
|
44
|
+
color: $uni-color-primary;
|
|
45
45
|
}
|
|
46
46
|
.radio-icon {
|
|
47
47
|
font-size: 1.1em;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="ml-radio-button" :class="{'is-disabled': disabled}">
|
|
3
|
+
<view class="ml-radio-button-item" v-for="(item, index) in options" :class="{'is-active': value === item.value}" :key="index" @tap="changeEvent(item)">{{ item.label }}</view>
|
|
4
|
+
</view>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
name: 'MlRadioButton',
|
|
10
|
+
props: {
|
|
11
|
+
value: [Boolean, Number, String],
|
|
12
|
+
options: Array,
|
|
13
|
+
disabled: Boolean
|
|
14
|
+
},
|
|
15
|
+
methods: {
|
|
16
|
+
changeEvent (item) {
|
|
17
|
+
const value = item.value
|
|
18
|
+
this.$emit('input', value)
|
|
19
|
+
this.$emit('change', { value })
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<style lang="scss">
|
|
26
|
+
.ml-radio-button {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
border: 1px solid $uni-color-primary;
|
|
29
|
+
border-right: 0;
|
|
30
|
+
color: $uni-color-primary;
|
|
31
|
+
.ml-radio-button-item {
|
|
32
|
+
border-right: 1px solid $uni-color-primary;
|
|
33
|
+
padding: 8rpx 24rpx;
|
|
34
|
+
&.is-active {
|
|
35
|
+
color: #ffffff;
|
|
36
|
+
background-color: $uni-color-primary;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="ml-section" :class="[type ? `type-${type}` : '']">
|
|
3
|
+
<view v-if="title || $slots.header" class="ml-section-header">
|
|
4
|
+
<slot name="header">
|
|
5
|
+
<text class="ml-section-header-title">{{ title }}</text>
|
|
6
|
+
</slot>
|
|
7
|
+
</view>
|
|
8
|
+
<view class="ml-section-content">
|
|
9
|
+
<slot></slot>
|
|
10
|
+
</view>
|
|
11
|
+
</view>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
export default {
|
|
16
|
+
name: 'MlSection',
|
|
17
|
+
props: {
|
|
18
|
+
title: String,
|
|
19
|
+
type: String
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style lang="scss">
|
|
25
|
+
.ml-section {
|
|
26
|
+
&.type-line {
|
|
27
|
+
.ml-section-header-title {
|
|
28
|
+
border-left: 2px solid $uni-color-primary;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.ml-section-header {
|
|
32
|
+
padding: 10rpx 20rpx;
|
|
33
|
+
.ml-section-header-title {
|
|
34
|
+
padding-left: 20rpx;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.ml-section-content {
|
|
38
|
+
padding: 0 20rpx;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="ml-
|
|
3
|
-
<view class="ml-
|
|
4
|
-
<view class="ml-
|
|
5
|
-
<view class="ml-
|
|
2
|
+
<view class="ml-tabbar">
|
|
3
|
+
<view class="ml-tabbar-list">
|
|
4
|
+
<view class="ml-tabbar-item" v-for="(item) in options" :key="item.value" :class="{'is-active': value == item.value}" @click="clickEvent(item)">
|
|
5
|
+
<view class="ml-tabbar-icon">
|
|
6
6
|
<ml-icon class="icon" :name="value == item.value ? item.activeIcon : item.icon"></ml-icon>
|
|
7
7
|
</view>
|
|
8
|
-
<view class="ml-
|
|
9
|
-
<view v-if="item.showNum && item.num > 0" class="ml-
|
|
8
|
+
<view class="ml-tabbar-name">{{ item.name }}</view>
|
|
9
|
+
<view v-if="item.showNum && item.num > 0" class="ml-tabbar-num">{{ item.num }}</view>
|
|
10
10
|
</view>
|
|
11
11
|
</view>
|
|
12
12
|
</view>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
<script>
|
|
16
16
|
export default {
|
|
17
|
-
name: '
|
|
17
|
+
name: 'MlTabbar',
|
|
18
18
|
props: {
|
|
19
19
|
value: [String, Number],
|
|
20
20
|
options: Array
|
|
@@ -35,14 +35,14 @@ export default {
|
|
|
35
35
|
</script>
|
|
36
36
|
|
|
37
37
|
<style lang="scss">
|
|
38
|
-
.ml-
|
|
38
|
+
.ml-tabbar {
|
|
39
39
|
width: 100%;
|
|
40
40
|
position: fixed;
|
|
41
41
|
left: 0;
|
|
42
42
|
bottom: 0;
|
|
43
43
|
z-index: 88;
|
|
44
44
|
background: #FFFFFF;
|
|
45
|
-
.ml-
|
|
45
|
+
.ml-tabbar-list {
|
|
46
46
|
width: 100%;
|
|
47
47
|
height: 120rpx;
|
|
48
48
|
display: flex;
|
|
@@ -51,7 +51,7 @@ export default {
|
|
|
51
51
|
justify-content: space-between;
|
|
52
52
|
box-sizing: border-box;
|
|
53
53
|
}
|
|
54
|
-
.ml-
|
|
54
|
+
.ml-tabbar-item {
|
|
55
55
|
position: relative;
|
|
56
56
|
flex: 1;
|
|
57
57
|
&.is-active {
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
color: #2497FF;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
.ml-
|
|
62
|
+
.ml-tabbar-num {
|
|
63
63
|
position: absolute;
|
|
64
64
|
top: -4px;
|
|
65
65
|
right: 40rpx;
|
|
@@ -72,7 +72,7 @@ export default {
|
|
|
72
72
|
text-align: center;
|
|
73
73
|
font-size: 24rpx;
|
|
74
74
|
}
|
|
75
|
-
.ml-
|
|
75
|
+
.ml-tabbar-icon {
|
|
76
76
|
width: 45rpx;
|
|
77
77
|
height: 45rpx;
|
|
78
78
|
margin: 0 auto;
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
81
81
|
font-size: 40rpx;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
.ml-
|
|
84
|
+
.ml-tabbar-name {
|
|
85
85
|
width: 100%;
|
|
86
86
|
height: 30rpx;
|
|
87
87
|
text-align: center;
|
|
@@ -247,16 +247,16 @@ export default {
|
|
|
247
247
|
|
|
248
248
|
.table-th {
|
|
249
249
|
display: inline-block;
|
|
250
|
-
height:
|
|
251
|
-
line-height:
|
|
250
|
+
height: 70rpx;
|
|
251
|
+
line-height: 70rpx;
|
|
252
252
|
color: #000000;
|
|
253
253
|
text-align: center;
|
|
254
254
|
overflow: hidden;
|
|
255
255
|
text-overflow: ellipsis;
|
|
256
256
|
white-space: nowrap;
|
|
257
|
-
|
|
258
|
-
background:
|
|
259
|
-
border-bottom: 1rpx solid rgba(
|
|
257
|
+
color: #fff;
|
|
258
|
+
background: $uni-color-primary;
|
|
259
|
+
border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
|
|
260
260
|
box-sizing: border-box;
|
|
261
261
|
&.is-sort {
|
|
262
262
|
.th-title {
|
|
@@ -270,21 +270,6 @@ export default {
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
.table-body {
|
|
274
|
-
// .table-tr:nth-child(even) {
|
|
275
|
-
// background-color: #364775;
|
|
276
|
-
// display: inline-block;
|
|
277
|
-
// color: #FFFFFF;
|
|
278
|
-
// text-align: center;
|
|
279
|
-
// overflow: hidden;
|
|
280
|
-
// text-overflow: ellipsis;
|
|
281
|
-
// white-space: nowrap;
|
|
282
|
-
// }
|
|
283
|
-
// background-color: #999999;
|
|
284
|
-
// box-shadow: 0rpx 0rpx 10rpx -3rpx rgba(0, 0, 0, 0.2);
|
|
285
|
-
|
|
286
|
-
}
|
|
287
|
-
|
|
288
273
|
.table-tr {
|
|
289
274
|
display: block;
|
|
290
275
|
white-space: nowrap;
|
|
@@ -312,10 +297,10 @@ export default {
|
|
|
312
297
|
|
|
313
298
|
.table-td {
|
|
314
299
|
display: inline-block;
|
|
315
|
-
padding:
|
|
300
|
+
padding: 20rpx 10rpx;
|
|
316
301
|
text-align: center;
|
|
317
302
|
color: rgba(39, 42, 48, 0.65);
|
|
318
|
-
border-bottom: 1rpx solid rgba(
|
|
303
|
+
border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
|
|
319
304
|
box-sizing: border-box;
|
|
320
305
|
}
|
|
321
306
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="ml-tabs">
|
|
3
|
+
<scroll-view scroll-x>
|
|
4
|
+
<view class="ml-tabs-navs">
|
|
5
|
+
<view class="ml-tabs-nav-item" v-for="(item, index) in options" :key="index" :class="{'is-active': value === item.value}" @tap="changeEvent(item)">{{ item.label }}</view>
|
|
6
|
+
</view>
|
|
7
|
+
</scroll-view>
|
|
8
|
+
</view>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
export default {
|
|
13
|
+
name: 'MlTabs',
|
|
14
|
+
props: {
|
|
15
|
+
value: [String, Number],
|
|
16
|
+
options: Array
|
|
17
|
+
},
|
|
18
|
+
data () {
|
|
19
|
+
return {}
|
|
20
|
+
},
|
|
21
|
+
methods: {
|
|
22
|
+
changeEvent (item) {
|
|
23
|
+
const value = item.value
|
|
24
|
+
this.$emit('input', value)
|
|
25
|
+
this.$emit('change', { value })
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<style lang="scss">
|
|
32
|
+
.ml-tabs {
|
|
33
|
+
.ml-tabs-navs {
|
|
34
|
+
display: inline-block;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
}
|
|
37
|
+
.ml-tabs-nav-item {
|
|
38
|
+
position: relative;
|
|
39
|
+
display: inline-block;
|
|
40
|
+
padding: 10rpx 20rpx;
|
|
41
|
+
margin: 0 10rpx;
|
|
42
|
+
&.is-active {
|
|
43
|
+
color: $uni-color-primary;
|
|
44
|
+
border-bottom: 1px solid $uni-color-primary;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
</style>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import VoiceInput from './voice-input.vue'
|
|
16
16
|
|
|
17
17
|
export default {
|
|
18
|
-
name: '
|
|
18
|
+
name: 'MlTextarea',
|
|
19
19
|
components: {
|
|
20
20
|
VoiceInput
|
|
21
21
|
},
|
|
@@ -79,6 +79,7 @@ export default {
|
|
|
79
79
|
padding: 20rpx 10rpx 10rpx 30rpx;
|
|
80
80
|
&.is-border {
|
|
81
81
|
border: 1px solid #e5e5e5;
|
|
82
|
+
border-radius: 10rpx;
|
|
82
83
|
}
|
|
83
84
|
& > .content {
|
|
84
85
|
width: 100%;
|