customs-ui-kit 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 @@
|
|
|
1
|
+
._isHighlight_2pl28_11{box-shadow:0 0 8px #409effcc;transform:scale(1.02);transition:all .3s ease}._myTableWrapper_1olwi_3{width:100%;overflow:hidden}._myTable_1olwi_3{--el-table-header-bg-color: #f5f7fa}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineComponent as d, openBlock as o, createBlock as m, unref as r, mergeProps as n, withCtx as p, renderSlot as u, createElementBlock as i, normalizeClass as y, createVNode as b, Fragment as _, renderList as h, createSlots as f } from "vue";
|
|
2
|
+
import { ElButton as g, ElTable as $, ElTableColumn as B } from "element-plus";
|
|
3
|
+
const T = /* @__PURE__ */ d({
|
|
4
|
+
__name: "Button",
|
|
5
|
+
props: {
|
|
6
|
+
highlight: { type: Boolean }
|
|
7
|
+
},
|
|
8
|
+
setup(s) {
|
|
9
|
+
return (e, l) => (o(), m(r(g), n(e.$attrs, {
|
|
10
|
+
class: [e.$style.myButton, { [e.$style.isHighlight]: s.highlight }]
|
|
11
|
+
}), {
|
|
12
|
+
default: p(() => [
|
|
13
|
+
u(e.$slots, "default")
|
|
14
|
+
]),
|
|
15
|
+
_: 3
|
|
16
|
+
}, 16, ["class"]));
|
|
17
|
+
}
|
|
18
|
+
}), k = "_myButton_2pl28_3", w = "_isHighlight_2pl28_11", M = {
|
|
19
|
+
myButton: k,
|
|
20
|
+
isHighlight: w
|
|
21
|
+
}, c = (s, e) => {
|
|
22
|
+
const l = s.__vccOpts || s;
|
|
23
|
+
for (const [t, a] of e)
|
|
24
|
+
l[t] = a;
|
|
25
|
+
return l;
|
|
26
|
+
}, v = {
|
|
27
|
+
$style: M
|
|
28
|
+
}, L = /* @__PURE__ */ c(T, [["__cssModules", v]]), C = /* @__PURE__ */ d({
|
|
29
|
+
__name: "Table",
|
|
30
|
+
props: {
|
|
31
|
+
data: { default: () => [] },
|
|
32
|
+
columns: { default: () => [] },
|
|
33
|
+
border: { type: Boolean, default: !0 }
|
|
34
|
+
},
|
|
35
|
+
setup(s) {
|
|
36
|
+
return (e, l) => (o(), i("div", {
|
|
37
|
+
class: y(e.$style.myTableWrapper)
|
|
38
|
+
}, [
|
|
39
|
+
b(r($), n({
|
|
40
|
+
data: s.data,
|
|
41
|
+
border: s.border
|
|
42
|
+
}, e.$attrs, {
|
|
43
|
+
class: e.$style.myTable
|
|
44
|
+
}), {
|
|
45
|
+
default: p(() => [
|
|
46
|
+
(o(!0), i(_, null, h(s.columns, (t) => (o(), m(r(B), {
|
|
47
|
+
key: t.prop,
|
|
48
|
+
prop: t.prop,
|
|
49
|
+
label: t.label,
|
|
50
|
+
width: t.width,
|
|
51
|
+
sortable: t.sortable
|
|
52
|
+
}, f({ _: 2 }, [
|
|
53
|
+
e.$slots[t.prop] ? {
|
|
54
|
+
name: "default",
|
|
55
|
+
fn: p((a) => [
|
|
56
|
+
u(e.$slots, t.prop, n({ ref_for: !0 }, a))
|
|
57
|
+
]),
|
|
58
|
+
key: "0"
|
|
59
|
+
} : void 0
|
|
60
|
+
]), 1032, ["prop", "label", "width", "sortable"]))), 128)),
|
|
61
|
+
u(e.$slots, "append")
|
|
62
|
+
]),
|
|
63
|
+
_: 3
|
|
64
|
+
}, 16, ["data", "border", "class"])
|
|
65
|
+
], 2));
|
|
66
|
+
}
|
|
67
|
+
}), E = "_myTableWrapper_1olwi_3", H = "_myTable_1olwi_3", W = {
|
|
68
|
+
myTableWrapper: E,
|
|
69
|
+
myTable: H
|
|
70
|
+
}, S = {
|
|
71
|
+
$style: W
|
|
72
|
+
}, N = /* @__PURE__ */ c(C, [["__cssModules", S]]);
|
|
73
|
+
export {
|
|
74
|
+
L as MyButton,
|
|
75
|
+
N as MyTable
|
|
76
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(s,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],e):(s=typeof globalThis<"u"?globalThis:s||self,e(s.CustomsUIKit={},s.Vue,s.ElementPlus))})(this,(function(s,e,r){"use strict";const p=e.defineComponent({__name:"Button",props:{highlight:{type:Boolean}},setup(l){return(t,n)=>(e.openBlock(),e.createBlock(e.unref(r.ElButton),e.mergeProps(t.$attrs,{class:[t.$style.myButton,{[t.$style.isHighlight]:l.highlight}]}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["class"]))}}),d={myButton:"_myButton_2pl28_3",isHighlight:"_isHighlight_2pl28_11"},i=(l,t)=>{const n=l.__vccOpts||l;for(const[o,a]of t)n[o]=a;return n},c=i(p,[["__cssModules",{$style:d}]]),m=i(e.defineComponent({__name:"Table",props:{data:{default:()=>[]},columns:{default:()=>[]},border:{type:Boolean,default:!0}},setup(l){return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.myTableWrapper)},[e.createVNode(e.unref(r.ElTable),e.mergeProps({data:l.data,border:l.border},t.$attrs,{class:t.$style.myTable}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.columns,o=>(e.openBlock(),e.createBlock(e.unref(r.ElTableColumn),{key:o.prop,prop:o.prop,label:o.label,width:o.width,sortable:o.sortable},e.createSlots({_:2},[t.$slots[o.prop]?{name:"default",fn:e.withCtx(a=>[e.renderSlot(t.$slots,o.prop,e.mergeProps({ref_for:!0},a))]),key:"0"}:void 0]),1032,["prop","label","width","sortable"]))),128)),e.renderSlot(t.$slots,"append")]),_:3},16,["data","border","class"])],2))}}),[["__cssModules",{$style:{myTableWrapper:"_myTableWrapper_1olwi_3",myTable:"_myTable_1olwi_3"}}]]);s.MyButton=c,s.MyTable=m,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "customs-ui-kit",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "dist/customs-ui-kit.umd.js",
|
|
5
|
+
"module": "dist/customs-ui-kit.es.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/customs-ui-kit.es.js",
|
|
11
|
+
"require": "./dist/customs-ui-kit.umd.js"
|
|
12
|
+
},
|
|
13
|
+
"./style.css": "./dist/style.css"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dev": "vite",
|
|
20
|
+
"build": "vue-tsc && vite build",
|
|
21
|
+
"storybook": "storybook dev -p 6006",
|
|
22
|
+
"build-storybook": "storybook build"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [],
|
|
25
|
+
"author": "",
|
|
26
|
+
"license": "ISC",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
29
|
+
"element-plus": "^2.13.5",
|
|
30
|
+
"express": "^5.2.1",
|
|
31
|
+
"vue": "^3.5.30"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@storybook/addon-essentials": "^8.6.14",
|
|
35
|
+
"@storybook/addon-interactions": "^8.6.14",
|
|
36
|
+
"@storybook/addon-links": "^8.6.18",
|
|
37
|
+
"@storybook/blocks": "^8.6.14",
|
|
38
|
+
"@storybook/vue3": "^8.6.18",
|
|
39
|
+
"@storybook/vue3-vite": "^8.6.18",
|
|
40
|
+
"@types/express": "^5.0.6",
|
|
41
|
+
"@types/node": "^25.4.0",
|
|
42
|
+
"@vitejs/plugin-vue": "^6.0.4",
|
|
43
|
+
"storybook": "^8.6.18",
|
|
44
|
+
"ts-node": "^10.9.2",
|
|
45
|
+
"typescript": "^5.9.3",
|
|
46
|
+
"vite": "^7.3.1",
|
|
47
|
+
"vue-tsc": "^3.2.5"
|
|
48
|
+
},
|
|
49
|
+
"description": ""
|
|
50
|
+
}
|