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
"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: ""
}
},
emits: ["leftComfirn", "rightComfirn"],
setup(__props, { emit: __emit }) {
const emit = __emit;
const leftComfirnButton = () => {
emit("leftComfirn");
};
const rightComfirnButton = () => {
emit("rightComfirn");
};
return (_ctx, _cache) => {
return {
a: common_vendor.t(__props.leftContent),
b: common_vendor.o(leftComfirnButton),
c: __props.fontColor,
d: common_vendor.t(__props.rightContent),
e: common_vendor.o(rightComfirnButton),
f: __props.fontColor
};
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f0331f8b"]]);
wx.createComponent(Component);