ling-yun-custom-components 0.0.10
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/BatchImport.mjs +208 -0
- package/es/BuildComponents.mjs +190 -0
- package/es/CustomDialog.mjs +7 -0
- package/es/CustomDropdown.mjs +145 -0
- package/es/CustomPagination.mjs +7 -0
- package/es/CustomSelect.mjs +7 -0
- package/es/CustomTab.mjs +33 -0
- package/es/CustomTitle.mjs +7 -0
- package/es/FileList.mjs +7 -0
- package/es/GradientButton.mjs +120 -0
- package/es/IconEmpty.mjs +7 -0
- package/es/IconRenderer.mjs +42 -0
- package/es/IconSelect.mjs +120 -0
- package/es/PaginationTable.mjs +407 -0
- package/es/SearchBar.mjs +7 -0
- package/es/TreeSelect.mjs +406 -0
- package/es/TreeShowSelect.mjs +82 -0
- package/es/UpdatePasswordDialog.mjs +119 -0
- package/es/UploadFile.mjs +7 -0
- package/es/assets/BuildComponents.css +1 -0
- package/es/assets/CustomDropdown.css +1 -0
- package/es/assets/CustomTab.css +1 -0
- package/es/assets/GradientButton.css +1 -0
- package/es/assets/IconSelect.css +1 -0
- package/es/assets/PaginationTable.css +1 -0
- package/es/assets/TreeSelect.css +1 -0
- package/es/assets/TreeShowSelect.css +1 -0
- package/es/assets/UpdatePasswordDialog.css +1 -0
- package/es/assets/layout.css +0 -0
- package/es/assets/layout2.css +1 -0
- package/es/assets/layout3.css +1 -0
- package/es/assets/layout4.css +1 -0
- package/es/assets/layout5.css +1 -0
- package/es/assets/layout6.css +1 -0
- package/es/chunks/_plugin-vue_export-helper.CHgC5LLL.js +9 -0
- package/es/chunks/global.DVwnOczb.js +7828 -0
- package/es/chunks/index.D4Kbv-m1.js +8991 -0
- package/es/chunks/index.DfOANPhX.js +1729 -0
- package/es/chunks/index.DlooXR0t.js +9576 -0
- package/es/chunks/index.bCzIhWFw.js +7 -0
- package/es/chunks/layout.1y3OJ-ea.js +230 -0
- package/es/chunks/layout.2Mabaug0.js +121 -0
- package/es/chunks/layout.6MxjcpGc.js +584 -0
- package/es/chunks/layout.BJE8rMzK.js +230 -0
- package/es/chunks/layout.BKJPyxR8.js +39 -0
- package/es/chunks/layout.C0UEMbnF.js +98 -0
- package/es/chunks/layout.CTQtuC78.js +584 -0
- package/es/chunks/layout.CUOtHOHG.js +66 -0
- package/es/chunks/layout.CiNI5oQK.js +149 -0
- package/es/chunks/layout.CnANFnM1.js +584 -0
- package/es/chunks/layout.CtWHo87D.js +121 -0
- package/es/chunks/layout.Day1LJyl.js +234 -0
- package/es/chunks/layout.DeAFov0o.js +234 -0
- package/es/chunks/layout.Dvw3u-s5.js +234 -0
- package/es/chunks/layout.LCKaV7EX.js +230 -0
- package/es/chunks/layout.ZxPdKhRp.js +149 -0
- package/es/chunks/layout._A_rHZM7.js +149 -0
- package/es/chunks/layout.f58eO4Hr.js +98 -0
- package/es/chunks/layout.t3qD0LTW.js +121 -0
- package/es/chunks/layout.ypvwQzq5.js +98 -0
- package/es/index.mjs +81 -0
- package/lib/BatchImport.js +1 -0
- package/lib/BuildComponents.js +1 -0
- package/lib/CustomDialog.js +1 -0
- package/lib/CustomDropdown.js +1 -0
- package/lib/CustomPagination.js +1 -0
- package/lib/CustomSelect.js +1 -0
- package/lib/CustomTab.js +1 -0
- package/lib/CustomTitle.js +1 -0
- package/lib/FileList.js +1 -0
- package/lib/GradientButton.js +1 -0
- package/lib/IconEmpty.js +1 -0
- package/lib/IconRenderer.js +1 -0
- package/lib/IconSelect.js +1 -0
- package/lib/PaginationTable.js +1 -0
- package/lib/SearchBar.js +1 -0
- package/lib/TreeSelect.js +1 -0
- package/lib/TreeShowSelect.js +1 -0
- package/lib/UpdatePasswordDialog.js +1 -0
- package/lib/UploadFile.js +1 -0
- package/lib/assets/BuildComponents.css +1 -0
- package/lib/assets/CustomDropdown.css +1 -0
- package/lib/assets/CustomTab.css +1 -0
- package/lib/assets/GradientButton.css +1 -0
- package/lib/assets/IconSelect.css +1 -0
- package/lib/assets/PaginationTable.css +1 -0
- package/lib/assets/TreeSelect.css +1 -0
- package/lib/assets/TreeShowSelect.css +1 -0
- package/lib/assets/UpdatePasswordDialog.css +1 -0
- package/lib/assets/layout.css +0 -0
- package/lib/assets/layout2.css +1 -0
- package/lib/assets/layout3.css +1 -0
- package/lib/assets/layout4.css +1 -0
- package/lib/assets/layout5.css +1 -0
- package/lib/assets/layout6.css +1 -0
- package/lib/chunks/_plugin-vue_export-helper.BHFhmbuH.js +1 -0
- package/lib/chunks/global.Cv8u--Cy.js +1 -0
- package/lib/chunks/index.Bixsw9fA.js +23 -0
- package/lib/chunks/index.CkihWzK6.js +1 -0
- package/lib/chunks/index.CrvqvcN9.js +23 -0
- package/lib/chunks/index.DJKAT9lI.js +1 -0
- package/lib/chunks/layout.-yZzrp74.js +1 -0
- package/lib/chunks/layout.2PAIPzYY.js +1 -0
- package/lib/chunks/layout.5iOiFlVu.js +1 -0
- package/lib/chunks/layout.B-T_NE6r.js +1 -0
- package/lib/chunks/layout.BBNd1hLQ.js +1 -0
- package/lib/chunks/layout.BNJsxQ2g.js +1 -0
- package/lib/chunks/layout.BSF3ruxz.js +1 -0
- package/lib/chunks/layout.BXdjRFbn.js +1 -0
- package/lib/chunks/layout.BhL14Rqh.js +1 -0
- package/lib/chunks/layout.BmQYiD_b.js +1 -0
- package/lib/chunks/layout.CDg3sCTi.js +1 -0
- package/lib/chunks/layout.CeVldGUL.js +1 -0
- package/lib/chunks/layout.CjJiAY0w.js +1 -0
- package/lib/chunks/layout.CoSBrO12.js +1 -0
- package/lib/chunks/layout.CwA4IJ1g.js +1 -0
- package/lib/chunks/layout.DDTIwGYp.js +1 -0
- package/lib/chunks/layout.DOS2ezSW.js +1 -0
- package/lib/chunks/layout.D_TxPvRy.js +1 -0
- package/lib/chunks/layout.DfiLurg1.js +1 -0
- package/lib/chunks/layout.gqpUcAHO.js +1 -0
- package/lib/index.js +1 -0
- package/package.json +205 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('../assets/layout2.css');const e=require("vue"),r=require("element-plus"),p=require("./index.DJKAT9lI.js"),t=require("./index.Bixsw9fA.js"),M=require("./_plugin-vue_export-helper.BHFhmbuH.js"),l={DEFAULT:"default",PAGE:"page"},N={key:0,class:"flex justify-center w-full"},S={class:"dialog-content flex flex-col",style:{width:"60%"}},T={key:0,class:"title-name flex items-center"},F={class:"dialog-footer"},G={key:0,class:"flex justify-center items-center w-full"},O={class:"flex justify-center items-center",style:{width:"60%"}},D={class:"flex justify-end items-center w-full"},j=Object.assign({name:"CustomDialog"},{__name:"layout",props:{modelValue:{type:Boolean,default:!1},width:{type:[String,Number],default:"50%"},closeOnClickModal:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeIcon:{type:Object,default:p.icon_close_default},buttons:{type:Object,default:()=>({})},appendToBody:{type:Boolean,default:!0},dialogMode:{type:String,default:l.DEFAULT},titleName:{type:String,default:"默认标题"}},emits:[t.bt.updateModelValue,t.bt.open,t.bt.opened,t.bt.close,t.bt.closed,t.bt.openAutoFocus,t.bt.closeAutoFocus,t.bt.cancel,t.bt.confirm],setup(c,{emit:y}){const g={showCancel:!0,showConfirm:!0,cancelText:"取消",confirmText:"确认",onCancel:null,onConfirm:null},o=c,i=e.useAttrs(),d=y,h=e.computed(()=>o.dialogMode===l.PAGE?{marginLeft:"250px",borderRadius:"24px",boxShadow:"none"}:{}),C=e.computed(()=>o.dialogMode===l.PAGE?!1:i.modal?i.modal:!0),b=e.computed(()=>o.dialogMode===l.PAGE?!0:i.modalPenetrable?i.modalPenetrable:!1),v=e.computed(()=>o.dialogMode===l.PAGE?"calc(100% - 250px - 12px)":o.width),k=e.computed(()=>o.dialogMode===l.PAGE?"66px":o.top||"15vh"),s=e.computed({get:()=>o.modelValue,set:a=>{d(t.bt.updateModelValue,a)}}),n=e.computed(()=>({...g,...o.buttons})),x=e.computed(()=>{const{modelValue:a,...u}=o;return u}),B=()=>{d(t.bt.open)},E=()=>{d(t.bt.opened)},w=()=>{d(t.bt.close)},V=()=>{d(t.bt.closed)},A=()=>{d(t.bt.openAutoFocus)},P=()=>{d(t.bt.closeAutoFocus)},_=()=>{n.value.onCancel?n.value.onCancel():s.value=!1,d(t.bt.cancel)},f=async()=>{if(n.value.onConfirm)try{await n.value.onConfirm()!==!1&&(s.value=!1)}catch{}else s.value=!1;d(t.bt.confirm)};return e.onMounted(()=>{o.dialogMode===l.PAGE&&(document.querySelector(".el-overlay-dialog").style.overflow="hidden")}),(a,u)=>(e.openBlock(),e.createBlock(e.unref(r.ElDialog),e.mergeProps({ref:"dialogRef",modelValue:s.value,"onUpdate:modelValue":u[1]||(u[1]=m=>s.value=m)},x.value,{width:v.value,top:k.value,style:h.value,modal:C.value,"modal-penetrable":b.value,onOpen:B,onOpened:E,onClose:w,onClosed:V,onOpenAutoFocus:A,onCloseAutoFocus:P,"append-to-body":c.appendToBody,class:{"custom-dialog-page":c.dialogMode===e.unref(l).PAGE}}),{header:e.withCtx(()=>[e.renderSlot(a.$slots,"header",{},void 0,!0)]),title:e.withCtx(()=>[c.dialogMode===e.unref(l).PAGE?(e.openBlock(),e.createElementBlock("div",T,[e.createVNode(e.unref(r.ElIcon),{size:20,color:"var(--text-color-1)",class:"mg-r-6 pointer",onClick:u[0]||(u[0]=m=>s.value=!1)},{default:e.withCtx(()=>[e.createVNode(e.unref(p.icon_back_default))]),_:1}),e.createTextVNode(" "+e.toDisplayString(c.titleName),1)])):e.renderSlot(a.$slots,"title",{key:1},void 0,!0)]),footer:e.withCtx(()=>[e.renderSlot(a.$slots,"footer",{},()=>[e.createElementVNode("div",F,[c.dialogMode===e.unref(l).PAGE?(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",O,[e.createElementVNode("div",D,[n.value.showConfirm?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:0,type:"primary",onClick:f},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.confirmText),1)]),_:1})):e.createCommentVNode("",!0)])])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.value.showCancel?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:0,onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.cancelText),1)]),_:1})):e.createCommentVNode("",!0),n.value.showConfirm?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:1,type:"primary",onClick:f},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.confirmText),1)]),_:1})):e.createCommentVNode("",!0)],64))])],!0)]),default:e.withCtx(()=>[c.dialogMode===e.unref(l).PAGE?(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("div",S,[e.renderSlot(a.$slots,"default",{},void 0,!0)])])):e.renderSlot(a.$slots,"default",{key:1},void 0,!0)]),_:3},16,["modelValue","width","top","style","modal","modal-penetrable","append-to-body","class"]))}}),$=M._export_sfc(j,[["__scopeId","data-v-425ba25d"]]);exports.CustomDialog=$;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('../assets/layout2.css');const e=require("vue"),r=require("element-plus"),p=require("./index.DJKAT9lI.js"),t=require("./index.CrvqvcN9.js"),M=require("./_plugin-vue_export-helper.BHFhmbuH.js"),l={DEFAULT:"default",PAGE:"page"},N={key:0,class:"flex justify-center w-full"},S={class:"dialog-content flex flex-col",style:{width:"60%"}},T={key:0,class:"title-name flex items-center"},F={class:"dialog-footer"},G={key:0,class:"flex justify-center items-center w-full"},O={class:"flex justify-center items-center",style:{width:"60%"}},D={class:"flex justify-end items-center w-full"},j=Object.assign({name:"CustomDialog"},{__name:"layout",props:{modelValue:{type:Boolean,default:!1},width:{type:[String,Number],default:"50%"},closeOnClickModal:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeIcon:{type:Object,default:p.icon_close_default},buttons:{type:Object,default:()=>({})},appendToBody:{type:Boolean,default:!0},dialogMode:{type:String,default:l.DEFAULT},titleName:{type:String,default:"默认标题"}},emits:[t.bt.updateModelValue,t.bt.open,t.bt.opened,t.bt.close,t.bt.closed,t.bt.openAutoFocus,t.bt.closeAutoFocus,t.bt.cancel,t.bt.confirm],setup(c,{emit:y}){const g={showCancel:!0,showConfirm:!0,cancelText:"取消",confirmText:"确认",onCancel:null,onConfirm:null},o=c,i=e.useAttrs(),d=y,h=e.computed(()=>o.dialogMode===l.PAGE?{marginLeft:"250px",borderRadius:"24px",boxShadow:"none"}:{}),C=e.computed(()=>o.dialogMode===l.PAGE?!1:i.modal?i.modal:!0),b=e.computed(()=>o.dialogMode===l.PAGE?!0:i.modalPenetrable?i.modalPenetrable:!1),v=e.computed(()=>o.dialogMode===l.PAGE?"calc(100% - 250px - 12px)":o.width),k=e.computed(()=>o.dialogMode===l.PAGE?"66px":o.top||"15vh"),s=e.computed({get:()=>o.modelValue,set:a=>{d(t.bt.updateModelValue,a)}}),n=e.computed(()=>({...g,...o.buttons})),x=e.computed(()=>{const{modelValue:a,...u}=o;return u}),B=()=>{d(t.bt.open)},E=()=>{d(t.bt.opened)},w=()=>{d(t.bt.close)},V=()=>{d(t.bt.closed)},A=()=>{d(t.bt.openAutoFocus)},P=()=>{d(t.bt.closeAutoFocus)},_=()=>{n.value.onCancel?n.value.onCancel():s.value=!1,d(t.bt.cancel)},f=async()=>{if(n.value.onConfirm)try{await n.value.onConfirm()!==!1&&(s.value=!1)}catch{}else s.value=!1;d(t.bt.confirm)};return e.onMounted(()=>{o.dialogMode===l.PAGE&&(document.querySelector(".el-overlay-dialog").style.overflow="hidden")}),(a,u)=>(e.openBlock(),e.createBlock(e.unref(r.ElDialog),e.mergeProps({ref:"dialogRef",modelValue:s.value,"onUpdate:modelValue":u[1]||(u[1]=m=>s.value=m)},x.value,{width:v.value,top:k.value,style:h.value,modal:C.value,"modal-penetrable":b.value,onOpen:B,onOpened:E,onClose:w,onClosed:V,onOpenAutoFocus:A,onCloseAutoFocus:P,"append-to-body":c.appendToBody,class:{"custom-dialog-page":c.dialogMode===e.unref(l).PAGE}}),{header:e.withCtx(()=>[e.renderSlot(a.$slots,"header",{},void 0,!0)]),title:e.withCtx(()=>[c.dialogMode===e.unref(l).PAGE?(e.openBlock(),e.createElementBlock("div",T,[e.createVNode(e.unref(r.ElIcon),{size:20,color:"var(--text-color-1)",class:"mg-r-6 pointer",onClick:u[0]||(u[0]=m=>s.value=!1)},{default:e.withCtx(()=>[e.createVNode(e.unref(p.icon_back_default))]),_:1}),e.createTextVNode(" "+e.toDisplayString(c.titleName),1)])):e.renderSlot(a.$slots,"title",{key:1},void 0,!0)]),footer:e.withCtx(()=>[e.renderSlot(a.$slots,"footer",{},()=>[e.createElementVNode("div",F,[c.dialogMode===e.unref(l).PAGE?(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",O,[e.createElementVNode("div",D,[n.value.showConfirm?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:0,type:"primary",onClick:f},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.confirmText),1)]),_:1})):e.createCommentVNode("",!0)])])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.value.showCancel?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:0,onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.cancelText),1)]),_:1})):e.createCommentVNode("",!0),n.value.showConfirm?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:1,type:"primary",onClick:f},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.confirmText),1)]),_:1})):e.createCommentVNode("",!0)],64))])],!0)]),default:e.withCtx(()=>[c.dialogMode===e.unref(l).PAGE?(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("div",S,[e.renderSlot(a.$slots,"default",{},void 0,!0)])])):e.renderSlot(a.$slots,"default",{key:1},void 0,!0)]),_:3},16,["modelValue","width","top","style","modal","modal-penetrable","append-to-body","class"]))}}),$=M._export_sfc(j,[["__scopeId","data-v-425ba25d"]]);exports.CustomDialog=$;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('../assets/layout.css');const e=require("vue"),n=require("./index.DJKAT9lI.js"),i=require("element-plus"),l=require("./_plugin-vue_export-helper.BHFhmbuH.js"),r={class:"icon-empty flex flex-col items-center justify-center"},s=Object.assign({name:"IconEmpty"},{__name:"layout",props:{icon:{type:Object,default:n.icon_empty_default},iconSize:{type:Number,default:64},iconColor:{type:String,default:"#c0c4cc"},text:{type:String,default:"暂无数据"},textColor:{type:String,default:"#909399"},textSize:{type:Number,default:14}},setup(t){const c=t,o=e.computed(()=>({color:c.textColor,fontSize:`${c.textSize}px`}));return(u,p)=>(e.openBlock(),e.createElementBlock("div",r,[e.createVNode(e.unref(i.ElIcon),{size:t.iconSize,color:t.iconColor,class:"icon-empty-icon"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))]),_:1},8,["size","color"]),e.createElementVNode("div",{class:"icon-empty-text",style:e.normalizeStyle(o.value)},e.toDisplayString(t.text),5)]))}}),a=l._export_sfc(s,[["__scopeId","data-v-c69a2cce"]]);exports.IconEmpty=a;
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./CustomSelect.js"),r=require("./SearchBar.js"),i=require("./PaginationTable.js"),a=require("./UploadFile.js"),s=require("./FileList.js"),l=require("./BatchImport.js"),c=require("./GradientButton.js"),u=require("./CustomDialog.js"),S=require("./CustomPagination.js"),T=require("./CustomTitle.js"),I=require("./CustomDropdown.js"),m=require("./TreeSelect.js"),d=require("./TreeShowSelect.js"),B=require("./IconEmpty.js"),C=require("./IconRenderer.js"),p=require("./IconSelect.js"),_=require("./UpdatePasswordDialog.js"),e=require("./BuildComponents.js"),D=require("./CustomTab.js"),E=require("element-plus"),t=Object.freeze(Object.defineProperty({__proto__:null,BUILD_BIG_TITLES:e.BUILD_BIG_TITLES,BUILD_STEPS:e.BUILD_STEPS,BUILD_TITLES:e.BUILD_TITLES,BUILD_TYPES:e.BUILD_TYPES,BatchImport:l.BatchImport,BuildComponents:e.BuildComponents,CustomDialog:u.CustomDialog,CustomDropdown:I.CustomDropdown,CustomPagination:S.CustomPagination,CustomSelect:n.CustomSelect,CustomTab:D.CustomTab,CustomTitle:T.CustomTitle,FileList:s.FileList,GradientButton:c.GradientButton,IconEmpty:B.IconEmpty,IconRenderer:C.IconRenderer,IconSelect:p.IconSelect,PaginationTable:i.PaginationTable,STEP_ARROW_IMAGE:e.STEP_ARROW_IMAGE,SearchBar:r.SearchBar,TreeSelect:m.TreeSelect,TreeShowSelect:d.TreeShowSelect,UpdatePasswordDialog:_.UpdatePasswordDialog,UploadFile:a.UploadFile},Symbol.toStringTag,{value:"Module"}));E.dayjs.en.weekStart=1;const L=P=>{for(const o in t)t[o].install&&P.use(t[o])},U={install:L};exports.CustomSelect=n.CustomSelect;exports.SearchBar=r.SearchBar;exports.PaginationTable=i.PaginationTable;exports.UploadFile=a.UploadFile;exports.FileList=s.FileList;exports.BatchImport=l.BatchImport;exports.GradientButton=c.GradientButton;exports.CustomDialog=u.CustomDialog;exports.CustomPagination=S.CustomPagination;exports.CustomTitle=T.CustomTitle;exports.CustomDropdown=I.CustomDropdown;exports.TreeSelect=m.TreeSelect;exports.TreeShowSelect=d.TreeShowSelect;exports.IconEmpty=B.IconEmpty;exports.IconRenderer=C.IconRenderer;exports.IconSelect=p.IconSelect;exports.UpdatePasswordDialog=_.UpdatePasswordDialog;exports.BUILD_BIG_TITLES=e.BUILD_BIG_TITLES;exports.BUILD_STEPS=e.BUILD_STEPS;exports.BUILD_TITLES=e.BUILD_TITLES;exports.BUILD_TYPES=e.BUILD_TYPES;exports.BuildComponents=e.BuildComponents;exports.STEP_ARROW_IMAGE=e.STEP_ARROW_IMAGE;exports.CustomTab=D.CustomTab;exports.default=U;
|
package/package.json
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ling-yun-custom-components",
|
|
3
|
+
"version": "0.0.10",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"component library",
|
|
6
|
+
"ui framework",
|
|
7
|
+
"ui",
|
|
8
|
+
"vue"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://192.168.18.100:10443/aibox/ling-yun-custom-components#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://192.168.18.100:10443/aibox/ling-yun-custom-components/issues"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://192.168.18.100:10443/aibox/ling-yun-custom-components.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": {
|
|
20
|
+
"name": "林鸾纯",
|
|
21
|
+
"email": "linluanchun@richinfo.cn"
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"**/*.css",
|
|
25
|
+
"**/iconfont_svg.js",
|
|
26
|
+
"**/iconfont_menu.js",
|
|
27
|
+
"**/svg_import.js",
|
|
28
|
+
"**/css_import.js",
|
|
29
|
+
"**/polyfill.js"
|
|
30
|
+
],
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"import": "./es/index.mjs",
|
|
34
|
+
"require": "./lib/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./es": {
|
|
37
|
+
"import": "./es/index.mjs"
|
|
38
|
+
},
|
|
39
|
+
"./lib": {
|
|
40
|
+
"require": "./lib/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./es/*": {
|
|
43
|
+
"import": "./es/*.mjs"
|
|
44
|
+
},
|
|
45
|
+
"./es/*.mjs": {
|
|
46
|
+
"import": "./es/*.mjs"
|
|
47
|
+
},
|
|
48
|
+
"./lib/*.js": {
|
|
49
|
+
"require": "./lib/*.js"
|
|
50
|
+
},
|
|
51
|
+
"./lib/*": {
|
|
52
|
+
"require": "./lib/*.js"
|
|
53
|
+
},
|
|
54
|
+
"./lib/*.css": "./lib/assets/*.css",
|
|
55
|
+
"./es/*.css": "./es/assets/*.css",
|
|
56
|
+
"./*": "./*"
|
|
57
|
+
},
|
|
58
|
+
"main": "lib/index.js",
|
|
59
|
+
"import": "./es/index.mjs",
|
|
60
|
+
"module": "lib/index.js",
|
|
61
|
+
"files": [
|
|
62
|
+
"es",
|
|
63
|
+
"lib"
|
|
64
|
+
],
|
|
65
|
+
"scripts": {
|
|
66
|
+
"build": "vite build && npm run postbuild",
|
|
67
|
+
"postbuild": "node -e \"const fs = require('fs'); const path = require('path'); const src = path.join(__dirname, 'es', 'assets', 'index.css'); const dest = path.join(__dirname, 'index.css'); if (fs.existsSync(src)) { fs.copyFileSync(src, dest); console.log('组件库样式文件已复制到根目录'); } else { console.log('警告: 组件库样式文件不存在'); }\"",
|
|
68
|
+
"build:clean": "rimraf lib es",
|
|
69
|
+
"dev": "vite --config ./play/vite.config.js",
|
|
70
|
+
"lint": "eslint . && stylelint \"**/*.{css,less,scss}\"",
|
|
71
|
+
"lint:fix": "prettier --write . && eslint --fix . && stylelint --fix \"**/*.{css,less,scss}\" "
|
|
72
|
+
},
|
|
73
|
+
"commitlint": {
|
|
74
|
+
"extends": [
|
|
75
|
+
"ali"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"lint-staged": {
|
|
79
|
+
"*.{cjs,cts,js,jsx,mjs,mts,ts,tsx,vue}": "eslint",
|
|
80
|
+
"*.{css,less,scss}": "stylelint --allow-empty-input"
|
|
81
|
+
},
|
|
82
|
+
"prettier": "prettier-config-ali",
|
|
83
|
+
"eslintConfig": {
|
|
84
|
+
"extends": [
|
|
85
|
+
"ali/vue",
|
|
86
|
+
"plugin:prettier/recommended"
|
|
87
|
+
],
|
|
88
|
+
"rules": {
|
|
89
|
+
"vue/multi-word-component-names": "warn",
|
|
90
|
+
"no-unused-vars": "warn",
|
|
91
|
+
"prefer-const": "warn",
|
|
92
|
+
"import/namespace": "warn",
|
|
93
|
+
"import/first": "warn",
|
|
94
|
+
"import/newline-after-import": "warn",
|
|
95
|
+
"import/no-duplicates": "warn",
|
|
96
|
+
"import/no-cycle": "warn",
|
|
97
|
+
"no-useless-escape": "warn",
|
|
98
|
+
"import/no-unused-modules": "off",
|
|
99
|
+
"unused-imports/no-unused-imports": "off",
|
|
100
|
+
"prettier/prettier": [
|
|
101
|
+
"error",
|
|
102
|
+
{
|
|
103
|
+
"endOfLine": "auto"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"settings": {
|
|
108
|
+
"import/resolver": {
|
|
109
|
+
"alias": {
|
|
110
|
+
"map": [
|
|
111
|
+
[
|
|
112
|
+
"@",
|
|
113
|
+
"./src"
|
|
114
|
+
]
|
|
115
|
+
],
|
|
116
|
+
"extensions": [
|
|
117
|
+
".js",
|
|
118
|
+
".jsx",
|
|
119
|
+
".ts",
|
|
120
|
+
".tsx",
|
|
121
|
+
".json",
|
|
122
|
+
".vue"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"node": {
|
|
126
|
+
"paths": [
|
|
127
|
+
"src"
|
|
128
|
+
],
|
|
129
|
+
"extensions": [
|
|
130
|
+
".js",
|
|
131
|
+
".jsx",
|
|
132
|
+
".ts",
|
|
133
|
+
".tsx"
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"stylelint": {
|
|
140
|
+
"extends": [
|
|
141
|
+
"stylelint-config-ali",
|
|
142
|
+
"stylelint-prettier/recommended"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"dependencies": {
|
|
146
|
+
"@vueuse/core": "^14.0.0",
|
|
147
|
+
"color-message-lingyun-vue": "^0.0.5",
|
|
148
|
+
"dayjs": "^1.11.18",
|
|
149
|
+
"element-plus": "^2.11.5",
|
|
150
|
+
"element-tree-line": "^0.2.1",
|
|
151
|
+
"js-cookie": "^3.0.5",
|
|
152
|
+
"lodash.debounce": "^4.0.8",
|
|
153
|
+
"lottie-web": "^5.13.0",
|
|
154
|
+
"moment": "^2.30.1",
|
|
155
|
+
"pinia": "^3.0.3",
|
|
156
|
+
"qs": "^6.14.0",
|
|
157
|
+
"unplugin-vue": "^7.0.2",
|
|
158
|
+
"uuid": "^13.0.0",
|
|
159
|
+
"vue-draggable-plus": "^0.6.0",
|
|
160
|
+
"vue-router": "^4.6.3"
|
|
161
|
+
},
|
|
162
|
+
"devDependencies": {
|
|
163
|
+
"@commitlint/cli": "^20.1.0",
|
|
164
|
+
"@rushstack/eslint-patch": "^1.12.0",
|
|
165
|
+
"@tsconfig/node18": "^18.2.4",
|
|
166
|
+
"@types/lodash": "^4.17.20",
|
|
167
|
+
"@types/node": "^24.9.1",
|
|
168
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
169
|
+
"@vue/tsconfig": "^0.8.1",
|
|
170
|
+
"axios": "^1.12.2",
|
|
171
|
+
"commitlint-config-ali": "^1.3.0",
|
|
172
|
+
"eslint": "^9.38.0",
|
|
173
|
+
"eslint-config-ali": "^16.5.0",
|
|
174
|
+
"eslint-config-prettier": "^10.1.8",
|
|
175
|
+
"eslint-import-resolver-alias": "^1.1.2",
|
|
176
|
+
"eslint-import-resolver-node": "^0.3.9",
|
|
177
|
+
"eslint-plugin-import": "^2.32.0",
|
|
178
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
179
|
+
"ling-yun-methods": "workspace:*",
|
|
180
|
+
"lint-staged": "^16.2.5",
|
|
181
|
+
"patch-package": "^8.0.0",
|
|
182
|
+
"postcss": "^8.5.6",
|
|
183
|
+
"prettier": "^3.6.2",
|
|
184
|
+
"prettier-config-ali": "^1.5.0",
|
|
185
|
+
"sass": "^1.93.2",
|
|
186
|
+
"stylelint": "^16.23.1",
|
|
187
|
+
"stylelint-config-ali": "^2.3.0",
|
|
188
|
+
"stylelint-prettier": "^5.0.3",
|
|
189
|
+
"typescript": "~5.9.3",
|
|
190
|
+
"vite": "^7.1.11",
|
|
191
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
192
|
+
"vue": "^3.5.22"
|
|
193
|
+
},
|
|
194
|
+
"peerDependencies": {
|
|
195
|
+
"axios": "^1.8.2",
|
|
196
|
+
"vue": "^3.5.13"
|
|
197
|
+
},
|
|
198
|
+
"optionalDependencies": {
|
|
199
|
+
"@ast-grep/napi-linux-x64-musl": "^0.39.6",
|
|
200
|
+
"@rollup/rollup-linux-x64-musl": "^4.52.5"
|
|
201
|
+
},
|
|
202
|
+
"engines": {
|
|
203
|
+
"node": ">=18"
|
|
204
|
+
}
|
|
205
|
+
}
|