@zkwq/business 0.2.38 → 0.2.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -26469,9 +26469,9 @@ var R7 = function() {
26469
26469
  staticClass: "ContentItem__status"
26470
26470
  }, [e._v("「" + e._s(e.t("custom.readableItem.授权")) + "」")]) : e._e(), e.readable.type === e.TYPE_ARTICLE && e.readable.is_representativeWork ? t("span", {
26471
26471
  staticClass: "ContentItem__status"
26472
- }, [e._v("「" + e._s(e.t("custom.readableItem.代表作")) + "」")]) : e._e(), !e.isArrayEmpty(e.readable.local_links) || e.readable.download_url || !e.isArrayEmpty(e.readable.attachments) && e.readable.attachments.filter(function(i) {
26472
+ }, [e._v("「" + e._s(e.t("custom.readableItem.代表作")) + "」")]) : e._e(), e.showPdfIcon && (!e.isArrayEmpty(e.readable.local_links) || e.readable.download_url || !e.isArrayEmpty(e.readable.attachments) && e.readable.attachments.filter(function(i) {
26473
26473
  return i.file_name.endsWith(".pdf");
26474
- }).length ? t("span", {
26474
+ }).length) ? t("span", {
26475
26475
  staticClass: "ContentItem__pdf"
26476
26476
  }, [t("svg", {
26477
26477
  staticClass: "Icon",
@@ -27973,6 +27973,10 @@ const j7 = {
27973
27973
  showOpenAccesss: {
27974
27974
  type: Boolean,
27975
27975
  default: !1
27976
+ },
27977
+ showPdfIcon: {
27978
+ type: Boolean,
27979
+ default: !0
27976
27980
  }
27977
27981
  },
27978
27982
  computed: {
@@ -28194,7 +28198,7 @@ var V7 = /* @__PURE__ */ S(
28194
28198
  H7,
28195
28199
  !1,
28196
28200
  z7,
28197
- "e77bc064"
28201
+ "260620bc"
28198
28202
  );
28199
28203
  function z7(e) {
28200
28204
  for (let s in wu)
@@ -29647,7 +29651,7 @@ var Q7 = function() {
29647
29651
  }), t("span", {
29648
29652
  staticClass: "ContentItem__comma"
29649
29653
  }, [e._v(",")])]], 2);
29650
- })], 2)])] : e._e(), e._v(" " + e._s(e.readable.type) + " " + e._s(e.readable.year) + " " + e._s(e.readable.article_type) + " "), e.readable.type === e.TYPE_ARTICLE && e.readable.year && e.readable.article_type !== "学位论文" && e.readable.article_type !== "预发布论文" ? t("div", {
29654
+ })], 2)])] : e._e(), e.readable.type === e.TYPE_ARTICLE && e.readable.year && e.readable.article_type !== "学位论文" && e.readable.article_type !== "预发布论文" ? t("div", {
29651
29655
  staticClass: "ContentItem__meta"
29652
29656
  }, [e.isChineseReadable && e.isThemeZh ? t("span", {
29653
29657
  staticClass: "ContentItem__source"
@@ -31117,9 +31121,9 @@ const t8 = "facility", s8 = {
31117
31121
  }
31118
31122
  },
31119
31123
  watch: {
31120
- "readable.publish_year": {
31124
+ readable: {
31121
31125
  handler(e) {
31122
- !this.readable.year && e && this.$set(this.readable, "year", e);
31126
+ e && !e.year && e.publish_year && this.$set(e, "year", e.publish_year);
31123
31127
  },
31124
31128
  immediate: !0
31125
31129
  }
@@ -31153,7 +31157,7 @@ var i8 = /* @__PURE__ */ S(
31153
31157
  e8,
31154
31158
  !1,
31155
31159
  a8,
31156
- "2d95e1d9"
31160
+ "55972a29"
31157
31161
  );
31158
31162
  function a8(e) {
31159
31163
  for (let s in $u)