disguise-ui 0.3.1 → 0.3.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/README.md +1 -21
- package/dist/{i18n-_x6RCAst.js → _plugin-vue_export-helper-BaV2q_qe.js} +176 -40
- package/dist/{avatar-cell-CSanGG5Y.js → avatar-cell-CGc64Tyy.js} +1 -1
- package/dist/disguise-ui.js +1225 -1211
- package/dist/{file-upload-D7N0tsLF.js → file-upload-BllX1YqY.js} +3 -4
- package/dist/{file-upload-ClPojHbE.js → file-upload-DSqjKCVS.js} +1 -1
- package/dist/picture-cell-D4IF_fwn.js +120 -0
- package/dist/{picture-upload-VK7YOAr4.js → picture-upload-CDMrYc5t.js} +1 -1
- package/dist/{picture-upload-BrrTtaCc.js → picture-upload-DO3ttk_V.js} +5 -6
- package/dist/style.css +1 -1
- package/dist/types/components/table-entity/index.type.d.ts +16 -3
- package/dist/types/composables/use-dict-data.d.ts +22 -22
- package/dist/types/index.d.ts +1 -1
- package/dist/types/runtime/context.d.ts +1 -1
- package/dist/types/runtime/dict.d.ts +1 -1
- package/dist/{use-image-url-Bs5WMZ6L.js → use-image-url-BnWCAP3q.js} +1 -1
- package/dist/{use-multiple-file-upload-Cv2dfA07.js → use-multiple-file-upload-D84IYptm.js} +2 -3
- package/dist/{user-avatar-info-BruEfYy4.js → user-avatar-info-CLHoRFpQ.js} +4 -5
- package/package.json +6 -1
- package/dist/_plugin-vue_export-helper-Djzt4Yr7.js +0 -7
- package/dist/context-DqlD6qDJ.js +0 -50
- package/dist/picture-cell-BhKqFZUx.js +0 -120
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ registerEntity({
|
|
|
90
90
|
页面里的工具类来自 Tailwind。使用方需要把构建产物加进扫描范围:
|
|
91
91
|
|
|
92
92
|
```js
|
|
93
|
-
content: ['./node_modules/disguise-ui/dist/**/*.js']
|
|
93
|
+
content: ['./node_modules/disguise-ui/dist/**/*.js'];
|
|
94
94
|
```
|
|
95
95
|
|
|
96
96
|
`DisguiseIcon` 只负责拼接图标类名,图标字体样式需要使用方自己引入。
|
|
@@ -112,23 +112,3 @@ npm run build
|
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
产物在 `dist/disguise-ui.js` 和 `dist/style.css`。
|
|
115
|
-
|
|
116
|
-
## 自动部署文档站
|
|
117
|
-
|
|
118
|
-
部署方式与 meeting-vue 一致:本地构建静态产物,打成部署包上传服务器,再通过 Docker Compose 重建容器。首次部署前,请确认本机可以通过 SSH 登录服务器(默认 `ubuntu@110.42.237.20`),服务器已安装 Docker 和 Docker Compose。然后在项目根目录执行:
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
npm run deploy
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
脚本会自动生成版本信息、在本地构建文档站、上传部署包并重建容器。部署地址为 `http://110.42.237.20:3006`。
|
|
125
|
-
|
|
126
|
-
每次构建会把当前分支、提交哈希和最近 5 条提交写入 `version.json`。页面保持打开时会每分钟检查一次新版本,发现更新后展示提交记录;服务器的 `deploy-history.log` 也会追加每次成功部署的提交信息。
|
|
127
|
-
|
|
128
|
-
可通过环境变量覆盖默认配置,例如:
|
|
129
|
-
|
|
130
|
-
```bash
|
|
131
|
-
DEPLOY_USER=ubuntu DEPLOY_PORT=22 APP_PORT=3006 npm run deploy
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
服务器需要在安全组或防火墙中放行 TCP 端口 `3006`。
|
|
@@ -1,10 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ref as e } from "vue";
|
|
2
|
+
// src/runtime/context.ts
|
|
3
|
+
var t = e("zh-CN"), n = e({}), r = e(() => !0), i = e(() => ""), a = e("hover"), o = e({
|
|
4
|
+
layout: "total, sizes, prev, pager, next, jumper",
|
|
5
|
+
background: !0,
|
|
6
|
+
pageSizes: [
|
|
7
|
+
10,
|
|
8
|
+
20,
|
|
9
|
+
50,
|
|
10
|
+
100
|
|
11
|
+
],
|
|
12
|
+
popperStyle: { zIndex: 4e3 }
|
|
13
|
+
}), s = null, c, l, u = "";
|
|
14
|
+
function d(e) {
|
|
15
|
+
e.locale && (t.value = e.locale), e.messages && (n.value = e.messages), e.request && (s = e.request), e.fetchAllDictData && (c = e.fetchAllDictData), e.uploadFile && (l = e.uploadFile), e.imageBaseUrl !== void 0 && (u = e.imageBaseUrl), e.hasAccess && (r.value = e.hasAccess), e.getAccessToken && (i.value = e.getAccessToken), e.cardShadow && (a.value = e.cardShadow), e.paginationConfig && (o.value = {
|
|
16
|
+
...o.value,
|
|
17
|
+
...e.paginationConfig
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function f() {
|
|
21
|
+
return t;
|
|
22
|
+
}
|
|
23
|
+
function p() {
|
|
24
|
+
return n;
|
|
25
|
+
}
|
|
26
|
+
function m() {
|
|
27
|
+
return s;
|
|
28
|
+
}
|
|
29
|
+
function h() {
|
|
30
|
+
return c?.() ?? Promise.resolve({});
|
|
31
|
+
}
|
|
32
|
+
function g() {
|
|
33
|
+
return l;
|
|
34
|
+
}
|
|
35
|
+
function _() {
|
|
36
|
+
return u;
|
|
37
|
+
}
|
|
38
|
+
function v() {
|
|
39
|
+
return r;
|
|
40
|
+
}
|
|
41
|
+
function y() {
|
|
42
|
+
return i.value();
|
|
43
|
+
}
|
|
44
|
+
function b() {
|
|
45
|
+
return a;
|
|
46
|
+
}
|
|
47
|
+
function x() {
|
|
48
|
+
return o;
|
|
49
|
+
}
|
|
50
|
+
var S = {
|
|
3
51
|
pleaseSelect: "Please select",
|
|
4
52
|
close: "Close",
|
|
5
53
|
cancel: "Cancel",
|
|
6
54
|
confirm: "Confirm"
|
|
7
|
-
},
|
|
55
|
+
}, C = {
|
|
8
56
|
components: {
|
|
9
57
|
title: "Components",
|
|
10
58
|
asyncSelect: "Async Select",
|
|
@@ -25,7 +73,8 @@ var n = {
|
|
|
25
73
|
fieldDepartment: "Department",
|
|
26
74
|
ariaLabel: "User information",
|
|
27
75
|
clickToViewDetail: "Click to view details",
|
|
28
|
-
empty: "N/A"
|
|
76
|
+
empty: "N/A",
|
|
77
|
+
fieldId: "User ID"
|
|
29
78
|
}
|
|
30
79
|
},
|
|
31
80
|
importDialog: {
|
|
@@ -73,7 +122,11 @@ var n = {
|
|
|
73
122
|
importError: "Import failed, please try again later",
|
|
74
123
|
mappingRequired: "Required field {field} is not mapped. Please select a source column",
|
|
75
124
|
mappingDuplicate: "The same column cannot be mapped to multiple fields",
|
|
76
|
-
mappingEmpty: "Please map at least one field"
|
|
125
|
+
mappingEmpty: "Please map at least one field",
|
|
126
|
+
templateDownloadError: "Template download failed",
|
|
127
|
+
parseFileMissing: "File parse handler is not configured",
|
|
128
|
+
apiMissing: "Import API is not configured",
|
|
129
|
+
submitImportMissing: "Import submit handler is not configured"
|
|
77
130
|
},
|
|
78
131
|
richTextEditor: {
|
|
79
132
|
placeholder: "Enter content...",
|
|
@@ -171,7 +224,13 @@ var n = {
|
|
|
171
224
|
visibleCount: "{visible} / {total} columns visible",
|
|
172
225
|
viewAllItems: "View all {count} {unit}",
|
|
173
226
|
collapseItems: "Collapse",
|
|
174
|
-
itemUnit: "items"
|
|
227
|
+
itemUnit: "items",
|
|
228
|
+
selectedCount: "{count} selected",
|
|
229
|
+
dragSort: "Drag to sort",
|
|
230
|
+
fileType: "Type",
|
|
231
|
+
fileSize: "Size",
|
|
232
|
+
fileOpenHint: "Click to open / download",
|
|
233
|
+
fileKindOther: "File"
|
|
175
234
|
},
|
|
176
235
|
fileUpload: {
|
|
177
236
|
placeholder: "Click to upload",
|
|
@@ -203,6 +262,7 @@ var n = {
|
|
|
203
262
|
typeNotAllowed: "Only {types} is supported",
|
|
204
263
|
sizeLimitExceeded: "Image size cannot exceed {size}MB"
|
|
205
264
|
},
|
|
265
|
+
imagesView: { empty: "No images" },
|
|
206
266
|
pictureUpload: {
|
|
207
267
|
cropTitle: "Crop image",
|
|
208
268
|
cropHint: "Drag the crop area and resize it from the corners",
|
|
@@ -217,12 +277,41 @@ var n = {
|
|
|
217
277
|
heightMin: "Image height must be at least {height}px",
|
|
218
278
|
widthMax: "Image width must not exceed {width}px",
|
|
219
279
|
heightMax: "Image height must not exceed {height}px"
|
|
280
|
+
},
|
|
281
|
+
searchForm: {
|
|
282
|
+
search: "Search",
|
|
283
|
+
reset: "Reset",
|
|
284
|
+
expand: "Expand",
|
|
285
|
+
collapse: "Collapse"
|
|
286
|
+
},
|
|
287
|
+
crudPage: {
|
|
288
|
+
createTitle: "New",
|
|
289
|
+
editTitle: "Edit",
|
|
290
|
+
viewTitle: "Details",
|
|
291
|
+
addButtonText: "New",
|
|
292
|
+
deleteConfirmText: "Delete this record?",
|
|
293
|
+
batchDeleteConfirm: "Delete the selected {count} records?",
|
|
294
|
+
submitHandlerMissing: "No submit handler configured for this action",
|
|
295
|
+
createSuccess: "Created successfully",
|
|
296
|
+
updateSuccess: "Updated successfully",
|
|
297
|
+
createFailed: "Failed to create",
|
|
298
|
+
updateFailed: "Failed to update",
|
|
299
|
+
loadDetailFailed: "Failed to load details",
|
|
300
|
+
deleteHandlerMissing: "No delete handler configured for this action",
|
|
301
|
+
deleteSuccess: "Deleted successfully",
|
|
302
|
+
deleteFailed: "Failed to delete",
|
|
303
|
+
batchDeleteHandlerMissing: "No batch delete handler configured for this action",
|
|
304
|
+
importNotConfigured: "Import is not configured on this page",
|
|
305
|
+
exportFailed: "Export failed"
|
|
220
306
|
}
|
|
221
|
-
},
|
|
307
|
+
}, w = {
|
|
222
308
|
copy: "Copy",
|
|
223
309
|
copied: "Copied",
|
|
224
|
-
empty: "N/A"
|
|
225
|
-
|
|
310
|
+
empty: "N/A",
|
|
311
|
+
requiredNote: "Required",
|
|
312
|
+
yes: "Yes",
|
|
313
|
+
no: "No"
|
|
314
|
+
}, T = {
|
|
226
315
|
label: "Auto translate:",
|
|
227
316
|
all: "All other languages",
|
|
228
317
|
from: "Select source language",
|
|
@@ -234,15 +323,15 @@ var n = {
|
|
|
234
323
|
loading: "Translating...",
|
|
235
324
|
completed: "Translation completed",
|
|
236
325
|
failed: "Translation failed"
|
|
237
|
-
},
|
|
326
|
+
}, E = {
|
|
238
327
|
enterField: "Enter {field}",
|
|
239
328
|
selectField: "Select {field}"
|
|
240
|
-
},
|
|
329
|
+
}, D = {
|
|
241
330
|
pleaseSelect: "请选择",
|
|
242
331
|
close: "关闭",
|
|
243
332
|
cancel: "取消",
|
|
244
333
|
confirm: "确定"
|
|
245
|
-
},
|
|
334
|
+
}, O = {
|
|
246
335
|
components: {
|
|
247
336
|
title: "组件",
|
|
248
337
|
asyncSelect: "异步选择器",
|
|
@@ -264,7 +353,8 @@ var n = {
|
|
|
264
353
|
fieldDepartment: "部门",
|
|
265
354
|
ariaLabel: "用户信息",
|
|
266
355
|
clickToViewDetail: "点击查看详情",
|
|
267
|
-
empty: "暂无"
|
|
356
|
+
empty: "暂无",
|
|
357
|
+
fieldId: "用户 ID"
|
|
268
358
|
},
|
|
269
359
|
importDialog: {
|
|
270
360
|
title: "批量导入",
|
|
@@ -311,7 +401,11 @@ var n = {
|
|
|
311
401
|
importError: "导入失败,请稍后重试",
|
|
312
402
|
mappingRequired: "必填字段 {field} 未映射,请选择来源列",
|
|
313
403
|
mappingDuplicate: "同一表格列不能重复映射到多个字段",
|
|
314
|
-
mappingEmpty: "请至少映射一个字段"
|
|
404
|
+
mappingEmpty: "请至少映射一个字段",
|
|
405
|
+
templateDownloadError: "模板下载失败",
|
|
406
|
+
parseFileMissing: "未配置文件解析方法",
|
|
407
|
+
apiMissing: "未配置导入接口",
|
|
408
|
+
submitImportMissing: "未配置导入方法"
|
|
315
409
|
},
|
|
316
410
|
richTextEditor: {
|
|
317
411
|
placeholder: "请输入内容...",
|
|
@@ -409,7 +503,13 @@ var n = {
|
|
|
409
503
|
visibleCount: "已显示 {visible} / {total} 列",
|
|
410
504
|
viewAllItems: "查看全部 {count} 个{unit}",
|
|
411
505
|
collapseItems: "收起",
|
|
412
|
-
itemUnit: "项"
|
|
506
|
+
itemUnit: "项",
|
|
507
|
+
selectedCount: "已选 {count} 项",
|
|
508
|
+
dragSort: "拖拽排序",
|
|
509
|
+
fileType: "类型",
|
|
510
|
+
fileSize: "大小",
|
|
511
|
+
fileOpenHint: "点击打开 / 下载",
|
|
512
|
+
fileKindOther: "文件"
|
|
413
513
|
},
|
|
414
514
|
fileUpload: {
|
|
415
515
|
placeholder: "点击上传",
|
|
@@ -441,6 +541,7 @@ var n = {
|
|
|
441
541
|
typeNotAllowed: "仅支持 {types} 格式",
|
|
442
542
|
sizeLimitExceeded: "图片大小不能超过 {size}MB"
|
|
443
543
|
},
|
|
544
|
+
imagesView: { empty: "暂无图片" },
|
|
444
545
|
pictureUpload: {
|
|
445
546
|
cropTitle: "裁剪图片",
|
|
446
547
|
cropHint: "拖动裁剪框调整区域,拖动四角调整大小",
|
|
@@ -455,12 +556,41 @@ var n = {
|
|
|
455
556
|
heightMin: "图片高度不能小于 {height}px",
|
|
456
557
|
widthMax: "图片宽度不能大于 {width}px",
|
|
457
558
|
heightMax: "图片高度不能大于 {height}px"
|
|
559
|
+
},
|
|
560
|
+
searchForm: {
|
|
561
|
+
search: "搜索",
|
|
562
|
+
reset: "重置",
|
|
563
|
+
expand: "展开",
|
|
564
|
+
collapse: "收起"
|
|
565
|
+
},
|
|
566
|
+
crudPage: {
|
|
567
|
+
createTitle: "新增",
|
|
568
|
+
editTitle: "编辑",
|
|
569
|
+
viewTitle: "详情",
|
|
570
|
+
addButtonText: "新增",
|
|
571
|
+
deleteConfirmText: "确定要删除这条数据吗?",
|
|
572
|
+
batchDeleteConfirm: "确定要删除选中的 {count} 条数据吗?",
|
|
573
|
+
submitHandlerMissing: "当前操作没有配置提交处理函数",
|
|
574
|
+
createSuccess: "新增成功",
|
|
575
|
+
updateSuccess: "更新成功",
|
|
576
|
+
createFailed: "新增失败",
|
|
577
|
+
updateFailed: "更新失败",
|
|
578
|
+
loadDetailFailed: "加载详情失败",
|
|
579
|
+
deleteHandlerMissing: "当前操作没有配置删除处理函数",
|
|
580
|
+
deleteSuccess: "删除成功",
|
|
581
|
+
deleteFailed: "删除失败",
|
|
582
|
+
batchDeleteHandlerMissing: "当前操作没有配置批量删除处理函数",
|
|
583
|
+
importNotConfigured: "当前页面没有配置导入功能",
|
|
584
|
+
exportFailed: "导出失败"
|
|
458
585
|
}
|
|
459
|
-
},
|
|
586
|
+
}, k = {
|
|
460
587
|
copy: "复制",
|
|
461
588
|
copied: "已复制",
|
|
462
|
-
empty: "暂无"
|
|
463
|
-
|
|
589
|
+
empty: "暂无",
|
|
590
|
+
requiredNote: "为必填项",
|
|
591
|
+
yes: "是",
|
|
592
|
+
no: "否"
|
|
593
|
+
}, A = {
|
|
464
594
|
label: "自动翻译:",
|
|
465
595
|
all: "其他所有",
|
|
466
596
|
from: "请选择来源语言",
|
|
@@ -472,51 +602,57 @@ var n = {
|
|
|
472
602
|
loading: "翻译中…",
|
|
473
603
|
completed: "翻译完成",
|
|
474
604
|
failed: "翻译失败"
|
|
475
|
-
},
|
|
605
|
+
}, j = {
|
|
476
606
|
enterField: "请输入{field}",
|
|
477
607
|
selectField: "请选择{field}"
|
|
478
608
|
};
|
|
479
609
|
// src/runtime/i18n.ts
|
|
480
|
-
function
|
|
610
|
+
function M(e) {
|
|
481
611
|
let t = { ...e }, n = e.components;
|
|
482
612
|
return n && typeof n == "object" && "userAvatarInfo" in n && !t.userAvatarInfo && (t.userAvatarInfo = n.userAvatarInfo), t;
|
|
483
613
|
}
|
|
484
|
-
function
|
|
614
|
+
function N(e, t, n, r, i) {
|
|
485
615
|
return {
|
|
486
|
-
components:
|
|
616
|
+
components: M(e),
|
|
487
617
|
schemaForm: t,
|
|
488
618
|
validation: n,
|
|
489
619
|
common: r,
|
|
490
620
|
"product-management": { attribute: { translation: i } }
|
|
491
621
|
};
|
|
492
622
|
}
|
|
493
|
-
var
|
|
494
|
-
"zh-CN":
|
|
495
|
-
"en-US":
|
|
623
|
+
var P = {
|
|
624
|
+
"zh-CN": N(O, k, j, D, A),
|
|
625
|
+
"en-US": N(C, w, E, S, T)
|
|
496
626
|
};
|
|
497
|
-
function
|
|
627
|
+
function F(e, t) {
|
|
498
628
|
return t.split(".").reduce((e, t) => {
|
|
499
629
|
if (e && typeof e == "object") return e[t];
|
|
500
630
|
}, e);
|
|
501
631
|
}
|
|
502
|
-
function
|
|
632
|
+
function I(e, t) {
|
|
503
633
|
return t ? e.replace(/\{(\w+)\}/g, (e, n) => t[n] === void 0 ? "" : String(t[n])) : e;
|
|
504
634
|
}
|
|
505
|
-
function
|
|
506
|
-
let
|
|
507
|
-
for (let
|
|
508
|
-
let
|
|
635
|
+
function L(e) {
|
|
636
|
+
let t = [f().value, "zh-CN"];
|
|
637
|
+
for (let n of t) {
|
|
638
|
+
let t = F(p().value[n], e);
|
|
639
|
+
if (typeof t == "string") return t;
|
|
640
|
+
let r = F(P[n], e);
|
|
509
641
|
if (typeof r == "string") return r;
|
|
510
|
-
let i = h(m[t], n);
|
|
511
|
-
if (typeof i == "string") return i;
|
|
512
642
|
}
|
|
513
|
-
return
|
|
643
|
+
return e;
|
|
514
644
|
}
|
|
515
|
-
function
|
|
516
|
-
return
|
|
645
|
+
function R(e, t) {
|
|
646
|
+
return I(L(e), t);
|
|
517
647
|
}
|
|
518
|
-
var
|
|
519
|
-
function
|
|
520
|
-
return { t:
|
|
648
|
+
var z = R;
|
|
649
|
+
function B() {
|
|
650
|
+
return { t: R };
|
|
521
651
|
}
|
|
522
|
-
export
|
|
652
|
+
// \0plugin-vue:export-helper
|
|
653
|
+
var V = (e, t) => {
|
|
654
|
+
let n = e.__vccOpts || e;
|
|
655
|
+
for (let [e, r] of t) n[e] = r;
|
|
656
|
+
return n;
|
|
657
|
+
};
|
|
658
|
+
export { v as a, g as c, m as d, h as f, d as i, _ as l, z as n, y as o, B as r, b as s, V as t, x as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./user-avatar-info-
|
|
1
|
+
import { t as e } from "./user-avatar-info-CLHoRFpQ.js";
|
|
2
2
|
import { computed as t, createBlock as n, defineComponent as r, openBlock as i } from "vue";
|
|
3
3
|
// src/components/table-entity/cells/avatar-cell.vue
|
|
4
4
|
var a = /* @__PURE__ */ r({
|