king
2024-07-15 f4b9504cad034ddcdef21c2081d14a4984fcd2d3
src/menu/components/share/actioncomponent/formconfig.jsx
@@ -325,7 +325,7 @@
  }
  let width = card.width || (card.width === 0 ? 0 : 12)
  if (/x/.test(card.width)) {
  if (card.width && /x/.test(card.width)) {
    width = +width.replace(/x/, '.5')
  }
@@ -1818,6 +1818,11 @@
    })
  }
  let width = card.width || (card.width === 0 ? 0 : 12)
  if (card.width && /x/.test(card.width)) {
    width = +width.replace(/x/, '.5')
  }
  let forms = [
    {
      type: 'select',
@@ -2339,18 +2344,18 @@
      tooltip: '分享时对用户的提示信息。',
      required: false
    },
    // {
    //   type: 'number',
    //   key: 'width',
    //   min: 1,
    //   max: 24,
    //   precision: 0,
    //   label: '宽度',
    //   initVal: card.width || 12,
    //   tooltip: '栅格布局,每行等分为24列。',
    //   forbid: card.eleType !== 'button',
    //   required: true
    // },
    {
      type: 'number',
      key: 'width',
      min: 0,
      max: 24,
      precision: 1,
      label: '宽度',
      initVal: width,
      tooltip: '栅格布局,每行等分为24列。为 0 时宽度自适应。可设置半列即.5。',
      forbid: position !== 'line',
      required: true
    },
    {
      type: 'radio',
      key: 'show',