mcrm-mobile 1.0.6 → 1.0.9

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.
Files changed (66) hide show
  1. package/es/cell-group/index.js +1 -1
  2. package/es/circle/index.js +9 -5
  3. package/es/collapse/index.js +1 -1
  4. package/es/collapse-item/index.js +1 -1
  5. package/es/data/MenuIcon.json +1 -1
  6. package/es/dialog/Dialog.js +2 -2
  7. package/es/grid/index.js +1 -1
  8. package/es/http/index.js +1 -1
  9. package/es/index-anchor/index.js +1 -1
  10. package/es/index.css +84 -1
  11. package/es/index.js +1 -1
  12. package/es/menu-icon/index.js +8 -1
  13. package/es/menu-jump/index.js +265 -215
  14. package/es/nav-bar/index.css +4 -1
  15. package/es/nav-bar/index.js +19 -3
  16. package/es/nav-bar/index.less +5 -1
  17. package/es/panel/index.js +1 -1
  18. package/es/password-input/index.js +2 -2
  19. package/es/picker/index.js +2 -2
  20. package/es/popover/index.js +1 -1
  21. package/es/style/base.css +80 -0
  22. package/es/style/css/iconfont.css +12 -0
  23. package/es/style/fonts/iconfont.ttf +0 -0
  24. package/es/style/fonts/iconfont.woff +0 -0
  25. package/es/style/fonts/iconfont.woff2 +0 -0
  26. package/es/style/theme.less +7 -0
  27. package/es/tabs/index.css +80 -0
  28. package/es/tabs/index.js +6 -2
  29. package/es/tabs/index.less +100 -0
  30. package/lib/cell-group/index.js +1 -1
  31. package/lib/circle/index.js +9 -5
  32. package/lib/collapse/index.js +1 -1
  33. package/lib/collapse-item/index.js +1 -1
  34. package/lib/data/MenuIcon.json +1 -1
  35. package/lib/dialog/Dialog.js +2 -2
  36. package/lib/grid/index.js +1 -1
  37. package/lib/http/index.js +1 -1
  38. package/lib/index-anchor/index.js +1 -1
  39. package/lib/index.css +84 -1
  40. package/lib/index.js +1 -1
  41. package/lib/mcrm-mobile.js +323 -242
  42. package/lib/mcrm-mobile.min.js +5 -5
  43. package/lib/menu-icon/index.js +8 -1
  44. package/lib/menu-jump/index.js +266 -215
  45. package/lib/nav-bar/index.css +4 -1
  46. package/lib/nav-bar/index.js +19 -3
  47. package/lib/nav-bar/index.less +5 -1
  48. package/lib/panel/index.js +1 -1
  49. package/lib/password-input/index.js +2 -2
  50. package/lib/picker/index.js +2 -2
  51. package/lib/popover/index.js +1 -1
  52. package/lib/style/base.css +80 -0
  53. package/lib/style/css/iconfont.css +12 -0
  54. package/lib/style/fonts/iconfont.ttf +0 -0
  55. package/lib/style/fonts/iconfont.woff +0 -0
  56. package/lib/style/fonts/iconfont.woff2 +0 -0
  57. package/lib/style/theme.less +7 -0
  58. package/lib/tabs/index.css +80 -0
  59. package/lib/tabs/index.js +6 -2
  60. package/lib/tabs/index.less +100 -0
  61. package/package.json +2 -1
  62. package/types/common.d.ts +6 -3
  63. package/types/index.d.ts +1 -0
  64. package/vetur/attributes.json +33 -25
  65. package/vetur/tags.json +13 -11
  66. package/vetur/web-types.json +66 -46
@@ -9,7 +9,7 @@ export default create({
9
9
 
10
10
  return _c('div', {
11
11
  class: [_vm.b(), {
12
- 'mm-hairline-top-bottom': _vm.border
12
+ 'mm-hairline--top-bottom': _vm.border
13
13
  }]
14
14
  }, [_vm.title ? _c('div', {
15
15
  class: _vm.b('title')
@@ -5,8 +5,8 @@ import { raf, cancel } from "../utils/dom/raf";
5
5
  var PERIMETER = 3140;
6
6
  var uid = 0;
7
7
 
8
- function format(rate) {
9
- return Math.min(Math.max(rate, 0), 100);
8
+ function format(rate, total) {
9
+ return Math.min(Math.max(rate, 0), total);
10
10
  }
11
11
 
12
12
  function getPath(clockwise, viewBoxSize) {
@@ -94,6 +94,10 @@ export default create({
94
94
  clockwise: {
95
95
  type: Boolean,
96
96
  default: true
97
+ },
98
+ total: {
99
+ type: [Number, String],
100
+ default: 100
97
101
  }
98
102
  },
99
103
  beforeCreate: function beforeCreate() {
@@ -126,7 +130,7 @@ export default create({
126
130
  };
127
131
  },
128
132
  hoverStyle: function hoverStyle() {
129
- var offset = PERIMETER * this.value / 100;
133
+ var offset = PERIMETER * this.value / this.total;
130
134
  return {
131
135
  stroke: "" + this.color,
132
136
  strokeWidth: +this.strokeWidth + 1 + "px",
@@ -143,7 +147,7 @@ export default create({
143
147
  handler: function handler(rate) {
144
148
  this.startTime = Date.now();
145
149
  this.startRate = this.value;
146
- this.endRate = format(rate);
150
+ this.endRate = format(rate, this.total);
147
151
  this.increase = this.endRate > this.startRate;
148
152
  this.duration = Math.abs((this.startRate - this.endRate) * 1000 / this.speed);
149
153
 
@@ -162,7 +166,7 @@ export default create({
162
166
  var now = Date.now();
163
167
  var progress = Math.min((now - this.startTime) / this.duration, 1);
164
168
  var rate = progress * (this.endRate - this.startRate) + this.startRate;
165
- this.$emit("input", format(parseFloat(rate.toFixed(1))));
169
+ this.$emit("input", format(parseFloat(rate.toFixed(1)), this.total));
166
170
 
167
171
  if (this.increase ? rate < this.endRate : rate > this.endRate) {
168
172
  this.rafId = raf(this.animate);
@@ -10,7 +10,7 @@ export default create({
10
10
 
11
11
  return _c('div', {
12
12
  class: [_vm.b(), {
13
- 'mm-hairline-top-bottom': _vm.border
13
+ 'mm-hairline--top-bottom': _vm.border
14
14
  }]
15
15
  }, [_vm._t("default")], 2);
16
16
  },
@@ -14,7 +14,7 @@ export default create({
14
14
 
15
15
  return _c('div', {
16
16
  class: [_vm.b(), {
17
- 'mm-hairline-top': _vm.index
17
+ 'mm-hairline--top': _vm.index
18
18
  }]
19
19
  }, [_c('cell', _vm._b({
20
20
  class: _vm.b('title', {