@cmstops/pro-compo 0.1.85 → 0.1.86

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, openBlock, createElementBlock, createElementVNode, createBlock, unref, toDisplayString, renderSlot, createVNode, Fragment, normalizeClass, createTextVNode } from "vue";
1
+ import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, createBlock, unref, toDisplayString, renderSlot, createVNode, Fragment, normalizeClass, withCtx, createTextVNode } from "vue";
2
2
  import { Image } from "@arco-design/web-vue";
3
3
  import { IconSubscribed, IconSend } from "@arco-design/web-vue/es/icon";
4
4
  import _sfc_main$1 from "../../../../typeIcons/component.js";
@@ -79,6 +79,7 @@ const _sfc_main = defineComponent({
79
79
  };
80
80
  return (_ctx, _cache) => {
81
81
  var _a;
82
+ const _component_a_tooltip = resolveComponent("a-tooltip");
82
83
  return openBlock(), createElementBlock("div", {
83
84
  class: "matrix-records-item-view",
84
85
  onMouseenter: _cache[0] || (_cache[0] = ($event) => mouseEnterFun($event, _ctx.item)),
@@ -131,9 +132,20 @@ const _sfc_main = defineComponent({
131
132
  createElementVNode("span", _hoisted_11, toDisplayString(_ctx.item.account.name || `\u7528\u6237${new Date().getTime()}`), 1)
132
133
  ], 64)) : (openBlock(), createElementBlock("span", _hoisted_12, "--"))
133
134
  ]),
134
- createElementVNode("span", {
135
+ [3, 4].includes(_ctx.item.publishState) ? (openBlock(), createBlock(_component_a_tooltip, {
136
+ key: 0,
137
+ class: normalizeClass(["abttr tags state", [`p-state-${_ctx.item.publishState}`]]),
138
+ content: `\u5931\u8D25\u539F\u56E0: ${_ctx.item.errorMsg}`,
139
+ position: "top"
140
+ }, {
141
+ default: withCtx(() => [
142
+ createElementVNode("span", null, toDisplayString(unref(matrixPublishStateMap)[_ctx.item.publishState]), 1)
143
+ ]),
144
+ _: 1
145
+ }, 8, ["class", "content"])) : (openBlock(), createElementBlock("span", {
146
+ key: 1,
135
147
  class: normalizeClass(["abttr tags state", [`p-state-${_ctx.item.publishState}`]])
136
- }, toDisplayString(unref(matrixPublishStateMap)[_ctx.item.publishState]), 3),
148
+ }, toDisplayString(unref(matrixPublishStateMap)[_ctx.item.publishState]), 3)),
137
149
  createElementVNode("span", _hoisted_13, toDisplayString(((_a = _ctx.item.user) == null ? void 0 : _a.alias) || "--"), 1),
138
150
  createElementVNode("span", _hoisted_14, [
139
151
  createVNode(unref(IconSubscribed)),
@@ -80,6 +80,7 @@ const _sfc_main = vue.defineComponent({
80
80
  };
81
81
  return (_ctx, _cache) => {
82
82
  var _a;
83
+ const _component_a_tooltip = vue.resolveComponent("a-tooltip");
83
84
  return vue.openBlock(), vue.createElementBlock("div", {
84
85
  class: "matrix-records-item-view",
85
86
  onMouseenter: _cache[0] || (_cache[0] = ($event) => mouseEnterFun($event, _ctx.item)),
@@ -132,9 +133,20 @@ const _sfc_main = vue.defineComponent({
132
133
  vue.createElementVNode("span", _hoisted_11, vue.toDisplayString(_ctx.item.account.name || `\u7528\u6237${new Date().getTime()}`), 1)
133
134
  ], 64)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_12, "--"))
134
135
  ]),
135
- vue.createElementVNode("span", {
136
+ [3, 4].includes(_ctx.item.publishState) ? (vue.openBlock(), vue.createBlock(_component_a_tooltip, {
137
+ key: 0,
138
+ class: vue.normalizeClass(["abttr tags state", [`p-state-${_ctx.item.publishState}`]]),
139
+ content: `\u5931\u8D25\u539F\u56E0: ${_ctx.item.errorMsg}`,
140
+ position: "top"
141
+ }, {
142
+ default: vue.withCtx(() => [
143
+ vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(typeMap.matrixPublishStateMap)[_ctx.item.publishState]), 1)
144
+ ]),
145
+ _: 1
146
+ }, 8, ["class", "content"])) : (vue.openBlock(), vue.createElementBlock("span", {
147
+ key: 1,
136
148
  class: vue.normalizeClass(["abttr tags state", [`p-state-${_ctx.item.publishState}`]])
137
- }, vue.toDisplayString(vue.unref(typeMap.matrixPublishStateMap)[_ctx.item.publishState]), 3),
149
+ }, vue.toDisplayString(vue.unref(typeMap.matrixPublishStateMap)[_ctx.item.publishState]), 3)),
138
150
  vue.createElementVNode("span", _hoisted_13, vue.toDisplayString(((_a = _ctx.item.user) == null ? void 0 : _a.alias) || "--"), 1),
139
151
  vue.createElementVNode("span", _hoisted_14, [
140
152
  vue.createVNode(vue.unref(icon.IconSubscribed)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.1.85",
3
+ "version": "0.1.86",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",