"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var ShoppingCartMeta = {
  "componentName": "ShoppingCart",
  "group": "低代码组件",
  "title": "ShoppingCart",
  "docUrl": "",
  "screenshot": "",
  "devMode": "proCode",
  "category": '信息展示',
  "npm": {
    "package": "@dckj-npm/dc-material",
    "version": "0.1.150",
    "exportName": "ShoppingCart",
    "main": "src/index.tsx",
    "destructuring": true,
    "subName": ""
  },
  "configure": {
    "props": [{
      name: '数据源绑定',
      setter: {
        componentName: 'SetterFormVariable',
        props: {
          attributes: [{
            label: '列表数据',
            value: 'dataList',
            children: [{
              label: '唯一标识',
              value: 'key'
            }, {
              label: '封面图片',
              value: 'imgUrl'
            }, {
              label: '商品名称',
              value: 'productName'
            }, {
              label: '价格',
              value: 'productPrice'
            }, {
              label: '促销价格',
              value: 'productPromotionPrice',
              isRequire: false,
              notes: '商品信息的促销价格，只有存在的情况下才会展示该信息'
            }, {
              label: '数量',
              value: 'amount'
            }]
          }]
        }
      }
    }, {
      "title": {
        "label": {
          "type": "i18n",
          "en-US": "handleOnLoad",
          "zh-CN": "加载数据"
        },
        "tip": "handleOnLoad | 加载数据"
      },
      "name": "handleOnLoad",
      "description": "加载数据",
      "setter": {
        "componentName": "FunctionSetter",
        "isRequired": true
      }
    }, {
      "title": {
        "label": {
          "type": "i18n",
          "en-US": "handleOnSubmit",
          "zh-CN": "结算事件"
        },
        "tip": "handleOnSubmit | 结算事件"
      },
      "name": "handleOnSubmit",
      "description": "结算事件",
      "setter": {
        "componentName": "FunctionSetter"
      }
    }, {
      "title": {
        "label": {
          "type": "i18n",
          "en-US": "handleOnDelete",
          "zh-CN": "购物车删除事件"
        },
        "tip": "handleOnDelete | 购物车删除事件"
      },
      "name": "handleOnDelete",
      "description": "购物车删除事件",
      "setter": {
        "componentName": "FunctionSetter"
      }
    }, {
      "title": {
        "label": {
          "type": "i18n",
          "en-US": "handleBeforeUnmount",
          "zh-CN": "组件卸载前事件"
        },
        "tip": "handleBeforeUnmount | 组件卸载前事件"
      },
      "name": "handleBeforeUnmount",
      "description": "组件卸载前事件",
      "setter": {
        "componentName": "FunctionSetter"
      }
    }, {
      "title": {
        "label": {
          "type": "i18n",
          "en-US": "isLogin",
          "zh-CN": "是否登录"
        },
        "tip": "isLogin | 是否登录"
      },
      "name": "isLogin",
      "description": "是否登录",
      "setter": {
        "componentName": "BoolSetter",
        "isRequired": false,
        "initialValue": true
      }
    }, {
      "title": {
        "label": {
          "type": "i18n",
          "en-US": "dataList",
          "zh-CN": "dataList"
        }
      },
      "name": "dataList",
      "setter": {
        "componentName": "ArraySetter",
        "props": {
          "itemSetter": {
            "componentName": "ObjectSetter",
            "props": {
              "config": {
                "items": [{
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "amount",
                      "zh-CN": "amount"
                    }
                  },
                  "name": "amount",
                  "setter": {
                    "componentName": "NumberSetter",
                    "isRequired": true,
                    "initialValue": 0
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "fkProductId",
                      "zh-CN": "fkProductId"
                    }
                  },
                  "name": "fkProductId",
                  "setter": {
                    "componentName": "StringSetter",
                    "isRequired": true,
                    "initialValue": ""
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "id",
                      "zh-CN": "id"
                    }
                  },
                  "name": "id",
                  "setter": {
                    "componentName": "StringSetter",
                    "isRequired": true,
                    "initialValue": ""
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "imgUrl",
                      "zh-CN": "imgUrl"
                    }
                  },
                  "name": "imgUrl",
                  "setter": {
                    "componentName": "StringSetter",
                    "isRequired": true,
                    "initialValue": ""
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "memo",
                      "zh-CN": "memo"
                    }
                  },
                  "name": "memo",
                  "setter": {
                    "componentName": "StringSetter",
                    "isRequired": true,
                    "initialValue": ""
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "phone",
                      "zh-CN": "phone"
                    }
                  },
                  "name": "phone",
                  "setter": {
                    "componentName": "StringSetter",
                    "isRequired": true,
                    "initialValue": ""
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "price",
                      "zh-CN": "price"
                    }
                  },
                  "name": "price",
                  "setter": {
                    "componentName": "NumberSetter",
                    "isRequired": true,
                    "initialValue": 0
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "productPrice",
                      "zh-CN": "productPrice"
                    }
                  },
                  "name": "productPrice",
                  "setter": {
                    "componentName": "NumberSetter",
                    "isRequired": false,
                    "initialValue": 0
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "productPromotionPrice",
                      "zh-CN": "productPromotionPrice"
                    }
                  },
                  "name": "productPromotionPrice",
                  "setter": {
                    "componentName": "NumberSetter",
                    "isRequired": false,
                    "initialValue": 0
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "productNum",
                      "zh-CN": "productNum"
                    }
                  },
                  "name": "productNum",
                  "setter": {
                    "componentName": "NumberSetter",
                    "isRequired": false,
                    "initialValue": 0
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "productName",
                      "zh-CN": "productName"
                    }
                  },
                  "name": "productName",
                  "setter": {
                    "componentName": "StringSetter",
                    "isRequired": true,
                    "initialValue": ""
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "productNameLabel",
                      "zh-CN": "productNameLabel"
                    }
                  },
                  "name": "productNameLabel",
                  "setter": {
                    "componentName": "StringSetter",
                    "isRequired": true,
                    "initialValue": ""
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "userName",
                      "zh-CN": "userName"
                    }
                  },
                  "name": "userName",
                  "setter": {
                    "componentName": "StringSetter",
                    "isRequired": true,
                    "initialValue": ""
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "userNameLabel",
                      "zh-CN": "userNameLabel"
                    }
                  },
                  "name": "userNameLabel",
                  "setter": {
                    "componentName": "StringSetter",
                    "isRequired": true,
                    "initialValue": ""
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "version",
                      "zh-CN": "version"
                    }
                  },
                  "name": "version",
                  "setter": {
                    "componentName": "NumberSetter",
                    "isRequired": true,
                    "initialValue": 0
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "checked",
                      "zh-CN": "checked"
                    }
                  },
                  "name": "checked",
                  "setter": {
                    "componentName": "BoolSetter",
                    "isRequired": true,
                    "initialValue": false
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "grounding",
                      "zh-CN": "grounding"
                    }
                  },
                  "name": "grounding",
                  "setter": {
                    "componentName": "StringSetter",
                    "isRequired": true,
                    "initialValue": ""
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "productGrounding",
                      "zh-CN": "productGrounding"
                    }
                  },
                  "name": "productGrounding",
                  "setter": {
                    "componentName": "StringSetter",
                    "isRequired": true,
                    "initialValue": ""
                  }
                }, {
                  "title": {
                    "label": {
                      "type": "i18n",
                      "en-US": "isUpdate",
                      "zh-CN": "isUpdate"
                    }
                  },
                  "name": "isUpdate",
                  "setter": {
                    "componentName": "BoolSetter",
                    "isRequired": true,
                    "initialValue": false
                  }
                }],
                "extraSetter": {
                  "componentName": "MixedSetter",
                  "isRequired": false,
                  "props": {}
                }
              }
            }
          }
        },
        "initialValue": [{
          id: "1064549935099285504",
          gmtCreate: "2024-12-12 11:42:29",
          gmtModified: "2024-12-12 11:42:29",
          createUserName: "18974910957",
          updateUserName: "18974910957",
          version: 18,
          phone: "18974910957",
          fkProductId: "1063826925593694208",
          productName: "听闲系列线香",
          imgUrl: "https://pts.dct99.com/hro/api/upload/2024/202412/20241211/1064248543356784640.PNG",
          amount: 3,
          productPrice: 188.00,
          productPromotionPrice: 0.00,
          productGrounding: "已上架"
        }, {
          id: "1070065822443114496",
          gmtCreate: "2024-12-27 17:00:39",
          gmtModified: "2024-12-27 17:00:39",
          createUserName: "18974910957",
          updateUserName: "18974910957",
          version: 2,
          phone: "18974910957",
          fkProductId: "1063826927548239872",
          productName: "冰爽/劲爽薄荷口喷",
          imgUrl: "https://pts.dct99.com/hro/api/upload/2024/202412/20241211/1064248619273687040.PNG",
          amount: 10,
          productPrice: 59.80,
          productPromotionPrice: 0.00,
          productGrounding: "已上架"
        }]
      }
    }],
    "supports": {
      "style": true
    },
    "component": {}
  }
};
var snippets = [{
  "title": "ShoppingCart",
  "screenshot": "",
  "schema": {
    "componentName": "ShoppingCart",
    "props": {}
  }
}];
var _default = exports["default"] = (0, _extends2["default"])({}, ShoppingCartMeta, {
  snippets: snippets
});