@cmstops/pro-compo 0.3.87 → 0.3.89

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 }]),
@@ -36,6 +36,7 @@ function useTabFilter(props) {
36
36
  keys.unshift("ai");
37
37
  if (videoThumbOptions)
38
38
  keys.unshift("video");
39
+ [activeKey.value] = keys;
39
40
  return keys.map((key) => ({
40
41
  key,
41
42
  title: TAB_DICT[key].title
@@ -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 }]),
@@ -38,6 +38,7 @@ function useTabFilter(props) {
38
38
  keys.unshift("ai");
39
39
  if (videoThumbOptions)
40
40
  keys.unshift("video");
41
+ [activeKey.value] = keys;
41
42
  return keys.map((key) => ({
42
43
  key,
43
44
  title: TAB_DICT[key].title
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.3.87",
3
+ "version": "0.3.89",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",