时间范围 timerange

说明

时间范围允许用户选择起始时间和结束时间。

示例

{
    "id": "timerange",
    "name": "时间范围",
    "type": "timerange",
    "min": "09:00",
    "max": "18:00"
}

默认属性

属性 说明 类型 默认值
description 描述 String ''
dist 输出值 Object {value: ''}
dynamic 发布后是否可修改 Boolean true
format 日期格式 String 'HH:mm:ss'
max 最大时间 String ''
maxLength 最大时间范围(单位:秒,0代表不生效) Number 0
min 最小时间 String ''
minLength 最小时间范围(单位:秒,0代表不生效) Number 0
name 名称 String ''
placeholder 输入提示 String ''
type 类型 String 'timerange'
unit 单位(day-天,month-月,year-年) String ''
vip 是否为付费功能 Boolean false
/**
 * 默认配置 - 时间范围
 */
module.exports = {
    /**
     * 描述
     * @type {String}
     */
    description: '',
    /**
     * 发布后是否可修改
     * @type {Boolean}
     */
    dynamic: true,
    /**
     * 时间格式
     * @type {String}
     */
    format: 'HH:mm:ss',
    /**
     * 最小时间
     * @type {String}
     */
    min: '',
    /**
     * 最大时间
     * @type {String}
     */
    max: '',
    /**
     * 最小时间范围(秒)
     * @type {Number}
     */
    minLength: 0,
    /**
     * 最大时间范围(秒)
     * @type {Number}
     */
    maxLength: 0,
    /**
     * 名称
     * @type {String}
     */
    name: '',
    /**
     * 输入提示
     * @type {String}
     */
    placeholder: '',
    /**
     * 类型
     * @type {String}
     * @required
     */
    type: 'timerange',
    /**
     * 输出
     * @type {Object}
     */
    dist: {
        value: ''
    },
    /**
     * 付费功能
     * @type {Boolean}
     */
    vip: false
};

results matching ""

    No results matching ""