centerLine.js
1.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"use strict";
const common_vendor = require("../common/vendor.js");
const _sfc_main = {
__name: "centerLine",
props: {
fontColor: {
type: String,
default: "#3680FE"
},
leftContent: {
type: String,
default: "修改车辆信息"
},
rightContent: {
type: String,
default: "删除车辆"
}
},
setup(__props) {
const props = __props;
const updateCarInfo = () => {
if (props.leftContent === "修改车辆信息")
;
};
const deleteCar = () => {
if (props.rightContent === "删除车辆")
;
};
return (_ctx, _cache) => {
return {
a: common_vendor.t(__props.leftContent),
b: common_vendor.o(updateCarInfo),
c: __props.fontColor,
d: common_vendor.t(__props.rightContent),
e: common_vendor.o(deleteCar),
f: __props.fontColor
};
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f0331f8b"]]);
wx.createComponent(Component);