color-star-custom-components 0.0.3

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
+ "use strict";const a=n=>(n.install=t=>{const s=n.name||n.__name;t.component(s,n)},n);exports.withInstall=a;
@@ -0,0 +1 @@
1
+ "use strict";require('../assets/layout.css');const e=require("vue"),n=require("color-message-lingyun-vue"),l=require("element-plus"),i=require("./_plugin-vue_export-helper.BHFhmbuH.js"),r={class:"icon-empty flex flex-col items-center justify-center"},s=Object.assign({name:"IconEmpty"},{__name:"layout",props:{icon:{type:Object,default:n.IconEmpty},iconSize:{type:Number,default:64},iconColor:{type:String,default:"#c0c4cc"},text:{type:String,default:"暂无数据"},textColor:{type:String,default:"#909399"},textSize:{type:Number,default:14}},setup(t){const c=t,o=e.computed(()=>({color:c.textColor,fontSize:`${c.textSize}px`}));return(a,p)=>(e.openBlock(),e.createElementBlock("div",r,[e.createVNode(e.unref(l.ElIcon),{size:t.iconSize,color:t.iconColor,class:"icon-empty-icon"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))]),_:1},8,["size","color"]),e.createElementVNode("div",{class:"icon-empty-text",style:e.normalizeStyle(o.value)},e.toDisplayString(t.text),5)]))}}),u=i._export_sfc(s,[["__scopeId","data-v-c69a2cce"]]);exports.IconEmpty=u;
package/lib/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./IconRenderer.js"),r=require("./IconSelect.js"),c=require("./IconEmpty.js"),t=require("./GlassProxy.js"),s=require("./chunks/config.BbElhKS6.js"),i=require("element-plus"),e=Object.freeze(Object.defineProperty({__proto__:null,GlassProxy:t.GlassProxy,IconEmpty:c.IconEmpty,IconRenderer:n.IconRenderer,IconSelect:r.IconSelect,iconLibraryMap:s.iconLibraryMap},Symbol.toStringTag,{value:"Module"}));i.dayjs.en.weekStart=1;const a=l=>{for(const o in e)e[o].install&&l.use(e[o])},u={install:a};exports.IconRenderer=n.IconRenderer;exports.IconSelect=r.IconSelect;exports.IconEmpty=c.IconEmpty;exports.GlassProxy=t.GlassProxy;exports.iconLibraryMap=s.iconLibraryMap;exports.default=u;
package/package.json ADDED
@@ -0,0 +1,197 @@
1
+ {
2
+ "name": "color-star-custom-components",
3
+ "version": "0.0.3",
4
+ "keywords": [
5
+ "color-star-custom-components",
6
+ "component library",
7
+ "vue"
8
+ ],
9
+ "homepage": "https://192.168.18.100:10443/aibox/color-star-custom-components#readme",
10
+ "bugs": {
11
+ "url": "https://192.168.18.100:10443/aibox/color-star-custom-components/issues"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://192.168.18.100:10443/aibox/color-star-custom-components.git"
16
+ },
17
+ "license": "MIT",
18
+ "author": {
19
+ "name": "林鸾纯",
20
+ "email": "linluanchun@richinfo.cn"
21
+ },
22
+ "sideEffects": [
23
+ "**/*.css",
24
+ "**/iconfont_svg.js",
25
+ "**/iconfont_menu.js",
26
+ "**/svg_import.js",
27
+ "**/css_import.js",
28
+ "**/polyfill.js"
29
+ ],
30
+ "exports": {
31
+ ".": {
32
+ "import": "./es/index.mjs",
33
+ "require": "./lib/index.js"
34
+ },
35
+ "./es": {
36
+ "import": "./es/index.mjs"
37
+ },
38
+ "./lib": {
39
+ "require": "./lib/index.js"
40
+ },
41
+ "./es/*": {
42
+ "import": "./es/*.mjs"
43
+ },
44
+ "./es/*.mjs": {
45
+ "import": "./es/*.mjs"
46
+ },
47
+ "./lib/*.js": {
48
+ "require": "./lib/*.js"
49
+ },
50
+ "./lib/*": {
51
+ "require": "./lib/*.js"
52
+ },
53
+ "./lib/*.css": "./lib/assets/*.css",
54
+ "./es/*.css": "./es/assets/*.css",
55
+ "./*": "./*"
56
+ },
57
+ "main": "lib/index.js",
58
+ "import": "./es/index.mjs",
59
+ "module": "lib/index.js",
60
+ "files": [
61
+ "es",
62
+ "lib"
63
+ ],
64
+ "commitlint": {
65
+ "extends": [
66
+ "ali"
67
+ ]
68
+ },
69
+ "lint-staged": {
70
+ "*.{cjs,cts,js,jsx,mjs,mts,ts,tsx,vue}": "eslint",
71
+ "*.{css,less,scss}": "stylelint --allow-empty-input"
72
+ },
73
+ "prettier": "prettier-config-ali",
74
+ "eslintConfig": {
75
+ "extends": [
76
+ "ali/vue",
77
+ "plugin:prettier/recommended"
78
+ ],
79
+ "rules": {
80
+ "vue/multi-word-component-names": "warn",
81
+ "no-unused-vars": "warn",
82
+ "prefer-const": "warn",
83
+ "import/namespace": "warn",
84
+ "import/first": "warn",
85
+ "import/newline-after-import": "warn",
86
+ "import/no-duplicates": "warn",
87
+ "import/no-cycle": "warn",
88
+ "no-useless-escape": "warn",
89
+ "import/no-unused-modules": "off",
90
+ "unused-imports/no-unused-imports": "off",
91
+ "prettier/prettier": [
92
+ "error",
93
+ {
94
+ "endOfLine": "auto"
95
+ }
96
+ ]
97
+ },
98
+ "settings": {
99
+ "import/resolver": {
100
+ "alias": {
101
+ "map": [
102
+ [
103
+ "@",
104
+ "./src"
105
+ ]
106
+ ],
107
+ "extensions": [
108
+ ".js",
109
+ ".jsx",
110
+ ".ts",
111
+ ".tsx",
112
+ ".json",
113
+ ".vue"
114
+ ]
115
+ },
116
+ "node": {
117
+ "paths": [
118
+ "src"
119
+ ],
120
+ "extensions": [
121
+ ".js",
122
+ ".jsx",
123
+ ".ts",
124
+ ".tsx"
125
+ ]
126
+ }
127
+ }
128
+ }
129
+ },
130
+ "stylelint": {
131
+ "extends": [
132
+ "stylelint-config-ali",
133
+ "stylelint-prettier/recommended"
134
+ ]
135
+ },
136
+ "dependencies": {
137
+ "@vueuse/core": "^14.0.0",
138
+ "dayjs": "^1.11.18",
139
+ "element-plus": "^2.11.9",
140
+ "ling-yun-methods": "^0.0.46",
141
+ "color-star-custom-methods": "^0.0.9",
142
+ "color-message-lingyun-vue": "0.0.30"
143
+ },
144
+ "devDependencies": {
145
+ "@commitlint/cli": "^20.1.0",
146
+ "@rushstack/eslint-patch": "^1.12.0",
147
+ "@tsconfig/node18": "^18.2.4",
148
+ "@types/lodash": "^4.17.20",
149
+ "@types/node": "^24.9.1",
150
+ "@vitejs/plugin-vue": "^6.0.1",
151
+ "@vue/tsconfig": "^0.8.1",
152
+ "axios": "^1.12.2",
153
+ "commitlint-config-ali": "^1.3.0",
154
+ "eslint": "^9.38.0",
155
+ "eslint-config-ali": "^16.5.0",
156
+ "eslint-config-prettier": "^10.1.8",
157
+ "eslint-import-resolver-alias": "^1.1.2",
158
+ "eslint-import-resolver-node": "^0.3.9",
159
+ "eslint-plugin-import": "^2.32.0",
160
+ "eslint-plugin-prettier": "^5.5.4",
161
+ "lint-staged": "^16.2.5",
162
+ "patch-package": "^8.0.0",
163
+ "postcss": "^8.5.6",
164
+ "prettier": "^3.6.2",
165
+ "prettier-config-ali": "^1.5.0",
166
+ "sass": "^1.93.2",
167
+ "stylelint": "^16.23.1",
168
+ "stylelint-config-ali": "^2.3.0",
169
+ "stylelint-prettier": "^5.0.3",
170
+ "typescript": "~5.9.3",
171
+ "vite": "^7.1.11",
172
+ "vite-plugin-lib-inject-css": "^2.2.2",
173
+ "vue": "^3.5.22"
174
+ },
175
+ "peerDependencies": {
176
+ "axios": "^1.8.2",
177
+ "vue": "^3.5.13",
178
+ "color-message-lingyun-vue": "0.0.30",
179
+ "color-message-aibox-vue": "0.0.51",
180
+ "color-star-atom-style": "0.0.2"
181
+ },
182
+ "optionalDependencies": {
183
+ "@ast-grep/napi-linux-x64-musl": "^0.39.6",
184
+ "@rollup/rollup-linux-x64-musl": "^4.52.5"
185
+ },
186
+ "engines": {
187
+ "node": ">=18"
188
+ },
189
+ "scripts": {
190
+ "build": "vite build && pnpm run postbuild",
191
+ "postbuild": "node -e \"const fs = require('fs'); const path = require('path'); const src = path.join(__dirname, 'es', 'assets', 'index.css'); const dest = path.join(__dirname, 'index.css'); if (fs.existsSync(src)) { fs.copyFileSync(src, dest); console.log('组件库样式文件已复制到根目录'); } else { console.log('警告: 组件库样式文件不存在'); }\"",
192
+ "build:clean": "rimraf lib es",
193
+ "dev": "vite --config ./play/vite.config.js",
194
+ "lint": "eslint . && stylelint \"**/*.{css,less,scss}\"",
195
+ "lint:fix": "prettier --write . && eslint --fix . && stylelint --fix \"**/*.{css,less,scss}\" "
196
+ }
197
+ }