smartxworks/sunmao-ui

The css editor of the second styleSlot is displayed incorrectly under multiple styleSlots

Opened this issue · 0 comments

xzdry commented

Version
0.8.4-alpha.4
Steps to reproduce

{
  "version": "sunmao/v1",
  "kind": "Application",
  "metadata": {
    "name": "some App"
  },
  "spec": {
    "components": [
      {
        "id": "carousel3",
        "type": "arco/v1/carousel",
        "properties": {
          "imageSrc": [
            "//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/cd7a1aaea8e1c5e3d26fe2591e561798.png~tplv-uwbnlip3yd-webp.webp",
            "//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/6480dbc69be1b5de95010289787d64f1.png~tplv-uwbnlip3yd-webp.webp",
            "//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/0265a04fddbd77a19602a15d9d55d797.png~tplv-uwbnlip3yd-webp.webp",
            "//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/24e0dd27418d2291b65db1b21aa62254.png~tplv-uwbnlip3yd-webp.webp"
          ],
          "indicatorPosition": "bottom",
          "indicatorType": "dot",
          "showArrow": "always",
          "direction": "horizontal",
          "animation": "slide",
          "autoPlay": false,
          "autoPlayInterval": 3000,
          "autoPlayHoverToPause": true,
          "moveSpeed": 500,
          "timingFunc": "cubic-bezier(0.34, 0.69, 0.1, 1)"
        },
        "traits": [
          {
            "type": "core/v1/style",
            "properties": {
              "styles": [
                {
                  "styleSlot": "carousel",
                  "style": "color:red;",
                  "cssProperties": {}
                },
                {
                  "styleSlot": "image",
                  "style": "width:1000px;",
                  "cssProperties": {}
                }
              ]
            }
          }
        ]
      }
    ]
  }
}

styleSlot

What is expected?
Can be displayed correctly