king
2022-06-13 96bcbb7d0c3ad68344b792c2ce3ba0cb7d82a4a7
2022-06-13
7个文件已修改
33 ■■■■ 已修改文件
src/mob/components/formdragelement/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/mutilform/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/modalconfig/settingform/index.jsx 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/searchcomponent/searchform/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/zshare/formconfig.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/zshare/verifycard/billcodeform/index.jsx 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/option.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/mob/components/formdragelement/index.jsx
@@ -119,6 +119,10 @@
    style.paddingRight = setting.paddingRight
  }
  if (setting.display === 'drawer' && (setting.placement === 'top' || setting.placement === 'bottom') && setting.width !== 100) {
    style.minHeight = 'auto'
  }
  return (
    <div ref={drop} className="ant-row modal-fields-row mob-form" style={style}>
      {cards.map(card => {
src/tabviews/zshare/mutilform/index.jsx
@@ -254,8 +254,8 @@
            })
          } else if (item.regular === 'letter&number') {
            _rules.push({
              pattern: /^[a-zA-Z0-9]*$/ig,
              message: formRule.input.letternummsg
              pattern: /^[a-zA-Z0-9_]*$/ig,
              message: '请输入数字、字母以及_'
            })
          } else if (item.regular === 'phone') {
            _rules.push({
src/templates/modalconfig/settingform/index.jsx
@@ -17,6 +17,7 @@
  state = {
    fields: null,
    display: this.props.config.setting.display || 'modal',
    placement: this.props.config.setting.placement || 'right',
    appType: sessionStorage.getItem('appType'),
    dialogInput: false
  }
@@ -76,7 +77,7 @@
  render() {
    const { config } = this.props
    const { fields, appType, display } = this.state
    const { fields, appType, display, placement } = this.state
    const { getFieldDecorator } = this.props.form
    const formItemLayout = {
@@ -128,9 +129,9 @@
          </Col>
          {display === 'drawer' || display === 'modal' ? <Col span={12}>
            <Form.Item label={
              <Tooltip placement="topLeft" title="宽度小于100时为百分率,大于100时为绝对值。">
              <Tooltip placement="topLeft" title="小于100时为百分率,大于100时为绝对值。">
                <QuestionCircleOutlined className="mk-form-tip" />
                宽度
                {display === 'drawer' && (placement === 'top' || placement === 'bottom') ? '高度' : '宽度'}
              </Tooltip>
            }>
              {getFieldDecorator('width', {
@@ -259,9 +260,9 @@
          {display === 'drawer' ? <Col span={12}>
            <Form.Item label="抽屉方向">
              {getFieldDecorator('placement', {
                initialValue: config.setting.placement || 'right'
                initialValue: placement
              })(
                <Radio.Group style={{whiteSpace: 'nowrap'}}>
                <Radio.Group style={{whiteSpace: 'nowrap'}} onChange={(e) => this.setState({placement: e.target.value})}>
                  <Radio value="right">右侧</Radio>
                  <Radio value="left">左侧</Radio>
                  <Radio value="top">上侧</Radio>
src/templates/sharecomponent/searchcomponent/searchform/index.jsx
@@ -463,7 +463,7 @@
        if (item.key === 'field' && item.options && item.options.length > 0) {
          content = <AutoComplete
            dataSource={item.options.map((cell) => <AutoComplete.Option label={cell.label} key={cell.key}>
            dataSource={item.options.map((cell) => <AutoComplete.Option label={cell.label} value={cell.value} key={cell.key}>
              {cell.text}
            </AutoComplete.Option>)}
            filterOption={(input, option) => option.props.children.indexOf(input) > -1}
src/templates/zshare/formconfig.jsx
@@ -2901,16 +2901,16 @@
      initVal: card.regular || '',
      options: [{
        value: '',
        text: Formdict['model.empty']
        text: '空'
      }, {
        value: 'number',
        text: Formdict['model.form.number']
        text: '数字'
      }, {
        value: 'letter',
        text: Formdict['header.form.letter']
        text: '字母'
      }, {
        value: 'letter&number',
        text: '字母+数字'
        text: '数字、字母以及_'
      }, {
        value: 'phone',
        text: '手机号'
src/templates/zshare/verifycard/billcodeform/index.jsx
@@ -4,7 +4,6 @@
import { Form, Row, Col, Select, Button, InputNumber, Input, Tooltip } from 'antd'
import { QuestionCircleOutlined } from '@ant-design/icons'
import { formRule } from '@/utils/option.js'
import './index.scss'
@@ -366,7 +365,7 @@
                  },
                  {
                    pattern: /^[a-zA-Z0-9]*$/ig,
                    message: formRule.input.letternummsg
                    message: '请输入数字、字母以及_'
                  }
                ]
              })(<Input placeholder="" autoComplete="off" />)}
src/utils/option.js
@@ -17,7 +17,6 @@
    formMessage: '最多@max个字符。', // 文本表单最大提示
    numbermsg: '请输入数字!',
    lettermsg: '请输入字母!',
    letternummsg: '请输入数字或字母!',
    quotemsg: '不可使用英文状态的单引号!',
    funcname: '请输入数字、字母、汉字以及_'
  },