king
2022-11-21 f6626b05f1275cc2f8ca77f773d4f6a6af1b0a89
src/tabviews/zshare/mutilform/mkColor/index.jsx
@@ -29,9 +29,17 @@
  handleChange = (color) => {
    let _color = `rgba(${ color.rgb.r }, ${ color.rgb.g }, ${ color.rgb.b }, ${ color.rgb.a })`
    if (!this.props.config.isHex) {
    this.setState({ color: _color }, () => {
      this.props.onChange(_color)
    })
    } else {
      let _hex = color.hex === 'transparent' ? '#ffffff' : color.hex
      this.setState({ color: _hex }, () => {
        this.props.onChange(_hex)
      })
    }
  }
  componentWillUnmount () {
@@ -42,6 +50,7 @@
  render() {
    const { color } = this.state
    return (
      <div className="color-sketch-block">
        <Popover content={