@web-utils/component 3.3.17 → 3.3.18
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.D8cHwam4.mjs → FormTemp.CJOJOy8K.mjs} +7 -6
- package/chunks/{dataformat.skVZSF57.mjs → dataformat.ARPY2U57.mjs} +5 -9
- package/chunks/{dic.28d_-7EJ.mjs → dic.DBmh9yzU.mjs} +1 -1
- package/chunks/{event.m1ZDHbkO.mjs → event.mRPNW7Cx.mjs} +2 -2
- package/chunks/{init.DBM2D2IY.mjs → init.CauLYxJq.mjs} +2 -2
- package/chunks/{json-beautifier.vs8mCOxd.mjs → json-beautifier.j1-U5g4P.mjs} +3 -6
- package/chunks/{util.B_LEdJSZ.mjs → util.BaRFvfAi.mjs} +1 -2
- package/code-mirror-editor/index.mjs +8 -16
- package/dialog-form/index.mjs +1 -1
- package/flow/index.mjs +1 -1
- package/flow-designer/index.mjs +5 -6
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +3 -2
- package/form-input-tag/index.mjs +7 -6
- package/form-view/index.mjs +3 -2
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +2 -3
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +16 -23
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +3 -5
- package/fy-dynamic/index.mjs +2 -2
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +10 -15
- package/fy-form-design/index.mjs +18 -28
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +2 -3
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +28 -27
- package/fy-input-map/index.mjs +3 -5
- 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-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 +8 -9
- package/fy-upload/index.mjs +2 -2
- package/image-cropper/index.mjs +35 -35
- package/image-preview/index.mjs +2 -3
- package/input-number/index.mjs +6 -12
- package/keyboard/index.mjs +1 -2
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +2 -3
- package/package.json +9 -9
- package/page-skeleton/index.mjs +15 -12
- package/present-view/index.mjs +3 -2
- package/record-video/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +3 -5
- package/split-pane/index.mjs +3 -2
- package/swiper/index.mjs +7 -6
- package/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/index.mjs +3 -6
- package/toolbar/index.mjs +3 -2
- package/verify/index.mjs +2 -3
- package/vue-cron/index.mjs +1 -2
- package/vue-tree-select/index.mjs +42 -75
- package/web-types.json +1 -1
package/fy-form-design/index.mjs
CHANGED
|
@@ -28,9 +28,10 @@ var y = (l, e, t) => new Promise((a, i) => {
|
|
|
28
28
|
import { isBlank as C } from "@web-utils/core";
|
|
29
29
|
import b from "../monaco-editor/index.mjs";
|
|
30
30
|
import g from "vuedraggable";
|
|
31
|
-
import { c as _ } from "../chunks/json-beautifier.
|
|
32
|
-
import { d as m, z as h } from "../chunks/util.
|
|
31
|
+
import { c as _ } from "../chunks/json-beautifier.j1-U5g4P.mjs";
|
|
32
|
+
import { d as m, z as h } from "../chunks/util.BaRFvfAi.mjs";
|
|
33
33
|
import { cloneDeep as v } from "@web-utils/integrations/lodash";
|
|
34
|
+
import "../fy-u-editor/style.css";
|
|
34
35
|
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
35
36
|
const E = [
|
|
36
37
|
{
|
|
@@ -552,8 +553,7 @@ const E = [
|
|
|
552
553
|
const l = Object.assign(m(this.item), this.params, {
|
|
553
554
|
size: this.item.size || "small",
|
|
554
555
|
dic: this.item.dicData ? this.item.dicData.map((t) => {
|
|
555
|
-
if (!this.item.props)
|
|
556
|
-
return t;
|
|
556
|
+
if (!this.item.props) return t;
|
|
557
557
|
const { label: a, value: i, desc: s } = this.item.props;
|
|
558
558
|
return !a || !i ? t : {
|
|
559
559
|
[a]: t.label,
|
|
@@ -1211,7 +1211,7 @@ var Te = function() {
|
|
|
1211
1211
|
ze,
|
|
1212
1212
|
!1,
|
|
1213
1213
|
null,
|
|
1214
|
-
"
|
|
1214
|
+
"befe1506"
|
|
1215
1215
|
);
|
|
1216
1216
|
const Pe = Re.exports, De = {
|
|
1217
1217
|
name: "ConfigSlider",
|
|
@@ -1481,8 +1481,7 @@ const Xe = Ye.exports, Ze = {
|
|
|
1481
1481
|
this.$refs.dialogForm.validate((l) => {
|
|
1482
1482
|
if (l) {
|
|
1483
1483
|
const { label: e, value: t } = this.dialogForm;
|
|
1484
|
-
if (this.$refs.tree.getNode(t))
|
|
1485
|
-
this.$message.error("value重复");
|
|
1484
|
+
if (this.$refs.tree.getNode(t)) this.$message.error("value重复");
|
|
1486
1485
|
else {
|
|
1487
1486
|
const i = this.selectData, s = {
|
|
1488
1487
|
label: e,
|
|
@@ -1565,7 +1564,7 @@ var et = function() {
|
|
|
1565
1564
|
tt,
|
|
1566
1565
|
!1,
|
|
1567
1566
|
null,
|
|
1568
|
-
"
|
|
1567
|
+
"e3a1f4c8"
|
|
1569
1568
|
);
|
|
1570
1569
|
const lt = at.exports, it = {
|
|
1571
1570
|
name: "ConfigDate",
|
|
@@ -2146,8 +2145,7 @@ const Ut = Ht.exports, Jt = {
|
|
|
2146
2145
|
},
|
|
2147
2146
|
handleOnLoad(l) {
|
|
2148
2147
|
const { url: e, method: t, needPage: a, currentPageKey: i, pageSizeKey: s, totalKey: o, recordsKey: r, resKey: n, auto: u } = l;
|
|
2149
|
-
if (!u)
|
|
2150
|
-
return;
|
|
2148
|
+
if (!u) return;
|
|
2151
2149
|
if (!e) {
|
|
2152
2150
|
this.onLoad = "(res, cb) => { }";
|
|
2153
2151
|
return;
|
|
@@ -2299,12 +2297,10 @@ const ea = Zt.exports, ta = ["year", "month", "week", "date", "datetime", "time"
|
|
|
2299
2297
|
},
|
|
2300
2298
|
methods: {
|
|
2301
2299
|
handleChangeType(l) {
|
|
2302
|
-
if (!l)
|
|
2303
|
-
return;
|
|
2300
|
+
if (!l) return;
|
|
2304
2301
|
let e;
|
|
2305
2302
|
for (const t of this.fields)
|
|
2306
|
-
if (e = t.list.find((a) => a.type === l), e)
|
|
2307
|
-
break;
|
|
2303
|
+
if (e = t.list.find((a) => a.type === l), e) break;
|
|
2308
2304
|
if (e)
|
|
2309
2305
|
for (const t in e)
|
|
2310
2306
|
e && Object.prototype.hasOwnProperty.call(e, t) && !["icon", "label", "span"].includes(t) && (this.data[t] = e[t]);
|
|
@@ -2670,8 +2666,7 @@ const oa = sa.exports, na = {
|
|
|
2670
2666
|
o.dicQueryConfig.forEach((n) => {
|
|
2671
2667
|
n.key && n.value && (r[n.key] = n.value);
|
|
2672
2668
|
}), o.dicQuery = r, delete o.dicQueryConfig;
|
|
2673
|
-
} else
|
|
2674
|
-
delete o.dicQueryConfig;
|
|
2669
|
+
} else delete o.dicQueryConfig;
|
|
2675
2670
|
delete o.dicOption;
|
|
2676
2671
|
} else if (["upload"].includes(o.type)) {
|
|
2677
2672
|
if (o.headersConfig && o.headersConfig.length > 0) {
|
|
@@ -2679,15 +2674,13 @@ const oa = sa.exports, na = {
|
|
|
2679
2674
|
o.headersConfig.forEach((n) => {
|
|
2680
2675
|
n.key && n.value && (r[n.key] = n.value);
|
|
2681
2676
|
}), o.headers = r;
|
|
2682
|
-
} else
|
|
2683
|
-
delete o.headers;
|
|
2677
|
+
} else delete o.headers;
|
|
2684
2678
|
if (delete o.headersConfig, o.dataConfig && o.dataConfig.length > 0) {
|
|
2685
2679
|
const r = {};
|
|
2686
2680
|
o.dataConfig.forEach((n) => {
|
|
2687
2681
|
n.key && n.value && (r[n.key] = n.value);
|
|
2688
2682
|
}), o.data = r;
|
|
2689
|
-
} else
|
|
2690
|
-
delete o.data;
|
|
2683
|
+
} else delete o.data;
|
|
2691
2684
|
delete o.dataConfig;
|
|
2692
2685
|
}
|
|
2693
2686
|
for (const r in o)
|
|
@@ -2748,8 +2741,7 @@ const oa = sa.exports, na = {
|
|
|
2748
2741
|
$cellEdit: !0
|
|
2749
2742
|
});
|
|
2750
2743
|
i.headersConfig = s;
|
|
2751
|
-
} else
|
|
2752
|
-
i.headersConfig = [];
|
|
2744
|
+
} else i.headersConfig = [];
|
|
2753
2745
|
if (i.data && typeof i.data == "object") {
|
|
2754
2746
|
const s = [];
|
|
2755
2747
|
for (const o in i.data)
|
|
@@ -2759,8 +2751,7 @@ const oa = sa.exports, na = {
|
|
|
2759
2751
|
$cellEdit: !0
|
|
2760
2752
|
});
|
|
2761
2753
|
i.dataConfig = s;
|
|
2762
|
-
} else
|
|
2763
|
-
i.dataConfig = [];
|
|
2754
|
+
} else i.dataConfig = [];
|
|
2764
2755
|
}
|
|
2765
2756
|
}), e.group && e.group.length > 0) {
|
|
2766
2757
|
for (let i = 0; i < e.group.length; i++) {
|
|
@@ -2795,8 +2786,7 @@ const oa = sa.exports, na = {
|
|
|
2795
2786
|
if (l === "app") {
|
|
2796
2787
|
const t = yield this.transformToAvueOptions(this.widgetForm);
|
|
2797
2788
|
return this.parseJson(t), t;
|
|
2798
|
-
} else
|
|
2799
|
-
return yield this.transformToAvueOptions(this.widgetForm);
|
|
2789
|
+
} else return yield this.transformToAvueOptions(this.widgetForm);
|
|
2800
2790
|
});
|
|
2801
2791
|
},
|
|
2802
2792
|
parseJson(l) {
|
|
@@ -2882,7 +2872,7 @@ var ra = function() {
|
|
|
2882
2872
|
null,
|
|
2883
2873
|
null
|
|
2884
2874
|
);
|
|
2885
|
-
const
|
|
2875
|
+
const ya = da.exports;
|
|
2886
2876
|
export {
|
|
2887
|
-
|
|
2877
|
+
ya as default
|
|
2888
2878
|
};
|
package/fy-form-design/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dic[data-v-31aa4f25]{margin-bottom:5px;display:flex}.el-tag[data-v-a9deb5ae]{vertical-align:top}.el-tag+.el-tag[data-v-a9deb5ae]{margin-left:5px}.input-new-tag[data-v-a9deb5ae]{vertical-align:bottom;width:90px;margin-left:5px}.color-picker[data-v-a9deb5ae]{vertical-align:top;left:10px}.custom-tree-node[data-v-a2df3d76]{flex:1;justify-content:space-between;align-items:center;padding-right:8px;font-size:14px;display:flex}.form-designer{background:#fff;outline:1px solid #e4e7ed;height:100%}.form-designer ::-webkit-scrollbar{width:0!important;height:0!important}.form-designer ::-webkit-scrollbar-track{background-color:transparent!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer ::-webkit-scrollbar-thumb{background-color:#fff!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer .fields-list{width:100%;height:100%;padding:10px 0}.form-designer .fields-list .field-title{padding:8px 12px;font-size:13px}.form-designer .fields-list ul{margin:0;padding:0 10px 10px;position:relative;overflow:hidden}.form-designer .fields-list .field-label{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:47%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label:hover{color:#409eff;border:1px dashed #409eff}.form-designer .fields-list .field-label>a{color:#333;cursor:move;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label>a span{vertical-align:middle;display:inline-block}.form-designer .fields-list .field-label-disabled{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:48%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label-disabled:hover{color:gray;border:1px dashed gray}.form-designer .fields-list .field-label-disabled>a{cursor:not-allowed;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label-disabled>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label-disabled>a span{vertical-align:middle;display:inline-block}.form-designer .widget-container{border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;flex:1}.form-designer .widget-container .widget-container-header{border-bottom:2px solid #e4e7ed;justify-content:space-between;align-items:center;display:flex;height:45px!important}.form-designer .widget-container .el-main{padding:0;position:relative}.form-designer .widget-form-container{height:100%;position:relative;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .el-form,.form-designer .widget-form-container .el-form .el-row{height:100%}.form-designer .widget-form-container .widget-form-list{height:100%;min-height:calc(100% - 45px);padding-bottom:50px;overflow-x:hidden;overflow-y:scroll}.form-designer .widget-form-container .widget-form-list .widget-form-item{border-left:5px solid transparent;min-height:30px;margin:0;padding:5px 10px 18px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-item:after{z-index:1001;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-item:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-item.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-delete{z-index:1002;position:absolute;bottom:-32px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-clone{z-index:1002;position:absolute;bottom:-32px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__content{outline-offset:-1px;outline:1px dashed #ccc;width:100%;height:100%;min-height:103px;padding:10px 5px;display:flex;overflow-y:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar{width:6px!important;height:6px!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar-thumb{background-color:#e5e7eb!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:90px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__item{width:33.3%;min-width:33.3%;height:100%;padding:1px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.required .el-table__header .cell:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-delete{z-index:1002;position:absolute;bottom:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone{z-index:1002;position:absolute;bottom:0;right:30px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone i{font-size:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .el-button--small.is-circle{padding:5px}.form-designer .widget-form-container .widget-form-list .widget-form-table.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .widget-form-group{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__head{margin:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group__body{outline-offset:-1px;outline:1px dashed #ccc;height:100%;min-height:150px;padding-bottom:15px;overflow:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-group__body .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:57px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-group__item{background:#fff;border-left:5px solid transparent;margin:3px;padding:10px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--delete{z-index:1002;position:absolute;bottom:-24px;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--clone{z-index:1002;position:absolute;bottom:-24px;right:34px}.form-designer .widget-form-container .widget-form-list .widget-form-group.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .iconfont{font-size:13px}.form-designer .widget-form-container .widget-form-list .el-button--small.is-circle{padding:7px}.form-designer .widget-form-container .ghost{box-sizing:border-box;content:"";background:#fff;border-top:5px solid #409eff;outline:0;width:100%;margin:2px 0;font-size:0;position:relative;overflow:hidden;height:0!important;padding:0!important}.form-designer .widget-config-container{height:100%;padding-top:5px}.form-designer .widget-config-container .el-tabs{height:100%}.form-designer .widget-config-container .el-tabs__header{z-index:1000;background:#fff;height:45px;margin:0}.form-designer .widget-config-container .el-tabs__content{height:calc(100% - 45px);overflow-y:scroll}.form-designer .widget-config-container .widget-config .el-tabs__header{margin:0;display:block;position:relative;top:0}.form-designer .widget-config-container .widget-config .el-tabs__content{margin-top:0}.form-designer .widget-config-container .widget-config .ghost{background:#fff;border:1px dashed #409eff}.form-designer .widget-config-container .widget-config ul{margin:0;padding:0}.form-designer .widget-config-container .widget-config ul li{align-items:center;width:100%;display:flex}.form-designer .widget-config-container .widget-config ul li .ghost{height:35px;font-size:0;list-style:none}.form-designer .widget-config-container .avue-group__item{padding:0}.form-designer .el-container{height:100%}.form-designer .el-container .el-main{height:calc(100% - 45px)}.form-designer .el-container .el-aside{background:#fff}.form-designer .danger{color:#f56c6c}.form-designer .warning{color:#e6a23c}.form-designer .el-input-number.is-controls-right .el-input-number__decrease{border-left:none}.form-designer .el-input-number.is-controls-right .el-input-number__increase{border-bottom:none;border-left:none}.form-designer .el-date-editor,.form-designer .el-cascader,.form-designer .el-select,.form-designer .el-input-number{width:100%}.form-designer .editor-fullscreen{z-index:1003;box-sizing:border-box;background:#fff;width:100%;padding:20px;top:0;bottom:0;left:0;right:0;height:100%!important;position:fixed!important}.form-designer .editor-fullscreen i{top:20px!important;left:25px!important}.afd-drawer-foot{padding:20px;display:flex;position:absolute;bottom:0;left:0;right:0}.afd-drawer-foot button{width:50%}.afd-drawer-foot>span{width:50%;display:inline-block}.afd-drawer-foot>span button{width:100%}.afd-preview-form{height:83vh;overflow-y:auto}
|
|
1
|
+
.dic[data-v-31aa4f25]{margin-bottom:5px;display:flex}.el-tag[data-v-befe1506]{vertical-align:top}.el-tag+.el-tag[data-v-befe1506]{margin-left:5px}.input-new-tag[data-v-befe1506]{vertical-align:bottom;width:90px;margin-left:5px}.color-picker[data-v-befe1506]{vertical-align:top;left:10px}.custom-tree-node[data-v-e3a1f4c8]{flex:1;justify-content:space-between;align-items:center;padding-right:8px;font-size:14px;display:flex}.form-designer{background:#fff;outline:1px solid #e4e7ed;height:100%}.form-designer ::-webkit-scrollbar{width:0!important;height:0!important}.form-designer ::-webkit-scrollbar-track{background-color:transparent!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer ::-webkit-scrollbar-thumb{background-color:#fff!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer .fields-list{width:100%;height:100%;padding:10px 0}.form-designer .fields-list .field-title{padding:8px 12px;font-size:13px}.form-designer .fields-list ul{margin:0;padding:0 10px 10px;position:relative;overflow:hidden}.form-designer .fields-list .field-label{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:47%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label:hover{color:#409eff;border:1px dashed #409eff}.form-designer .fields-list .field-label>a{color:#333;cursor:move;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label>a span{vertical-align:middle;display:inline-block}.form-designer .fields-list .field-label-disabled{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:48%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label-disabled:hover{color:gray;border:1px dashed gray}.form-designer .fields-list .field-label-disabled>a{cursor:not-allowed;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label-disabled>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label-disabled>a span{vertical-align:middle;display:inline-block}.form-designer .widget-container{border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;flex:1}.form-designer .widget-container .widget-container-header{border-bottom:2px solid #e4e7ed;justify-content:space-between;align-items:center;display:flex;height:45px!important}.form-designer .widget-container .el-main{padding:0;position:relative}.form-designer .widget-form-container{height:100%;position:relative;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .el-form,.form-designer .widget-form-container .el-form .el-row{height:100%}.form-designer .widget-form-container .widget-form-list{height:100%;min-height:calc(100% - 45px);padding-bottom:50px;overflow-x:hidden;overflow-y:scroll}.form-designer .widget-form-container .widget-form-list .widget-form-item{border-left:5px solid transparent;min-height:30px;margin:0;padding:5px 10px 18px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-item:after{z-index:1001;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-item:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-item.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-delete{z-index:1002;position:absolute;bottom:-32px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-clone{z-index:1002;position:absolute;bottom:-32px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__content{outline-offset:-1px;outline:1px dashed #ccc;width:100%;height:100%;min-height:103px;padding:10px 5px;display:flex;overflow-y:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar{width:6px!important;height:6px!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar-thumb{background-color:#e5e7eb!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:90px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__item{width:33.3%;min-width:33.3%;height:100%;padding:1px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.required .el-table__header .cell:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-delete{z-index:1002;position:absolute;bottom:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone{z-index:1002;position:absolute;bottom:0;right:30px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone i{font-size:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .el-button--small.is-circle{padding:5px}.form-designer .widget-form-container .widget-form-list .widget-form-table.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .widget-form-group{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__head{margin:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group__body{outline-offset:-1px;outline:1px dashed #ccc;height:100%;min-height:150px;padding-bottom:15px;overflow:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-group__body .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:57px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-group__item{background:#fff;border-left:5px solid transparent;margin:3px;padding:10px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--delete{z-index:1002;position:absolute;bottom:-24px;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--clone{z-index:1002;position:absolute;bottom:-24px;right:34px}.form-designer .widget-form-container .widget-form-list .widget-form-group.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .iconfont{font-size:13px}.form-designer .widget-form-container .widget-form-list .el-button--small.is-circle{padding:7px}.form-designer .widget-form-container .ghost{box-sizing:border-box;content:"";background:#fff;border-top:5px solid #409eff;outline:0;width:100%;margin:2px 0;font-size:0;position:relative;overflow:hidden;height:0!important;padding:0!important}.form-designer .widget-config-container{height:100%;padding-top:5px}.form-designer .widget-config-container .el-tabs{height:100%}.form-designer .widget-config-container .el-tabs__header{z-index:1000;background:#fff;height:45px;margin:0}.form-designer .widget-config-container .el-tabs__content{height:calc(100% - 45px);overflow-y:scroll}.form-designer .widget-config-container .widget-config .el-tabs__header{margin:0;display:block;position:relative;top:0}.form-designer .widget-config-container .widget-config .el-tabs__content{margin-top:0}.form-designer .widget-config-container .widget-config .ghost{background:#fff;border:1px dashed #409eff}.form-designer .widget-config-container .widget-config ul{margin:0;padding:0}.form-designer .widget-config-container .widget-config ul li{align-items:center;width:100%;display:flex}.form-designer .widget-config-container .widget-config ul li .ghost{height:35px;font-size:0;list-style:none}.form-designer .widget-config-container .avue-group__item{padding:0}.form-designer .el-container{height:100%}.form-designer .el-container .el-main{height:calc(100% - 45px)}.form-designer .el-container .el-aside{background:#fff}.form-designer .danger{color:#f56c6c}.form-designer .warning{color:#e6a23c}.form-designer .el-input-number.is-controls-right .el-input-number__decrease{border-left:none}.form-designer .el-input-number.is-controls-right .el-input-number__increase{border-bottom:none;border-left:none}.form-designer .el-date-editor,.form-designer .el-cascader,.form-designer .el-select,.form-designer .el-input-number{width:100%}.form-designer .editor-fullscreen{z-index:1003;box-sizing:border-box;background:#fff;width:100%;padding:20px;top:0;bottom:0;left:0;right:0;height:100%!important;position:fixed!important}.form-designer .editor-fullscreen i{top:20px!important;left:25px!important}.afd-drawer-foot{padding:20px;display:flex;position:absolute;bottom:0;left:0;right:0}.afd-drawer-foot button{width:50%}.afd-drawer-foot>span{width:50%;display:inline-block}.afd-drawer-foot>span button{width:100%}.afd-preview-form{height:83vh;overflow-y:auto}
|
package/fy-input/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as r, e as a } from "../chunks/event.
|
|
1
|
+
import { p as r, e as a } from "../chunks/event.mRPNW7Cx.mjs";
|
|
2
2
|
import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
3
|
const p = {
|
|
4
4
|
name: "FyInput",
|
|
@@ -65,8 +65,7 @@ const p = {
|
|
|
65
65
|
var s = function() {
|
|
66
66
|
var e = this, t = e._self._c;
|
|
67
67
|
return t("ElInput", { staticClass: "avue-input", attrs: { size: e.size, clearable: e.clearableVal, type: e.typeParam, maxlength: e.maxlength, minlength: e.minlength, "show-password": e.typeParam === "password" ? e.showPassword : !1, rows: e.rows, autosize: { minRows: e.minRows, maxRows: e.maxRows }, "prefix-icon": e.prefixIcon, "suffix-icon": e.suffixIcon, readonly: e.readonly, placeholder: e.placeholder, "show-word-limit": e.showWordLimit, disabled: e.disabled, autocomplete: e.autocomplete }, on: { keyup: function(n) {
|
|
68
|
-
if (!n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter"))
|
|
69
|
-
return null;
|
|
68
|
+
if (!n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter")) return null;
|
|
70
69
|
e.isSearch && e.appendClick();
|
|
71
70
|
}, focus: e.handleFocus, blur: e.handleBlur }, nativeOn: { click: function(n) {
|
|
72
71
|
return e.handleClick.apply(null, arguments);
|
package/fy-input-color/index.mjs
CHANGED
package/fy-input-icon/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { p as s, e as l } from "../chunks/event.
|
|
1
|
+
import { p as s, e as l } from "../chunks/event.mRPNW7Cx.mjs";
|
|
2
2
|
import a from "../icon-temp/index.mjs";
|
|
3
|
+
import "../icon-temp/style.css";
|
|
3
4
|
import { n as r } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
5
|
const o = {
|
|
5
6
|
name: "FyInputIcon",
|
|
@@ -24,26 +25,26 @@ const o = {
|
|
|
24
25
|
},
|
|
25
26
|
computed: {
|
|
26
27
|
icons() {
|
|
27
|
-
return (this.tabs.list || []).map((
|
|
28
|
+
return (this.tabs.list || []).map((e) => !e.value && !e.label ? { value: e, label: e } : e);
|
|
28
29
|
},
|
|
29
30
|
filteredIcons() {
|
|
30
|
-
return this.filterText ? this.icons.filter((
|
|
31
|
+
return this.filterText ? this.icons.filter((e) => e.label.indexOf(this.filterText) !== -1) : this.icons;
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
watch: {
|
|
34
35
|
iconList: {
|
|
35
36
|
immediate: !0,
|
|
36
|
-
handler(
|
|
37
|
-
this.tabs = (
|
|
37
|
+
handler(e) {
|
|
38
|
+
this.tabs = (e == null ? void 0 : e[0]) || {};
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
methods: {
|
|
42
|
-
handleTabs(
|
|
43
|
-
this.tabs =
|
|
43
|
+
handleTabs(e) {
|
|
44
|
+
this.tabs = e;
|
|
44
45
|
},
|
|
45
|
-
handleSubmit(
|
|
46
|
-
this.visible = !1, this.text =
|
|
46
|
+
handleSubmit(e) {
|
|
47
|
+
this.visible = !1, this.text = e, this.handleChange(e);
|
|
47
48
|
},
|
|
48
49
|
handleShow() {
|
|
49
50
|
this.$refs.main.blur(), !(this.disabled || this.readonly) && (this.visible = !0);
|
|
@@ -51,22 +52,22 @@ const o = {
|
|
|
51
52
|
}
|
|
52
53
|
};
|
|
53
54
|
var c = function() {
|
|
54
|
-
var
|
|
55
|
-
return n("div", { staticClass: "avue-input-icon" }, [n("ElInput", { ref: "main", attrs: { placeholder:
|
|
56
|
-
return
|
|
57
|
-
} }, scopedSlots:
|
|
58
|
-
return [n("IconTemp", { attrs: { text:
|
|
59
|
-
}, proxy: !0 }]), model: { value:
|
|
60
|
-
|
|
61
|
-
}, expression: "text" } }),
|
|
62
|
-
|
|
63
|
-
} } }, [n("div", { staticClass: "avue-input-icon__filter" }, [n("ElInput", { attrs: { placeholder: "请输入", size:
|
|
64
|
-
|
|
65
|
-
}, expression: "filterText" } })], 1), n("FyTabs", { attrs: { option: { tabs:
|
|
66
|
-
return n("div", { key: i.value, class: ["avue-input-icon__item", { active:
|
|
67
|
-
return
|
|
68
|
-
} } }, [n("IconTemp", { attrs: { text: i.value, size:
|
|
69
|
-
}), 0)], 1) :
|
|
55
|
+
var t = this, n = t._self._c;
|
|
56
|
+
return n("div", { staticClass: "avue-input-icon" }, [n("ElInput", { ref: "main", attrs: { placeholder: t.placeholder, size: t.size, clearable: t.clearableVal, disabled: t.disabled }, on: { focus: t.handleShow }, nativeOn: { click: function(i) {
|
|
57
|
+
return t.handleClick.apply(null, arguments);
|
|
58
|
+
} }, scopedSlots: t._u([{ key: "append", fn: function() {
|
|
59
|
+
return [n("IconTemp", { attrs: { text: t.text, small: t.size === "mini" }, on: { click: t.handleShow } })];
|
|
60
|
+
}, proxy: !0 }]), model: { value: t.text, callback: function(i) {
|
|
61
|
+
t.text = i;
|
|
62
|
+
}, expression: "text" } }), t.visible ? n("ElementDialog", { attrs: { title: t.placeholder, visible: t.visible, width: t.dialogWidth }, on: { "update:visible": function(i) {
|
|
63
|
+
t.visible = i;
|
|
64
|
+
} } }, [n("div", { staticClass: "avue-input-icon__filter" }, [n("ElInput", { attrs: { placeholder: "请输入", size: t.size }, model: { value: t.filterText, callback: function(i) {
|
|
65
|
+
t.filterText = i;
|
|
66
|
+
}, expression: "filterText" } })], 1), n("FyTabs", { attrs: { option: { tabs: t.iconList } }, on: { change: t.handleTabs } }), n("div", { staticClass: "avue-input-icon__list" }, t._l(t.filteredIcons, function(i) {
|
|
67
|
+
return n("div", { key: i.value, class: ["avue-input-icon__item", { active: t.text === i }], attrs: { title: i.label || i.value }, on: { click: function(p) {
|
|
68
|
+
return t.handleSubmit(i.value);
|
|
69
|
+
} } }, [n("IconTemp", { attrs: { text: i.value, size: t.tabs.iconSize, small: t.size === "mini" } }), n("p", { staticClass: "avue-input-icon__label" }, [t._v(t._s(i.label || i.value))])], 1);
|
|
70
|
+
}), 0)], 1) : t._e()], 1);
|
|
70
71
|
}, u = [], d = /* @__PURE__ */ r(
|
|
71
72
|
o,
|
|
72
73
|
c,
|
|
@@ -75,7 +76,7 @@ var c = function() {
|
|
|
75
76
|
null,
|
|
76
77
|
null
|
|
77
78
|
);
|
|
78
|
-
const
|
|
79
|
+
const m = d.exports;
|
|
79
80
|
export {
|
|
80
|
-
|
|
81
|
+
m as default
|
|
81
82
|
};
|
package/fy-input-map/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as c, e as p } from "../chunks/event.
|
|
1
|
+
import { p as c, e as p } from "../chunks/event.mRPNW7Cx.mjs";
|
|
2
2
|
import { isBlank as d } from "@web-utils/core";
|
|
3
3
|
import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
4
|
const u = {
|
|
@@ -117,8 +117,7 @@ const u = {
|
|
|
117
117
|
},
|
|
118
118
|
addClick() {
|
|
119
119
|
this.map.on("click", (t) => {
|
|
120
|
-
if (this.disabled || this.readonly)
|
|
121
|
-
return;
|
|
120
|
+
if (this.disabled || this.readonly) return;
|
|
122
121
|
const e = t.lnglat, s = e.P || e.Q, i = e.R;
|
|
123
122
|
this.addMarker(i, s), this.getAddress(i, s);
|
|
124
123
|
});
|
|
@@ -130,8 +129,7 @@ const u = {
|
|
|
130
129
|
{
|
|
131
130
|
zoom: 13,
|
|
132
131
|
center: (() => {
|
|
133
|
-
if (this.longitude && this.latitude)
|
|
134
|
-
return [this.longitude, this.latitude];
|
|
132
|
+
if (this.longitude && this.latitude) return [this.longitude, this.latitude];
|
|
135
133
|
})()
|
|
136
134
|
},
|
|
137
135
|
this.params
|
package/fy-input-table/index.mjs
CHANGED
package/fy-input-tree/index.mjs
CHANGED
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.mRPNW7Cx.mjs";
|
|
2
|
+
import { s as c } from "../chunks/dic.DBmh9yzU.mjs";
|
|
3
|
+
import { b as d } from "../chunks/util.BaRFvfAi.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.mRPNW7Cx.mjs";
|
|
2
|
+
import { s as r } from "../chunks/util.BaRFvfAi.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 { s as d, o as l, a as r } from "../chunks/util.
|
|
1
|
+
import { s as d, o as l, a as r } from "../chunks/util.BaRFvfAi.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.BaRFvfAi.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;
|
|
@@ -344,14 +344,13 @@ const E = {
|
|
|
344
344
|
deadline: (/* @__PURE__ */ new Date()).getTime() + i.deadline * 3600
|
|
345
345
|
});
|
|
346
346
|
l.append("token", s), d = "http://up.qiniu.com/";
|
|
347
|
-
} else
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
}));
|
|
347
|
+
} else this.isAliOSS && (i = this.ali, n = w({
|
|
348
|
+
region: i.region,
|
|
349
|
+
endpoint: i.endpoint,
|
|
350
|
+
accessKeyId: i.accessKeyId,
|
|
351
|
+
accessKeySecret: i.accessKeySecret,
|
|
352
|
+
bucket: i.bucket
|
|
353
|
+
}));
|
|
355
354
|
(this.isAliOSS ? n.put(e.name, e) : this.$axios.post(d, l, { headers: o })).then((s) => {
|
|
356
355
|
let a;
|
|
357
356
|
this.isAliOSS ? a = s : this.isQiniuOSS ? (a = s.data, a.key = i.url + a.key) : typeof this.resKey == "function" ? a = this.resKey(s.data) : (a = O(s.data, this.resKey), a = a[this.urlKey]);
|
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.mRPNW7Cx.mjs";
|
|
2
|
+
import { B, i as F, p as N } from "../chunks/util.BaRFvfAi.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
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var n = Object.getOwnPropertySymbols;
|
|
3
3
|
var c = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
c.call(e,
|
|
7
|
-
if (
|
|
8
|
-
for (var
|
|
9
|
-
l.call(e,
|
|
10
|
-
return
|
|
4
|
+
var s = (o, e, t) => e in o ? p(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, a = (o, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
c.call(e, t) && s(o, t, e[t]);
|
|
7
|
+
if (n)
|
|
8
|
+
for (var t of n(e))
|
|
9
|
+
l.call(e, t) && s(o, t, e[t]);
|
|
10
|
+
return o;
|
|
11
11
|
};
|
|
12
|
-
import { B as u } from "../chunks/util.
|
|
12
|
+
import { B as u } from "../chunks/util.BaRFvfAi.mjs";
|
|
13
13
|
import { VueCropper as f } from "vue-cropper";
|
|
14
14
|
import m from "vue";
|
|
15
|
-
import { n as
|
|
16
|
-
const
|
|
15
|
+
import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
16
|
+
const r = {
|
|
17
17
|
name: "ImageCropper",
|
|
18
18
|
components: {
|
|
19
19
|
VueCropper: f
|
|
@@ -30,8 +30,8 @@ const n = {
|
|
|
30
30
|
this.visible = !0;
|
|
31
31
|
},
|
|
32
32
|
// 图片缩放
|
|
33
|
-
changeScale(
|
|
34
|
-
|
|
33
|
+
changeScale(o) {
|
|
34
|
+
o = o || 1, this.$refs.cropper.changeScale(o);
|
|
35
35
|
},
|
|
36
36
|
// 向左旋转
|
|
37
37
|
rotateLeft() {
|
|
@@ -42,21 +42,21 @@ const n = {
|
|
|
42
42
|
this.$refs.cropper.rotateRight();
|
|
43
43
|
},
|
|
44
44
|
// 实时预览函数
|
|
45
|
-
realTime(
|
|
46
|
-
this.previews =
|
|
45
|
+
realTime(o) {
|
|
46
|
+
this.previews = o;
|
|
47
47
|
},
|
|
48
48
|
submit() {
|
|
49
|
-
this.visible = !1, this.$refs.cropper.getCropData((
|
|
50
|
-
let e =
|
|
51
|
-
this.option.type === "file" && (e = u(
|
|
49
|
+
this.visible = !1, this.$refs.cropper.getCropData((o) => {
|
|
50
|
+
let e = o;
|
|
51
|
+
this.option.type === "file" && (e = u(o, `${(/* @__PURE__ */ new Date()).getTime()}.${this.option.outputType}`)), this.option.callback && this.option.callback(e);
|
|
52
52
|
});
|
|
53
53
|
},
|
|
54
|
-
cancel(
|
|
55
|
-
|
|
54
|
+
cancel(o) {
|
|
55
|
+
o && o(), this.visible = !1, this.option.cancel && this.option.cancel(), typeof this.option.beforeClose == "function" && this.option.beforeClose(), this.$destroy(), this.$el.remove();
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
},
|
|
59
|
-
const e = m.extend(
|
|
58
|
+
}, d = (o = {}) => {
|
|
59
|
+
const e = m.extend(r), t = a({
|
|
60
60
|
outputSize: 1,
|
|
61
61
|
// 裁剪生成图片的质量(可选0.1 - 1)
|
|
62
62
|
outputType: "jpeg",
|
|
@@ -79,39 +79,39 @@ const n = {
|
|
|
79
79
|
// 截图框能否拖动
|
|
80
80
|
original: !1,
|
|
81
81
|
// 上传图片按照原始比例渲染
|
|
82
|
-
centerBox: !
|
|
82
|
+
centerBox: !0,
|
|
83
83
|
// 截图框是否被限制在图片里面
|
|
84
84
|
height: !0,
|
|
85
85
|
// 是否按照设备的dpr 输出等比例图片
|
|
86
86
|
infoTrue: !1,
|
|
87
87
|
// true为展示真实输出图片宽高,false展示看到的截图框宽高
|
|
88
88
|
enlarge: 1
|
|
89
|
-
},
|
|
89
|
+
}, o), i = new e({
|
|
90
90
|
data: {
|
|
91
|
-
option:
|
|
91
|
+
option: t
|
|
92
92
|
}
|
|
93
93
|
}).$mount();
|
|
94
94
|
return document.body.appendChild(i.$el), i.show(), i;
|
|
95
95
|
};
|
|
96
|
-
|
|
97
|
-
const v =
|
|
96
|
+
r.imageCropper = d;
|
|
97
|
+
const v = r;
|
|
98
98
|
var g = function() {
|
|
99
|
-
var e = this,
|
|
100
|
-
return e._self._setupProxy,
|
|
99
|
+
var e = this, t = e._self._c;
|
|
100
|
+
return e._self._setupProxy, t("ElementDialog", { staticClass: "avue-cropper", attrs: { visible: e.visible, "before-close": e.cancel, title: "图片剪裁", "close-on-press-escape": !1, "close-on-click-modal": !1, "modal-append-to-body": e.$AVUE.modalAppendToBody, "append-to-body": e.$AVUE.appendToBody, width: "1000px" }, on: { "update:visible": function(i) {
|
|
101
101
|
e.visible = i;
|
|
102
102
|
} }, scopedSlots: e._u([{ key: "footer", fn: function() {
|
|
103
|
-
return [
|
|
103
|
+
return [t("ElButton", { attrs: { size: "small", type: "primary" }, on: { click: e.submit } }, [e._v(" 确 定 ")]), t("ElButton", { attrs: { size: "small" }, on: { click: function(i) {
|
|
104
104
|
return e.cancel();
|
|
105
105
|
} } }, [e._v(" 取 消 ")])];
|
|
106
|
-
}, proxy: !0 }]) }, [
|
|
106
|
+
}, proxy: !0 }]) }, [t("div", { staticClass: "cropper-content" }, [t("div", { staticClass: "cropper-box" }, [t("div", { staticClass: "cropper" }, [t("VueCropper", { ref: "cropper", attrs: { img: e.option.img, "output-size": e.option.outputSize, "output-type": e.option.outputType, info: e.option.info, "can-scale": e.option.canScale, "auto-crop": e.option.autoCrop, "auto-crop-width": e.option.autoCropWidth, "auto-crop-height": e.option.autoCropHeight, fixed: e.option.fixed, "fixed-number": e.option.fixedNumber, full: e.option.full, "fixed-box": e.option.fixedBox, "can-move": e.option.canMove, "can-move-box": e.option.canMoveBox, original: e.option.original, "center-box": e.option.centerBox, height: e.option.height, "info-true": e.option.infoTrue, "max-img-size": e.option.maxImgSize, enlarge: e.option.enlarge, mode: e.option.mode }, on: { realTime: e.realTime } })], 1), t("div", { staticClass: "footer-btn" }, [t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-zoom-in" }, on: { click: function(i) {
|
|
107
107
|
return e.changeScale(1);
|
|
108
|
-
} } }),
|
|
108
|
+
} } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-zoom-out" }, on: { click: function(i) {
|
|
109
109
|
return e.changeScale(-1);
|
|
110
|
-
} } }),
|
|
111
|
-
},
|
|
110
|
+
} } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-refresh-left" }, on: { click: e.rotateLeft } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-refresh-right" }, on: { click: e.rotateRight } })], 1)]), t("div", { staticClass: "show-preview" }, [t("div", { staticClass: "preview", style: e.previews.div }, [t("img", { style: e.previews.img, attrs: { src: e.previews.url, alt: "" } })])])])]);
|
|
111
|
+
}, y = [], x = /* @__PURE__ */ h(
|
|
112
112
|
v,
|
|
113
113
|
g,
|
|
114
|
-
|
|
114
|
+
y,
|
|
115
115
|
!1,
|
|
116
116
|
null,
|
|
117
117
|
null
|
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.BaRFvfAi.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";
|
|
@@ -117,8 +117,7 @@ var C = function() {
|
|
|
117
117
|
return e.handleNext();
|
|
118
118
|
} } }, [t("i", { staticClass: "el-icon-arrow-right" })]) : e._e(), t("div", { ref: "box", staticClass: "avue-image-preview__box" }, [t("ElCarousel", { ref: "carousel", attrs: { "show-indicators": !1, "initial-index": e.index, "initial-swipe": e.index, interval: 0, arrow: "never", "indicator-position": "none" }, on: { change: e.handleChange } }, e._l(e.datas, function(s, a) {
|
|
119
119
|
return t("ElCarouselItem", { key: a, nativeOn: { click: function(n) {
|
|
120
|
-
if (n.target !== n.currentTarget)
|
|
121
|
-
return null;
|
|
120
|
+
if (n.target !== n.currentTarget) return null;
|
|
122
121
|
e.ops.closeOnClickModal && e.close();
|
|
123
122
|
} } }, [e.isMediaType(s) ? t(e.isMediaType(s), { ref: "item", refInFor: !0, tag: "Component", style: [e.styleName, e.styleBoxName], attrs: { id: `avue-image-preview__${a}`, src: s.url, controls: "controls", ondragstart: "return false" }, on: { click: function(n) {
|
|
124
123
|
return e.handleClick(s, a);
|