UNPKG

@wufengteam/wform

Version:

@wufengteam/wform

194 lines (193 loc) 4.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _utils = require("../utils"); var _constant = require("../utils/constant"); var _default = exports.default = { type: 'ImageShow', icon: 'Img', alias: 'ImageShow', groupsName: '常用组件', compType: 2, label: '图片', props: { name: '图片', span: 24, placeholder: '请输入', allowClear: true, isInSubForm: false, isView: false }, engineApi: ['service.downloadFileByFileCode', 'service.downloadByFileId'], todoProps: { labelCol: { label: '标题占比', type: 'FormItemLabel', groupsName: '基础', props: { dependProps: { noShow: true } } }, isView: { label: '是否是子表单', type: 'Input', props: { dependProps: { noShow: true } } }, wrapperCol: { label: '标题占比', type: 'FormItemLabel', groupsName: '基础', props: { dependProps: { noShow: true } } }, // 解决复制黏贴报 [组件属性]: 单行文本组件不可配置额外的fieldName字段。 fieldName: { label: '字段编码', type: 'Input', props: { dependProps: { noShow: true } } }, name: { type: 'Input', label: '标题', groupsName: '基础', props: { label: '图片组件', maxLength: 20, showCount: true } }, srcType: { label: '文件类型', type: 'RadioButton', groupsName: '基础', props: { options: [{ title: '文件资源', value: 'fileCode' }, { title: '自定义', value: 'src' }], defaultValue: 'fileCode', style: { padding: '0 6px', fontSize: '12px' } } }, src: { label: '资源地址', type: 'Input', groupsName: '基础', props: { dependProps: { srcType: 'src' } } }, fileCode: { label: '文件资源', type: 'FileResourceSelect', groupsName: '基础', props: { dependProps: { srcType: 'fileCode' } } }, errorSrc: { label: '加载失败图', type: 'FileResourceSelect', groupsName: '基础', props: {} }, alt: { label: '替代文本', type: 'Input', groupsName: '基础', props: { required: true, defaultValue: '图片' } }, titleTip: { label: '标题提示', type: 'RadioButton', groupsName: _constant.PROPS_FOR_PC, props: { options: [{ title: '无', value: 'notext' }, { title: '文本', value: 'text' }], defaultValue: 'notext' } }, tipIcon: { label: '提示图标', type: 'ChooseIcon', groupsName: _constant.PROPS_FOR_PC, props: { visibleFlag: 'titleTip', visibleFlagValue: ['text'], tabs: ['常用图标', '线框风格', '实底风格'] } }, tipLocation: { label: '提示位置', type: 'RadioButton', groupsName: _constant.PROPS_FOR_PC, props: { options: [{ title: '标题前', value: 'before' }, { title: '标题后', value: 'after' }], defaultValue: 'after', visibleFlag: 'titleTip', visibleFlagValue: ['text'] } }, tipContent: { label: '提示内容', type: 'Input', groupsName: _constant.PROPS_FOR_PC, props: { visibleFlag: 'titleTip', visibleFlagValue: ['text'] } }, selfSpan: { label: '列占比', type: 'ColSpan', groupsName: _constant.PROPS_FOR_PC, props: { dependProps: { isInSubForm: false } }, istodoBind: false } }, // 控制函数里-上下文是否可选到该组件 PC端-getValue H5端-value todoActionList: (0, _utils.getTodoActionListByKey)(['getValue']) };