mali-applet-ui 1.0.7 → 1.0.8
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<text class="ml-icon" :class="[className || '', status ? `ss-${status}` : '', name ? `${prefix}${name}` : '', {'is-roll': roll}]" :style="styles" @click="clickEvent" @tap="tapEvent"></text>
|
|
2
|
+
<text class="ml-icon" :class="[className || '', size ? `size-${size}` : '', status ? `ss-${status}` : '', name ? `${prefix}${name}` : '', {'is-roll': roll}]" :style="styles" @click="clickEvent" @tap="tapEvent"></text>
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
@@ -12,6 +12,7 @@ export default {
|
|
|
12
12
|
name: String,
|
|
13
13
|
status: String,
|
|
14
14
|
roll: Boolean,
|
|
15
|
+
size: String,
|
|
15
16
|
fontSize: String,
|
|
16
17
|
className: String
|
|
17
18
|
},
|
|
@@ -48,6 +49,18 @@ export default {
|
|
|
48
49
|
transform: rotate(1turn)
|
|
49
50
|
}
|
|
50
51
|
}
|
|
52
|
+
&.size-large {
|
|
53
|
+
font-size: 44rpx;
|
|
54
|
+
}
|
|
55
|
+
&.size-medium {
|
|
56
|
+
font-size: 40rpx;
|
|
57
|
+
}
|
|
58
|
+
&.size-small {
|
|
59
|
+
font-size: 36rpx;
|
|
60
|
+
}
|
|
61
|
+
&.size-mini {
|
|
62
|
+
font-size: 28rpx;
|
|
63
|
+
}
|
|
51
64
|
&.is-roll {
|
|
52
65
|
display: inline-block;
|
|
53
66
|
animation: rollCircle 1s linear infinite;
|
|
@@ -89,4 +102,4 @@ export default {
|
|
|
89
102
|
color: $ml-white-color;
|
|
90
103
|
}
|
|
91
104
|
}
|
|
92
|
-
</style>
|
|
105
|
+
</style>
|
|
@@ -68,7 +68,8 @@ export default {
|
|
|
68
68
|
hasFilters () {
|
|
69
69
|
const fields = this.emptyOpts.fields || []
|
|
70
70
|
for (const key in this.filterForm) {
|
|
71
|
-
|
|
71
|
+
const itemValue = this.filterForm[key]
|
|
72
|
+
if (fields.includes(key) && (XEUtils.isArray(itemValue) ? itemValue.length : itemValue)) {
|
|
72
73
|
return true
|
|
73
74
|
}
|
|
74
75
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<slot></slot>
|
|
5
5
|
</view>
|
|
6
6
|
<view v-if="showTip" class="ml-tooltip-popup" :style="tipPopupStyles">
|
|
7
|
-
<ml-tooltip-view :title="title" :placement="placement"
|
|
7
|
+
<ml-tooltip-view :title="title" :placement="placement" width="100%" showClose @close="closeEvent"></ml-tooltip-view>
|
|
8
8
|
</view>
|
|
9
9
|
</view>
|
|
10
10
|
</template>
|
|
@@ -38,7 +38,8 @@ export default {
|
|
|
38
38
|
const bottomSys = this.bottom ? `bottom: ${this.bottom};` : ''
|
|
39
39
|
const leftSys = this.left ? `left: ${this.left};` : ''
|
|
40
40
|
const rightSys = this.right ? `right: ${this.right};` : ''
|
|
41
|
-
|
|
41
|
+
const wSys = this.width ? `width: ${this.width};` : ''
|
|
42
|
+
return `${topSys}${bottomSys}${leftSys}${rightSys}${wSys}`
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
45
|
watch: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mali-applet-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "码里云小程序组件库",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
],
|
|
15
15
|
"main": "index.js",
|
|
16
16
|
"scripts": {
|
|
17
|
-
"
|
|
17
|
+
"lib": "gulp build_components",
|
|
18
|
+
"release": "node script/release.js && npm run lib && npm publish",
|
|
18
19
|
"update": "npm install --legacy-peer-deps",
|
|
19
20
|
"eslint-fix": "eslint --fix --ext .vue,.js src",
|
|
20
21
|
"build:custom": "npm run run-before && cross-env NODE_ENV=production uniapp-cli custom",
|