Skip to content

Conversation

@OOMError
Copy link
Contributor

fix(build): 1:windows环境反斜杠导致的几个问题;2:props中使用模板字符串小程序中props中的值会变成"{{";
fix(core): 1:使用mixins小程序中无效的问题;

return function vueCompCreator(options) {
options.mixins = [getCompMixin(options)];
// 如果 options(vue组件的代码)中已有 mixins,则同时保留 options中的 mixins
options.mixins = (options.mixins || []).concat(getCompMixin(options));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

小程序中用behavior抹平

return function (options) {
options.mixins = [pageMixin];
// 如果 options(vue页面的代码)中已有 mixins,则同时保留 options中的 mixins
options.mixins = (options.mixins || []).concat(pageMixin);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

小程序中用behavior抹平

// if (type === 3 && !isComp) {
if (type === 3) {
attrs[param] = `{{ ${value} }}`;
// 如果 mars中的 props里使用模板字符串,经过 bable转换之后 value会变成带双引号的字符串拼接
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

模板字符串不考虑支持

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants