You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
698 B
30 lines
698 B
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const _sfc_main = {
|
|
__name: "oneBtn",
|
|
props: {
|
|
text: {
|
|
type: String,
|
|
default: ""
|
|
},
|
|
disabled: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
},
|
|
setup(__props, { emit: __emit }) {
|
|
let emit = __emit;
|
|
function oneBtnClick() {
|
|
emit("oneBtnClick");
|
|
}
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.t(__props.text),
|
|
b: __props.disabled ? 1 : "",
|
|
c: common_vendor.o(oneBtnClick)
|
|
};
|
|
};
|
|
}
|
|
};
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4b7d20a4"]]);
|
|
wx.createComponent(Component);
|