ling-yun-custom-components 0.0.46 → 0.0.47
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/es/AppIntro.mjs +177 -182
- package/es/CustomTab.mjs +46 -20
- package/es/IconRenderer.mjs +1 -1
- package/es/PluginDetail.mjs +120 -0
- package/es/assets/AppIntro.css +1 -1
- package/es/assets/CustomTab.css +1 -1
- package/es/assets/PluginDetail.css +1 -0
- package/es/chunks/global.2EmeYAhV.js +16350 -0
- package/es/index.mjs +29 -26
- package/lib/AppIntro.js +1 -1
- package/lib/CustomTab.js +1 -1
- package/lib/IconRenderer.js +1 -1
- package/lib/PluginDetail.js +1 -0
- package/lib/assets/AppIntro.css +1 -1
- package/lib/assets/CustomTab.css +1 -1
- package/lib/assets/PluginDetail.css +1 -0
- package/lib/chunks/global.M0Ikp-pv.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +3 -3
package/es/index.mjs
CHANGED
|
@@ -8,82 +8,85 @@ import { BatchImport as a } from "./BatchImport.mjs";
|
|
|
8
8
|
import { GradientButton as l } from "./GradientButton.mjs";
|
|
9
9
|
import { CustomDialog as s } from "./CustomDialog.mjs";
|
|
10
10
|
import { CustomPagination as c } from "./CustomPagination.mjs";
|
|
11
|
-
import { CustomTitle as
|
|
12
|
-
import { CustomDropdown as
|
|
11
|
+
import { CustomTitle as u } from "./CustomTitle.mjs";
|
|
12
|
+
import { CustomDropdown as S } from "./CustomDropdown.mjs";
|
|
13
13
|
import { TreeSelect as d } from "./TreeSelect.mjs";
|
|
14
14
|
import { TreeShowSelect as I } from "./TreeShowSelect.mjs";
|
|
15
15
|
import { IconEmpty as T } from "./IconEmpty.mjs";
|
|
16
16
|
import { IconRenderer as _, iconLibraryMap as B } from "./IconRenderer.mjs";
|
|
17
|
-
import { IconSelect as
|
|
18
|
-
import { PageNotFound as
|
|
19
|
-
import { UpdatePasswordDialog as
|
|
20
|
-
import { BUILD_BIG_TITLES as
|
|
17
|
+
import { IconSelect as P } from "./IconSelect.mjs";
|
|
18
|
+
import { PageNotFound as g } from "./PageNotFound.mjs";
|
|
19
|
+
import { UpdatePasswordDialog as D } from "./UpdatePasswordDialog.mjs";
|
|
20
|
+
import { BUILD_BIG_TITLES as L, BUILD_STEPS as C, BUILD_TITLES as E, BUILD_TYPES as b, BuildComponents as U, STEP_ARROW_IMAGE as y } from "./BuildComponents.mjs";
|
|
21
21
|
import { CustomTab as w } from "./CustomTab.mjs";
|
|
22
|
-
import {
|
|
22
|
+
import { PluginDetail as h } from "./PluginDetail.mjs";
|
|
23
|
+
import { dayjs as j } from "element-plus";
|
|
23
24
|
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
25
|
__proto__: null,
|
|
25
26
|
AppIntro: m,
|
|
26
|
-
BUILD_BIG_TITLES:
|
|
27
|
-
BUILD_STEPS:
|
|
27
|
+
BUILD_BIG_TITLES: L,
|
|
28
|
+
BUILD_STEPS: C,
|
|
28
29
|
BUILD_TITLES: E,
|
|
29
30
|
BUILD_TYPES: b,
|
|
30
31
|
BatchImport: a,
|
|
31
32
|
BuildComponents: U,
|
|
32
33
|
CustomDialog: s,
|
|
33
|
-
CustomDropdown:
|
|
34
|
+
CustomDropdown: S,
|
|
34
35
|
CustomPagination: c,
|
|
35
36
|
CustomSelect: i,
|
|
36
37
|
CustomTab: w,
|
|
37
|
-
CustomTitle:
|
|
38
|
+
CustomTitle: u,
|
|
38
39
|
FileList: f,
|
|
39
40
|
GradientButton: l,
|
|
40
41
|
IconEmpty: T,
|
|
41
42
|
IconRenderer: _,
|
|
42
|
-
IconSelect:
|
|
43
|
-
PageNotFound:
|
|
43
|
+
IconSelect: P,
|
|
44
|
+
PageNotFound: g,
|
|
44
45
|
PaginationTable: p,
|
|
46
|
+
PluginDetail: h,
|
|
45
47
|
STEP_ARROW_IMAGE: y,
|
|
46
48
|
SearchBar: e,
|
|
47
49
|
TreeSelect: d,
|
|
48
50
|
TreeShowSelect: I,
|
|
49
|
-
UpdatePasswordDialog:
|
|
51
|
+
UpdatePasswordDialog: D,
|
|
50
52
|
UploadFile: n,
|
|
51
53
|
iconLibraryMap: B
|
|
52
54
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
53
|
-
|
|
54
|
-
const
|
|
55
|
+
j.en.weekStart = 1;
|
|
56
|
+
const A = (t) => {
|
|
55
57
|
for (const r in o)
|
|
56
58
|
o[r].install && t.use(o[r]);
|
|
57
|
-
},
|
|
58
|
-
install:
|
|
59
|
+
}, to = {
|
|
60
|
+
install: A
|
|
59
61
|
};
|
|
60
62
|
export {
|
|
61
63
|
m as AppIntro,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
L as BUILD_BIG_TITLES,
|
|
65
|
+
C as BUILD_STEPS,
|
|
64
66
|
E as BUILD_TITLES,
|
|
65
67
|
b as BUILD_TYPES,
|
|
66
68
|
a as BatchImport,
|
|
67
69
|
U as BuildComponents,
|
|
68
70
|
s as CustomDialog,
|
|
69
|
-
|
|
71
|
+
S as CustomDropdown,
|
|
70
72
|
c as CustomPagination,
|
|
71
73
|
i as CustomSelect,
|
|
72
74
|
w as CustomTab,
|
|
73
|
-
|
|
75
|
+
u as CustomTitle,
|
|
74
76
|
f as FileList,
|
|
75
77
|
l as GradientButton,
|
|
76
78
|
T as IconEmpty,
|
|
77
79
|
_ as IconRenderer,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
P as IconSelect,
|
|
81
|
+
g as PageNotFound,
|
|
80
82
|
p as PaginationTable,
|
|
83
|
+
h as PluginDetail,
|
|
81
84
|
y as STEP_ARROW_IMAGE,
|
|
82
85
|
e as SearchBar,
|
|
83
86
|
d as TreeSelect,
|
|
84
87
|
I as TreeShowSelect,
|
|
85
|
-
|
|
88
|
+
D as UpdatePasswordDialog,
|
|
86
89
|
n as UploadFile,
|
|
87
|
-
|
|
90
|
+
to as default,
|
|
88
91
|
B as iconLibraryMap
|
|
89
92
|
};
|
package/lib/AppIntro.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/AppIntro.css');const g=require("./chunks/index.CkihWzK6.js"),e=require("vue"),s=require("element-plus"),w=require("color-message-lingyun-vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/AppIntro.css');const g=require("./chunks/index.CkihWzK6.js"),e=require("vue"),s=require("element-plus"),w=require("color-message-lingyun-vue"),_=require("./chunks/layout.B9EVVV-O.js"),I=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),V=require("ling-yun-methods"),l={LISTING:1,DELISTING:2,ONLINE:3,OFFLINE:4},y={PENDING:0,APPROVED:1,REJECTED:2},h={IMAGE:1,VIDEO:2},f={INTRO:"intro",TIMELINE:"timeline"},B={[l.LISTING]:"上架申请",[l.DELISTING]:"下架申请",[l.ONLINE]:"上线应用",[l.OFFLINE]:"下线应用"},N={[y.PENDING]:{type:"warning",text:"待审核"},[y.APPROVED]:{type:"primary",text:"已通过"},[y.REJECTED]:{type:"danger",text:"已驳回"}},L=[{title:"申请人:",field:"appCreatorName"},{title:"应用省份:",field:"appCreatorOrg"},{title:"应用说明:",field:"appDesc"},{title:"接入系统:",field:"accessSystem"},{title:"业务背景:",field:"businessBackground"},{title:"业务目标:",field:"businessTarget"},{title:"成效数据:",field:"resultData"}],C=[{title:"申请人",field:"creatorName",showForTypes:[l.LISTING,l.DELISTING]},{title:"操作人",field:"creatorName",showForTypes:[l.ONLINE,l.OFFLINE]},{title:"下架原因",field:"delistingReason",showForTypes:[l.DELISTING]},{title:"成效数据",field:"resultData",showForTypes:[l.LISTING]},{title:"推荐理由",field:"recommendReason",showForTypes:[l.LISTING]},{title:"版本号",field:"appVersionNum",showForTypes:[l.ONLINE,l.OFFLINE],formatter:a=>a?`V${a}`:"--"},{title:"配置摘要",field:"configSummary",showForTypes:[l.ONLINE]},{title:"版本说明",field:"publishRemark",showForTypes:[l.ONLINE,l.OFFLINE]},{title:"下线原因",field:"offlineReason",showForTypes:[l.OFFLINE]}],k={[l.LISTING]:{text:"查看上架申请"},[l.DELISTING]:{text:"查看下架申请"}},D={key:0,class:"media-video relative w-full"},x=["src"],F={key:1,class:"media-image relative w-full"},S=["src"],E={__name:"MediaViewer",props:{media:{type:Object,default:null}},setup(a){return(i,c)=>a.media?.type===e.unref(h).VIDEO?(e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("video",{class:"w-full",src:a.media.url,controls:""},null,8,x)])):a.media?.type===e.unref(h).IMAGE?(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("img",{class:"w-full",src:a.media.url,alt:""},null,8,S)])):e.createCommentVNode("",!0)}},b={class:"app-intro-content overflow-hidden h-full"},O={key:0,class:"media-section w-full pd-b-12"},$={class:"media-content relative w-full"},G=["onClick"],M={class:"info-section"},R={class:"flex items-center"},q={class:"fz-14 text-666 pd-r-12"},A={class:"preview-content"},P={__name:"AppIntroContent",props:{introData:{type:Object,default:()=>({})}},setup(a){const i=e.ref(!1),c=e.ref(null),d=n=>{c.value=n,i.value=!0},m=()=>{i.value=!1,c.value=null},u=n=>{try{const t=document.createElement("a");t.href=n.attachementUrl,t.download=n.attachementName,t.style.display="none",t.target="_blank",document.body.appendChild(t),t.click(),document.body.removeChild(t)}catch(t){console.error(t)}};return(n,t)=>{const p=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",b,[a.introData?.pics?.length>0?(e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("div",$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.introData.pics,(o,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"media-item w-full"},[e.createVNode(E,{media:o},null,8,["media"]),e.createElementVNode("div",{class:"hover-overlay absolute top-0 left-0 w-full h-full flex justify-center items-center",onClick:T=>d(o)},[e.createVNode(e.unref(s.ElIcon),{size:24,class:"view-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(w.IconLook))]),_:1})],8,G)]))),128))])])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default",{},void 0,!0),e.createElementVNode("div",M,[e.createVNode(e.unref(s.ElForm),{model:a.introData,"label-width":"auto"},{default:e.withCtx(()=>[["agent","workflow"].includes(a.introData?.appCategory)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(L),o=>(e.openBlock(),e.createBlock(e.unref(s.ElFormItem),{key:o.field,label:o.title,class:"mg-b-0"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.introData?.[o.field]??"--"),1)]),_:2},1032,["label"]))),128)):e.createCommentVNode("",!0),a.introData?.attachements?.length?(e.openBlock(),e.createBlock(e.unref(s.ElFormItem),{key:1,label:"附件:"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.introData.attachements,(o,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"mg-b-8"},[e.withDirectives((e.openBlock(),e.createElementBlock("div",R,[e.createElementVNode("span",q,e.toDisplayString(o.attachementName),1),o.attachementUrl?(e.openBlock(),e.createBlock(e.unref(s.ElLink),{key:0,type:"primary",underline:!1,onClick:T=>u(o)},{default:e.withCtx(()=>[...t[1]||(t[1]=[e.createTextVNode(" 点击查看 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])),[[p,!o.attachementUrl]])]))),128))]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["model"])]),e.createVNode(_.CustomDialog,{modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=o=>i.value=o),width:"60%","show-close":!0,onClose:m,buttons:{showCancel:!1,showConfirm:!1}},{default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createVNode(E,{media:c.value,class:"preview-media"},null,8,["media"])])]),_:1},8,["modelValue"])])}}},j=I._export_sfc(P,[["__scopeId","data-v-f13b81ec"]]),z={class:"flex items-center flex-gap-row-nowrap-8 mg-b-12"},U={class:"fz-14 weight-500",style:{color:"#1d2129"}},H={class:"fz-14",style:{color:"#4e5969"}},J={__name:"AppTimeline",props:{appId:{type:String,default:""},square:{type:Boolean,default:!1},vueRouter:{type:Object,default:()=>({})},appOperationList:{type:Function,default:()=>{}}},setup(a){const i=a,c=async t=>{i.vueRouter.push({path:"/promptTestDetail",query:{id:t.id,type:t.auditStatus,sourceFlag:"1",operationType:t.operationType,sourceHistory:"1"}})},d=t=>[l.LISTING,l.DELISTING].includes(t),m=t=>C.filter(p=>p.showForTypes.includes(t)),u=e.ref([]),n=async()=>{await i.appOperationList({appId:i.appId,operationType:[l.LISTING,l.DELISTING,l.ONLINE,l.OFFLINE].join(","),pageNum:V.pageParams.pageNum,pageSize:1e6}).then(({data:t})=>{u.value=t.list})};return e.onMounted(()=>{n()}),(t,p)=>(e.openBlock(),e.createBlock(e.unref(s.ElTimeline),{class:"overflow-y-auto h-full pd-l-4"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,o=>(e.openBlock(),e.createBlock(e.unref(s.ElTimelineItem),{key:o.id,timestamp:o.createTime,placement:"top",color:"var(--primary-color-1)"},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ElCard),{shadow:"hover"},{default:e.withCtx(()=>[e.createElementVNode("div",z,[e.createElementVNode("span",U,e.toDisplayString(e.unref(B)[o.operationType]||"--"),1),d(o.operationType)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(N)[o.auditStatus]?(e.openBlock(),e.createBlock(e.unref(s.ElTag),{key:0,type:e.unref(N)[o.auditStatus].type},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(N)[o.auditStatus].text),1)]),_:2},1032,["type"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",H,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m(o.operationType),r=>(e.openBlock(),e.createElementBlock("div",{key:r.field+r.title,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},e.toDisplayString(r.title)+":"+e.toDisplayString(r.formatter?r.formatter(o[r.field]):o[r.field]??"--"),1))),128)),e.unref(k)[o.operationType]&&!a.square?(e.openBlock(),e.createBlock(e.unref(s.ElLink),{key:0,type:"primary",underline:!1,class:"mg-t-8",onClick:r=>c(o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(k)[o.operationType].text),1)]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)])]),_:2},1024)]),_:2},1032,["timestamp"]))),128))]),_:1}))}},Y=I._export_sfc(J,[["__scopeId","data-v-3a2170d7"]]),K={class:"h-full overflow-hidden flex flex-col pd-t-12"},Q={class:"pd-b-12"},W={key:0,class:"flex-1 overflow-hidden"},X={key:1,class:"flex-1 overflow-hidden"},Z=Object.assign({name:"AppIntro"},{__name:"layout",props:{introData:{type:Object,default:()=>({})},square:{type:Boolean,default:!1},vueRouter:{type:Object,default:()=>({})},appId:{type:String,default:""},appOperationList:{type:Function,default:()=>{}}},emits:["tab-change"],setup(a,{emit:i}){const c=i,d=e.ref(f.INTRO),m=e.computed(()=>[{label:"应用介绍",value:f.INTRO},{label:"迭代时间轴",value:f.TIMELINE}]),u=n=>{c("tab-change",n)};return(n,t)=>(e.openBlock(),e.createElementBlock("div",K,[e.createElementVNode("div",Q,[e.createVNode(e.unref(s.ElSegmented),{modelValue:d.value,"onUpdate:modelValue":t[0]||(t[0]=p=>d.value=p),options:m.value,onChange:u},null,8,["modelValue","options"])]),d.value===e.unref(f).INTRO?(e.openBlock(),e.createElementBlock("div",W,[e.createVNode(j,{"intro-data":a.introData},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"plugin-detail")]),_:3},8,["intro-data"])])):d.value===e.unref(f).TIMELINE?(e.openBlock(),e.createElementBlock("div",X,[e.createVNode(Y,{"app-operation-list":a.appOperationList,square:a.square,"vue-router":a.vueRouter,"app-id":a.appId},null,8,["app-operation-list","square","vue-router","app-id"])])):e.createCommentVNode("",!0)]))}}),v=g.withInstall(Z);exports.AppIntro=v;exports.default=v;
|
package/lib/CustomTab.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/CustomTab.css');const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/CustomTab.css');const b=require("./chunks/index.CkihWzK6.js"),e=require("vue"),s=require("element-plus"),y=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),_={__name:"layout",props:e.mergeModels({list:{type:Array,default:()=>[]},keyConfig:{type:Object,default:()=>({label:"label",name:"name"})}},{modelValue:{type:String,default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const n=a,d={label:"label",name:"name"},o=e.useModel(a,"modelValue"),l=e.computed(()=>({...d,...n.keyConfig})),i=e.useAttrs(),m=e.useSlots();return(p,r)=>(e.openBlock(),e.createBlock(e.unref(s.ElTabs),e.mergeProps({modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=t=>o.value=t)},e.unref(i),{type:"card"}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,t=>(e.openBlock(),e.createBlock(e.unref(s.ElTabPane),{key:t[l.value.name],label:t[l.value.label],name:t[l.value.name]},null,8,["label","name"]))),128))]),_:2},[e.renderList(e.unref(m),(t,u)=>({name:u,fn:e.withCtx(f=>[e.renderSlot(p.$slots,u,e.normalizeProps(e.guardReactiveProps(f)),void 0,!0)])}))]),1040,["modelValue"]))}},g=y._export_sfc(_,[["__scopeId","data-v-cd15b5ea"]]),c=b.withInstall(g);exports.CustomTab=c;exports.default=c;
|
package/lib/IconRenderer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./chunks/index.CkihWzK6.js"),e=require("vue"),s=require("element-plus"),a={lingyun:"lingyun",aibox:"aibox"},d=async(o,n)=>{if(!n)return null;try{switch(o){case a.lingyun:const{icons:r}=await Promise.resolve().then(()=>require("./chunks/global.XouT1lGG.js"));return r[n]||null;case a.aibox:const{icons:t}=await Promise.resolve().then(()=>require("./chunks/global.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./chunks/index.CkihWzK6.js"),e=require("vue"),s=require("element-plus"),a={lingyun:"lingyun",aibox:"aibox"},d=async(o,n)=>{if(!n)return null;try{switch(o){case a.lingyun:const{icons:r}=await Promise.resolve().then(()=>require("./chunks/global.XouT1lGG.js"));return r[n]||null;case a.aibox:const{icons:t}=await Promise.resolve().then(()=>require("./chunks/global.M0Ikp-pv.js"));return t[n]||null}}catch(r){return console.warn(`Failed to load icon ${n} from ${o} library:`,r),null}},m=Object.assign({name:"IconRenderer"},{__name:"layout",props:{iconName:{type:String,default:""},iconLibrary:{type:String,default:a.lingyun,validator:o=>Object.values(a).includes(o)},size:{type:Number,default:16},color:{type:String,default:""}},setup(o){const n=o,r=e.shallowRef(null),t=e.ref(!1),c=async()=>{if(!n.iconName){r.value=null;return}if(!t.value){t.value=!0;try{const l=await d(n.iconLibrary,n.iconName);r.value=l}catch(l){console.error("Failed to load icon component:",l),r.value=null}finally{t.value=!1}}};return e.watch(()=>[n.iconLibrary,n.iconName],()=>{c()},{immediate:!1}),e.onMounted(()=>{c()}),(l,y)=>o.iconName&&r.value?(e.openBlock(),e.createBlock(e.unref(s.ElIcon),e.mergeProps({key:0,size:o.size,color:o.color},l.$attrs),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value)))]),_:1},16,["size","color"])):e.createCommentVNode("",!0)}}),i=u.withInstall(m);exports.IconRenderer=i;exports.default=i;exports.iconLibraryMap=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/PluginDetail.css');const y=require("./chunks/index.CkihWzK6.js"),e=require("vue"),m=require("element-plus"),b=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),V={key:0},B={key:1},S={key:1,class:"weight-700 fz-18 text-262626 lh-25 mg-t-34 mg-b-16"},w={key:3,class:"radius-12 border-f0f0f0 pd-l-20 pd-r-20 pd-b-24 pd-t-20"},N={class:"weight-400 fz-16 text-666666 lh-24"},E={class:"flex justify-end items-center gap-10 text-right"},x={__name:"layout",props:{intro:{type:String,default:""},description:{type:String,default:""},tabOptions:{type:Array,default:()=>[]},modelValue:{type:[String,Number],default:""},tabItems:{type:Array,default:()=>[]}},emits:["update:modelValue","tab-change"],setup(o,{expose:p,emit:g}){const n=o,d=g,a=e.ref(!1),u=e.ref(!1),s=e.ref(null),r=e.ref(n.modelValue),c=e.computed(()=>!n.tabItems?.length||!r.value?null:n.tabItems.find(t=>t.bnid==r.value)||null),h=()=>{a.value=!a.value},v=t=>{d("update:modelValue",t),d("tab-change",t)},i=()=>{e.nextTick(()=>{const t=s.value;t&&(u.value=t.scrollHeight>24)})};return e.watch(()=>n.modelValue,t=>{r.value=t}),e.watch(()=>n.description,()=>{i()},{immediate:!0}),e.onMounted(()=>{i()}),p({checkShowMoreBtn:i,currentTabItem:c}),(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l[1]||(l[1]=e.createElementVNode("div",{class:"weight-700 fz-18 text-262626 mg-b-16"},"插件简介",-1)),e.createElementVNode("div",{class:e.normalizeClass(["weight-400 fz-16 text-666",a.value?"":"hide-more"]),ref_key:"descRef",ref:s},[e.renderSlot(t.$slots,"intro",{},()=>[e.createTextVNode(e.toDisplayString(o.intro),1)],!0)],2),l[2]||(l[2]=e.createElementVNode("div",{class:"weight-700 fz-18 text-262626 mg-b-16 mg-t-34"},"工具描述",-1)),e.createElementVNode("div",{class:e.normalizeClass(["weight-400 fz-16 text-666",a.value?"":"hide-more"]),ref_key:"descRef",ref:s},[e.renderSlot(t.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(o.description),1)],!0)],2),u.value?(e.openBlock(),e.createBlock(e.unref(m.ElButton),{key:0,type:"text",onClick:h},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("span",B,"收起")):(e.openBlock(),e.createElementBlock("span",V,"查看更多"))]),_:1})):e.createCommentVNode("",!0),o.tabOptions?.length?(e.openBlock(),e.createElementBlock("div",S," 插件工具 ")):e.createCommentVNode("",!0),o.tabOptions?.length?(e.openBlock(),e.createBlock(e.unref(m.ElSegmented),{key:2,modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=k=>r.value=k),options:o.tabOptions,onChange:v,class:"mg-b-16"},null,8,["modelValue","options"])):e.createCommentVNode("",!0),t.$slots.default||t.$slots.actions?(e.openBlock(),e.createElementBlock("div",w,[e.createElementVNode("div",N,[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(c.value?.description),1)],!0)]),e.createElementVNode("div",E,[e.renderSlot(t.$slots,"actions",{},void 0,!0)])])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"plugin-detail",{},void 0,!0)],64))}},C=b._export_sfc(x,[["__scopeId","data-v-0204a00d"]]),f=y.withInstall(C);exports.PluginDetail=f;exports.default=f;
|
package/lib/assets/AppIntro.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.hover-overlay[data-v-f13b81ec]{background:#00000080}[data-v-3a2170d7] .el-timeline-item__timestamp{color:#86909c}[data-v-3a2170d7] .el-card{background:var(--neutral-color-18)}
|
package/lib/assets/CustomTab.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-cd15b5ea] .el-tabs__item.is-active{background:linear-gradient(270deg,#6788ff,#878bff);border-radius:14px 14px 0 0;color:#fff!important}[data-v-cd15b5ea] .el-tabs__item{background:#eef0f7;border-radius:14px 14px 0 0;border:1px solid #e4e6ed;padding:8px 24px;color:var(--text-color-2)!important}[data-v-cd15b5ea] .el-tabs__nav.is-top{border:none!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.hide-more[data-v-0204a00d]{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.border-f0f0f0[data-v-0204a00d]{border:1px solid var(--neutral-color-6)}
|