gj-package 1.0.0 → 1.0.2
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/gj-package.es.js +11 -8
- package/gj-package.umd.js +1 -1
- package/package.json +3 -9
package/gj-package.es.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { defineAsyncComponent as r } from "vue";
|
|
2
|
+
const m = () => {
|
|
3
|
+
console.log("测试: =>", "我是test方法");
|
|
4
|
+
}, p = {
|
|
5
|
+
install(n) {
|
|
6
|
+
const e = /* @__PURE__ */ Object.assign({ "./seniorForm/index.vue": () => import("./index-BIieu20D.js"), "./seniorList/index.vue": () => import("./index-gLCnhMyu.js") }), t = Object.keys(e), s = Object.values(e);
|
|
7
|
+
t.forEach((o, c) => {
|
|
8
|
+
const i = o.slice(o.indexOf("/") + 1, o.lastIndexOf("/")), l = s[c];
|
|
9
|
+
n.component(i, r(l));
|
|
8
10
|
});
|
|
9
11
|
}
|
|
10
12
|
};
|
|
11
13
|
export {
|
|
12
|
-
p as default
|
|
14
|
+
p as default,
|
|
15
|
+
m as test
|
|
13
16
|
};
|
package/gj-package.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e
|
|
1
|
+
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["gj-package"]={},n.Vue))})(this,function(n,e){"use strict";const s=()=>{console.log("测试: =>","我是test方法")},r={install(t){const l=Object.assign({"./seniorForm/index.vue":()=>Promise.resolve().then(()=>d),"./seniorList/index.vue":()=>Promise.resolve().then(()=>y)}),i=Object.keys(l),c=Object.values(l);i.forEach((o,p)=>{const _=o.slice(o.indexOf("/")+1,o.lastIndexOf("/")),g=c[p];t.component(_,e.defineAsyncComponent(g))})}},a={class:"form_panel"},d=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"index",props:{},setup(t){return(l,i)=>(e.openBlock(),e.createElementBlock("div",a,"12"))}}},Symbol.toStringTag,{value:"Module"})),f=(t,l)=>{const i=t.__vccOpts||t;for(const[c,o]of l)i[c]=o;return i},m={class:"list_panel"},u={key:0,class:"list_empty"},y=Object.freeze(Object.defineProperty({__proto__:null,default:f({__name:"index",props:{list:{type:Array,default:()=>[],required:!0},direction:{type:String,default:"row"},justify:{type:String,default:"start"},align:{type:String,default:"center"},width:{type:String,default:"100%"},flexWrap:{type:String,default:"wrap"}},setup(t){return(l,i)=>{const c=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("ul",{style:e.normalizeStyle({flexDirection:t.direction,justifyContent:t.justify,alignItems:t.align,flexWrap:t.flexWrap})},[t.list&&t.list.length===0?(e.openBlock(),e.createElementBlock("div",u,[e.createVNode(c)])):e.createCommentVNode("",!0),t.list&&t.list.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.list,o=>(e.openBlock(),e.createElementBlock("li",{key:o.id,style:e.normalizeStyle({width:t.width?t.width:"100%"})},[e.renderSlot(l.$slots,"default",{item:o},void 0,!0)],4))),128)):e.createCommentVNode("",!0)],4)])}}},[["__scopeId","data-v-5c57f369"]])},Symbol.toStringTag,{value:"Module"}));n.default=r,n.test=s,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gj-package",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "",
|
|
5
5
|
"main": "gj-package.es.js",
|
|
6
|
-
"private": false,
|
|
7
6
|
"scripts": {
|
|
8
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
8
|
},
|
|
10
|
-
"keywords": [
|
|
11
|
-
"gj",
|
|
12
|
-
"gj-package",
|
|
13
|
-
"GJ",
|
|
14
|
-
"GJ_PACKAGE"
|
|
15
|
-
],
|
|
9
|
+
"keywords": [],
|
|
16
10
|
"author": "",
|
|
17
11
|
"license": "ISC"
|
|
18
12
|
}
|