mali-applet-ui 0.2.44 → 0.2.46

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.
@@ -65,7 +65,8 @@ export default {
65
65
  })
66
66
  }
67
67
  }
68
- }
68
+ },
69
+ openAddUser () {}
69
70
  }
70
71
  }
71
72
  </script>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <view class="ml-tabbar" :class="className">
2
+ <view class="ml-tabbar" :class="[className || '', {'is-vertical': vertical}]">
3
3
  <view class="ml-tabbar-item" v-for="(item) in options" :key="item.value" :class="{'is-active': value == item.value}" @tap="tapEvent(item)">
4
4
  <view class="ml-tabbar-icon">
5
5
  <ml-icon class="icon" :name="value == item.value ? item.activeIcon : item.icon"></ml-icon>
@@ -16,6 +16,7 @@ export default {
16
16
  name: 'MlTabbar',
17
17
  props: {
18
18
  value: [String, Number],
19
+ vertical: Boolean,
19
20
  options: Array,
20
21
  className: String
21
22
  },
@@ -63,24 +64,38 @@ export default {
63
64
  <style lang="scss">
64
65
  .ml-tabbar {
65
66
  display: flex;
66
- flex-direction: row;
67
- width: 100%;
68
67
  position: fixed;
69
- left: 0;
70
- bottom: 0;
71
68
  z-index: 22;
72
69
  padding: 6rpx 0 12rpx 0;
73
70
  color: $uni-text-color;
74
71
  background: #FFFFFF;
75
72
  border-top: 1px solid #e5e5e5;
76
- // #ifdef H5
77
- max-width: $ml-page-full-width;
78
- left: 50%;
79
- transform: translateX(-50%);
80
- // #endif
73
+ &.is-vertical {
74
+ flex-direction: column;
75
+ left: 0;
76
+ top: 0;
77
+ width: 120rpx;
78
+ height: 100%;
79
+ .ml-tabbar-item {
80
+ justify-content: center;
81
+ }
82
+ }
83
+ &:not(.is-vertical) {
84
+ left: 0;
85
+ bottom: 0;
86
+ flex-direction: row;
87
+ width: 100%;
88
+ // #ifdef H5
89
+ max-width: $ml-page-full-width;
90
+ left: 50%;
91
+ transform: translateX(-50%);
92
+ // #endif
93
+ }
81
94
  .ml-tabbar-item {
95
+ display: flex;
96
+ flex-direction: column;
82
97
  flex-grow: 1;
83
- text-align: center;
98
+ align-items: center;
84
99
  &.is-active {
85
100
  border: 0;
86
101
  color: $uni-color-primary;
@@ -89,7 +104,7 @@ export default {
89
104
  .ml-tabbar-dot-num {
90
105
  position: absolute;
91
106
  top: 0;
92
- left: 114rpx;
107
+ right: -16rpx;
93
108
  background-color: #f56c6c;
94
109
  color: #fff;
95
110
  border-radius: 20rpx;
@@ -170,7 +170,7 @@ export default {
170
170
  this.$emit('input', this.fileList)
171
171
  } else {
172
172
  this.fileList = this.value.map(item => {
173
- item.tempPath = item[this.urlField]
173
+ item.tempPath = this.getUrl(item)
174
174
  return item
175
175
  })
176
176
  this.selectUniFileList = this.value.map(item => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.2.44",
3
+ "version": "0.2.46",
4
4
  "description": "码里云小程序组件库",
5
5
  "scripts": {
6
6
  "release": "node script/release.js && npm publish"
package/theme.scss CHANGED
@@ -1,8 +1,5 @@
1
1
  // 页面宽度
2
- $ml-page-full-width: 100vw;
3
- // #ifdef H5
4
- $ml-page-full-width: 1200px;
5
- // #endif
2
+ $ml-page-full-width: 100%;
6
3
 
7
4
  // 页面间隔宽度
8
5
  $ml-page-interval-margin: 16rpx;