@kyfe/fms-vue2-components 0.0.8 → 0.0.10
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/{date-picker-bottom.08bb5468.js → date-picker-bottom.deb0334b.js} +1 -1
- package/dist/{date-picker-dropdown.6bdf8884.js → date-picker-dropdown.8820ef37.js} +1 -1
- package/dist/{date-picker-right.0b16e9e5.js → date-picker-right.90fb4b93.js} +1 -1
- package/dist/{date-picker-top.bb84a0cf.js → date-picker-top.535bf0c5.js} +1 -1
- package/dist/{date-week-month.7ac3a67e.js → date-week-month.f258023a.js} +1 -1
- package/dist/fms-approval-header/index.js +100 -0
- package/dist/fms-approval-header/style.css +1 -0
- package/dist/fms-copy-box/index.js +1 -1
- package/dist/fms-ks-clamp-text/index.js +2 -2
- package/dist/fms-ks-components/index.js +2 -2
- package/dist/{fms-ks-components.53289d17.js → fms-ks-components.c4804aac.js} +121 -121
- package/dist/fms-ks-decrypt/index.js +2 -2
- package/dist/{fms-ks-decrypt.2f88e659.js → fms-ks-decrypt.e9bc1873.js} +1 -1
- package/dist/fms-ks-form-grid/index.js +1 -1
- package/dist/fms-ks-select/index.js +2 -2
- package/dist/fms-ks-select-box/index.js +2 -2
- package/dist/fms-ks-uploader/index.js +350 -0
- package/dist/fms-ks-uploader/style.css +1 -0
- package/dist/index.js +70 -33
- package/dist/{mixin.7a8d8392.js → mixin.ce520697.js} +1 -1
- package/dist/oa-datetime-picker-new/style.css +1 -1
- package/package.json +2 -2
- package/src/components/fms-approval-header/fms-approval-header.vue +258 -0
- package/src/components/fms-approval-header/index.js +7 -0
- package/src/components/fms-approval-header//345/256/241/346/240/270/345/244/264/351/203/250.md +0 -0
- package/src/components/fms-ks-uploader/fms-ks-uploader.vue +570 -0
- package/src/components/fms-ks-uploader/index.js +7 -0
- package/src/index.js +34 -2
- /package/dist/{filter.c93f4ddb.js → filter.8157a654.js} +0 -0
- /package/dist/{fms-ks-clamp-text.24eb5e8d.js → fms-ks-clamp-text.29353cc2.js} +0 -0
- /package/dist/{fms-ks-select-box.a00f0f08.js → fms-ks-select-box.b75cf9d8.js} +0 -0
- /package/dist/{fms-ks-select.59416fd8.js → fms-ks-select.002b6536.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './../fms-copy-box/style.css';
|
|
2
|
-
import { F as o } from "../fms-ks-decrypt.
|
|
3
|
-
import { F as e } from "../fms-ks-decrypt.
|
|
2
|
+
import { F as o } from "../fms-ks-decrypt.e9bc1873.js";
|
|
3
|
+
import { F as e } from "../fms-ks-decrypt.e9bc1873.js";
|
|
4
4
|
o.install = function(t) {
|
|
5
5
|
t.component(o.name, o);
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './../fms-copy-box/style.css';
|
|
2
2
|
import { get as n } from "lodash";
|
|
3
|
-
import { F as f } from "../fms-ks-components.
|
|
3
|
+
import { F as f } from "../fms-ks-components.c4804aac.js";
|
|
4
4
|
import { n as a } from "../plugin-vue2_normalizer.ed7092a9.js";
|
|
5
5
|
import './style.css';class c {
|
|
6
6
|
constructor(t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './../fms-copy-box/style.css';
|
|
2
|
-
import { F as o } from "../fms-ks-select.
|
|
3
|
-
import { F as a } from "../fms-ks-select.
|
|
2
|
+
import { F as o } from "../fms-ks-select.002b6536.js";
|
|
3
|
+
import { F as a } from "../fms-ks-select.002b6536.js";
|
|
4
4
|
o.install = function(t) {
|
|
5
5
|
t.component(o.name, o);
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './../fms-copy-box/style.css';
|
|
2
|
-
import { F as o } from "../fms-ks-select-box.
|
|
3
|
-
import { F as a } from "../fms-ks-select-box.
|
|
2
|
+
import { F as o } from "../fms-ks-select-box.b75cf9d8.js";
|
|
3
|
+
import { F as a } from "../fms-ks-select-box.b75cf9d8.js";
|
|
4
4
|
o.install = function(t) {
|
|
5
5
|
t.component(o.name, o);
|
|
6
6
|
};
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import './../fms-copy-box/style.css';
|
|
2
|
+
import { merge as g, isEqual as F, get as y, invoke as r } from "lodash";
|
|
3
|
+
import { n as w } from "../plugin-vue2_normalizer.ed7092a9.js";
|
|
4
|
+
import './style.css';const p = navigator.userAgent;
|
|
5
|
+
/(Android);?[\s/]+([\d.]+)?(.*Mobile)/.test(p);
|
|
6
|
+
const u = /(iPad).*OS\s([\d_]+)/.test(p), v = !u && /(iPhone\sOS)\s([\d_]+)/.test(p), T = u || v;
|
|
7
|
+
const d = {
|
|
8
|
+
ALBUM: 0,
|
|
9
|
+
FILE: 1,
|
|
10
|
+
CAMERA: 2
|
|
11
|
+
}, c = {
|
|
12
|
+
TENCENT: 0,
|
|
13
|
+
KYE: 1
|
|
14
|
+
}, B = {
|
|
15
|
+
name: "FmsKsUploader",
|
|
16
|
+
props: {
|
|
17
|
+
sortable: Boolean,
|
|
18
|
+
disabled: Boolean,
|
|
19
|
+
isHideUploadBtn: Boolean,
|
|
20
|
+
component: {
|
|
21
|
+
type: [String, Object, Function],
|
|
22
|
+
default: "div"
|
|
23
|
+
},
|
|
24
|
+
mode: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: c.KYE
|
|
27
|
+
},
|
|
28
|
+
accept: {
|
|
29
|
+
type: Array,
|
|
30
|
+
default: () => []
|
|
31
|
+
},
|
|
32
|
+
limit: {
|
|
33
|
+
type: Number,
|
|
34
|
+
default: 9
|
|
35
|
+
},
|
|
36
|
+
value: {
|
|
37
|
+
type: Array,
|
|
38
|
+
default: () => []
|
|
39
|
+
},
|
|
40
|
+
maxSize: Number,
|
|
41
|
+
beforeActionSheetShow: Function,
|
|
42
|
+
allowMethods: {
|
|
43
|
+
type: Array,
|
|
44
|
+
default: () => [d.ALBUM, d.FILE, d.CAMERA]
|
|
45
|
+
},
|
|
46
|
+
beforeUpload: Function,
|
|
47
|
+
getNativeFnParams: Function,
|
|
48
|
+
getFileTypeFn: Function,
|
|
49
|
+
getTencentUploadConfig: Function,
|
|
50
|
+
bizCode: String,
|
|
51
|
+
bizId: String,
|
|
52
|
+
fileIdSortList: {
|
|
53
|
+
type: Array,
|
|
54
|
+
default: () => []
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
data() {
|
|
58
|
+
return {
|
|
59
|
+
fileList: [...this.value],
|
|
60
|
+
isShowAction: !1,
|
|
61
|
+
insetBizId: "",
|
|
62
|
+
tokenConfig: {},
|
|
63
|
+
uploadId: String(Date.now())
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
computed: {
|
|
67
|
+
attrs() {
|
|
68
|
+
return g({
|
|
69
|
+
list: this.fileList,
|
|
70
|
+
handle: ".preview-item",
|
|
71
|
+
ghostClass: "ghost",
|
|
72
|
+
disabled: !this.sortable || this.disabled,
|
|
73
|
+
options: {
|
|
74
|
+
delay: 100
|
|
75
|
+
}
|
|
76
|
+
}, this.$attrs);
|
|
77
|
+
},
|
|
78
|
+
actions() {
|
|
79
|
+
const e = [
|
|
80
|
+
{ name: "\u4ECE\u76F8\u518C\u9009\u62E9", id: d.ALBUM },
|
|
81
|
+
{ name: "\u4ECE\u6587\u4EF6\u9009\u62E9", id: d.FILE },
|
|
82
|
+
{ name: "\u62CD\u7167", id: d.CAMERA }
|
|
83
|
+
];
|
|
84
|
+
return this.allowMethods.map((t) => e[t]);
|
|
85
|
+
},
|
|
86
|
+
actionFnMap() {
|
|
87
|
+
return [this.getFileFromAlbum, this.getFileFromFolder, this.getFileFromCamera];
|
|
88
|
+
},
|
|
89
|
+
ifToKye() {
|
|
90
|
+
return this.mode === c.KYE;
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
watch: {
|
|
94
|
+
value(e) {
|
|
95
|
+
const { fileList: t } = this;
|
|
96
|
+
F(
|
|
97
|
+
e.map((i) => i.id),
|
|
98
|
+
t.map((i) => i.id)
|
|
99
|
+
) || (this.fileList = e);
|
|
100
|
+
},
|
|
101
|
+
fileList() {
|
|
102
|
+
this.$emit("input", this.fileList);
|
|
103
|
+
},
|
|
104
|
+
bizId() {
|
|
105
|
+
this.getFilesByBizId();
|
|
106
|
+
},
|
|
107
|
+
bizCode() {
|
|
108
|
+
this.getFilesByBizId();
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
mounted() {
|
|
112
|
+
this.ifToKye && this.getFilesByBizId();
|
|
113
|
+
},
|
|
114
|
+
methods: {
|
|
115
|
+
async getSortedFiledList(e, t) {
|
|
116
|
+
const s = this.fileIdSortList.map((a) => ({
|
|
117
|
+
sourceBizId: e,
|
|
118
|
+
sourceBizCode: t,
|
|
119
|
+
sourceFileId: a,
|
|
120
|
+
targetBizId: this.insetBizId,
|
|
121
|
+
targetBizCode: t
|
|
122
|
+
})), i = await this.$http("file.file.copyBucketFile", "10214", s);
|
|
123
|
+
this.fileList = i;
|
|
124
|
+
},
|
|
125
|
+
async getDefaultFieldList(e, t) {
|
|
126
|
+
const s = await this.$http("file.file.copyBucket", "10214", [
|
|
127
|
+
{
|
|
128
|
+
sourceBizId: e,
|
|
129
|
+
sourceBizCode: t,
|
|
130
|
+
targetBizId: this.insetBizId,
|
|
131
|
+
targetBizCode: t
|
|
132
|
+
}
|
|
133
|
+
]);
|
|
134
|
+
this.fileList = s;
|
|
135
|
+
},
|
|
136
|
+
async getFilesByBizId() {
|
|
137
|
+
const { bizId: e, bizCode: t } = this;
|
|
138
|
+
!e || !t || (await this.getBizId(), this.fileIdSortList.length ? this.getSortedFiledList(e, t) : this.getDefaultFieldList(e, t));
|
|
139
|
+
},
|
|
140
|
+
async getUploadToken() {
|
|
141
|
+
if (!(y(this.tokenConfig, "expiredTime", 0) * 1e3 < Date.now()))
|
|
142
|
+
return this.tokenConfig;
|
|
143
|
+
const t = await this.getTencentUploadConfig();
|
|
144
|
+
return this.tokenConfig = t, this.tokenConfig;
|
|
145
|
+
},
|
|
146
|
+
async onDeleteFile(e, t) {
|
|
147
|
+
if (this.ifToKye) {
|
|
148
|
+
const s = window.vant.Toast.loading({ forbidClick: !0, duration: 0 });
|
|
149
|
+
try {
|
|
150
|
+
await this.$http("file.deleteByIds", "10147", { ids: [e.id] });
|
|
151
|
+
} catch (i) {
|
|
152
|
+
console.log(i);
|
|
153
|
+
} finally {
|
|
154
|
+
s.type === "loading" && window.vant.Toast.clear();
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
this.fileList.splice(t, 1);
|
|
158
|
+
},
|
|
159
|
+
getFileType(e) {
|
|
160
|
+
if (typeof this.getFileTypeFn == "function")
|
|
161
|
+
return this.getFileTypeFn(e);
|
|
162
|
+
const t = e.extendName.toLowerCase();
|
|
163
|
+
return t === "pdf" ? "pdf" : ["doc", "docx", "xls", "xlsx"].includes(t) ? "doc" : t === "mp4" ? "video" : "img";
|
|
164
|
+
},
|
|
165
|
+
isImage(e) {
|
|
166
|
+
return this.getFileType(e) === "img";
|
|
167
|
+
},
|
|
168
|
+
getImg(e) {
|
|
169
|
+
const t = {
|
|
170
|
+
pdf: "https://erphostjs.kye-erp.com/fms/fms-deposit-new/introduce/PDF.svg",
|
|
171
|
+
doc: "https://erphostjs.kye-erp.com/fms/fms-deposit-new/introduce/word-icon.png",
|
|
172
|
+
img: e.url,
|
|
173
|
+
video: "https://erphostjs.kye-erp.com/fms/fms-deposit-new/introduce/video-icon.webp"
|
|
174
|
+
}, s = this.getFileType(e);
|
|
175
|
+
return t[s] || t.pdf;
|
|
176
|
+
},
|
|
177
|
+
async getFileFromAlbum() {
|
|
178
|
+
const e = window.vant.Toast.loading({ forbidClick: !0, duration: 0 });
|
|
179
|
+
try {
|
|
180
|
+
const t = {
|
|
181
|
+
totalCount: this.limit,
|
|
182
|
+
usedOriginal: !0
|
|
183
|
+
};
|
|
184
|
+
T ? t.presetName = "1280" : t.ratioOfCompressionOfVideoResolution = "0";
|
|
185
|
+
const s = await window.ks.callFunc({
|
|
186
|
+
method: "pickAssets",
|
|
187
|
+
params: r(this, "getNativeFnParams", "pickAssets", t) || t
|
|
188
|
+
});
|
|
189
|
+
this.uploadFile(s);
|
|
190
|
+
} finally {
|
|
191
|
+
e.type === "loading" && window.vant.Toast.clear();
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
async getFileFromFolder() {
|
|
195
|
+
const e = window.vant.Toast.loading({ forbidClick: !0, duration: 0 });
|
|
196
|
+
try {
|
|
197
|
+
const t = await window.ks.callFunc({
|
|
198
|
+
method: "pickerSystemFile",
|
|
199
|
+
params: r(this, "getNativeFnParams", "pickerSystemFile", {}) || {}
|
|
200
|
+
});
|
|
201
|
+
this.uploadFile([t]);
|
|
202
|
+
} finally {
|
|
203
|
+
e.type === "loading" && window.vant.Toast.clear();
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
async getFileFromCamera() {
|
|
207
|
+
const e = {
|
|
208
|
+
take_photo_or_record_or_both: 2
|
|
209
|
+
}, t = await window.ks.callFunc({
|
|
210
|
+
method: "takeByCamera",
|
|
211
|
+
params: r(this, "getNativeFnParams", "takeByCamera", e) || e
|
|
212
|
+
});
|
|
213
|
+
this.uploadFile(t);
|
|
214
|
+
},
|
|
215
|
+
validateLimit(e) {
|
|
216
|
+
const t = e.length + this.fileList.length > this.limit;
|
|
217
|
+
return t && window.vant.Toast(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${this.limit}\u4E2A\u6587\u4EF6`), t;
|
|
218
|
+
},
|
|
219
|
+
validateFileType(e) {
|
|
220
|
+
const { accept: t } = this;
|
|
221
|
+
if (!t.length)
|
|
222
|
+
return !1;
|
|
223
|
+
const s = e.some((i) => !t.some(
|
|
224
|
+
(a) => a.toLowerCase() === i.extendName.toLowerCase()
|
|
225
|
+
));
|
|
226
|
+
return s && window.vant.Toast(`\u53EA\u80FD\u4E0A\u4F20${t.join("\u3001")}\u683C\u5F0F\u7684\u6587\u4EF6`), s;
|
|
227
|
+
},
|
|
228
|
+
validateMaxSize(e) {
|
|
229
|
+
const { maxSize: t } = this;
|
|
230
|
+
if (!t)
|
|
231
|
+
return !1;
|
|
232
|
+
const s = e.some((i) => +i.fileSize > t * 1024 * 1024);
|
|
233
|
+
return s && window.vant.Toast(`\u6700\u5927\u53EA\u80FD\u4E0A\u4F20${t}M`), s;
|
|
234
|
+
},
|
|
235
|
+
async beforeUploadFn(e) {
|
|
236
|
+
const t = [
|
|
237
|
+
this.validateLimit,
|
|
238
|
+
this.validateFileType,
|
|
239
|
+
this.validateMaxSize,
|
|
240
|
+
this.beforeUpload
|
|
241
|
+
];
|
|
242
|
+
for (let s of t) {
|
|
243
|
+
if (typeof s != "function")
|
|
244
|
+
continue;
|
|
245
|
+
if (await s(e))
|
|
246
|
+
return !0;
|
|
247
|
+
}
|
|
248
|
+
return !1;
|
|
249
|
+
},
|
|
250
|
+
async uploadToTencent(e) {
|
|
251
|
+
const t = await this.getUploadToken();
|
|
252
|
+
t.uploadId || (t.uploadId = this.uploadId);
|
|
253
|
+
const s = e.map(async (o) => {
|
|
254
|
+
const l = `resource/upload/deposit/${process.env.NODE_ENV}/${Date.now()}/${o.fileName}`, n = {
|
|
255
|
+
srcPath: o.filePath,
|
|
256
|
+
cosPath: l,
|
|
257
|
+
...t
|
|
258
|
+
}, h = r(this, "getNativeFnParams", "uploadTencentCos", n, o) || n;
|
|
259
|
+
return ks.callFunc({ method: "uploadTencentCos", params: h }).then((m) => ({
|
|
260
|
+
url: m,
|
|
261
|
+
extendName: o.extendName,
|
|
262
|
+
size: o.fileSize,
|
|
263
|
+
name: o.fileName,
|
|
264
|
+
cosPath: l
|
|
265
|
+
}));
|
|
266
|
+
});
|
|
267
|
+
window.vant.Toast.loading({ forbidClick: !0, duration: 0 });
|
|
268
|
+
const i = await Promise.allSettled(s);
|
|
269
|
+
window.vant.Toast.clear();
|
|
270
|
+
const a = i.filter((o) => o.status === "fulfilled").map((o) => o.value);
|
|
271
|
+
this.fileList = [...this.fileList, ...a];
|
|
272
|
+
},
|
|
273
|
+
async getBizId() {
|
|
274
|
+
this.insetBizId || (this.insetBizId = await this.$http("system.idcenter.get", "10147", {
|
|
275
|
+
random: Math.random()
|
|
276
|
+
}));
|
|
277
|
+
},
|
|
278
|
+
async uploadToKye(e) {
|
|
279
|
+
await this.getBizId();
|
|
280
|
+
const t = this.fileList.map((i) => i.id).reduce((i, a, o) => (i[a] = o + 1, i), {}), s = await window.ks.callFunc({
|
|
281
|
+
method: "uploadAssets",
|
|
282
|
+
params: {
|
|
283
|
+
filePaths: e.map((i) => i.filePath),
|
|
284
|
+
fileNames: e.map((i) => i.fileName),
|
|
285
|
+
bizCode: this.bizCode,
|
|
286
|
+
bizId: this.insetBizId
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
this.fileList = s.sort((i, a) => {
|
|
290
|
+
const o = t[i.id] || Number.MAX_SAFE_INTEGER, l = t[a.id] || Number.MAX_SAFE_INTEGER;
|
|
291
|
+
return o - l;
|
|
292
|
+
});
|
|
293
|
+
},
|
|
294
|
+
async uploadFile(e) {
|
|
295
|
+
const t = (a) => {
|
|
296
|
+
const { filePath: o } = a, l = o.lastIndexOf(".");
|
|
297
|
+
let n = l > -1 ? o.slice(l) : "";
|
|
298
|
+
n = n.toLowerCase(), a.extendName = n.slice(1), a.fileName.endsWith(n) || (a.fileName += n);
|
|
299
|
+
};
|
|
300
|
+
if (e.forEach(t), await this.beforeUploadFn(e))
|
|
301
|
+
return;
|
|
302
|
+
const i = {
|
|
303
|
+
[c.KYE]: this.uploadToKye,
|
|
304
|
+
[c.TENCENT]: this.uploadToTencent
|
|
305
|
+
};
|
|
306
|
+
r(i, this.mode, e);
|
|
307
|
+
},
|
|
308
|
+
onActionSelect(e) {
|
|
309
|
+
r(this.actionFnMap, e.id), this.isShowAction = !1;
|
|
310
|
+
},
|
|
311
|
+
async chooseSelectMode() {
|
|
312
|
+
if (this.disabled)
|
|
313
|
+
return;
|
|
314
|
+
const { beforeActionSheetShow: e } = this;
|
|
315
|
+
if (!(e && await e())) {
|
|
316
|
+
if (this.actions.length !== 1) {
|
|
317
|
+
this.isShowAction = !0;
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
r(this.actionFnMap, this.actions[0].id);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
var C = function() {
|
|
326
|
+
var t = this, s = t._self._c;
|
|
327
|
+
return s(t.component, t._b({ tag: "component", staticClass: "uploader-wrapper" }, "component", t.attrs, !1), [t._l(t.fileList, function(i, a) {
|
|
328
|
+
return s("div", { key: i.url, staticClass: "preview-item" }, [s("img", { class: { pdf: t.getFileType(i) === "pdf" }, attrs: { src: t.getImg(i), alt: "img" } }), t.disabled ? t._e() : s("div", { staticClass: "close-icon", on: { click: function(o) {
|
|
329
|
+
return o.preventDefault(), t.onDeleteFile(i, a);
|
|
330
|
+
} } }), t.isImage(i) ? t._e() : s("div", { staticClass: "preview-text" }, [t._v(" " + t._s(i.name) + " ")])]);
|
|
331
|
+
}), t.isHideUploadBtn ? t._e() : s("div", { staticClass: "upload-button", on: { click: t.chooseSelectMode } }, [s("van-icon", { attrs: { name: "plus" } })], 1), s("van-action-sheet", { attrs: { actions: t.actions }, on: { select: t.onActionSelect }, model: { value: t.isShowAction, callback: function(i) {
|
|
332
|
+
t.isShowAction = i;
|
|
333
|
+
}, expression: "isShowAction" } })], 2);
|
|
334
|
+
}, _ = [], k = /* @__PURE__ */ w(
|
|
335
|
+
B,
|
|
336
|
+
C,
|
|
337
|
+
_,
|
|
338
|
+
!1,
|
|
339
|
+
null,
|
|
340
|
+
"9a268dac",
|
|
341
|
+
null,
|
|
342
|
+
null
|
|
343
|
+
);
|
|
344
|
+
const f = k.exports;
|
|
345
|
+
f.install = function(e) {
|
|
346
|
+
e.component(f.name, f);
|
|
347
|
+
};
|
|
348
|
+
export {
|
|
349
|
+
f as default
|
|
350
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.uploader-wrapper[data-v-9a268dac]{display:grid;grid-template-columns:repeat(auto-fill,52px);grid-auto-rows:52px;flex:1;border-radius:4px;gap:12px}.upload-button[data-v-9a268dac]{width:52px;height:52px;border-radius:4px;border:1px dashed #e3e3e8;display:grid;place-items:center}.preview-item[data-v-9a268dac]{border-radius:4px;position:relative;background:#f7f8fa}.preview-item img[data-v-9a268dac]{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}.preview-item img.pdf[data-v-9a268dac]{width:26px;height:26px;margin:12px auto auto}[data-v-9a268dac] .van-uploader{padding:0}.close-icon[data-v-9a268dac]{position:absolute;right:0;top:-1px;transform:translate(50%);border:1px solid #fff;background:#b0b3bf;width:14px;height:14px;border-radius:50%}.close-icon[data-v-9a268dac]:before,.close-icon[data-v-9a268dac]:after{content:"";display:block;width:60%;margin:auto;height:2px;border-radius:999px;background:#fff;position:absolute;top:50%;left:50%}.close-icon[data-v-9a268dac]:before{transform:translate(-50%,-50%) rotate(45deg);transform-origin:center center}.close-icon[data-v-9a268dac]:after{transform:translate(-50%,-50%) rotate(-45deg);transform-origin:center center}.preview-text[data-v-9a268dac]{line-height:12px;background:rgba(0,0,0,.5);border-radius:0 0 4px 4px;font-size:8px;color:#fff;position:absolute;bottom:0;left:0;right:0;padding:0 4px;text-align:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
|
package/dist/index.js
CHANGED
|
@@ -1,40 +1,77 @@
|
|
|
1
1
|
import './fms-copy-box/style.css';
|
|
2
|
-
import
|
|
3
|
-
import { default as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import m from "./fms-copy-box/index.js";
|
|
3
|
+
import { default as _ } from "./fms-copy-box/index.js";
|
|
4
|
+
import "./fms-ks-clamp-text/index.js";
|
|
5
|
+
import s from "./fms-ks-more-lines/index.js";
|
|
6
|
+
import { default as oo } from "./fms-ks-more-lines/index.js";
|
|
7
|
+
import t from "./fms-ks-page-popup/index.js";
|
|
8
|
+
import { default as mo } from "./fms-ks-page-popup/index.js";
|
|
9
|
+
import "./fms-ks-select/index.js";
|
|
10
|
+
import "./fms-ks-select-box/index.js";
|
|
11
|
+
import e from "./fms-ks-block-title/index.js";
|
|
12
|
+
import { default as to } from "./fms-ks-block-title/index.js";
|
|
13
|
+
import p from "./fms-ks-warn-drawer/index.js";
|
|
14
|
+
import { default as po } from "./fms-ks-warn-drawer/index.js";
|
|
15
|
+
import a from "./fms-empty/index.js";
|
|
16
|
+
import { default as Fo } from "./fms-empty/index.js";
|
|
6
17
|
import "./fms-ks-decrypt/index.js";
|
|
7
|
-
import
|
|
8
|
-
import { default as
|
|
9
|
-
import
|
|
10
|
-
import { default as
|
|
11
|
-
import
|
|
12
|
-
import { default as
|
|
13
|
-
import
|
|
14
|
-
import { default as
|
|
18
|
+
import F from "./fms-ks-file-upload/index.js";
|
|
19
|
+
import { default as io } from "./fms-ks-file-upload/index.js";
|
|
20
|
+
import f from "./fms-ks-file-view/index.js";
|
|
21
|
+
import { default as xo } from "./fms-ks-file-view/index.js";
|
|
22
|
+
import i from "./fms-scroll-list/index.js";
|
|
23
|
+
import { default as co } from "./fms-scroll-list/index.js";
|
|
24
|
+
import l from "./fms-ks-form-grid/index.js";
|
|
25
|
+
import { default as no } from "./fms-ks-form-grid/index.js";
|
|
15
26
|
import "./fms-ks-search-tips/index.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
import "./fms-ks-search-tips-new/index.js";
|
|
28
|
+
import x from "./fms-ks-upload/index.js";
|
|
29
|
+
import { default as To } from "./fms-ks-upload/index.js";
|
|
30
|
+
import "./fms-ks-picker/index.js";
|
|
31
|
+
import { default as yo } from "./fms-ks-uploader/index.js";
|
|
32
|
+
import K from "./fms-approval-header/index.js";
|
|
33
|
+
import { default as Po } from "./fms-approval-header/index.js";
|
|
34
|
+
import { F as d } from "./fms-ks-clamp-text.29353cc2.js";
|
|
35
|
+
import { F as Uo } from "./fms-ks-clamp-text.29353cc2.js";
|
|
36
|
+
import { F as c } from "./fms-ks-select.002b6536.js";
|
|
37
|
+
import { F as Co } from "./fms-ks-select.002b6536.js";
|
|
38
|
+
import { F as u } from "./fms-ks-select-box.b75cf9d8.js";
|
|
39
|
+
import { F as Lo } from "./fms-ks-select-box.b75cf9d8.js";
|
|
40
|
+
import { F as n } from "./fms-ks-decrypt.e9bc1873.js";
|
|
41
|
+
import { F as go } from "./fms-ks-decrypt.e9bc1873.js";
|
|
42
|
+
import { F as S } from "./fms-ks-search-tips.d36859c3.js";
|
|
43
|
+
import { F as Ao } from "./fms-ks-search-tips.d36859c3.js";
|
|
44
|
+
import { F as T } from "./fms-ks-search-tips-new.d68b86e6.js";
|
|
45
|
+
import { F as Ho } from "./fms-ks-search-tips-new.d68b86e6.js";
|
|
46
|
+
import { F as w } from "./fms-ks-picker.766b55f9.js";
|
|
47
|
+
import { F as No } from "./fms-ks-picker.766b55f9.js";
|
|
48
|
+
const y = [m, d, s, t, c, u, e, p, a, n, F, f, i, l, S, x, T, w, K], B = function(r) {
|
|
49
|
+
y.forEach((o) => {
|
|
50
|
+
r.component(o.name, o);
|
|
25
51
|
});
|
|
26
|
-
},
|
|
27
|
-
install:
|
|
52
|
+
}, X = {
|
|
53
|
+
install: B
|
|
28
54
|
};
|
|
29
55
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
56
|
+
Po as FmsApprovalHeader,
|
|
57
|
+
_ as FmsCopyBox,
|
|
58
|
+
Fo as FmsEmpty,
|
|
59
|
+
to as FmsKsBlockTitle,
|
|
60
|
+
Uo as FmsKsClampText,
|
|
61
|
+
go as FmsKsDecrypt,
|
|
62
|
+
io as FmsKsFileUpload,
|
|
63
|
+
xo as FmsKsFileView,
|
|
64
|
+
no as FmsKsFormGrid,
|
|
65
|
+
oo as FmsKsMoreLines,
|
|
66
|
+
mo as FmsKsPagePopup,
|
|
67
|
+
No as FmsKsPicker,
|
|
68
|
+
Ao as FmsKsSearchTips,
|
|
69
|
+
Ho as FmsKsSearchTipsNew,
|
|
70
|
+
Co as FmsKsSelect,
|
|
71
|
+
Lo as FmsKsSelectBox,
|
|
72
|
+
To as FmsKsUpload,
|
|
73
|
+
yo as FmsKsUploader,
|
|
74
|
+
po as FmsKsWarnDrawer,
|
|
75
|
+
co as FmsScrollList,
|
|
76
|
+
X as default
|
|
40
77
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as s } from "./utils.159fba19.js";
|
|
2
|
-
import { D as a, a as n, M as r, b as i, W as l, Q as h, c as o } from "./fms-ks-components.
|
|
2
|
+
import { D as a, a as n, M as r, b as i, W as l, Q as h, c as o } from "./fms-ks-components.c4804aac.js";
|
|
3
3
|
const m = {
|
|
4
4
|
components: {
|
|
5
5
|
DateSelect: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ks-
|
|
1
|
+
.ks-month__day{width:16.666%;height:50px}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kyfe/fms-vue2-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@kyfe/decrypt": "^0.0.7",
|
|
24
|
-
"@kyfe/fms-utils": "
|
|
24
|
+
"@kyfe/fms-utils": "workspace:*",
|
|
25
25
|
"dayjs": "^1.11.13",
|
|
26
26
|
"vant": "2.5.6"
|
|
27
27
|
},
|