china-mobile-international-custom-components 0.0.28 → 0.0.29

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,5 +1,5 @@
1
1
  import { w as I } from "./chunks/index.bCzIhWFw.js";
2
- import { computed as s, resolveComponent as p, createBlock as n, openBlock as c, normalizeStyle as T, withCtx as i, createVNode as g, resolveDynamicComponent as u } from "vue";
2
+ import { computed as s, resolveComponent as p, createBlock as n, openBlock as c, normalizeStyle as g, withCtx as i, createVNode as T, resolveDynamicComponent as u } from "vue";
3
3
  import { WorkflowIcon3 as w, WorkflowIcon1 as z, Model as M, McpIcon as O, Plugin as P, Workflow as _ } from "color-message-aibox-vue";
4
4
  const e = {
5
5
  AGENT: "3",
@@ -16,7 +16,9 @@ const e = {
16
16
  all: "all",
17
17
  autonomous: 1,
18
18
  dialogue: 3
19
- }, C = {
19
+ }, C = /* @__PURE__ */ Object.assign({
20
+ name: "ApplicationIcon"
21
+ }, {
20
22
  __name: "layout",
21
23
  props: {
22
24
  row: {
@@ -51,13 +53,13 @@ const e = {
51
53
  const r = p("el-icon"), f = p("el-image");
52
54
  return a.value ? (c(), n(f, {
53
55
  key: 0,
54
- style: T({ width: o.size + "px", height: o.size + "px" }),
56
+ style: g({ width: o.size + "px", height: o.size + "px" }),
55
57
  src: a.value,
56
58
  fit: "cover",
57
59
  class: "radius-8"
58
60
  }, {
59
61
  error: i(() => [
60
- g(r, { size: o.size }, {
62
+ T(r, { size: o.size }, {
61
63
  default: i(() => [
62
64
  (c(), n(u(l.value)))
63
65
  ]),
@@ -76,7 +78,7 @@ const e = {
76
78
  }, 8, ["size"]));
77
79
  };
78
80
  }
79
- }, v = I(C);
81
+ }), v = I(C);
80
82
  export {
81
83
  m as APPLICATION_TYPE,
82
84
  v as ApplicationIcon,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("./chunks/index.CkihWzK6.js"),e=require("vue"),t=require("color-message-aibox-vue"),o={AGENT:"3",WORKFLOW:"4",PLUGIN:"5",MCP:"8",MODEL:"9"},i={all:"all",autonomous:1,dialogue:3},y={__name:"layout",props:{row:{type:Object,required:!0},size:{type:Number,default:48},applicationType:{type:String,default:o.AGENT},iconField:{type:String,default:"icon"}},setup(n){const c=n,l=e.computed(()=>c.row?.[c.iconField]),a=e.computed(()=>c.applicationType===o.AGENT?{[i.autonomous]:t.WorkflowIcon1,[i.dialogue]:t.WorkflowIcon3}[c.row?.type]:{[o.WORKFLOW]:t.Workflow,[o.PLUGIN]:t.Plugin,[o.MCP]:t.McpIcon,[o.MODEL]:t.Model}[c.applicationType]);return(u,p)=>{const r=e.resolveComponent("el-icon"),d=e.resolveComponent("el-image");return l.value?(e.openBlock(),e.createBlock(d,{key:0,style:e.normalizeStyle({width:n.size+"px",height:n.size+"px"}),src:l.value,fit:"cover",class:"radius-8"},{error:e.withCtx(()=>[e.createVNode(r,{size:n.size},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))]),_:1},8,["size"])]),_:1},8,["style","src"])):(e.openBlock(),e.createBlock(r,{key:1,size:n.size},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))]),_:1},8,["size"]))}}},s=m.withInstall(y);exports.APPLICATION_TYPE=i;exports.ApplicationIcon=s;exports.SOURCE_TYPE=o;exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("./chunks/index.CkihWzK6.js"),e=require("vue"),t=require("color-message-aibox-vue"),o={AGENT:"3",WORKFLOW:"4",PLUGIN:"5",MCP:"8",MODEL:"9"},i={all:"all",autonomous:1,dialogue:3},y=Object.assign({name:"ApplicationIcon"},{__name:"layout",props:{row:{type:Object,required:!0},size:{type:Number,default:48},applicationType:{type:String,default:o.AGENT},iconField:{type:String,default:"icon"}},setup(n){const c=n,l=e.computed(()=>c.row?.[c.iconField]),a=e.computed(()=>c.applicationType===o.AGENT?{[i.autonomous]:t.WorkflowIcon1,[i.dialogue]:t.WorkflowIcon3}[c.row?.type]:{[o.WORKFLOW]:t.Workflow,[o.PLUGIN]:t.Plugin,[o.MCP]:t.McpIcon,[o.MODEL]:t.Model}[c.applicationType]);return(u,p)=>{const r=e.resolveComponent("el-icon"),d=e.resolveComponent("el-image");return l.value?(e.openBlock(),e.createBlock(d,{key:0,style:e.normalizeStyle({width:n.size+"px",height:n.size+"px"}),src:l.value,fit:"cover",class:"radius-8"},{error:e.withCtx(()=>[e.createVNode(r,{size:n.size},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))]),_:1},8,["size"])]),_:1},8,["style","src"])):(e.openBlock(),e.createBlock(r,{key:1,size:n.size},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))]),_:1},8,["size"]))}}}),s=m.withInstall(y);exports.APPLICATION_TYPE=i;exports.ApplicationIcon=s;exports.SOURCE_TYPE=o;exports.default=s;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "china-mobile-international-custom-components",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "keywords": [
5
5
  "components",
6
6
  "vue",
@@ -108,8 +108,8 @@
108
108
  "color-message-lingyun-vue": "0.0.30",
109
109
  "color-star-custom-methods": "0.0.17",
110
110
  "color-message-aibox-vue": "0.0.80",
111
- "color-star-atom-style": "0.0.2",
112
- "color-star-custom-components": "0.0.20"
111
+ "color-star-custom-components": "0.0.20",
112
+ "color-star-atom-style": "0.0.2"
113
113
  },
114
114
  "optionalDependencies": {
115
115
  "@ast-grep/napi-linux-x64-musl": "^0.39.6",