提交 86f61e8e 编写于 作者: Y yurj26

feat(mp-toutiao): support virtualHost #4699

上级 309483d5
......@@ -1926,6 +1926,21 @@ function initProperties (props, isBehavior = false, file = '', options) {
value: null
};
}
{
if ( options.virtualHost) {
{
options.applyFragment = true;
}
properties.virtualHostStyle = {
type: null,
value: ''
};
properties.virtualHostClass = {
type: null,
value: ''
};
}
}
// scopedSlotsCompiler auto
properties.scopedSlotsCompiler = {
type: String,
......@@ -2622,7 +2637,7 @@ function parseBaseComponent (vueComponentOptions, {
options,
data: initData(vueOptions, Vue.prototype),
behaviors: initBehaviors(vueOptions, initBehavior),
properties: initProperties(vueOptions.props, false, vueOptions.__file),
properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
lifetimes: {
attached () {
const properties = this.properties;
......
......@@ -262,8 +262,15 @@ export function initProperties (props, isBehavior = false, file = '', options) {
value: null
}
}
if (__PLATFORM__ === 'mp-weixin' || __PLATFORM__ === 'mp-alipay') {
if (
__PLATFORM__ === 'mp-weixin' ||
__PLATFORM__ === 'mp-alipay' ||
__PLATFORM__ === 'mp-toutiao'
) {
if (__PLATFORM__ === 'mp-alipay' || options.virtualHost) {
if (__PLATFORM__ === 'mp-toutiao') {
options.applyFragment = true
}
properties.virtualHostStyle = {
type: null,
value: ''
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册