@mpxjs/webpack-plugin 2.7.0-alpha.1 → 2.7.0-alpha.3

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.
@@ -43,6 +43,13 @@ export default {
43
43
  return this.$refs["mpx-input"]
44
44
  }
45
45
  },
46
+ watch: {
47
+ value: function(newVal, oldVal) {
48
+ if(this.originRef && newVal !== this.originRef.value){
49
+ this.originRef.value = newVal;
50
+ }
51
+ }
52
+ },
46
53
  render() {
47
54
  let inputType = "";
48
55
  if (this.password) {
@@ -62,7 +69,6 @@ export default {
62
69
 
63
70
  const data = {
64
71
  class: "mpx-input",
65
- value: this.value,
66
72
  focus: this.focus,
67
73
  ref: "mpx-input",
68
74
  placeholder: this.placeholder,
@@ -72,7 +78,6 @@ export default {
72
78
  ...getInnerListeners(this),
73
79
  };
74
80
  return h("input", data, []);
75
- // return '123'
76
81
  },
77
82
  data() {
78
83
  return {};
@@ -33,10 +33,23 @@ export default {
33
33
  },
34
34
  },
35
35
 
36
+ computed: {
37
+ originRef() {
38
+ return this.$refs["mpx-textarea"]
39
+ }
40
+ },
41
+ watch: {
42
+ value: function(newVal, oldVal) {
43
+ if(this.originRef && newVal !== this.originRef.value){
44
+ this.originRef.value = newVal;
45
+ }
46
+ }
47
+ },
48
+
36
49
  render() {
37
50
  const data = {
38
51
  class: "mpx-textarea",
39
- value: this.value,
52
+ ref: "mpx-input",
40
53
  focus: this.focus,
41
54
  placeholder: this.placeholder,
42
55
  maxLength: this.maxLength,
@@ -304,7 +304,7 @@ module.exports = function (json, options, rawCallback) {
304
304
  buildInfo.componentsMap[resourcePath] = componentsMap[resourcePath] = componentId
305
305
 
306
306
  localComponentsMap[name] = {
307
- resource: addQuery(resource, { component: true, componentId }),
307
+ resource: addQuery(resource, { isComponent: true, componentId }),
308
308
  async: queryObj.async
309
309
  }
310
310
  callback()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.7.0-alpha.1",
3
+ "version": "2.7.0-alpha.3",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"
@@ -83,5 +83,5 @@
83
83
  "engines": {
84
84
  "node": ">=14.14.0"
85
85
  },
86
- "gitHead": "886bbdc1817b93e292814742fdad4a60d4e929b3"
86
+ "gitHead": "0cae26c38c8daf1bb4dd59f027de07ba3908dd34"
87
87
  }