Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. qml代码缩进问题
Forum Updated to NodeBB v4.3 + New Features

qml代码缩进问题

Scheduled Pinned Locked Moved Unsolved Chinese
1 Posts 1 Posters 207 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    deslan
    wrote on last edited by deslan
    #1

    没有参数传递时缩进是这样的:

            onAddLocalClient: {
                console.log("log")
            }
    

    有参数传递时缩进时:

            onAddLocalClient:(group_name)=> {
                                 console.log("log")
                             }
    

    我想要的效果是:

            onAddLocalClient:(group_name)=> {
                console.log("log")
            }
    

    这看起来就像bug,为什么多了=>后自动对齐规则就不一样了。需要怎么设置,格式才会和没有=>时一样?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved