Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xzdry opened this issue Nov 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@xzdry
Copy link
Contributor

xzdry commented Nov 30, 2022

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

@xzdry xzdry added the bug Something isn't working label Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant