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.

29 lines
739 B

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 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 }) {
  16. function oneBtnClick() {
  17. emit("oneBtnClick");
  18. }
  19. return (_ctx, _cache) => {
  20. return {
  21. a: common_vendor.t(__props.text),
  22. b: __props.disabled ? 1 : "",
  23. c: common_vendor.o(oneBtnClick)
  24. };
  25. };
  26. }
  27. };
  28. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4b7d20a4"], ["__file", "D:/work/xinjiangMiniProgram/components/oneBtn/oneBtn.vue"]]);
  29. wx.createComponent(Component);