@vue-crud-tools/components 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.
- package/dist/components/CrudTable/index.d.ts +12 -0
- package/dist/components/CrudTable/types.d.ts +5 -0
- package/dist/components/EButton/index.d.ts +2 -0
- package/dist/components/EButton/types.d.ts +5 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components.css +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.mjs +56 -0
- package/dist/styles/index.d.ts +0 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/utils/index.d.ts +2 -0
- package/package.json +45 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as CrudTable } from './index';
|
|
2
|
+
|
|
3
|
+
export default CrudTable;
|
|
4
|
+
export * from './types';
|
|
5
|
+
ort('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),a=(e,n)=>{const o=e.__vccOpts||e;for(const[u,s]of n)o[u]=s;return o},d={};function i(e,n){const o=t.resolveComponent("el-button");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(o,{type:"primary"},{default:t.withCtx(()=>[...n[0]||(n[0]=[t.createTextVNode("按钮",-1)])]),_:1})])}const r=a(d,[["render",i]]);r.name="EButton";const _={class:"crud-table"},f=t.defineComponent({__name:"index",setup(e){return(n,o)=>(t.openBlock(),t.createElementBlock("div",_,[t.renderSlot(n.$slots,"default",{},void 0,!0)]))}}),c=a(f,[["__scopeId","data-v-fef12dec"]]);c.name="CrudTable";function m(e){return e.toISOString()}function p(e){return!!e}const v=[r,c];function l(e){v.forEach(n=>{e.component(n.name,n)})}const b={install:l};exports.CrudTable=c;exports.EButton=r;exports.default=b;exports.formatDate=m;exports.install=l;exports.validate=p;
|
package/dist/index.d.ts
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { resolveComponent as d, createElementBlock as o, openBlock as r, createVNode as l, withCtx as i, createTextVNode as f, defineComponent as m, renderSlot as p } from "vue";
|
|
2
|
+
const c = (t, e) => {
|
|
3
|
+
const n = t.__vccOpts || t;
|
|
4
|
+
for (const [u, _] of e)
|
|
5
|
+
n[u] = _;
|
|
6
|
+
return n;
|
|
7
|
+
}, v = {};
|
|
8
|
+
function x(t, e) {
|
|
9
|
+
const n = d("el-button");
|
|
10
|
+
return r(), o("div", null, [
|
|
11
|
+
l(n, { type: "primary" }, {
|
|
12
|
+
default: i(() => [...e[0] || (e[0] = [
|
|
13
|
+
f("按钮", -1)
|
|
14
|
+
])]),
|
|
15
|
+
_: 1
|
|
16
|
+
})
|
|
17
|
+
]);
|
|
18
|
+
}
|
|
19
|
+
const a = /* @__PURE__ */ c(v, [["render", x]]);
|
|
20
|
+
a.name = "EButton";
|
|
21
|
+
const b = { class: "crud-table" }, C = /* @__PURE__ */ m({
|
|
22
|
+
__name: "index",
|
|
23
|
+
setup(t) {
|
|
24
|
+
return (e, n) => (r(), o("div", b, [
|
|
25
|
+
p(e.$slots, "default", {}, void 0, !0)
|
|
26
|
+
]));
|
|
27
|
+
}
|
|
28
|
+
}), s = /* @__PURE__ */ c(C, [["__scopeId", "data-v-fef12dec"]]);
|
|
29
|
+
s.name = "CrudTable";
|
|
30
|
+
function k(t) {
|
|
31
|
+
return t.toISOString();
|
|
32
|
+
}
|
|
33
|
+
function y(t) {
|
|
34
|
+
return !!t;
|
|
35
|
+
}
|
|
36
|
+
const B = [
|
|
37
|
+
// YourComponent,
|
|
38
|
+
a,
|
|
39
|
+
s
|
|
40
|
+
];
|
|
41
|
+
function E(t) {
|
|
42
|
+
B.forEach((e) => {
|
|
43
|
+
t.component(e.name, e);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
const S = {
|
|
47
|
+
install: E
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
s as CrudTable,
|
|
51
|
+
a as EButton,
|
|
52
|
+
S as default,
|
|
53
|
+
k as formatDate,
|
|
54
|
+
E as install,
|
|
55
|
+
y as validate
|
|
56
|
+
};
|
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vue-crud-tools/components",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Vue CRUD Tools 组件库",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"export": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.cjs",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./style.css": "./dist/components.css"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly --outDir dist",
|
|
22
|
+
"dev": "vite build --watch",
|
|
23
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
24
|
+
},
|
|
25
|
+
"keyword": [
|
|
26
|
+
"vue",
|
|
27
|
+
"vue3",
|
|
28
|
+
"components",
|
|
29
|
+
"crud",
|
|
30
|
+
"element-plus",
|
|
31
|
+
"vxetable"
|
|
32
|
+
],
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"element-plus": "^2.13.0",
|
|
35
|
+
"vue": "^3.5.26",
|
|
36
|
+
"vxe-table": "^4.17.40",
|
|
37
|
+
"xe-utils": "^3.8.4"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@unocss/reset": "^0.58.3"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"vite-plugin-dts": "^3.7.0"
|
|
44
|
+
}
|
|
45
|
+
}
|