u-line.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. "use strict";
  2. const common_vendor = require("../../../../common/vendor.js");
  3. const _sfc_main = {
  4. name: "u-line",
  5. mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$13],
  6. computed: {
  7. lineStyle() {
  8. const style = {};
  9. style.margin = this.margin;
  10. if (this.direction === "row") {
  11. style.borderBottomWidth = "1px";
  12. style.borderBottomStyle = this.dashed ? "dashed" : "solid";
  13. style.width = common_vendor.index.$u.addUnit(this.length);
  14. if (this.hairline)
  15. style.transform = "scaleY(0.5)";
  16. } else {
  17. style.borderLeftWidth = "1px";
  18. style.borderLeftStyle = this.dashed ? "dashed" : "solid";
  19. style.height = common_vendor.index.$u.addUnit(this.length);
  20. if (this.hairline)
  21. style.transform = "scaleX(0.5)";
  22. }
  23. style.borderColor = this.color;
  24. return common_vendor.index.$u.deepMerge(style, common_vendor.index.$u.addStyle(this.customStyle));
  25. }
  26. }
  27. };
  28. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  29. return {
  30. a: common_vendor.s($options.lineStyle)
  31. };
  32. }
  33. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-bbd9963c"], ["__file", "D:/project/赋强公证/notarization_applet/node_modules/uview-plus/components/u-line/u-line.vue"]]);
  34. wx.createComponent(Component);