提交 49591f74 编写于 作者: Q qiang

chore: build

上级 c7bdda25
......@@ -367,6 +367,22 @@ function initDefaultProps(isBehavior = false) {
}
return properties;
}
function initVirtualHostProps(options) {
const properties = {};
{
{
properties.virtualHostStyle = {
type: null,
value: '',
};
properties.virtualHostClass = {
type: null,
value: '',
};
}
}
return properties;
}
/**
*
* @param mpComponentOptions
......@@ -376,7 +392,7 @@ function initProps(mpComponentOptions) {
if (!mpComponentOptions.properties) {
mpComponentOptions.properties = {};
}
extend(mpComponentOptions.properties, initDefaultProps());
extend(mpComponentOptions.properties, initDefaultProps(), initVirtualHostProps(mpComponentOptions.options));
}
function findPropsData(properties, isPage) {
return ((isPage
......
......@@ -465,6 +465,10 @@ function initDefaultProps(isBehavior = false) {
}
return properties;
}
function initVirtualHostProps(options) {
const properties = {};
return properties;
}
/**
*
* @param mpComponentOptions
......@@ -474,7 +478,7 @@ function initProps(mpComponentOptions) {
if (!mpComponentOptions.properties) {
mpComponentOptions.properties = {};
}
extend(mpComponentOptions.properties, initDefaultProps());
extend(mpComponentOptions.properties, initDefaultProps(), initVirtualHostProps(mpComponentOptions.options));
}
const PROP_TYPES = [String, Number, Boolean, Object, Array, null];
function parsePropType(type, defaultValue) {
......
......@@ -465,6 +465,10 @@ function initDefaultProps(isBehavior = false) {
}
return properties;
}
function initVirtualHostProps(options) {
const properties = {};
return properties;
}
/**
*
* @param mpComponentOptions
......@@ -474,7 +478,7 @@ function initProps(mpComponentOptions) {
if (!mpComponentOptions.properties) {
mpComponentOptions.properties = {};
}
extend(mpComponentOptions.properties, initDefaultProps());
extend(mpComponentOptions.properties, initDefaultProps(), initVirtualHostProps(mpComponentOptions.options));
}
const PROP_TYPES = [String, Number, Boolean, Object, Array, null];
function parsePropType(type, defaultValue) {
......
......@@ -428,6 +428,10 @@ function initDefaultProps(isBehavior = false) {
}
return properties;
}
function initVirtualHostProps(options) {
const properties = {};
return properties;
}
/**
*
* @param mpComponentOptions
......@@ -437,7 +441,7 @@ function initProps(mpComponentOptions) {
if (!mpComponentOptions.properties) {
mpComponentOptions.properties = {};
}
extend(mpComponentOptions.properties, initDefaultProps());
extend(mpComponentOptions.properties, initDefaultProps(), initVirtualHostProps(mpComponentOptions.options));
}
const PROP_TYPES = [String, Number, Boolean, Object, Array, null];
function parsePropType(type, defaultValue) {
......
......@@ -414,6 +414,10 @@ function initDefaultProps(isBehavior = false) {
}
return properties;
}
function initVirtualHostProps(options) {
const properties = {};
return properties;
}
/**
*
* @param mpComponentOptions
......@@ -423,7 +427,7 @@ function initProps(mpComponentOptions) {
if (!mpComponentOptions.properties) {
mpComponentOptions.properties = {};
}
extend(mpComponentOptions.properties, initDefaultProps());
extend(mpComponentOptions.properties, initDefaultProps(), initVirtualHostProps(mpComponentOptions.options));
}
const PROP_TYPES = [String, Number, Boolean, Object, Array, null];
function parsePropType(type, defaultValue) {
......
......@@ -428,6 +428,10 @@ function initDefaultProps(isBehavior = false) {
}
return properties;
}
function initVirtualHostProps(options) {
const properties = {};
return properties;
}
/**
*
* @param mpComponentOptions
......@@ -437,7 +441,7 @@ function initProps(mpComponentOptions) {
if (!mpComponentOptions.properties) {
mpComponentOptions.properties = {};
}
extend(mpComponentOptions.properties, initDefaultProps());
extend(mpComponentOptions.properties, initDefaultProps(), initVirtualHostProps(mpComponentOptions.options));
}
const PROP_TYPES = [String, Number, Boolean, Object, Array, null];
function parsePropType(type, defaultValue) {
......
......@@ -414,6 +414,22 @@ function initDefaultProps(isBehavior = false) {
}
return properties;
}
function initVirtualHostProps(options) {
const properties = {};
{
if ((options && options.virtualHost)) {
properties.virtualHostStyle = {
type: null,
value: '',
};
properties.virtualHostClass = {
type: null,
value: '',
};
}
}
return properties;
}
/**
*
* @param mpComponentOptions
......@@ -423,7 +439,7 @@ function initProps(mpComponentOptions) {
if (!mpComponentOptions.properties) {
mpComponentOptions.properties = {};
}
extend(mpComponentOptions.properties, initDefaultProps());
extend(mpComponentOptions.properties, initDefaultProps(), initVirtualHostProps(mpComponentOptions.options));
}
const PROP_TYPES = [String, Number, Boolean, Object, Array, null];
function parsePropType(type, defaultValue) {
......
......@@ -406,6 +406,10 @@ function initDefaultProps(isBehavior = false) {
}
return properties;
}
function initVirtualHostProps(options) {
const properties = {};
return properties;
}
/**
*
* @param mpComponentOptions
......@@ -415,7 +419,7 @@ function initProps(mpComponentOptions) {
if (!mpComponentOptions.properties) {
mpComponentOptions.properties = {};
}
extend(mpComponentOptions.properties, initDefaultProps());
extend(mpComponentOptions.properties, initDefaultProps(), initVirtualHostProps(mpComponentOptions.options));
}
const PROP_TYPES = [String, Number, Boolean, Object, Array, null];
function parsePropType(type, defaultValue) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册