URL url
说明
URL允许用户输入一个链接以及选择协议等。
示例
{
"id": "gameLink",
"name": "分享链接",
"type": "url",
"placeholder": "请输入分享链接",
"protocols": [
"http://",
"https://"
]
}
默认属性
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
description | 描述 | String | '' |
dist | 输出值 | Object | {value: ''} |
dynamic | 发布后是否可修改 | Boolean | true |
maxLength | 最大长度(0代表不生效) | Number | 0 |
minLength | 最小长度(0代表不生效) | Number | 0 |
name | 名称 | String | '' |
placeholder | 输入提示 | String | '' |
protocols | 可选的协议类型 | Array | ['http://'] |
type | 类型 | String | 'url' |
vip | 是否为付费功能 | Boolean | false |
/**
* 默认配置 - URL
*/
module.exports = {
/**
* 描述
* @type {String}
*/
description: '',
/**
* 发布后是否可修改
* @type {Boolean}
*/
dynamic: true,
/**
* 最大长度
* @type {Number}
*/
maxLength: 0,
/**
* 最小长度
* @type {Number}
*/
minLength: 0,
/**
* 名称
* @type {String}
*/
name: '',
/**
* 输入提示
* @type {String}
*/
placeholder: '',
/**
* 协议类型
* @type {Array}
*/
protocols: ['http://'],
/**
* 类型
* @type {String}
* @required
*/
type: 'url',
/**
* 输出
* @type {Object}
*/
dist: {
value: ''
},
/**
* 付费功能
* @type {Boolean}
*/
vip: false
};