u-notice-bar.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. "use strict";
  2. const common_vendor = require("../../../../common/vendor.js");
  3. const _sfc_main = {
  4. name: "u-notice-bar",
  5. mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$6],
  6. data() {
  7. return {
  8. show: true
  9. };
  10. },
  11. emits: ["click", "close"],
  12. methods: {
  13. // 点击通告栏
  14. click(index) {
  15. this.$emit("click", index);
  16. if (this.url && this.linkType) {
  17. this.openPage();
  18. }
  19. },
  20. // 点击关闭按钮
  21. close() {
  22. this.show = false;
  23. this.$emit("close");
  24. }
  25. }
  26. };
  27. if (!Array) {
  28. const _easycom_u_column_notice2 = common_vendor.resolveComponent("u-column-notice");
  29. const _easycom_u_row_notice2 = common_vendor.resolveComponent("u-row-notice");
  30. (_easycom_u_column_notice2 + _easycom_u_row_notice2)();
  31. }
  32. const _easycom_u_column_notice = () => "../u-column-notice/u-column-notice.js";
  33. const _easycom_u_row_notice = () => "../u-row-notice/u-row-notice.js";
  34. if (!Math) {
  35. (_easycom_u_column_notice + _easycom_u_row_notice)();
  36. }
  37. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  38. return common_vendor.e({
  39. a: $data.show
  40. }, $data.show ? common_vendor.e({
  41. b: _ctx.direction === "column" || _ctx.direction === "row" && _ctx.step
  42. }, _ctx.direction === "column" || _ctx.direction === "row" && _ctx.step ? {
  43. c: common_vendor.o($options.close),
  44. d: common_vendor.o($options.click),
  45. e: common_vendor.p({
  46. color: _ctx.color,
  47. bgColor: _ctx.bgColor,
  48. text: _ctx.text,
  49. mode: _ctx.mode,
  50. step: _ctx.step,
  51. icon: _ctx.icon,
  52. ["disable-touch"]: _ctx.disableTouch,
  53. fontSize: _ctx.fontSize,
  54. duration: _ctx.duration
  55. })
  56. } : {
  57. f: common_vendor.o($options.close),
  58. g: common_vendor.o($options.click),
  59. h: common_vendor.p({
  60. color: _ctx.color,
  61. bgColor: _ctx.bgColor,
  62. text: _ctx.text,
  63. mode: _ctx.mode,
  64. fontSize: _ctx.fontSize,
  65. speed: _ctx.speed,
  66. url: _ctx.url,
  67. linkType: _ctx.linkType,
  68. icon: _ctx.icon
  69. })
  70. }, {
  71. i: common_vendor.s({
  72. backgroundColor: _ctx.bgColor
  73. }),
  74. j: common_vendor.s(_ctx.$u.addStyle(_ctx.customStyle))
  75. }) : {});
  76. }
  77. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-63dbbc8e"], ["__file", "D:/project/赋强公证/notarization_applet/node_modules/uview-plus/components/u-notice-bar/u-notice-bar.vue"]]);
  78. wx.createComponent(Component);