微信咨询

微信咨询

13610*910*9

服务热线 7*24小时

电话咨询

淘宝小程序表单样式修改

iamdu2021-05-19 19:10:26 浏览: 538776
 "dot_con": {
      "type": "OfficialContainer",
      "dataName": "dot_con",
      "label": {
        "description": {
          "desc": ""
        },
        "title": ""
      },
      "wrapperStyle": {

      },
      "style": {
                       "alignItems": "center",
                       "flexDirection": "row",
                       "display": "flex",
                       "justifyContent": "space-between"
      },
      "invisible": false,
      "extension": {},
      "validateProps": {
        "dataType": "",
        "required": false,
        "validate": false
      }
    },
    "a_color": {
      "type": "OfficialInput",
      "dataName": "a_color",
      "label": {
        "description": {
          "desc": "指示点颜色"
        },
        "title": ""
      },
      "wrapperStyle": { "width":"48%"},
      "style": {
       
      },
      "invisible": false,
      "extension": {
        "clear": true,
        "multiple": false,
        "max": 7,
        "placeholder": "颜色值,如#ffffff"
      },
      "validateProps": {
        "dataType": "Default",
        "required": false,
        "validate": false
      }
    },
    "ac_color": {
      "type": "OfficialInput",
      "dataName": "ac_color",
      "label": {
        "description": {
          "desc": "当前选中的指示点颜色"
        },
        "title": ""
      },
      "wrapperStyle": {"width":"48%"},
      "style": {
        
      },
      "invisible": false,
      "extension": {
        "clear": true,
        "multiple": false,
        "max": 7,
        "placeholder": "颜色值,如#ffffff"
      },
      "validateProps": {
        "dataType": "Default",
        "required": false,
        "validate": false
      }
    },

写在wrapperstyle里是控制整体(含文字label),写在里面的style是控制输入框

    {
      "id": "diy_style_con",
      "root": true,
      "children": [
        "autoplay",
        "dots",
        "interval",

        "dot_con"
      ]
    },
    {
      "id": "dot_con",
      "root": false,
      "children": [
        "a_color",
        "ac_color"
      ]
    },