@web-utils/component 3.4.5 → 3.5.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/chat/index.mjs +1 -1
- package/chunks/{FormTemp.CJOJOy8K.mjs → FormTemp.BSpnNput.mjs} +4 -4
- package/chunks/confirmable-mixin.D4LAArE5.mjs +114 -0
- package/chunks/{dataformat.ARPY2U57.mjs → dataformat.B9UvztrQ.mjs} +7 -7
- package/chunks/{dic.DBmh9yzU.mjs → dic.CET0XdKP.mjs} +3 -3
- package/chunks/{event.mRPNW7Cx.mjs → event.BT1F_1vF.mjs} +6 -6
- package/chunks/{form-input-mixin.DMuQta5I.mjs → form-input-mixin.BkKiqJhi.mjs} +2 -2
- package/chunks/{form-item-mixin.CdcqXa2h.mjs → form-item-mixin.CG4ZwzMC.mjs} +1 -1
- package/chunks/{index.DwCBGcYk.mjs → index.MAFc4eFi.mjs} +4 -4
- package/chunks/{init.CauLYxJq.mjs → init.ofpxEyAI.mjs} +8 -8
- package/chunks/{util.BaRFvfAi.mjs → util.CoahLDYn.mjs} +7 -7
- package/code-mirror-editor/index.mjs +45 -45
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/dialog-form/index.mjs +1 -1
- package/e-charts/index.mjs +3 -3
- package/editable-tree/index.mjs +13 -13
- package/element-dialog/index.mjs +47 -27
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +1 -1
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/form-cascader/index.mjs +5 -5
- package/form-checkbox-group/index.mjs +2 -2
- package/form-date-picker/index.mjs +2 -2
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +2 -2
- package/form-input-email/index.mjs +2 -2
- package/form-input-id-card/index.mjs +2 -2
- package/form-input-number/index.mjs +2 -2
- package/form-input-phone-number/index.mjs +2 -2
- package/form-input-tag/index.mjs +2 -2
- package/form-input-time/index.mjs +2 -2
- package/form-item/index.mjs +1 -1
- package/form-radio-group/index.mjs +2 -2
- package/form-select/index.mjs +2 -2
- package/form-switch/index.mjs +2 -2
- package/form-textarea/index.mjs +2 -2
- package/form-view/index.mjs +3 -3
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +9 -9
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +1 -1
- package/fy-dynamic/index.mjs +2 -2
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +14 -14
- package/fy-form-design/index.mjs +1 -1
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +1 -1
- package/fy-input-map/index.mjs +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +1 -1
- package/fy-input-tree/style.css +1 -1
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +3 -3
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +2 -2
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/index.mjs +450 -453
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/package.json +15 -15
- package/page-index/index.mjs +1 -1
- package/page-index-top/index.mjs +1 -1
- package/pageable-table/index.mjs +3 -3
- package/pageable-view/index.mjs +3 -3
- package/present-view/index.mjs +3 -3
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +4 -4
- package/sign/index.mjs +1 -1
- package/table-view/index.mjs +6 -6
- package/text-ellipsis/index.mjs +1 -1
- package/verify/index.mjs +1 -1
- package/vue-tree-select/style.css +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +4 -13
- package/chunks/confirmable-mixin.D2KW-Qlc.mjs +0 -116
- package/emulate-form/index.mjs +0 -25
package/fy-curd/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { p as $ } from "../chunks/packages.CWPkeLu9.mjs";
|
|
2
2
|
import { p as x } from "../chunks/permission.CO31YIkD.mjs";
|
|
3
|
-
import { i as O } from "../chunks/init.
|
|
4
|
-
import { g as F,
|
|
5
|
-
import { o as h, j as C, d as a, u as B,
|
|
3
|
+
import { i as O } from "../chunks/init.ofpxEyAI.mjs";
|
|
4
|
+
import { g as F, f as k, t as I, c as E } from "../chunks/dataformat.B9UvztrQ.mjs";
|
|
5
|
+
import { o as h, j as C, d as a, u as B, D as b, k as P, i as D, l as T, s as z } from "../chunks/util.CoahLDYn.mjs";
|
|
6
6
|
import { isBlank as c } from "@web-utils/core";
|
|
7
7
|
import { s as M } from "../chunks/slot.DXIbhGat.mjs";
|
|
8
8
|
import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
9
|
-
import { F as L, d as w } from "../chunks/FormTemp.
|
|
10
|
-
import { s as V } from "../chunks/dic.
|
|
9
|
+
import { F as L, d as w } from "../chunks/FormTemp.BSpnNput.mjs";
|
|
10
|
+
import { s as V } from "../chunks/dic.CET0XdKP.mjs";
|
|
11
11
|
import R from "../icon-temp/index.mjs";
|
|
12
12
|
import "../icon-temp/style.css";
|
|
13
13
|
const p = {
|
|
@@ -380,7 +380,7 @@ const X = q.exports, y = {}, J = {
|
|
|
380
380
|
optVal: h,
|
|
381
381
|
uploadFun: B,
|
|
382
382
|
isMediaType(t, e) {
|
|
383
|
-
return
|
|
383
|
+
return D(t, e);
|
|
384
384
|
},
|
|
385
385
|
vaildLabel(t, e, i) {
|
|
386
386
|
if (t.rules && e.$cellEdit)
|
|
@@ -416,7 +416,7 @@ const X = q.exports, y = {}, J = {
|
|
|
416
416
|
},
|
|
417
417
|
corArray(t, e) {
|
|
418
418
|
let i = this.handleDetail(t, e);
|
|
419
|
-
return Array.isArray(i) || (i = c(i) ? [] : i.split(
|
|
419
|
+
return Array.isArray(i) || (i = c(i) ? [] : i.split(P)), a(i);
|
|
420
420
|
},
|
|
421
421
|
openImg(t, e, i) {
|
|
422
422
|
let n = this.getImgList(t, e);
|
|
@@ -1461,7 +1461,7 @@ const We = je.exports, Ke = {
|
|
|
1461
1461
|
Array.isArray(n.children) ? e(n.children) : t.push(n);
|
|
1462
1462
|
});
|
|
1463
1463
|
}
|
|
1464
|
-
return e(this.columnOption), t =
|
|
1464
|
+
return e(this.columnOption), t = E(t), t;
|
|
1465
1465
|
},
|
|
1466
1466
|
isShowSummary() {
|
|
1467
1467
|
return this.option.showSummary;
|
|
@@ -1675,7 +1675,7 @@ const We = je.exports, Ke = {
|
|
|
1675
1675
|
},
|
|
1676
1676
|
// 单元格新增
|
|
1677
1677
|
rowCellAdd(t = {}) {
|
|
1678
|
-
const e = this.list.length, i =
|
|
1678
|
+
const e = this.list.length, i = k(this.propOption).tableForm;
|
|
1679
1679
|
t = a(
|
|
1680
1680
|
Object.assign(
|
|
1681
1681
|
{
|
package/fy-date/index.mjs
CHANGED
package/fy-draggable/index.mjs
CHANGED
package/fy-dynamic/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as d, e as u } from "../chunks/event.
|
|
2
|
-
import {
|
|
1
|
+
import { p as d, e as u } from "../chunks/event.BT1F_1vF.mjs";
|
|
2
|
+
import { d as l, o } from "../chunks/util.CoahLDYn.mjs";
|
|
3
3
|
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
4
|
const h = {
|
|
5
5
|
name: "FyDynamic",
|
package/fy-empty/index.mjs
CHANGED
package/fy-form/index.mjs
CHANGED
|
@@ -14,11 +14,11 @@ var D = (i, e, r) => new Promise((s, p) => {
|
|
|
14
14
|
}, a = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(t, l);
|
|
15
15
|
a((r = r.apply(i, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { F as P, d as z } from "../chunks/FormTemp.
|
|
18
|
-
import { i as B } from "../chunks/init.
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { s as q } from "../chunks/dic.
|
|
17
|
+
import { F as P, d as z } from "../chunks/FormTemp.BSpnNput.mjs";
|
|
18
|
+
import { i as B } from "../chunks/init.ofpxEyAI.mjs";
|
|
19
|
+
import { u as j, d as x, s as v, j as S, x as I, o as L, D as V, y as M, p as A } from "../chunks/util.CoahLDYn.mjs";
|
|
20
|
+
import { a as W, b as R, f as G, d as H, c as U } from "../chunks/dataformat.B9UvztrQ.mjs";
|
|
21
|
+
import { s as q } from "../chunks/dic.CET0XdKP.mjs";
|
|
22
22
|
import { p as K } from "../chunks/packages.CWPkeLu9.mjs";
|
|
23
23
|
import { isBlank as u } from "@web-utils/core";
|
|
24
24
|
import { n as $ } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
@@ -312,8 +312,8 @@ const ae = se.exports, oe = {
|
|
|
312
312
|
column: r
|
|
313
313
|
}), e.forEach((s) => {
|
|
314
314
|
s.column = s.column || [], s.column.forEach((p, t) => {
|
|
315
|
-
p.display !== !1 && !this.isMobile && (p =
|
|
316
|
-
}), s.column =
|
|
315
|
+
p.display !== !1 && !this.isMobile && (p = H(p, this.itemSpanDefault, t === 0));
|
|
316
|
+
}), s.column = U(s.column), s.column = s.column.sort((p, t) => (t.order || 0) - (p.order || 0));
|
|
317
317
|
}), e;
|
|
318
318
|
},
|
|
319
319
|
menuPosition: function() {
|
|
@@ -381,8 +381,8 @@ const ae = se.exports, oe = {
|
|
|
381
381
|
methods: {
|
|
382
382
|
setPx: v,
|
|
383
383
|
deepClone: x,
|
|
384
|
-
getComponent:
|
|
385
|
-
getPlaceholder:
|
|
384
|
+
getComponent: R,
|
|
385
|
+
getPlaceholder: W,
|
|
386
386
|
uploadFun: j,
|
|
387
387
|
getDisabled(i) {
|
|
388
388
|
return this.vaildDetail(i) || this.isDetail || this.vaildDisabled(i) || this.allDisabled;
|
|
@@ -395,7 +395,7 @@ const ae = se.exports, oe = {
|
|
|
395
395
|
},
|
|
396
396
|
// 初始化表单
|
|
397
397
|
dataFormat() {
|
|
398
|
-
const i =
|
|
398
|
+
const i = G(this.propOption).tableForm, e = this.value, r = {};
|
|
399
399
|
Object.entries(Object.assign(i, e)).forEach((s) => {
|
|
400
400
|
const p = s[0], t = s[1];
|
|
401
401
|
u(e[p]) ? r[p] = t : r[p] = e[p];
|
|
@@ -410,11 +410,11 @@ const ae = se.exports, oe = {
|
|
|
410
410
|
const p = [];
|
|
411
411
|
if (r) {
|
|
412
412
|
const t = this.$watch(`form.${e}`, (a, o) => {
|
|
413
|
-
a !== o &&
|
|
413
|
+
a !== o && M(this.form, r, a);
|
|
414
414
|
}), l = this.$watch(`form.${r}`, (a, o) => {
|
|
415
415
|
a !== o && this.$set(this.form, e, a);
|
|
416
416
|
});
|
|
417
|
-
p.push(t), p.push(l), this.$set(this.form, e,
|
|
417
|
+
p.push(t), p.push(l), this.$set(this.form, e, A(this.form, r));
|
|
418
418
|
}
|
|
419
419
|
if (s) {
|
|
420
420
|
const t = () => {
|
|
@@ -533,7 +533,7 @@ const ae = se.exports, oe = {
|
|
|
533
533
|
// 验证表单是否显隐
|
|
534
534
|
vaildDisplay(i) {
|
|
535
535
|
let e;
|
|
536
|
-
return u(i.display) ? this.isAdd ? e = "addDisplay" : this.isEdit ? e = "editDisplay" : this.isView && (e = "viewDisplay") : e = "display", e ?
|
|
536
|
+
return u(i.display) ? this.isAdd ? e = "addDisplay" : this.isEdit ? e = "editDisplay" : this.isView && (e = "viewDisplay") : e = "display", e ? L(i[e], !0) : !0;
|
|
537
537
|
},
|
|
538
538
|
clearValidate(i) {
|
|
539
539
|
return D(this, null, function* () {
|
|
@@ -568,7 +568,7 @@ const ae = se.exports, oe = {
|
|
|
568
568
|
resetForm(i = !0) {
|
|
569
569
|
if (i) {
|
|
570
570
|
const e = this.propOption.map((r) => r.prop);
|
|
571
|
-
this.form =
|
|
571
|
+
this.form = I(this.form, e, (this.tableOption.filterParams || []).concat([this.rowKey]));
|
|
572
572
|
}
|
|
573
573
|
this.$nextTick(() => {
|
|
574
574
|
this.clearValidate(), this.$emit("reset-change");
|
package/fy-form-design/index.mjs
CHANGED
|
@@ -29,7 +29,7 @@ import { isBlank as C } from "@web-utils/core";
|
|
|
29
29
|
import b from "../monaco-editor/index.mjs";
|
|
30
30
|
import g from "vuedraggable";
|
|
31
31
|
import { c as _ } from "../chunks/json-beautifier.j1-U5g4P.mjs";
|
|
32
|
-
import { d as m, z as h } from "../chunks/util.
|
|
32
|
+
import { d as m, z as h } from "../chunks/util.CoahLDYn.mjs";
|
|
33
33
|
import { cloneDeep as v } from "@web-utils/integrations/lodash";
|
|
34
34
|
import "../fy-u-editor/style.css";
|
|
35
35
|
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
package/fy-input/index.mjs
CHANGED
package/fy-input-color/index.mjs
CHANGED
package/fy-input-icon/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as s, e as l } from "../chunks/event.
|
|
1
|
+
import { p as s, e as l } from "../chunks/event.BT1F_1vF.mjs";
|
|
2
2
|
import a from "../icon-temp/index.mjs";
|
|
3
3
|
import "../icon-temp/style.css";
|
|
4
4
|
import { n as r } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
package/fy-input-map/index.mjs
CHANGED
package/fy-input-table/index.mjs
CHANGED
package/fy-input-tree/index.mjs
CHANGED
package/fy-input-tree/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.avue-input-tree .el-tag__close{display:none!important}.avue-input-tree__dropdown{background-color:#fff;
|
|
1
|
+
.avue-input-tree .el-tag__close{display:none!important}.avue-input-tree__dropdown{background-color:#fff;min-height:300px;max-height:600px;padding:0 10px;overflow:visible}.avue-input-tree__dropdown:hover,.avue-input-tree__dropdown.hover{background-color:#fff}.avue-input-tree__item{width:100%}.avue-input-tree__filter{margin:5px 0 0;padding:0 10px}.avue-input-tree__select{padding:10px 0}.avue-input-tree__desc{float:right;color:#8492a6;margin-right:12px;font-size:13px}
|
package/fy-radio/index.mjs
CHANGED
package/fy-rate/index.mjs
CHANGED
package/fy-select/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as i, e as r } from "../chunks/event.
|
|
2
|
-
import { s as c } from "../chunks/dic.
|
|
3
|
-
import { b as d } from "../chunks/util.
|
|
1
|
+
import { p as i, e as r } from "../chunks/event.BT1F_1vF.mjs";
|
|
2
|
+
import { s as c } from "../chunks/dic.CET0XdKP.mjs";
|
|
3
|
+
import { b as d } from "../chunks/util.CoahLDYn.mjs";
|
|
4
4
|
import { isBlank as p } from "@web-utils/core";
|
|
5
5
|
import { p as u } from "../chunks/packages.CWPkeLu9.mjs";
|
|
6
6
|
import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
package/fy-slider/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as s, e as n } from "../chunks/event.
|
|
2
|
-
import { s as r } from "../chunks/util.
|
|
1
|
+
import { p as s, e as n } from "../chunks/event.BT1F_1vF.mjs";
|
|
2
|
+
import { s as r } from "../chunks/util.CoahLDYn.mjs";
|
|
3
3
|
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
4
|
const l = {
|
|
5
5
|
name: "FySlider",
|
package/fy-switch/index.mjs
CHANGED
package/fy-time/index.mjs
CHANGED
package/fy-title/index.mjs
CHANGED
package/fy-tree/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as l, D as r, s as d } from "../chunks/util.CoahLDYn.mjs";
|
|
2
2
|
import { p as h } from "../chunks/permission.CO31YIkD.mjs";
|
|
3
3
|
import { isBlank as u } from "@web-utils/core";
|
|
4
4
|
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
package/fy-u-editor/index.mjs
CHANGED
|
@@ -28,7 +28,7 @@ var u = (e, t, r) => new Promise((o, i) => {
|
|
|
28
28
|
});
|
|
29
29
|
import "@wangeditor/editor/dist/css/style.css";
|
|
30
30
|
import { createEditor as v, createToolbar as A } from "@wangeditor/editor";
|
|
31
|
-
import { p as O } from "../chunks/util.
|
|
31
|
+
import { p as O } from "../chunks/util.CoahLDYn.mjs";
|
|
32
32
|
import { n as _ } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
33
33
|
const w = (e) => {
|
|
34
34
|
const { region: t, endpoint: r, accessKeyId: o, accessKeySecret: i, bucket: n } = e;
|
package/fy-upload/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as R, e as I } from "../chunks/event.
|
|
2
|
-
import { B, i as F, p as N } from "../chunks/util.
|
|
1
|
+
import { p as R, e as I } from "../chunks/event.BT1F_1vF.mjs";
|
|
2
|
+
import { B, i as F, p as N } from "../chunks/util.CoahLDYn.mjs";
|
|
3
3
|
import { p as A } from "../chunks/packages.CWPkeLu9.mjs";
|
|
4
4
|
import { isBlank as b } from "@web-utils/core";
|
|
5
5
|
import { n as K } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
package/image-cropper/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ var s = (o, e, t) => e in o ? p(o, e, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
l.call(e, t) && s(o, t, e[t]);
|
|
10
10
|
return o;
|
|
11
11
|
};
|
|
12
|
-
import { B as u } from "../chunks/util.
|
|
12
|
+
import { B as u } from "../chunks/util.CoahLDYn.mjs";
|
|
13
13
|
import { VueCropper as f } from "vue-cropper";
|
|
14
14
|
import m from "vue";
|
|
15
15
|
import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
package/image-preview/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ var r = (i, e, t) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
v.call(e, t) && r(i, t, e[t]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
import { i as p } from "../chunks/util.
|
|
12
|
+
import { i as p } from "../chunks/util.CoahLDYn.mjs";
|
|
13
13
|
import { setPx as u } from "@web-utils/core";
|
|
14
14
|
import _ from "vue";
|
|
15
15
|
import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|