gj-package 1.0.0

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.
@@ -0,0 +1,13 @@
1
+ import { defineAsyncComponent as a } from "vue";
2
+ const p = {
3
+ install(e) {
4
+ const o = /* @__PURE__ */ Object.assign({ "./seniorForm/index.vue": () => import("./index-BIieu20D.js"), "./seniorList/index.vue": () => import("./index-gLCnhMyu.js") }), s = Object.keys(o), t = Object.values(o);
5
+ s.forEach((n, c) => {
6
+ const i = n.slice(n.indexOf("/") + 1, n.lastIndexOf("/")), r = t[c];
7
+ e.component(i, a(r));
8
+ });
9
+ }
10
+ };
11
+ export {
12
+ p as default
13
+ };
@@ -0,0 +1 @@
1
+ (function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("vue")):typeof define=="function"&&define.amd?define(["vue"],i):(e=typeof globalThis<"u"?globalThis:e||self,e["gj-package"]=i(e.Vue))})(this,function(e){"use strict";const i={install(t){const o=Object.assign({"./seniorForm/index.vue":()=>Promise.resolve().then(()=>s),"./seniorList/index.vue":()=>Promise.resolve().then(()=>m)}),l=Object.keys(o),r=Object.values(o);l.forEach((n,u)=>{const p=n.slice(n.indexOf("/")+1,n.lastIndexOf("/")),y=r[u];t.component(p,e.defineAsyncComponent(y))})}},c={class:"form_panel"},s=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"index",props:{},setup(t){return(o,l)=>(e.openBlock(),e.createElementBlock("div",c,"12"))}}},Symbol.toStringTag,{value:"Module"})),a=(t,o)=>{const l=t.__vccOpts||t;for(const[r,n]of o)l[r]=n;return l},d={class:"list_panel"},f={key:0,class:"list_empty"},m=Object.freeze(Object.defineProperty({__proto__:null,default:a({__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(o,l)=>{const r=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",d,[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",f,[e.createVNode(r)])):e.createCommentVNode("",!0),t.list&&t.list.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.list,n=>(e.openBlock(),e.createElementBlock("li",{key:n.id,style:e.normalizeStyle({width:t.width?t.width:"100%"})},[e.renderSlot(o.$slots,"default",{item:n},void 0,!0)],4))),128)):e.createCommentVNode("",!0)],4)])}}},[["__scopeId","data-v-5c57f369"]])},Symbol.toStringTag,{value:"Module"}));return i});
@@ -0,0 +1,11 @@
1
+ import { openBlock as e, createElementBlock as o } from "vue";
2
+ const t = { class: "form_panel" }, s = {
3
+ __name: "index",
4
+ props: {},
5
+ setup(r) {
6
+ return (_, c) => (e(), o("div", t, "12"));
7
+ }
8
+ };
9
+ export {
10
+ s as default
11
+ };
@@ -0,0 +1,67 @@
1
+ import { resolveComponent as o, openBlock as n, createElementBlock as i, createElementVNode as s, normalizeStyle as d, createVNode as u, createCommentVNode as c, Fragment as f, renderList as y, renderSlot as m } from "vue";
2
+ const g = (e, l) => {
3
+ const r = e.__vccOpts || e;
4
+ for (const [a, t] of l)
5
+ r[a] = t;
6
+ return r;
7
+ }, h = { class: "list_panel" }, x = {
8
+ key: 0,
9
+ class: "list_empty"
10
+ }, S = {
11
+ __name: "index",
12
+ props: {
13
+ list: {
14
+ type: Array,
15
+ default: () => [],
16
+ required: !0
17
+ },
18
+ direction: {
19
+ type: String,
20
+ default: "row"
21
+ },
22
+ justify: {
23
+ type: String,
24
+ default: "start"
25
+ },
26
+ align: {
27
+ type: String,
28
+ default: "center"
29
+ },
30
+ width: {
31
+ type: String,
32
+ default: "100%"
33
+ },
34
+ flexWrap: {
35
+ type: String,
36
+ default: "wrap"
37
+ }
38
+ },
39
+ setup(e) {
40
+ return (l, r) => {
41
+ const a = o("el-empty");
42
+ return n(), i("div", h, [
43
+ s("ul", {
44
+ style: d({
45
+ flexDirection: e.direction,
46
+ justifyContent: e.justify,
47
+ alignItems: e.align,
48
+ flexWrap: e.flexWrap
49
+ })
50
+ }, [
51
+ e.list && e.list.length === 0 ? (n(), i("div", x, [
52
+ u(a)
53
+ ])) : c("", !0),
54
+ e.list && e.list.length > 0 ? (n(!0), i(f, { key: 1 }, y(e.list, (t) => (n(), i("li", {
55
+ key: t.id,
56
+ style: d({ width: e.width ? e.width : "100%" })
57
+ }, [
58
+ m(l.$slots, "default", { item: t }, void 0, !0)
59
+ ], 4))), 128)) : c("", !0)
60
+ ], 4)
61
+ ]);
62
+ };
63
+ }
64
+ }, v = /* @__PURE__ */ g(S, [["__scopeId", "data-v-5c57f369"]]);
65
+ export {
66
+ v as default
67
+ };
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "gj-package",
3
+ "version": "1.0.0",
4
+ "description": "国钜npm包",
5
+ "main": "gj-package.es.js",
6
+ "private": false,
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "keywords": [
11
+ "gj",
12
+ "gj-package",
13
+ "GJ",
14
+ "GJ_PACKAGE"
15
+ ],
16
+ "author": "",
17
+ "license": "ISC"
18
+ }
package/style.css ADDED
@@ -0,0 +1 @@
1
+ .list_panel ul[data-v-5c57f369]{display:flex;height:100%}.list_empty[data-v-5c57f369]{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.list_panel li[data-v-5c57f369]{list-style:none}
package/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>