king
2025-02-25 010fdcf8abd58bde5c1106db8ed8448effc75b4b
src/menu/components/group/normal-group/index.jsx
@@ -116,9 +116,20 @@
  }
  getWrapForms = () => {
    const { setting } = this.state.group
    const { group } = this.state
    return getSettingForm(setting)
    let list = []
    group.components.forEach(item => {
      if (item.type === 'card' && item.subtype === 'propcard') {
        list.push({
          value: item.uuid,
          label: item.name,
          disabled: item.wrap.empty !== 'hidden'
        })
      }
    })
    return getSettingForm(group.setting, list)
  }
  updateWrap = (res) => {
@@ -136,15 +147,15 @@
    if (group.components.length === 0) return
    const _this = this
    const that = this
    confirm({
      title: '确定释放分组元素吗?',
      content: '',
      onOk() {
        _this.props.unGroup(group.uuid)
        that.props.unGroup(group.uuid)
        setTimeout(() => {
          _this.updataGroup()
          that.updataGroup()
        }, 10)
      },
      onCancel() {}
@@ -175,7 +186,7 @@
        <NormalHeader hideSearch="true" config={group} updateComponent={this.updateComponent}/>
        <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={
          <div className="mk-popover-control">
            <NormalForm title="分组设置" width={700} update={this.updateWrap} getForms={this.getWrapForms}>
            <NormalForm title="分组设置" width={800} update={this.updateWrap} getForms={this.getWrapForms}>
              <EditOutlined style={{color: '#1890ff'}} title="编辑"/>
            </NormalForm>
            <CopyComponent type="group" card={group}/>