@mpxjs/webpack-plugin 2.8.25-alpha.3 → 2.8.25-alpha.5
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.
- package/lib/platform/template/wx/index.js +6 -0
- package/lib/runtime/components/tenon/tenon-button.vue +4 -0
- package/lib/runtime/components/tenon/tenon-image.vue +6 -0
- package/lib/runtime/components/tenon/tenon-rich-text.vue +6 -1
- package/lib/runtime/components/tenon/tenon-scroll-view.vue +3 -0
- package/lib/runtime/components/tenon/tenon-switch.vue +5 -0
- package/lib/runtime/components/tenon/tenon-text.vue +6 -0
- package/lib/runtime/components/tenon/{tenon-text-area.vue → tenon-textarea.vue} +0 -1
- package/lib/template-compiler/compiler.js +1 -1
- package/package.json +2 -2
|
@@ -64,6 +64,9 @@ export default (function(){
|
|
|
64
64
|
},
|
|
65
65
|
},
|
|
66
66
|
computed: {
|
|
67
|
+
originRef() {
|
|
68
|
+
return this.$refs["mpx-button"]
|
|
69
|
+
},
|
|
67
70
|
className() {
|
|
68
71
|
if (this.hoverClass && this.hoverClass !== "none" && this.hover) {
|
|
69
72
|
return this.hoverClass;
|
|
@@ -109,6 +112,7 @@ export default (function(){
|
|
|
109
112
|
};
|
|
110
113
|
const data = {
|
|
111
114
|
class: ["mpx-button", ...this.classNameList],
|
|
115
|
+
ref: "mpx-button",
|
|
112
116
|
...domProps,
|
|
113
117
|
...getInnerListeners(this, {
|
|
114
118
|
mergeAfter,
|
|
@@ -38,11 +38,17 @@ export default {
|
|
|
38
38
|
}
|
|
39
39
|
return h("image", {
|
|
40
40
|
class: "mpx-image",
|
|
41
|
+
ref: "mpx-image",
|
|
41
42
|
src: this.src,
|
|
42
43
|
resize,
|
|
43
44
|
...getInnerListeners(this)
|
|
44
45
|
});
|
|
45
46
|
},
|
|
47
|
+
computed: {
|
|
48
|
+
originRef() {
|
|
49
|
+
return this.$refs["mpx-image"]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
46
52
|
data() {
|
|
47
53
|
return {};
|
|
48
54
|
},
|
|
@@ -9,10 +9,15 @@ export default {
|
|
|
9
9
|
value: {}
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
|
+
computed: {
|
|
13
|
+
originRef() {
|
|
14
|
+
return this.$refs["mpx-richtext"]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
12
17
|
render () {
|
|
13
|
-
|
|
14
18
|
const data = {
|
|
15
19
|
richText: this.richText,
|
|
20
|
+
ref: "mpx-richtext",
|
|
16
21
|
...getInnerListeners(this)
|
|
17
22
|
}
|
|
18
23
|
return h('text', data)
|
|
@@ -39,11 +39,17 @@ export default {
|
|
|
39
39
|
"text",
|
|
40
40
|
{
|
|
41
41
|
class: classNames,
|
|
42
|
+
ref: "mpx-text",
|
|
42
43
|
...getInnerListeners(this),
|
|
43
44
|
},
|
|
44
45
|
text
|
|
45
46
|
);
|
|
46
47
|
},
|
|
48
|
+
computed: {
|
|
49
|
+
originRef() {
|
|
50
|
+
return this.$refs["mpx-text"]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
47
53
|
data() {
|
|
48
54
|
return {};
|
|
49
55
|
},
|
|
@@ -1918,7 +1918,7 @@ function postProcessTemplate (el) {
|
|
|
1918
1918
|
}
|
|
1919
1919
|
}
|
|
1920
1920
|
|
|
1921
|
-
const isValidMode = makeMap('wx,ali,swan,tt,qq,web,qa,jd,dd,noMode')
|
|
1921
|
+
const isValidMode = makeMap('wx,ali,swan,tt,qq,web,qa,jd,dd,tenon,noMode')
|
|
1922
1922
|
|
|
1923
1923
|
const wrapRE = /^\((.*)\)$/
|
|
1924
1924
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/webpack-plugin",
|
|
3
|
-
"version": "2.8.25-alpha.
|
|
3
|
+
"version": "2.8.25-alpha.5",
|
|
4
4
|
"description": "mpx compile core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mpx"
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"engines": {
|
|
86
86
|
"node": ">=14.14.0"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "d7f97538d873ed1787a9b0afca52f4974da23ce5"
|
|
89
89
|
}
|