@cmstops/pro-compo 0.3.88 → 0.3.90

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, ref, onMounted, openBlock, createElementBlock, normalizeClass, createElementVNode, createCommentVNode, createBlock, unref, toDisplayString, renderSlot, Fragment, renderList, createVNode, withCtx } from "vue";
1
+ import { defineComponent, computed, ref, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, createCommentVNode, createBlock, unref, toDisplayString, renderSlot, Fragment, renderList, createVNode, withCtx } from "vue";
2
2
  import { Image, Tooltip } from "@arco-design/web-vue";
3
3
  import { IconTopic } from "@arco-iconbox/vue-cmstop-icons";
4
4
  import { getDocThumb } from "../../../utils/doc.js";
@@ -66,6 +66,13 @@ const _sfc_main = defineComponent({
66
66
  };
67
67
  });
68
68
  }
69
+ watch(
70
+ () => props.item,
71
+ () => {
72
+ initAttributes();
73
+ },
74
+ { deep: true, immediate: true }
75
+ );
69
76
  const mouseEnterFun = (event, row) => {
70
77
  emit("cellMouseEnter", { row, event });
71
78
  };
@@ -75,9 +82,6 @@ const _sfc_main = defineComponent({
75
82
  const clickTitle = () => {
76
83
  emit("clickTitle", props.item);
77
84
  };
78
- onMounted(() => {
79
- initAttributes();
80
- });
81
85
  return (_ctx, _cache) => {
82
86
  return openBlock(), createElementBlock("div", {
83
87
  class: normalizeClass(["medialist-doc-item-view", { "gray-forbidden": hide.value, "gray-for-state-hide": silent.value }]),
@@ -83,7 +83,8 @@ const _sfc_main = defineComponent({
83
83
  const loadData = async () => {
84
84
  let params = {
85
85
  page: page.value.index,
86
- page_size: page.value.size
86
+ page_size: page.value.size,
87
+ review: 1
87
88
  };
88
89
  if (filter.value) {
89
90
  params = { ...params, ...filter.value };
@@ -67,6 +67,13 @@ const _sfc_main = vue.defineComponent({
67
67
  };
68
68
  });
69
69
  }
70
+ vue.watch(
71
+ () => props.item,
72
+ () => {
73
+ initAttributes();
74
+ },
75
+ { deep: true, immediate: true }
76
+ );
70
77
  const mouseEnterFun = (event, row) => {
71
78
  emit("cellMouseEnter", { row, event });
72
79
  };
@@ -76,9 +83,6 @@ const _sfc_main = vue.defineComponent({
76
83
  const clickTitle = () => {
77
84
  emit("clickTitle", props.item);
78
85
  };
79
- vue.onMounted(() => {
80
- initAttributes();
81
- });
82
86
  return (_ctx, _cache) => {
83
87
  return vue.openBlock(), vue.createElementBlock("div", {
84
88
  class: vue.normalizeClass(["medialist-doc-item-view", { "gray-forbidden": hide.value, "gray-for-state-hide": silent.value }]),
@@ -84,7 +84,8 @@ const _sfc_main = vue.defineComponent({
84
84
  const loadData = async () => {
85
85
  let params = {
86
86
  page: page.value.index,
87
- page_size: page.value.size
87
+ page_size: page.value.size,
88
+ review: 1
88
89
  };
89
90
  if (filter.value) {
90
91
  params = { ...params, ...filter.value };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.3.88",
3
+ "version": "0.3.90",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",