erp-plus 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/README.md +5 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +87 -0
- package/dist/index.umd.js +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +46 -0
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";.custom-input .el-input__wrapper{padding:5px 12px!important;border-radius:2px!important;border:1px solid #e5e5eb!important;box-shadow:none!important}.custom-input .el-input__wrapper .el-input__inner{height:20px!important;font-size:14px!important}.custom-input .el-input__wrapper .el-input-number{width:100%!important;text-align:left!important}.custom-input .el-input__wrapper.is-focus{border:1px solid #1951fa!important}.custom-input .el-input__wrapper:hover{border-radius:2px!important;color:#1a1a1a!important}.custom-input .el-input__clear{font-size:0;-webkit-mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752626608214'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3991'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M0%20512a512%20512%200%201%200%201024%200A512%20512%200%200%200%200%20512z%20m631.210667-179.541333a42.666667%2042.666667%200%200%201%2060.330666%2060.416L572.330667%20512l119.210666%20119.125333a42.666667%2042.666667%200%200%201-60.330666%2060.416L512%20572.330667%20392.874667%20691.541333a42.666667%2042.666667%200%200%201-60.330667-60.416L451.669333%20512%20332.544%20392.874667a42.666667%2042.666667%200%201%201%2060.330667-60.416L512%20451.669333l119.210667-119.210666z'%20p-id='3992'%3e%3c/path%3e%3c/svg%3e") no-repeat center;mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752626608214'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3991'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M0%20512a512%20512%200%201%200%201024%200A512%20512%200%200%200%200%20512z%20m631.210667-179.541333a42.666667%2042.666667%200%200%201%2060.330666%2060.416L572.330667%20512l119.210666%20119.125333a42.666667%2042.666667%200%200%201-60.330666%2060.416L512%20572.330667%20392.874667%20691.541333a42.666667%2042.666667%200%200%201-60.330667-60.416L451.669333%20512%20332.544%20392.874667a42.666667%2042.666667%200%201%201%2060.330667-60.416L512%20451.669333l119.210667-119.210666z'%20p-id='3992'%3e%3c/path%3e%3c/svg%3e") no-repeat center;-webkit-mask-size:contain;mask-size:contain;background-color:#1a1a1a;width:14px;height:14px;display:inline-block}.custom-input .el-input__clear:hover{background-color:#1951fa}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { defineComponent as m, computed as r, resolveComponent as V, createBlock as x, openBlock as d, mergeProps as S, unref as p, isRef as $, createSlots as k, renderList as y, withCtx as I, renderSlot as P, normalizeProps as B, guardReactiveProps as N, createElementBlock as b, normalizeClass as w, createElementVNode as z } from "vue";
|
|
2
|
+
const E = /* @__PURE__ */ m({
|
|
3
|
+
__name: "index",
|
|
4
|
+
props: {
|
|
5
|
+
modelValue: {},
|
|
6
|
+
config: {}
|
|
7
|
+
},
|
|
8
|
+
emits: ["update:modelValue", "input", "change", "blur", "focus", "svgClick"],
|
|
9
|
+
setup(n, { emit: o }) {
|
|
10
|
+
const l = n, t = o, a = r(() => ({
|
|
11
|
+
clearable: !0,
|
|
12
|
+
placeholder: "请输入",
|
|
13
|
+
...l.config,
|
|
14
|
+
modelValue: s.value
|
|
15
|
+
})), s = r({
|
|
16
|
+
get: () => l.modelValue || "",
|
|
17
|
+
set: (e) => t("update:modelValue", e)
|
|
18
|
+
}), g = (e) => {
|
|
19
|
+
t("input", e);
|
|
20
|
+
}, f = (e) => {
|
|
21
|
+
t("change", e);
|
|
22
|
+
}, h = (e) => {
|
|
23
|
+
t("blur", e);
|
|
24
|
+
}, v = (e) => {
|
|
25
|
+
t("focus", e);
|
|
26
|
+
};
|
|
27
|
+
return (e, c) => {
|
|
28
|
+
const _ = V("el-input");
|
|
29
|
+
return d(), x(_, S(p(a), {
|
|
30
|
+
modelValue: p(s),
|
|
31
|
+
"onUpdate:modelValue": c[0] || (c[0] = (u) => $(s) ? s.value = u : null),
|
|
32
|
+
class: "custom-input",
|
|
33
|
+
onInput: g,
|
|
34
|
+
onChange: f,
|
|
35
|
+
onBlur: h,
|
|
36
|
+
onFocus: v
|
|
37
|
+
}), k({ _: 2 }, [
|
|
38
|
+
y(e.$slots, (u, i) => ({
|
|
39
|
+
name: i,
|
|
40
|
+
fn: I((C) => [
|
|
41
|
+
P(e.$slots, i, B(N(C || {})))
|
|
42
|
+
])
|
|
43
|
+
}))
|
|
44
|
+
]), 1040, ["modelValue"]);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}), F = ["xlink:href", "fill"], R = /* @__PURE__ */ m({
|
|
48
|
+
__name: "index",
|
|
49
|
+
props: {
|
|
50
|
+
iconClass: {
|
|
51
|
+
type: String,
|
|
52
|
+
required: !0
|
|
53
|
+
},
|
|
54
|
+
className: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: ""
|
|
57
|
+
},
|
|
58
|
+
color: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: ""
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
setup(n) {
|
|
64
|
+
const o = n, l = r(() => o.className ? (console.log(o.className), `svg-icon ${o.className}`) : "svg-icon"), t = r(() => `#icon-${o.iconClass}`);
|
|
65
|
+
return (a, s) => (d(), b("svg", {
|
|
66
|
+
class: w(l.value),
|
|
67
|
+
"aria-hidden": "true"
|
|
68
|
+
}, [
|
|
69
|
+
z("use", {
|
|
70
|
+
"xlink:href": t.value,
|
|
71
|
+
fill: n.color
|
|
72
|
+
}, null, 8, F)
|
|
73
|
+
], 2));
|
|
74
|
+
}
|
|
75
|
+
}), L = {
|
|
76
|
+
install(n, o) {
|
|
77
|
+
const l = o?.prefix || "yw";
|
|
78
|
+
n.component(`${l}Input`, E), n.component("SvgIcon", R), n.config.globalProperties.$myComponents = {
|
|
79
|
+
version: "1.0.0"
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
export {
|
|
84
|
+
E as Input,
|
|
85
|
+
R as SvgIcon,
|
|
86
|
+
L as default
|
|
87
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o["erp-plus"]={},o.Vue))})(this,function(o,e){"use strict";const i=e.defineComponent({__name:"index",props:{modelValue:{},config:{}},emits:["update:modelValue","input","change","blur","focus","svgClick"],setup(t,{emit:l}){const c=t,s=l,u=e.computed(()=>({clearable:!0,placeholder:"请输入",...c.config,modelValue:r.value})),r=e.computed({get:()=>c.modelValue||"",set:n=>s("update:modelValue",n)}),h=n=>{s("input",n)},_=n=>{s("change",n)},C=n=>{s("blur",n)},V=n=>{s("focus",n)};return(n,p)=>{const y=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(y,e.mergeProps(e.unref(u),{modelValue:e.unref(r),"onUpdate:modelValue":p[0]||(p[0]=d=>e.isRef(r)?r.value=d:null),class:"custom-input",onInput:h,onChange:_,onBlur:C,onFocus:V}),e.createSlots({_:2},[e.renderList(n.$slots,(d,m)=>({name:m,fn:e.withCtx(S=>[e.renderSlot(n.$slots,m,e.normalizeProps(e.guardReactiveProps(S||{})))])}))]),1040,["modelValue"])}}}),f=["xlink:href","fill"],a=e.defineComponent({__name:"index",props:{iconClass:{type:String,required:!0},className:{type:String,default:""},color:{type:String,default:""}},setup(t){const l=t,c=e.computed(()=>l.className?(console.log(l.className),`svg-icon ${l.className}`):"svg-icon"),s=e.computed(()=>`#icon-${l.iconClass}`);return(u,r)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(c.value),"aria-hidden":"true"},[e.createElementVNode("use",{"xlink:href":s.value,fill:t.color},null,8,f)],2))}}),g={install(t,l){const c=l?.prefix||"yw";t.component(`${c}Input`,i),t.component("SvgIcon",a),t.config.globalProperties.$myComponents={version:"1.0.0"}}};o.Input=i,o.SvgIcon=a,o.default=g,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/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>
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "erp-plus",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "dist/index.umd.js",
|
|
5
|
+
"module": "dist/index.es.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"dev": "vite",
|
|
12
|
+
"build": "vite build",
|
|
13
|
+
"preview": "vite preview",
|
|
14
|
+
"prepublishOnly": "npm run build"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"element-plus": "^2.10.2",
|
|
18
|
+
"fast-glob": "^3.3.3",
|
|
19
|
+
"vite-plugin-svg-icons": "^2.0.1",
|
|
20
|
+
"path-browserify": "1.0.1",
|
|
21
|
+
"path-to-regexp": "6.2.0",
|
|
22
|
+
"vue": "^3.5.17"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@element-plus/icons-vue": "^2.3.1",
|
|
26
|
+
"@types/node": "^24.0.10",
|
|
27
|
+
"@vitejs/plugin-vue": "^6.0.0",
|
|
28
|
+
"@vue/tsconfig": "^0.7.0",
|
|
29
|
+
"sass": "^1.89.0",
|
|
30
|
+
"sass-embedded": "^1.89.0",
|
|
31
|
+
"sass-loader": "^16.0.5",
|
|
32
|
+
"typescript": "~5.8.3",
|
|
33
|
+
"unplugin-auto-import": "^19.3.0",
|
|
34
|
+
"unplugin-icons": "^22.1.0",
|
|
35
|
+
"unplugin-vue-components": "^28.8.0",
|
|
36
|
+
"vite": "^7.0.0",
|
|
37
|
+
"vite-plugin-dts": "^4.5.4",
|
|
38
|
+
"vue": "^3.5.17",
|
|
39
|
+
"vue-tsc": "^2.2.10",
|
|
40
|
+
"@types/path-browserify": "^1.0.0"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"element-plus": "^2.10.2",
|
|
44
|
+
"vue": "^3.5.17"
|
|
45
|
+
}
|
|
46
|
+
}
|