king
2020-06-23 c83a50317baeba1a4771e4d802eee029ed2b7e31
src/templates/zshare/formconfig.jsx
@@ -628,7 +628,7 @@
    {
      type: 'text',
      key: 'label',
      label: Formdict['header.form.name'],
      label: Formdict['model.form.name'],
      initVal: card.label || '',
      required: true,
      readonly: false
@@ -636,7 +636,7 @@
    {
      type: 'text',
      key: 'field',
      label: Formdict['header.form.field'],
      label: Formdict['model.form.field'],
      initVal: card.field || '',
      tooltipClass: 'middle',
      required: true,
@@ -860,7 +860,7 @@
    {
      type: 'radio',
      key: 'required',
      label: Formdict['header.form.field.required'],
      label: Formdict['model.required'],
      initVal: card.required || 'false',
      options: [{
        value: 'true',
@@ -1261,7 +1261,7 @@
    {
      type: 'select',
      key: 'icon',
      label: Formdict['header.form.icon'],
      label: Formdict['model.form.icon'],
      initVal: card.icon,
      required: false,
      options: []
@@ -1269,7 +1269,7 @@
    {
      type: 'select',
      key: 'class',
      label: Formdict['header.form.class'],
      label: Formdict['model.form.color'],
      initVal: card.class,
      required: false,
      options: []
@@ -1323,14 +1323,14 @@
    {
      type: 'text',
      key: 'label',
      label: Formdict['header.form.name'],
      label: Formdict['model.form.name'],
      initVal: card.label,
      required: true
    },
    {
      type: 'text',
      key: 'field',
      label: Formdict['header.form.field'],
      label: Formdict['model.form.field'],
      initVal: card.field,
      required: true,
      readonly: false
@@ -1351,9 +1351,20 @@
        value: 'picture',
        text: Formdict['model.form.picture']
      }, {
        value: 'link',
        text: Formdict['model.form.href']
      }, {
        value: 'textarea',
        text: Formdict['model.form.textarea']
      }]
    },
    {
      type: 'text',
      key: 'nameField',
      label: Formdict['model.form.name'] + Formdict['model.form.field'],
      initVal: card.nameField,
      required: false,
      readonly: false
    },
    {
      type: 'number',
@@ -1367,8 +1378,22 @@
    },
    {
      type: 'radio',
      key: 'joint',
      label: Formdict['model.form.paramJoint'],
      initVal: card.joint || 'true',
      required: true,
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
      }]
    },
    {
      type: 'radio',
      key: 'Hide',
      label: Formdict['header.form.Hide'],
      label: Formdict['model.hidden'],
      initVal: card.Hide || 'false',
      required: true,
      options: [{
@@ -1382,7 +1407,7 @@
    {
      type: 'radio',
      key: 'IsSort',
      label: Formdict['header.form.IsSort'],
      label: Formdict['model.sort'],
      initVal: card.IsSort || 'true',
      required: true,
      options: [{
@@ -1396,18 +1421,18 @@
    {
      type: 'radio',
      key: 'Align',
      label: Formdict['header.form.align'],
      label: Formdict['model.form.align'],
      initVal: card.Align || 'left',
      required: true,
      options: [{
        value: 'left',
        text: Formdict['header.form.alignLeft']
        text: Formdict['model.form.alignLeft']
      }, {
        value: 'center',
        text: Formdict['header.form.alignCenter']
        text: Formdict['model.form.alignCenter']
      }, {
        value: 'right',
        text: Formdict['header.form.alignRight']
        text: Formdict['model.form.alignRight']
      }]
    },
    {
@@ -1440,7 +1465,7 @@
    {
      type: 'number',
      key: 'fieldlength',
      label: Formdict['header.form.field.length'],
      label: Formdict['model.form.field'] + Formdict['model.length'],
      initVal: card.fieldlength || (card.type === 'text' ? 50 : 512),
      required: true
    },
@@ -1564,7 +1589,7 @@
    {
      type: 'radio',
      key: 'Hide',
      label: Formdict['header.form.Hide'],
      label: Formdict['model.hidden'],
      initVal: card.Hide,
      required: true,
      options: [{
@@ -2002,7 +2027,7 @@
    {
      type: 'text',
      key: 'label',
      label: Formdict['header.form.name'],
      label: Formdict['model.form.name'],
      initVal: card.label,
      required: true,
      readonly: false
@@ -2010,7 +2035,7 @@
    {
      type: 'text',
      key: 'field',
      label: Formdict['header.form.field'],
      label: Formdict['model.form.field'],
      initVal: card.field || '',
      required: true,
      readonly: false
@@ -2177,7 +2202,7 @@
    {
      type: 'number',
      key: 'fieldlength',
      label: Formdict['header.form.field.length'],
      label: Formdict['model.form.field'] + Formdict['model.length'],
      tooltip: '文本、下拉框、日期等字段默认长度为50,多行文本与文件上传字段默认长度为512',
      initVal: card.fieldlength || _fieldlength,
      required: false
@@ -2281,7 +2306,7 @@
    {
      type: 'radio',
      key: 'required',
      label: Formdict['header.form.field.required'],
      label: Formdict['model.required'],
      initVal: card.required || 'true',
      options: [{
        value: 'true',
@@ -2294,7 +2319,7 @@
    {
      type: 'radio',
      key: 'hidden',
      label: Formdict['header.form.field.ishidden'],
      label: Formdict['model.required'],
      initVal: card.hidden || 'false',
      options: [{
        value: 'true',