mali-applet-ui 0.0.57 → 0.0.58

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
- <button class="ml-button" :class="[className || '', `type-${type}`, status ? `status-${status}` : '', round ? 'is-round' : '']" @tap="tapEvent" @click="clickEvent">
2
+ <button class="ml-button" :class="[className || '', `type-${type}`, status ? `status-${status}` : '', round ? 'is-round' : '']" :style="styles" @tap="tapEvent" @click="clickEvent">
3
3
  <slot>{{ content }}</slot>
4
4
  </button>
5
5
  </template>
@@ -18,10 +18,16 @@ export default {
18
18
  type: String,
19
19
  default: 'button'
20
20
  },
21
+ width: String,
21
22
  redirect: Boolean,
22
23
  url: String,
23
24
  className: String
24
25
  },
26
+ computed: {
27
+ styles () {
28
+ return this.width ? `width:${this.width};` : ''
29
+ }
30
+ },
25
31
  methods: {
26
32
  tapEvent () {
27
33
  if (this.url) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",