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

4 months ago
4 months ago
4 months ago
4 months ago
1 month ago
4 months ago
4 months ago
1 month ago
4 months ago
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const _sfc_main = {
  4. __name: "oneBtn",
  5. props: {
  6. text: {
  7. type: String,
  8. default: ""
  9. },
  10. disabled: {
  11. type: Boolean,
  12. default: false
  13. }
  14. },
  15. setup(__props, { emit: __emit }) {
  16. let emit = __emit;
  17. function oneBtnClick() {
  18. emit("oneBtnClick");
  19. }
  20. return (_ctx, _cache) => {
  21. return {
  22. a: common_vendor.t(__props.text),
  23. b: __props.disabled ? 1 : "",
  24. c: common_vendor.o(oneBtnClick)
  25. };
  26. };
  27. }
  28. };
  29. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4b7d20a4"]]);
  30. wx.createComponent(Component);