@valeriewoon/comp-test 0.0.1-2
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/comp-test.css +1 -0
- package/dist/comp-test.js +4 -0
- package/dist/comp-test.umd.cjs +325 -0
- package/dist/en_US-HqxIu_gp.js +38 -0
- package/dist/index-CI4lhgPR.js +37685 -0
- package/dist/vite.svg +1 -0
- package/dist/zh_CN-CxumtGKK.js +217 -0
- package/package.json +59 -0
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>
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
var d = Object.defineProperty, $ = Object.defineProperties;
|
|
2
|
+
var p = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var r = Object.getOwnPropertySymbols;
|
|
4
|
+
var b = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var n = (t, l, a) => l in t ? d(t, l, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[l] = a, c = (t, l) => {
|
|
6
|
+
for (var a in l || (l = {}))
|
|
7
|
+
b.call(l, a) && n(t, a, l[a]);
|
|
8
|
+
if (r)
|
|
9
|
+
for (var a of r(l))
|
|
10
|
+
g.call(l, a) && n(t, a, l[a]);
|
|
11
|
+
return t;
|
|
12
|
+
}, i = (t, l) => $(t, p(l));
|
|
13
|
+
import { _ as m, P as h, g as u } from "./index-CI4lhgPR.js";
|
|
14
|
+
const x = {
|
|
15
|
+
resetText: "重置",
|
|
16
|
+
queryText: "查询",
|
|
17
|
+
redo: "刷新"
|
|
18
|
+
}, _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19
|
+
__proto__: null,
|
|
20
|
+
default: x
|
|
21
|
+
}, Symbol.toStringTag, { value: "Module" })), f = {
|
|
22
|
+
table: {
|
|
23
|
+
settingColumn: "列设置",
|
|
24
|
+
settingColumnShow: "列展示",
|
|
25
|
+
index: "序号",
|
|
26
|
+
total: "共 {total} 条数据"
|
|
27
|
+
}
|
|
28
|
+
}, y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29
|
+
__proto__: null,
|
|
30
|
+
default: f
|
|
31
|
+
}, Symbol.toStringTag, { value: "Module" })), P = {
|
|
32
|
+
locale: "zh_CN",
|
|
33
|
+
today: "今天",
|
|
34
|
+
now: "此刻",
|
|
35
|
+
backToToday: "返回今天",
|
|
36
|
+
ok: "确定",
|
|
37
|
+
timeSelect: "选择时间",
|
|
38
|
+
dateSelect: "选择日期",
|
|
39
|
+
weekSelect: "选择周",
|
|
40
|
+
clear: "清除",
|
|
41
|
+
month: "月",
|
|
42
|
+
year: "年",
|
|
43
|
+
previousMonth: "上个月 (翻页上键)",
|
|
44
|
+
nextMonth: "下个月 (翻页下键)",
|
|
45
|
+
monthSelect: "选择月份",
|
|
46
|
+
yearSelect: "选择年份",
|
|
47
|
+
decadeSelect: "选择年代",
|
|
48
|
+
yearFormat: "YYYY年",
|
|
49
|
+
dayFormat: "D日",
|
|
50
|
+
dateFormat: "YYYY年M月D日",
|
|
51
|
+
dateTimeFormat: "YYYY年M月D日 HH时mm分ss秒",
|
|
52
|
+
previousYear: "上一年 (Control键加左方向键)",
|
|
53
|
+
nextYear: "下一年 (Control键加右方向键)",
|
|
54
|
+
previousDecade: "上一年代",
|
|
55
|
+
nextDecade: "下一年代",
|
|
56
|
+
previousCentury: "上一世纪",
|
|
57
|
+
nextCentury: "下一世纪"
|
|
58
|
+
}, s = {
|
|
59
|
+
placeholder: "请选择时间",
|
|
60
|
+
rangePlaceholder: ["开始时间", "结束时间"]
|
|
61
|
+
}, o = {
|
|
62
|
+
lang: m({
|
|
63
|
+
placeholder: "请选择日期",
|
|
64
|
+
yearPlaceholder: "请选择年份",
|
|
65
|
+
quarterPlaceholder: "请选择季度",
|
|
66
|
+
monthPlaceholder: "请选择月份",
|
|
67
|
+
weekPlaceholder: "请选择周",
|
|
68
|
+
rangePlaceholder: ["开始日期", "结束日期"],
|
|
69
|
+
rangeYearPlaceholder: ["开始年份", "结束年份"],
|
|
70
|
+
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
71
|
+
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
72
|
+
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
73
|
+
}, P),
|
|
74
|
+
timePickerLocale: m({}, s)
|
|
75
|
+
};
|
|
76
|
+
o.lang.ok = "确定";
|
|
77
|
+
const e = "${label}不是一个有效的${type}", T = {
|
|
78
|
+
locale: "zh-cn",
|
|
79
|
+
Pagination: h,
|
|
80
|
+
DatePicker: o,
|
|
81
|
+
TimePicker: s,
|
|
82
|
+
Calendar: o,
|
|
83
|
+
// locales for all components
|
|
84
|
+
global: {
|
|
85
|
+
placeholder: "请选择"
|
|
86
|
+
},
|
|
87
|
+
Table: {
|
|
88
|
+
filterTitle: "筛选",
|
|
89
|
+
filterConfirm: "确定",
|
|
90
|
+
filterReset: "重置",
|
|
91
|
+
filterEmptyText: "无筛选项",
|
|
92
|
+
filterCheckall: "全选",
|
|
93
|
+
filterSearchPlaceholder: "在筛选项中搜索",
|
|
94
|
+
selectAll: "全选当页",
|
|
95
|
+
selectInvert: "反选当页",
|
|
96
|
+
selectNone: "清空所有",
|
|
97
|
+
selectionAll: "全选所有",
|
|
98
|
+
sortTitle: "排序",
|
|
99
|
+
expand: "展开行",
|
|
100
|
+
collapse: "关闭行",
|
|
101
|
+
triggerDesc: "点击降序",
|
|
102
|
+
triggerAsc: "点击升序",
|
|
103
|
+
cancelSort: "取消排序"
|
|
104
|
+
},
|
|
105
|
+
Tour: {
|
|
106
|
+
Next: "下一步",
|
|
107
|
+
Previous: "上一步",
|
|
108
|
+
Finish: "结束导览"
|
|
109
|
+
},
|
|
110
|
+
Modal: {
|
|
111
|
+
okText: "确定",
|
|
112
|
+
cancelText: "取消",
|
|
113
|
+
justOkText: "知道了"
|
|
114
|
+
},
|
|
115
|
+
Popconfirm: {
|
|
116
|
+
cancelText: "取消",
|
|
117
|
+
okText: "确定"
|
|
118
|
+
},
|
|
119
|
+
Transfer: {
|
|
120
|
+
searchPlaceholder: "请输入搜索内容",
|
|
121
|
+
itemUnit: "项",
|
|
122
|
+
itemsUnit: "项",
|
|
123
|
+
remove: "删除",
|
|
124
|
+
selectCurrent: "全选当页",
|
|
125
|
+
removeCurrent: "删除当页",
|
|
126
|
+
selectAll: "全选所有",
|
|
127
|
+
removeAll: "删除全部",
|
|
128
|
+
selectInvert: "反选当页"
|
|
129
|
+
},
|
|
130
|
+
Upload: {
|
|
131
|
+
uploading: "文件上传中",
|
|
132
|
+
removeFile: "删除文件",
|
|
133
|
+
uploadError: "上传错误",
|
|
134
|
+
previewFile: "预览文件",
|
|
135
|
+
downloadFile: "下载文件"
|
|
136
|
+
},
|
|
137
|
+
Empty: {
|
|
138
|
+
description: "暂无数据"
|
|
139
|
+
},
|
|
140
|
+
Icon: {
|
|
141
|
+
icon: "图标"
|
|
142
|
+
},
|
|
143
|
+
Text: {
|
|
144
|
+
edit: "编辑",
|
|
145
|
+
copy: "复制",
|
|
146
|
+
copied: "复制成功",
|
|
147
|
+
expand: "展开"
|
|
148
|
+
},
|
|
149
|
+
PageHeader: {
|
|
150
|
+
back: "返回"
|
|
151
|
+
},
|
|
152
|
+
Form: {
|
|
153
|
+
optional: "(可选)",
|
|
154
|
+
defaultValidateMessages: {
|
|
155
|
+
default: "字段验证错误${label}",
|
|
156
|
+
required: "请输入${label}",
|
|
157
|
+
enum: "${label}必须是其中一个[${enum}]",
|
|
158
|
+
whitespace: "${label}不能为空字符",
|
|
159
|
+
date: {
|
|
160
|
+
format: "${label}日期格式无效",
|
|
161
|
+
parse: "${label}不能转换为日期",
|
|
162
|
+
invalid: "${label}是一个无效日期"
|
|
163
|
+
},
|
|
164
|
+
types: {
|
|
165
|
+
string: e,
|
|
166
|
+
method: e,
|
|
167
|
+
array: e,
|
|
168
|
+
object: e,
|
|
169
|
+
number: e,
|
|
170
|
+
date: e,
|
|
171
|
+
boolean: e,
|
|
172
|
+
integer: e,
|
|
173
|
+
float: e,
|
|
174
|
+
regexp: e,
|
|
175
|
+
email: e,
|
|
176
|
+
url: e,
|
|
177
|
+
hex: e
|
|
178
|
+
},
|
|
179
|
+
string: {
|
|
180
|
+
len: "${label}须为${len}个字符",
|
|
181
|
+
min: "${label}最少${min}个字符",
|
|
182
|
+
max: "${label}最多${max}个字符",
|
|
183
|
+
range: "${label}须在${min}-${max}字符之间"
|
|
184
|
+
},
|
|
185
|
+
number: {
|
|
186
|
+
len: "${label}必须等于${len}",
|
|
187
|
+
min: "${label}最小值为${min}",
|
|
188
|
+
max: "${label}最大值为${max}",
|
|
189
|
+
range: "${label}须在${min}-${max}之间"
|
|
190
|
+
},
|
|
191
|
+
array: {
|
|
192
|
+
len: "须为${len}个${label}",
|
|
193
|
+
min: "最少${min}个${label}",
|
|
194
|
+
max: "最多${max}个${label}",
|
|
195
|
+
range: "${label}数量须在${min}-${max}之间"
|
|
196
|
+
},
|
|
197
|
+
pattern: {
|
|
198
|
+
mismatch: "${label}与模式不匹配${pattern}"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
Image: {
|
|
203
|
+
preview: "预览"
|
|
204
|
+
},
|
|
205
|
+
QRCode: {
|
|
206
|
+
expired: "二维码已过期",
|
|
207
|
+
refresh: "点击刷新",
|
|
208
|
+
scanned: "已扫描"
|
|
209
|
+
}
|
|
210
|
+
}, v = /* @__PURE__ */ Object.assign({ "./zh_CN/common.ts": _, "./zh_CN/component.ts": y }), k = {
|
|
211
|
+
message: i(c({}, u(v, "zh_CN")), {
|
|
212
|
+
antLocale: T
|
|
213
|
+
})
|
|
214
|
+
};
|
|
215
|
+
export {
|
|
216
|
+
k as default
|
|
217
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@valeriewoon/comp-test",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.1-2",
|
|
5
|
+
"description": "前端组件库测试",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/comp-test.js",
|
|
8
|
+
"module": "./dist/comp-test.js",
|
|
9
|
+
"unpkg": "dist/comp-test.umd.cjs",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist/*"
|
|
12
|
+
],
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"dev": "vite",
|
|
18
|
+
"build:test": "vite build --mode test",
|
|
19
|
+
"build": "vite build --mode production",
|
|
20
|
+
"preview": "vite preview"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"ant-design-vue": "~4.2.6",
|
|
24
|
+
"dayjs": "^1.11.19",
|
|
25
|
+
"lodash-es": "^4.17.21",
|
|
26
|
+
"sortablejs": "^1.15.6",
|
|
27
|
+
"vue": "^3.5.25",
|
|
28
|
+
"vue-i18n": "^11.2.2"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@iconify/json": "^2.2.418",
|
|
32
|
+
"@purge-icons/generated": "^0.10.0",
|
|
33
|
+
"@types/lodash-es": "^4.17.12",
|
|
34
|
+
"@types/node": "^25.0.3",
|
|
35
|
+
"@vitejs/plugin-vue": "^5.2.4",
|
|
36
|
+
"@vitejs/plugin-vue-jsx": "^4.2.0",
|
|
37
|
+
"less": "^4.5.1",
|
|
38
|
+
"less-loader": "^12.3.0",
|
|
39
|
+
"ts-node": "^10.9.2",
|
|
40
|
+
"typescript": "~5.8.3",
|
|
41
|
+
"vite": "^6.3.5",
|
|
42
|
+
"vite-plugin-purge-icons": "^0.10.0",
|
|
43
|
+
"vite-plugin-style-import": "^2.0.0",
|
|
44
|
+
"vite-plugin-svg-icons": "^2.0.1",
|
|
45
|
+
"vite-plugin-windicss": "^1.9.4",
|
|
46
|
+
"vue": "^3.5.25",
|
|
47
|
+
"vue-tsc": "^3.1.8",
|
|
48
|
+
"windicss": "^3.5.6"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@ant-design/colors": "^7.2.1",
|
|
52
|
+
"@ant-design/icons-vue": "^7.0.1",
|
|
53
|
+
"@iconify/iconify": "^3.1.1",
|
|
54
|
+
"@vueuse/core": "^14.1.0",
|
|
55
|
+
"iconify-icon": "^3.0.2",
|
|
56
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
57
|
+
"styled-components": "^6.1.19"
|
|
58
|
+
}
|
|
59
|
+
}
|