@web-utils/component 3.3.16 → 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.Cf9d5N_a.mjs → FormTemp.CJOJOy8K.mjs} +2 -2
- 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/data-card-text/index.mjs +49 -0
- package/data-card-text/style.css +1 -0
- package/dialog-form/index.mjs +1 -1
- package/flow/index.mjs +1 -1
- package/flow-designer/index.mjs +2 -4
- package/flow-node/index.mjs +1 -1
- 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 +13 -21
- 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 +15 -26
- 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 +1 -1
- 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/index.mjs +4 -4
- 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/name-avatar/index.mjs +14 -6
- package/package.json +13 -13
- 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/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/index.mjs +3 -6
- 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 +18 -2
- package/data-cardtext/index.mjs +0 -44
- package/data-cardtext/style.css +0 -1
package/fy-form-design/index.mjs
CHANGED
|
@@ -28,8 +28,8 @@ 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
34
|
import "../fy-u-editor/style.css";
|
|
35
35
|
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
@@ -553,8 +553,7 @@ const E = [
|
|
|
553
553
|
const l = Object.assign(m(this.item), this.params, {
|
|
554
554
|
size: this.item.size || "small",
|
|
555
555
|
dic: this.item.dicData ? this.item.dicData.map((t) => {
|
|
556
|
-
if (!this.item.props)
|
|
557
|
-
return t;
|
|
556
|
+
if (!this.item.props) return t;
|
|
558
557
|
const { label: a, value: i, desc: s } = this.item.props;
|
|
559
558
|
return !a || !i ? t : {
|
|
560
559
|
[a]: t.label,
|
|
@@ -1212,7 +1211,7 @@ var Te = function() {
|
|
|
1212
1211
|
ze,
|
|
1213
1212
|
!1,
|
|
1214
1213
|
null,
|
|
1215
|
-
"
|
|
1214
|
+
"befe1506"
|
|
1216
1215
|
);
|
|
1217
1216
|
const Pe = Re.exports, De = {
|
|
1218
1217
|
name: "ConfigSlider",
|
|
@@ -1482,8 +1481,7 @@ const Xe = Ye.exports, Ze = {
|
|
|
1482
1481
|
this.$refs.dialogForm.validate((l) => {
|
|
1483
1482
|
if (l) {
|
|
1484
1483
|
const { label: e, value: t } = this.dialogForm;
|
|
1485
|
-
if (this.$refs.tree.getNode(t))
|
|
1486
|
-
this.$message.error("value重复");
|
|
1484
|
+
if (this.$refs.tree.getNode(t)) this.$message.error("value重复");
|
|
1487
1485
|
else {
|
|
1488
1486
|
const i = this.selectData, s = {
|
|
1489
1487
|
label: e,
|
|
@@ -1566,7 +1564,7 @@ var et = function() {
|
|
|
1566
1564
|
tt,
|
|
1567
1565
|
!1,
|
|
1568
1566
|
null,
|
|
1569
|
-
"
|
|
1567
|
+
"e3a1f4c8"
|
|
1570
1568
|
);
|
|
1571
1569
|
const lt = at.exports, it = {
|
|
1572
1570
|
name: "ConfigDate",
|
|
@@ -2147,8 +2145,7 @@ const Ut = Ht.exports, Jt = {
|
|
|
2147
2145
|
},
|
|
2148
2146
|
handleOnLoad(l) {
|
|
2149
2147
|
const { url: e, method: t, needPage: a, currentPageKey: i, pageSizeKey: s, totalKey: o, recordsKey: r, resKey: n, auto: u } = l;
|
|
2150
|
-
if (!u)
|
|
2151
|
-
return;
|
|
2148
|
+
if (!u) return;
|
|
2152
2149
|
if (!e) {
|
|
2153
2150
|
this.onLoad = "(res, cb) => { }";
|
|
2154
2151
|
return;
|
|
@@ -2300,12 +2297,10 @@ const ea = Zt.exports, ta = ["year", "month", "week", "date", "datetime", "time"
|
|
|
2300
2297
|
},
|
|
2301
2298
|
methods: {
|
|
2302
2299
|
handleChangeType(l) {
|
|
2303
|
-
if (!l)
|
|
2304
|
-
return;
|
|
2300
|
+
if (!l) return;
|
|
2305
2301
|
let e;
|
|
2306
2302
|
for (const t of this.fields)
|
|
2307
|
-
if (e = t.list.find((a) => a.type === l), e)
|
|
2308
|
-
break;
|
|
2303
|
+
if (e = t.list.find((a) => a.type === l), e) break;
|
|
2309
2304
|
if (e)
|
|
2310
2305
|
for (const t in e)
|
|
2311
2306
|
e && Object.prototype.hasOwnProperty.call(e, t) && !["icon", "label", "span"].includes(t) && (this.data[t] = e[t]);
|
|
@@ -2671,8 +2666,7 @@ const oa = sa.exports, na = {
|
|
|
2671
2666
|
o.dicQueryConfig.forEach((n) => {
|
|
2672
2667
|
n.key && n.value && (r[n.key] = n.value);
|
|
2673
2668
|
}), o.dicQuery = r, delete o.dicQueryConfig;
|
|
2674
|
-
} else
|
|
2675
|
-
delete o.dicQueryConfig;
|
|
2669
|
+
} else delete o.dicQueryConfig;
|
|
2676
2670
|
delete o.dicOption;
|
|
2677
2671
|
} else if (["upload"].includes(o.type)) {
|
|
2678
2672
|
if (o.headersConfig && o.headersConfig.length > 0) {
|
|
@@ -2680,15 +2674,13 @@ const oa = sa.exports, na = {
|
|
|
2680
2674
|
o.headersConfig.forEach((n) => {
|
|
2681
2675
|
n.key && n.value && (r[n.key] = n.value);
|
|
2682
2676
|
}), o.headers = r;
|
|
2683
|
-
} else
|
|
2684
|
-
delete o.headers;
|
|
2677
|
+
} else delete o.headers;
|
|
2685
2678
|
if (delete o.headersConfig, o.dataConfig && o.dataConfig.length > 0) {
|
|
2686
2679
|
const r = {};
|
|
2687
2680
|
o.dataConfig.forEach((n) => {
|
|
2688
2681
|
n.key && n.value && (r[n.key] = n.value);
|
|
2689
2682
|
}), o.data = r;
|
|
2690
|
-
} else
|
|
2691
|
-
delete o.data;
|
|
2683
|
+
} else delete o.data;
|
|
2692
2684
|
delete o.dataConfig;
|
|
2693
2685
|
}
|
|
2694
2686
|
for (const r in o)
|
|
@@ -2749,8 +2741,7 @@ const oa = sa.exports, na = {
|
|
|
2749
2741
|
$cellEdit: !0
|
|
2750
2742
|
});
|
|
2751
2743
|
i.headersConfig = s;
|
|
2752
|
-
} else
|
|
2753
|
-
i.headersConfig = [];
|
|
2744
|
+
} else i.headersConfig = [];
|
|
2754
2745
|
if (i.data && typeof i.data == "object") {
|
|
2755
2746
|
const s = [];
|
|
2756
2747
|
for (const o in i.data)
|
|
@@ -2760,8 +2751,7 @@ const oa = sa.exports, na = {
|
|
|
2760
2751
|
$cellEdit: !0
|
|
2761
2752
|
});
|
|
2762
2753
|
i.dataConfig = s;
|
|
2763
|
-
} else
|
|
2764
|
-
i.dataConfig = [];
|
|
2754
|
+
} else i.dataConfig = [];
|
|
2765
2755
|
}
|
|
2766
2756
|
}), e.group && e.group.length > 0) {
|
|
2767
2757
|
for (let i = 0; i < e.group.length; i++) {
|
|
@@ -2796,8 +2786,7 @@ const oa = sa.exports, na = {
|
|
|
2796
2786
|
if (l === "app") {
|
|
2797
2787
|
const t = yield this.transformToAvueOptions(this.widgetForm);
|
|
2798
2788
|
return this.parseJson(t), t;
|
|
2799
|
-
} else
|
|
2800
|
-
return yield this.transformToAvueOptions(this.widgetForm);
|
|
2789
|
+
} else return yield this.transformToAvueOptions(this.widgetForm);
|
|
2801
2790
|
});
|
|
2802
2791
|
},
|
|
2803
2792
|
parseJson(l) {
|
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,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.mRPNW7Cx.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
|
@@ -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);
|
package/index.mjs
CHANGED
|
@@ -52,9 +52,9 @@ import "./data-box/style.css";
|
|
|
52
52
|
import C from "./data-card/index.mjs";
|
|
53
53
|
import { default as ef } from "./data-card/index.mjs";
|
|
54
54
|
import "./data-card/style.css";
|
|
55
|
-
import b from "./data-
|
|
56
|
-
import { default as pf } from "./data-
|
|
57
|
-
import "./data-
|
|
55
|
+
import b from "./data-card-text/index.mjs";
|
|
56
|
+
import { default as pf } from "./data-card-text/index.mjs";
|
|
57
|
+
import "./data-card-text/style.css";
|
|
58
58
|
import T from "./data-display/index.mjs";
|
|
59
59
|
import { default as ff } from "./data-display/index.mjs";
|
|
60
60
|
import "./data-display/style.css";
|
|
@@ -468,7 +468,7 @@ export {
|
|
|
468
468
|
of as CustomScrollbar,
|
|
469
469
|
rf as DataBox,
|
|
470
470
|
ef as DataCard,
|
|
471
|
-
pf as
|
|
471
|
+
pf as DataCardText,
|
|
472
472
|
ff as DataDisplay,
|
|
473
473
|
df as DataIcons,
|
|
474
474
|
cf as DataImgtext,
|
package/input-number/index.mjs
CHANGED
|
@@ -82,8 +82,7 @@ const l = {
|
|
|
82
82
|
t.setAttribute("role", "spinbutton"), t.setAttribute("aria-valuemax", this.max), t.setAttribute("aria-valuemin", this.min), t.setAttribute("aria-valuenow", this.currentValue), t.setAttribute("aria-disabled", this.inputNumberDisabled);
|
|
83
83
|
},
|
|
84
84
|
updated() {
|
|
85
|
-
if (!this.$refs || !this.$refs.input)
|
|
86
|
-
return;
|
|
85
|
+
if (!this.$refs || !this.$refs.input) return;
|
|
87
86
|
this.$refs.input.$refs.input.setAttribute("aria-valuenow", this.currentValue);
|
|
88
87
|
},
|
|
89
88
|
methods: {
|
|
@@ -91,33 +90,28 @@ const l = {
|
|
|
91
90
|
return e === void 0 && (e = this.numPrecision), parseFloat(Math.round(t * Math.pow(10, e)) / Math.pow(10, e));
|
|
92
91
|
},
|
|
93
92
|
getPrecision(t) {
|
|
94
|
-
if (t === void 0)
|
|
95
|
-
return 0;
|
|
93
|
+
if (t === void 0) return 0;
|
|
96
94
|
const e = t.toString(), n = e.indexOf(".");
|
|
97
95
|
let i = 0;
|
|
98
96
|
return n !== -1 && (i = e.length - n - 1), i;
|
|
99
97
|
},
|
|
100
98
|
_increase(t, e) {
|
|
101
|
-
if (typeof t != "number" && t !== void 0)
|
|
102
|
-
return this.currentValue;
|
|
99
|
+
if (typeof t != "number" && t !== void 0) return this.currentValue;
|
|
103
100
|
const n = Math.pow(10, this.numPrecision);
|
|
104
101
|
return this.toPrecision((n * t + n * e) / n);
|
|
105
102
|
},
|
|
106
103
|
_decrease(t, e) {
|
|
107
|
-
if (typeof t != "number" && t !== void 0)
|
|
108
|
-
return this.currentValue;
|
|
104
|
+
if (typeof t != "number" && t !== void 0) return this.currentValue;
|
|
109
105
|
const n = Math.pow(10, this.numPrecision);
|
|
110
106
|
return this.toPrecision((n * t - n * e) / n);
|
|
111
107
|
},
|
|
112
108
|
increase() {
|
|
113
|
-
if (this.inputNumberDisabled || this.maxDisabled)
|
|
114
|
-
return;
|
|
109
|
+
if (this.inputNumberDisabled || this.maxDisabled) return;
|
|
115
110
|
const t = this.value || 0, e = this._increase(t, this.step);
|
|
116
111
|
this.setCurrentValue(e);
|
|
117
112
|
},
|
|
118
113
|
decrease() {
|
|
119
|
-
if (this.inputNumberDisabled || this.minDisabled)
|
|
120
|
-
return;
|
|
114
|
+
if (this.inputNumberDisabled || this.minDisabled) return;
|
|
121
115
|
const t = this.value || 0, e = this._decrease(t, this.step);
|
|
122
116
|
this.setCurrentValue(e);
|
|
123
117
|
},
|
package/keyboard/index.mjs
CHANGED
package/license/index.mjs
CHANGED
package/login/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as l } from "../chunks/util.
|
|
1
|
+
import { s as l } from "../chunks/util.BaRFvfAi.mjs";
|
|
2
2
|
import { isBlank as n } from "@web-utils/core";
|
|
3
3
|
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
4
|
const r = "发送验证码", i = "{{time}}s后重获取", c = {
|