UNPKG

@wufengteam/wform

Version:

@wufengteam/wform

33 lines 899 B
/* eslint-disable no-console */ // @ts-ignore import React from 'react'; import ColumnsRender from '../../../components/ColumnsRender'; var Text = function Text(props) { var value = props.value, dsl = props.dsl, attrCode = props.attrCode, appId = props.appId, getEngineApis = props.getEngineApis; return /*#__PURE__*/React.createElement("div", { style: { width: '100%', minHeight: '32px', padding: '0 8px', color: '#b5b8be', fontSize: '14px', lineHeight: '20px', background: '#f5f6f8', borderRadius: '2px' } }, value ? ColumnsRender({ dataSource: value, attrCode: attrCode, appId: appId, dsl: dsl, platform: 'pc', getEngineApis: getEngineApis }) : ( /*#__PURE__*/React.createElement("div", { className: 'wufeng-wform-data-ellipsis' }, "\u6682\u65E0\u6570\u636E"))); }; export default Text;