mali-applet-ui 1.0.103 → 1.0.104

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.
@@ -24,6 +24,7 @@ export default {
24
24
  name: 'MlListSelectPage',
25
25
  props: {
26
26
  value: [Array, Number, String],
27
+ defaultOptions: Array,
27
28
  optionProps: Object,
28
29
  compTitle: {
29
30
  type: String,
@@ -74,6 +75,14 @@ export default {
74
75
  return rest.map(item => item[this.optLabelField]).join(',')
75
76
  }
76
77
  },
78
+ watch: {
79
+ defaultOptions () {
80
+ this.dataList = this.defaultOptions
81
+ }
82
+ },
83
+ created () {
84
+ this.dataList = this.defaultOptions
85
+ },
77
86
  methods: {
78
87
  tapEvent () {
79
88
  if (this.disabled) {
@@ -28,6 +28,7 @@ export default {
28
28
  name: 'MlListSelectPage',
29
29
  props: {
30
30
  value: [Array, Number, String],
31
+ defaultOptions: Array,
31
32
  optionProps: Object,
32
33
  compTitle: {
33
34
  type: String,
@@ -75,6 +76,14 @@ export default {
75
76
  return this.dataList.filter(item => this.value === item[this.optValueField])
76
77
  }
77
78
  },
79
+ watch: {
80
+ defaultOptions () {
81
+ this.dataList = this.defaultOptions
82
+ }
83
+ },
84
+ created () {
85
+ this.dataList = this.defaultOptions
86
+ },
78
87
  methods: {
79
88
  tapEvent () {
80
89
  if (this.disabled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.0.103",
3
+ "version": "1.0.104",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",