3h1-ui 1.2.1-beta-21 → 1.2.1-beta-22
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/es/index.js +622 -175
- package/es/ui/src/Basic/src/BasicHelp.vue.d.ts +2 -2
- package/es/ui/src/Basic/src/BasicTitle.vue.d.ts +2 -2
- package/es/ui/src/Button/src/props.d.ts +1 -1
- package/es/ui/src/Container/src/collapse/CollapseContainer.vue.d.ts +4 -4
- package/es/ui/src/CountTo/src/CountTo.vue.d.ts +2 -2
- package/es/ui/src/Cropper/src/Cropper.vue.d.ts +2 -2
- package/es/ui/src/Cropper/src/CropperAvatar.vue.d.ts +2 -2
- package/es/ui/src/Drawer/src/BasicDrawer.vue.d.ts +2 -2
- package/es/ui/src/Drawer/src/components/DrawerFooter.vue.d.ts +2 -2
- package/es/ui/src/Icon/src/SvgIcon.vue.d.ts +1 -1
- package/es/ui/src/Loading/src/Loading.vue.d.ts +1 -1
- package/es/ui/src/Modal/src/components/BasicHelp.vue.d.ts +2 -2
- package/es/ui/src/Modal/src/components/BasicTitle.vue.d.ts +2 -2
- package/es/ui/src/Table/src/components/TableImg.vue.d.ts +1 -1
- package/es/ui/src/TablePlus/TablePlus.vue.d.ts +1 -1
- package/es/ui/src/TablePlus/index.d.ts +1 -1
- package/es/ui/src/Transition/index.d.ts +11 -11
- package/es/ui/src/Transition/src/CreateTransition.d.ts +1 -1
- package/es/ui/src/Tree/src/BasicTree.vue.d.ts +3 -3
- package/lib/index.js +626 -183
- package/lib/ui/src/Basic/src/BasicHelp.vue.d.ts +2 -2
- package/lib/ui/src/Basic/src/BasicTitle.vue.d.ts +2 -2
- package/lib/ui/src/Button/src/props.d.ts +1 -1
- package/lib/ui/src/Container/src/collapse/CollapseContainer.vue.d.ts +4 -4
- package/lib/ui/src/CountTo/src/CountTo.vue.d.ts +2 -2
- package/lib/ui/src/Cropper/src/Cropper.vue.d.ts +2 -2
- package/lib/ui/src/Cropper/src/CropperAvatar.vue.d.ts +2 -2
- package/lib/ui/src/Drawer/src/BasicDrawer.vue.d.ts +2 -2
- package/lib/ui/src/Drawer/src/components/DrawerFooter.vue.d.ts +2 -2
- package/lib/ui/src/Icon/src/SvgIcon.vue.d.ts +1 -1
- package/lib/ui/src/Loading/src/Loading.vue.d.ts +1 -1
- package/lib/ui/src/Modal/src/components/BasicHelp.vue.d.ts +2 -2
- package/lib/ui/src/Modal/src/components/BasicTitle.vue.d.ts +2 -2
- package/lib/ui/src/Table/src/components/TableImg.vue.d.ts +1 -1
- package/lib/ui/src/TablePlus/TablePlus.vue.d.ts +1 -1
- package/lib/ui/src/TablePlus/index.d.ts +1 -1
- package/lib/ui/src/Transition/index.d.ts +11 -11
- package/lib/ui/src/Transition/src/CreateTransition.d.ts +1 -1
- package/lib/ui/src/Tree/src/BasicTree.vue.d.ts +3 -3
- package/package.json +1 -1
- package/es/ui/src/Basic/src/BasicArrow.vue.d.ts +0 -116
- package/es/ui/src/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -8
- package/es/ui/src/Container/src/LazyContainer.vue.d.ts +0 -121
- package/es/ui/src/Container/src/ScrollContainer.vue.d.ts +0 -9
- package/es/ui/src/Icon/src/Icon.vue.d.ts +0 -53
- package/es/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +0 -95
- package/es/ui/src/Modal/src/components/ScrollContainer.vue.d.ts +0 -9
- package/lib/ui/src/Basic/src/BasicArrow.vue.d.ts +0 -116
- package/lib/ui/src/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -8
- package/lib/ui/src/Container/src/LazyContainer.vue.d.ts +0 -121
- package/lib/ui/src/Container/src/ScrollContainer.vue.d.ts +0 -9
- package/lib/ui/src/Icon/src/Icon.vue.d.ts +0 -53
- package/lib/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +0 -95
- package/lib/ui/src/Modal/src/components/ScrollContainer.vue.d.ts +0 -9
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const antDesignVue = require("ant-design-vue");
|
|
5
5
|
const utils = require("@shy-plugins/utils");
|
|
@@ -9,10 +9,6 @@ const Iconify = require("@purge-icons/generated");
|
|
|
9
9
|
const Sortablejs = require("sortablejs");
|
|
10
10
|
require("xe-utils");
|
|
11
11
|
const VXETable = require("vxe-table");
|
|
12
|
-
const _interopDefaultLegacy = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
13
|
-
const Iconify__default = /* @__PURE__ */ _interopDefaultLegacy(Iconify);
|
|
14
|
-
const Sortablejs__default = /* @__PURE__ */ _interopDefaultLegacy(Sortablejs);
|
|
15
|
-
const VXETable__default = /* @__PURE__ */ _interopDefaultLegacy(VXETable);
|
|
16
12
|
const windiBase = "";
|
|
17
13
|
const windiComponents = "";
|
|
18
14
|
const windiUtilities = "";
|
|
@@ -1850,7 +1846,7 @@ function apply(func, thisArg, args) {
|
|
|
1850
1846
|
}
|
|
1851
1847
|
return func.apply(thisArg, args);
|
|
1852
1848
|
}
|
|
1853
|
-
function noop$
|
|
1849
|
+
function noop$2() {
|
|
1854
1850
|
}
|
|
1855
1851
|
function copyArray(source, array) {
|
|
1856
1852
|
var index2 = -1, length = source.length;
|
|
@@ -2113,7 +2109,11 @@ var hasOwnProperty$9 = objectProto$9.hasOwnProperty;
|
|
|
2113
2109
|
function arrayLikeKeys(value, inherited) {
|
|
2114
2110
|
var isArr = isArray$2(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
2115
2111
|
for (var key2 in value) {
|
|
2116
|
-
if ((inherited || hasOwnProperty$9.call(value, key2)) && !(skipIndexes &&
|
|
2112
|
+
if ((inherited || hasOwnProperty$9.call(value, key2)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
2113
|
+
(key2 == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
2114
|
+
isBuff && (key2 == "offset" || key2 == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
2115
|
+
isType && (key2 == "buffer" || key2 == "byteLength" || key2 == "byteOffset") || // Skip index properties.
|
|
2116
|
+
isIndex(key2, length)))) {
|
|
2117
2117
|
result.push(key2);
|
|
2118
2118
|
}
|
|
2119
2119
|
}
|
|
@@ -3384,7 +3384,7 @@ function set(object, path, value) {
|
|
|
3384
3384
|
return object == null ? object : baseSet(object, path, value);
|
|
3385
3385
|
}
|
|
3386
3386
|
var INFINITY = 1 / 0;
|
|
3387
|
-
var createSet = !(Set$1 && 1 / setToArray(new Set$1([, -0]))[1] == INFINITY) ? noop$
|
|
3387
|
+
var createSet = !(Set$1 && 1 / setToArray(new Set$1([, -0]))[1] == INFINITY) ? noop$2 : function(values) {
|
|
3388
3388
|
return new Set$1(values);
|
|
3389
3389
|
};
|
|
3390
3390
|
const createSet$1 = createSet;
|
|
@@ -3647,10 +3647,12 @@ const _sfc_main$15 = vue.defineComponent({
|
|
|
3647
3647
|
type: Function,
|
|
3648
3648
|
default: null
|
|
3649
3649
|
},
|
|
3650
|
+
// api params
|
|
3650
3651
|
params: {
|
|
3651
3652
|
type: Object,
|
|
3652
3653
|
default: () => ({})
|
|
3653
3654
|
},
|
|
3655
|
+
// support xxx.xxx.xx
|
|
3654
3656
|
resultField: utils.propTypes.string.def(""),
|
|
3655
3657
|
labelField: utils.propTypes.string.def("label"),
|
|
3656
3658
|
valueField: utils.propTypes.string.def("value"),
|
|
@@ -3794,7 +3796,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3794
3796
|
spin: "",
|
|
3795
3797
|
class: "mr-1"
|
|
3796
3798
|
}),
|
|
3797
|
-
vue.createTextVNode(" " + vue.toDisplayString("
|
|
3799
|
+
vue.createTextVNode(" " + vue.toDisplayString("请等待数据加载完成..."), 1)
|
|
3798
3800
|
])
|
|
3799
3801
|
]),
|
|
3800
3802
|
key: "1"
|
|
@@ -4023,10 +4025,12 @@ const _sfc_main$12 = vue.defineComponent({
|
|
|
4023
4025
|
childrenField: utils.propTypes.string.def("children"),
|
|
4024
4026
|
asyncFetchParamKey: utils.propTypes.string.def("parentCode"),
|
|
4025
4027
|
immediate: utils.propTypes.bool.def(true),
|
|
4028
|
+
// init fetch params
|
|
4026
4029
|
initFetchParams: {
|
|
4027
4030
|
type: Object,
|
|
4028
4031
|
default: () => ({})
|
|
4029
4032
|
},
|
|
4033
|
+
// 是否有下级,默认是
|
|
4030
4034
|
isLeaf: {
|
|
4031
4035
|
type: Function,
|
|
4032
4036
|
default: null
|
|
@@ -4177,7 +4181,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4177
4181
|
spin: "",
|
|
4178
4182
|
class: "mr-1"
|
|
4179
4183
|
}),
|
|
4180
|
-
vue.createTextVNode(" " + vue.toDisplayString("
|
|
4184
|
+
vue.createTextVNode(" " + vue.toDisplayString("请等待数据加载完成..."), 1)
|
|
4181
4185
|
])
|
|
4182
4186
|
]),
|
|
4183
4187
|
key: "1"
|
|
@@ -4431,8 +4435,11 @@ const _sfc_main$_ = vue.defineComponent({
|
|
|
4431
4435
|
name: "Icon",
|
|
4432
4436
|
components: { SvgIcon },
|
|
4433
4437
|
props: {
|
|
4438
|
+
// icon name
|
|
4434
4439
|
icon: utils.propTypes.string,
|
|
4440
|
+
// icon color
|
|
4435
4441
|
color: utils.propTypes.string,
|
|
4442
|
+
// icon size
|
|
4436
4443
|
size: {
|
|
4437
4444
|
type: [String, Number],
|
|
4438
4445
|
default: 16
|
|
@@ -4460,7 +4467,7 @@ const _sfc_main$_ = vue.defineComponent({
|
|
|
4460
4467
|
const icon = vue.unref(getIconRef);
|
|
4461
4468
|
if (!icon)
|
|
4462
4469
|
return;
|
|
4463
|
-
const svg =
|
|
4470
|
+
const svg = Iconify.renderSVG(icon, {});
|
|
4464
4471
|
if (svg) {
|
|
4465
4472
|
el.textContent = "";
|
|
4466
4473
|
el.appendChild(svg);
|
|
@@ -4674,9 +4681,21 @@ createJavascriptTransition(
|
|
|
4674
4681
|
const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
4675
4682
|
__name: "BasicArrow",
|
|
4676
4683
|
props: {
|
|
4684
|
+
/**
|
|
4685
|
+
* Arrow expand state
|
|
4686
|
+
*/
|
|
4677
4687
|
expand: { type: Boolean },
|
|
4688
|
+
/**
|
|
4689
|
+
* Arrow up by default
|
|
4690
|
+
*/
|
|
4678
4691
|
up: { type: Boolean },
|
|
4692
|
+
/**
|
|
4693
|
+
* Arrow down by default
|
|
4694
|
+
*/
|
|
4679
4695
|
down: { type: Boolean },
|
|
4696
|
+
/**
|
|
4697
|
+
* Cancel padding/margin for inline
|
|
4698
|
+
*/
|
|
4680
4699
|
inset: { type: Boolean }
|
|
4681
4700
|
},
|
|
4682
4701
|
setup(__props) {
|
|
@@ -4709,25 +4728,47 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
4709
4728
|
const BasicArrow_vue_vue_type_style_index_0_scoped_fea26917_lang = "";
|
|
4710
4729
|
const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-fea26917"]]);
|
|
4711
4730
|
const props$d = {
|
|
4731
|
+
/**
|
|
4732
|
+
* Help text max-width
|
|
4733
|
+
* @default: 600px
|
|
4734
|
+
*/
|
|
4712
4735
|
maxWidth: {
|
|
4713
4736
|
type: String,
|
|
4714
4737
|
default: "600px"
|
|
4715
4738
|
},
|
|
4739
|
+
/**
|
|
4740
|
+
* Whether to display the serial number
|
|
4741
|
+
* @default: false
|
|
4742
|
+
*/
|
|
4716
4743
|
showIndex: {
|
|
4717
4744
|
type: Boolean
|
|
4718
4745
|
},
|
|
4746
|
+
/**
|
|
4747
|
+
* Help text font color
|
|
4748
|
+
* @default: #ffffff
|
|
4749
|
+
*/
|
|
4719
4750
|
color: {
|
|
4720
4751
|
type: String,
|
|
4721
4752
|
default: "#ffffff"
|
|
4722
4753
|
},
|
|
4754
|
+
/**
|
|
4755
|
+
* Help text font size
|
|
4756
|
+
* @default: 14px
|
|
4757
|
+
*/
|
|
4723
4758
|
fontSize: {
|
|
4724
4759
|
type: String,
|
|
4725
4760
|
default: "14px"
|
|
4726
4761
|
},
|
|
4762
|
+
/**
|
|
4763
|
+
* Help text list
|
|
4764
|
+
*/
|
|
4727
4765
|
placement: {
|
|
4728
4766
|
type: String,
|
|
4729
4767
|
default: "right"
|
|
4730
4768
|
},
|
|
4769
|
+
/**
|
|
4770
|
+
* Help text list
|
|
4771
|
+
*/
|
|
4731
4772
|
text: {
|
|
4732
4773
|
type: [Array, String]
|
|
4733
4774
|
}
|
|
@@ -4785,11 +4826,23 @@ const BasicHelp_vue_vue_type_style_index_0_lang$1 = "";
|
|
|
4785
4826
|
const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
4786
4827
|
__name: "BasicTitle",
|
|
4787
4828
|
props: {
|
|
4829
|
+
/**
|
|
4830
|
+
* Help text list or string
|
|
4831
|
+
* @default: ''
|
|
4832
|
+
*/
|
|
4788
4833
|
helpMessage: {
|
|
4789
4834
|
type: [String, Array],
|
|
4790
4835
|
default: ""
|
|
4791
4836
|
},
|
|
4837
|
+
/**
|
|
4838
|
+
* Whether the color block on the left side of the title
|
|
4839
|
+
* @default: false
|
|
4840
|
+
*/
|
|
4792
4841
|
span: { type: Boolean },
|
|
4842
|
+
/**
|
|
4843
|
+
* Whether to default the text, that is, not bold
|
|
4844
|
+
* @default: false
|
|
4845
|
+
*/
|
|
4793
4846
|
normal: { type: Boolean }
|
|
4794
4847
|
},
|
|
4795
4848
|
setup(__props) {
|
|
@@ -4870,12 +4923,25 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
4870
4923
|
props: {
|
|
4871
4924
|
title: { type: String, default: "" },
|
|
4872
4925
|
loading: { type: Boolean },
|
|
4926
|
+
/**
|
|
4927
|
+
* Can it be expanded
|
|
4928
|
+
*/
|
|
4873
4929
|
canExpan: { type: Boolean, default: true },
|
|
4930
|
+
/**
|
|
4931
|
+
* Warm reminder on the right side of the title
|
|
4932
|
+
*/
|
|
4874
4933
|
helpMessage: {
|
|
4875
4934
|
type: [Array, String],
|
|
4876
4935
|
default: ""
|
|
4877
4936
|
},
|
|
4937
|
+
/**
|
|
4938
|
+
* Whether to trigger window.resize when expanding and contracting,
|
|
4939
|
+
* Can adapt to tables and forms, when the form shrinks, the form triggers resize to adapt to the height
|
|
4940
|
+
*/
|
|
4878
4941
|
triggerWindowResize: { type: Boolean },
|
|
4942
|
+
/**
|
|
4943
|
+
* Delayed loading time
|
|
4944
|
+
*/
|
|
4879
4945
|
lazyTime: { type: Number, default: 0 }
|
|
4880
4946
|
},
|
|
4881
4947
|
setup(__props, { expose }) {
|
|
@@ -5066,6 +5132,7 @@ const Bar = vue.defineComponent({
|
|
|
5066
5132
|
});
|
|
5067
5133
|
const _sfc_main$T = vue.defineComponent({
|
|
5068
5134
|
name: "Scrollbar",
|
|
5135
|
+
// inheritAttrs: false,
|
|
5069
5136
|
components: { Bar },
|
|
5070
5137
|
props: {
|
|
5071
5138
|
native: {
|
|
@@ -5089,6 +5156,7 @@ const _sfc_main$T = vue.defineComponent({
|
|
|
5089
5156
|
default: ""
|
|
5090
5157
|
},
|
|
5091
5158
|
noresize: Boolean,
|
|
5159
|
+
// 如果 container 尺寸不会发生变化,最好设置它可以优化性能
|
|
5092
5160
|
tag: {
|
|
5093
5161
|
type: String,
|
|
5094
5162
|
default: "div"
|
|
@@ -5265,19 +5333,38 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5265
5333
|
}
|
|
5266
5334
|
const ScrollContainer$1 = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$y]]);
|
|
5267
5335
|
const props$b = {
|
|
5336
|
+
/**
|
|
5337
|
+
* Waiting time, if the time is specified, whether visible or not, it will be automatically loaded after the specified time
|
|
5338
|
+
*/
|
|
5268
5339
|
timeout: { type: Number },
|
|
5340
|
+
/**
|
|
5341
|
+
* The viewport where the component is located.
|
|
5342
|
+
* If the component is scrolling in the page container, the viewport is the container
|
|
5343
|
+
*/
|
|
5269
5344
|
viewport: {
|
|
5270
5345
|
type: typeof window !== "undefined" ? window.HTMLElement : Object,
|
|
5271
5346
|
default: () => null
|
|
5272
5347
|
},
|
|
5348
|
+
/**
|
|
5349
|
+
* Preload threshold, css unit
|
|
5350
|
+
*/
|
|
5273
5351
|
threshold: { type: String, default: "0px" },
|
|
5352
|
+
/**
|
|
5353
|
+
* The scroll direction of the viewport, vertical represents the vertical direction, horizontal represents the horizontal direction
|
|
5354
|
+
*/
|
|
5274
5355
|
direction: {
|
|
5275
5356
|
type: String,
|
|
5276
5357
|
default: "vertical",
|
|
5277
5358
|
validator: (v) => ["vertical", "horizontal"].includes(v)
|
|
5278
5359
|
},
|
|
5360
|
+
/**
|
|
5361
|
+
* The label name of the outer container that wraps the component
|
|
5362
|
+
*/
|
|
5279
5363
|
tag: { type: String, default: "div" },
|
|
5280
5364
|
maxWaitingTime: { type: Number, default: 80 },
|
|
5365
|
+
/**
|
|
5366
|
+
* transition name
|
|
5367
|
+
*/
|
|
5281
5368
|
transitionName: { type: String, default: "lazy-container" }
|
|
5282
5369
|
};
|
|
5283
5370
|
const _sfc_main$R = vue.defineComponent({
|
|
@@ -6168,13 +6255,13 @@ const isFunction$2 = (val) => typeof val === "function";
|
|
|
6168
6255
|
const isNumber$1 = (val) => typeof val === "number";
|
|
6169
6256
|
const isString$2 = (val) => typeof val === "string";
|
|
6170
6257
|
const clamp = (n, min, max) => Math.min(max, Math.max(min, n));
|
|
6171
|
-
const noop = () => {
|
|
6258
|
+
const noop$1 = () => {
|
|
6172
6259
|
};
|
|
6173
6260
|
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
6174
6261
|
function resolveUnref(r) {
|
|
6175
6262
|
return typeof r === "function" ? r() : vue.unref(r);
|
|
6176
6263
|
}
|
|
6177
|
-
function createFilterWrapper(filter, fn) {
|
|
6264
|
+
function createFilterWrapper$1(filter, fn) {
|
|
6178
6265
|
function wrapper(...args) {
|
|
6179
6266
|
return new Promise((resolve, reject) => {
|
|
6180
6267
|
Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);
|
|
@@ -6182,14 +6269,14 @@ function createFilterWrapper(filter, fn) {
|
|
|
6182
6269
|
}
|
|
6183
6270
|
return wrapper;
|
|
6184
6271
|
}
|
|
6185
|
-
function debounceFilter(ms, options = {}) {
|
|
6272
|
+
function debounceFilter$1(ms, options = {}) {
|
|
6186
6273
|
let timer;
|
|
6187
6274
|
let maxTimer;
|
|
6188
|
-
let lastRejector = noop;
|
|
6275
|
+
let lastRejector = noop$1;
|
|
6189
6276
|
const _clearTimeout = (timer2) => {
|
|
6190
6277
|
clearTimeout(timer2);
|
|
6191
6278
|
lastRejector();
|
|
6192
|
-
lastRejector = noop;
|
|
6279
|
+
lastRejector = noop$1;
|
|
6193
6280
|
};
|
|
6194
6281
|
const filter = (invoke) => {
|
|
6195
6282
|
const duration = resolveUnref(ms);
|
|
@@ -6233,8 +6320,8 @@ function tryOnScopeDispose(fn) {
|
|
|
6233
6320
|
}
|
|
6234
6321
|
return false;
|
|
6235
6322
|
}
|
|
6236
|
-
function useDebounceFn(fn, ms = 200, options = {}) {
|
|
6237
|
-
return createFilterWrapper(debounceFilter(ms, options), fn);
|
|
6323
|
+
function useDebounceFn$1(fn, ms = 200, options = {}) {
|
|
6324
|
+
return createFilterWrapper$1(debounceFilter$1(ms, options), fn);
|
|
6238
6325
|
}
|
|
6239
6326
|
function tryOnMounted(fn, sync = true) {
|
|
6240
6327
|
if (vue.getCurrentInstance())
|
|
@@ -6304,7 +6391,7 @@ function useEventListener(...args) {
|
|
|
6304
6391
|
[target, events2, listeners, options] = args;
|
|
6305
6392
|
}
|
|
6306
6393
|
if (!target)
|
|
6307
|
-
return noop;
|
|
6394
|
+
return noop$1;
|
|
6308
6395
|
if (!Array.isArray(events2))
|
|
6309
6396
|
events2 = [events2];
|
|
6310
6397
|
if (!Array.isArray(listeners))
|
|
@@ -6396,7 +6483,6 @@ function useSupported(callback, sync = false) {
|
|
|
6396
6483
|
const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
6397
6484
|
const globalKey = "__vueuse_ssr_handlers__";
|
|
6398
6485
|
_global[globalKey] = _global[globalKey] || {};
|
|
6399
|
-
_global[globalKey];
|
|
6400
6486
|
function useRafFn(fn, options = {}) {
|
|
6401
6487
|
const {
|
|
6402
6488
|
immediate = true,
|
|
@@ -6653,8 +6739,8 @@ function useTransition(source, options = {}) {
|
|
|
6653
6739
|
delay = 0,
|
|
6654
6740
|
disabled = false,
|
|
6655
6741
|
duration = 1e3,
|
|
6656
|
-
onFinished = noop,
|
|
6657
|
-
onStarted = noop,
|
|
6742
|
+
onFinished = noop$1,
|
|
6743
|
+
onStarted = noop$1,
|
|
6658
6744
|
transition = identity
|
|
6659
6745
|
} = options;
|
|
6660
6746
|
const currentTransition = vue.computed(() => {
|
|
@@ -6750,12 +6836,11 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
6750
6836
|
const APagination = antDesignVue.Pagination;
|
|
6751
6837
|
const AEmpty = antDesignVue.Empty;
|
|
6752
6838
|
function getIcons() {
|
|
6753
|
-
var _a2, _b;
|
|
6754
6839
|
const data = iconsData;
|
|
6755
|
-
const prefix = (
|
|
6840
|
+
const prefix = (data == null ? void 0 : data.prefix) ?? "";
|
|
6756
6841
|
let result = [];
|
|
6757
6842
|
if (prefix) {
|
|
6758
|
-
result = ((
|
|
6843
|
+
result = ((data == null ? void 0 : data.icons) ?? []).map((item) => `${prefix}:${item}`);
|
|
6759
6844
|
} else if (Array.isArray(iconsData)) {
|
|
6760
6845
|
result = iconsData;
|
|
6761
6846
|
}
|
|
@@ -6770,7 +6855,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
6770
6855
|
const visible = vue.ref(false);
|
|
6771
6856
|
const currentList = vue.ref(icons);
|
|
6772
6857
|
const prefixCls2 = "shy-icon-picker";
|
|
6773
|
-
const debounceHandleSearchChange = useDebounceFn(handleSearchChange, 100);
|
|
6858
|
+
const debounceHandleSearchChange = useDebounceFn$1(handleSearchChange, 100);
|
|
6774
6859
|
const { clipboardRef, isSuccessRef } = use.useCopyToClipboard(props2.value);
|
|
6775
6860
|
const { createMessage } = use.useMessage();
|
|
6776
6861
|
const { getPaginationList, getTotal, setCurrentPage } = use.usePagination(
|
|
@@ -6795,7 +6880,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
6795
6880
|
if (props2.copy) {
|
|
6796
6881
|
clipboardRef.value = icon;
|
|
6797
6882
|
if (vue.unref(isSuccessRef)) {
|
|
6798
|
-
createMessage.success("
|
|
6883
|
+
createMessage.success("复制图标成功!");
|
|
6799
6884
|
}
|
|
6800
6885
|
}
|
|
6801
6886
|
}
|
|
@@ -6812,7 +6897,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
6812
6897
|
return vue.openBlock(), vue.createBlock(vue.unref(AInput), {
|
|
6813
6898
|
disabled: "",
|
|
6814
6899
|
style: vue.normalizeStyle({ width: __props.width }),
|
|
6815
|
-
placeholder: "
|
|
6900
|
+
placeholder: "点击选择图标",
|
|
6816
6901
|
class: vue.normalizeClass(prefixCls2),
|
|
6817
6902
|
value: currentSelect.value,
|
|
6818
6903
|
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => currentSelect.value = $event)
|
|
@@ -6828,7 +6913,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
6828
6913
|
title: vue.withCtx(() => [
|
|
6829
6914
|
vue.createElementVNode("div", _hoisted_1$g, [
|
|
6830
6915
|
vue.createVNode(vue.unref(AInput), {
|
|
6831
|
-
placeholder: "
|
|
6916
|
+
placeholder: "搜索图标",
|
|
6832
6917
|
onChange: vue.unref(debounceHandleSearchChange),
|
|
6833
6918
|
allowClear: ""
|
|
6834
6919
|
}, null, 8, ["onChange"])
|
|
@@ -6945,7 +7030,7 @@ const _sfc_main$P = vue.defineComponent({
|
|
|
6945
7030
|
const loading = vue.ref(false);
|
|
6946
7031
|
const { currentCount, isStart, start, reset: reset2 } = useCountdown(props2.count);
|
|
6947
7032
|
const getButtonText = vue.computed(() => {
|
|
6948
|
-
return !vue.unref(isStart) ? "
|
|
7033
|
+
return !vue.unref(isStart) ? "获取验证码" : `${currentCount.value}秒后重新获取`;
|
|
6949
7034
|
});
|
|
6950
7035
|
vue.watchEffect(() => {
|
|
6951
7036
|
props2.value === void 0 && reset2();
|
|
@@ -7062,7 +7147,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
7062
7147
|
const [state] = use.useRuleFormItem(props2, "value", "change", emitData);
|
|
7063
7148
|
const getColumns = vue.computed(() => {
|
|
7064
7149
|
const indexColumn = {
|
|
7065
|
-
title: "
|
|
7150
|
+
title: "序号",
|
|
7066
7151
|
dataIndex: "index",
|
|
7067
7152
|
customRender: ({ index: index2 }) => {
|
|
7068
7153
|
return `${index2 + 1}`;
|
|
@@ -7103,7 +7188,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
7103
7188
|
await formRef.validate();
|
|
7104
7189
|
}
|
|
7105
7190
|
} catch {
|
|
7106
|
-
throw new Error("
|
|
7191
|
+
throw new Error("校验失败");
|
|
7107
7192
|
}
|
|
7108
7193
|
};
|
|
7109
7194
|
expose({ validate });
|
|
@@ -7139,37 +7224,34 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
7139
7224
|
rules: (column == null ? void 0 : column.rules) || [],
|
|
7140
7225
|
name: column.dataIndex
|
|
7141
7226
|
}, {
|
|
7142
|
-
default: vue.withCtx(() =>
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
column.
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
}, null, 8, ["value", "onUpdate:value"]))
|
|
7171
|
-
];
|
|
7172
|
-
}),
|
|
7227
|
+
default: vue.withCtx(() => [
|
|
7228
|
+
column.type === "select" ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Select), {
|
|
7229
|
+
key: 0,
|
|
7230
|
+
value: record[column.dataIndex],
|
|
7231
|
+
"onUpdate:value": ($event) => record[column.dataIndex] = $event,
|
|
7232
|
+
options: column.dicData,
|
|
7233
|
+
mode: column.mode,
|
|
7234
|
+
"max-tag-count": column.maxTagCount,
|
|
7235
|
+
"max-tag-text-length": column.maxTagTextLength
|
|
7236
|
+
}, null, 8, ["value", "onUpdate:value", "options", "mode", "max-tag-count", "max-tag-text-length"])) : column.type === "datePicker" ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.DatePicker), {
|
|
7237
|
+
key: 1,
|
|
7238
|
+
value: record[column.dataIndex],
|
|
7239
|
+
"onUpdate:value": ($event) => record[column.dataIndex] = $event,
|
|
7240
|
+
valueFormat: "YYYY-MM-DD HH:mm:ss",
|
|
7241
|
+
showTime: true
|
|
7242
|
+
}, null, 8, ["value", "onUpdate:value"])) : column.type === "number" ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.InputNumber), {
|
|
7243
|
+
key: 2,
|
|
7244
|
+
value: record[column.dataIndex],
|
|
7245
|
+
"onUpdate:value": ($event) => record[column.dataIndex] = $event,
|
|
7246
|
+
min: column.min,
|
|
7247
|
+
max: column.max,
|
|
7248
|
+
precision: column.precision ?? 2
|
|
7249
|
+
}, null, 8, ["value", "onUpdate:value", "min", "max", "precision"])) : (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Input), {
|
|
7250
|
+
key: 3,
|
|
7251
|
+
value: record[column.dataIndex],
|
|
7252
|
+
"onUpdate:value": ($event) => record[column.dataIndex] = $event
|
|
7253
|
+
}, null, 8, ["value", "onUpdate:value"]))
|
|
7254
|
+
]),
|
|
7173
7255
|
_: 2
|
|
7174
7256
|
}, 1032, ["rules", "name"])
|
|
7175
7257
|
]),
|
|
@@ -7236,13 +7318,13 @@ function del(compName) {
|
|
|
7236
7318
|
}
|
|
7237
7319
|
function createPlaceholderMessage$1(component) {
|
|
7238
7320
|
if (component.includes("Input") || component.includes("Complete")) {
|
|
7239
|
-
return "
|
|
7321
|
+
return "请输入";
|
|
7240
7322
|
}
|
|
7241
7323
|
if (component.includes("Picker")) {
|
|
7242
|
-
return "
|
|
7324
|
+
return "请选择";
|
|
7243
7325
|
}
|
|
7244
7326
|
if (component.includes("Select") || component.includes("Cascader") || component.includes("Checkbox") || component.includes("Radio") || component.includes("Switch")) {
|
|
7245
|
-
return "
|
|
7327
|
+
return "请选择";
|
|
7246
7328
|
}
|
|
7247
7329
|
return "";
|
|
7248
7330
|
}
|
|
@@ -7378,7 +7460,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
7378
7460
|
};
|
|
7379
7461
|
});
|
|
7380
7462
|
const getComponentsProps = vue.computed(() => {
|
|
7381
|
-
var _a2
|
|
7463
|
+
var _a2;
|
|
7382
7464
|
const {
|
|
7383
7465
|
schema: schema2,
|
|
7384
7466
|
tableAction,
|
|
@@ -7389,12 +7471,12 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
7389
7471
|
componentProps = {}
|
|
7390
7472
|
} = schema2;
|
|
7391
7473
|
if (utils.isFunction(componentProps)) {
|
|
7392
|
-
componentProps =
|
|
7474
|
+
componentProps = componentProps({
|
|
7393
7475
|
schema: schema2,
|
|
7394
7476
|
tableAction,
|
|
7395
7477
|
formModel,
|
|
7396
7478
|
formActionType
|
|
7397
|
-
})
|
|
7479
|
+
}) ?? {};
|
|
7398
7480
|
}
|
|
7399
7481
|
if (schema2.component === "Divider") {
|
|
7400
7482
|
componentProps = Object.assign({
|
|
@@ -7413,7 +7495,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
7413
7495
|
});
|
|
7414
7496
|
}
|
|
7415
7497
|
if (schema2.component === "Select") {
|
|
7416
|
-
const label = ((
|
|
7498
|
+
const label = ((_a2 = componentProps == null ? void 0 : componentProps.fieldNames) == null ? void 0 : _a2.label) || "label";
|
|
7417
7499
|
componentProps = Object.assign({}, componentProps, {
|
|
7418
7500
|
showSearch: true,
|
|
7419
7501
|
filterOption: (input, option) => {
|
|
@@ -7721,8 +7803,18 @@ const buttonProps = {
|
|
|
7721
7803
|
},
|
|
7722
7804
|
loading: { type: Boolean },
|
|
7723
7805
|
disabled: { type: Boolean },
|
|
7806
|
+
/**
|
|
7807
|
+
* Text before icon.
|
|
7808
|
+
*/
|
|
7724
7809
|
preIcon: { type: String },
|
|
7810
|
+
/**
|
|
7811
|
+
* Text after icon.
|
|
7812
|
+
*/
|
|
7725
7813
|
postIcon: { type: String },
|
|
7814
|
+
/**
|
|
7815
|
+
* preIcon and postIcon icon size.
|
|
7816
|
+
* @default: 14
|
|
7817
|
+
*/
|
|
7726
7818
|
iconSize: { type: Number, default: 14 },
|
|
7727
7819
|
onClick: { type: Function, default: null }
|
|
7728
7820
|
};
|
|
@@ -7771,6 +7863,10 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
7771
7863
|
}
|
|
7772
7864
|
});
|
|
7773
7865
|
const props$8 = {
|
|
7866
|
+
/**
|
|
7867
|
+
* Whether to enable the drop-down menu
|
|
7868
|
+
* @default: true
|
|
7869
|
+
*/
|
|
7774
7870
|
enable: {
|
|
7775
7871
|
type: Boolean,
|
|
7776
7872
|
default: true
|
|
@@ -7785,8 +7881,8 @@ const _sfc_main$K = vue.defineComponent({
|
|
|
7785
7881
|
const getBindValues = vue.computed(() => {
|
|
7786
7882
|
return Object.assign(
|
|
7787
7883
|
{
|
|
7788
|
-
okText: "
|
|
7789
|
-
cancelText: "
|
|
7884
|
+
okText: "确定",
|
|
7885
|
+
cancelText: "取消"
|
|
7790
7886
|
},
|
|
7791
7887
|
{ ...props2, ...vue.unref(attrs) }
|
|
7792
7888
|
);
|
|
@@ -7859,7 +7955,7 @@ const _sfc_main$J = vue.defineComponent({
|
|
|
7859
7955
|
const getResetBtnOptions = vue.computed(() => {
|
|
7860
7956
|
return Object.assign(
|
|
7861
7957
|
{
|
|
7862
|
-
text: "
|
|
7958
|
+
text: "重置"
|
|
7863
7959
|
},
|
|
7864
7960
|
props2.resetButtonOptions
|
|
7865
7961
|
);
|
|
@@ -7867,7 +7963,7 @@ const _sfc_main$J = vue.defineComponent({
|
|
|
7867
7963
|
const getSubmitBtnOptions = vue.computed(() => {
|
|
7868
7964
|
return Object.assign(
|
|
7869
7965
|
{
|
|
7870
|
-
text: "
|
|
7966
|
+
text: "查询"
|
|
7871
7967
|
},
|
|
7872
7968
|
props2.submitButtonOptions
|
|
7873
7969
|
);
|
|
@@ -7886,6 +7982,7 @@ const _sfc_main$J = vue.defineComponent({
|
|
|
7886
7982
|
actionColOpt,
|
|
7887
7983
|
getResetBtnOptions,
|
|
7888
7984
|
getSubmitBtnOptions,
|
|
7985
|
+
// toggleAdvanced,
|
|
7889
7986
|
...useFormContext(),
|
|
7890
7987
|
getPreIcon
|
|
7891
7988
|
};
|
|
@@ -8068,7 +8165,7 @@ function useAdvanced({
|
|
|
8068
8165
|
}
|
|
8069
8166
|
return 0;
|
|
8070
8167
|
});
|
|
8071
|
-
const debounceUpdateAdvanced = useDebounceFn(updateAdvanced, 30);
|
|
8168
|
+
const debounceUpdateAdvanced = useDebounceFn$1(updateAdvanced, 30);
|
|
8072
8169
|
vue.watch(
|
|
8073
8170
|
[
|
|
8074
8171
|
() => vue.unref(getSchema),
|
|
@@ -8442,21 +8539,32 @@ const modalProps = {
|
|
|
8442
8539
|
scrollTop: { type: Boolean, default: true },
|
|
8443
8540
|
height: { type: Number },
|
|
8444
8541
|
minHeight: { type: Number },
|
|
8542
|
+
// open drag
|
|
8445
8543
|
draggable: { type: Boolean, default: true },
|
|
8446
8544
|
centered: { type: Boolean },
|
|
8447
|
-
cancelText: { type: String, default: "
|
|
8448
|
-
okText: { type: String, default: "
|
|
8545
|
+
cancelText: { type: String, default: "取消" },
|
|
8546
|
+
okText: { type: String, default: "确认" },
|
|
8449
8547
|
closeFunc: Function
|
|
8450
8548
|
};
|
|
8451
8549
|
const basicProps$4 = Object.assign({}, modalProps, {
|
|
8452
8550
|
defaultFullscreen: { type: Boolean },
|
|
8551
|
+
// Can it be full screen
|
|
8453
8552
|
canFullscreen: { type: Boolean, default: true },
|
|
8553
|
+
// After enabling the wrapper, the bottom can be increased in height
|
|
8454
8554
|
wrapperFooterOffset: { type: Number, default: 0 },
|
|
8555
|
+
// Warm reminder message
|
|
8455
8556
|
helpMessage: [String, Array],
|
|
8557
|
+
// Whether to setting wrapper
|
|
8456
8558
|
useWrapper: { type: Boolean, default: true },
|
|
8457
8559
|
loading: { type: Boolean },
|
|
8458
8560
|
loadingTip: { type: String },
|
|
8561
|
+
/**
|
|
8562
|
+
* @description: Show close button
|
|
8563
|
+
*/
|
|
8459
8564
|
showCancelBtn: { type: Boolean, default: true },
|
|
8565
|
+
/**
|
|
8566
|
+
* @description: Show confirmation button
|
|
8567
|
+
*/
|
|
8460
8568
|
showOkBtn: { type: Boolean, default: true },
|
|
8461
8569
|
wrapperProps: Object,
|
|
8462
8570
|
afterClose: Function,
|
|
@@ -8714,7 +8822,7 @@ function useWindowSizeFn(fn, wait = 150, options) {
|
|
|
8714
8822
|
let handler = () => {
|
|
8715
8823
|
fn();
|
|
8716
8824
|
};
|
|
8717
|
-
const handleSize = useDebounceFn(handler, wait);
|
|
8825
|
+
const handleSize = useDebounceFn$1(handler, wait);
|
|
8718
8826
|
handler = handleSize;
|
|
8719
8827
|
const start = () => {
|
|
8720
8828
|
if (options && options.immediate) {
|
|
@@ -9087,7 +9195,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9087
9195
|
_: 1
|
|
9088
9196
|
}, 8, ["title"])) : (vue.openBlock(), vue.createBlock(_component_Tooltip, {
|
|
9089
9197
|
key: 1,
|
|
9090
|
-
title: "
|
|
9198
|
+
title: "全屏",
|
|
9091
9199
|
placement: "bottom"
|
|
9092
9200
|
}, {
|
|
9093
9201
|
default: vue.withCtx(() => [
|
|
@@ -9100,7 +9208,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9100
9208
|
}))
|
|
9101
9209
|
], 64)) : vue.createCommentVNode("", true),
|
|
9102
9210
|
vue.createVNode(_component_Tooltip, {
|
|
9103
|
-
title: "
|
|
9211
|
+
title: "关闭",
|
|
9104
9212
|
placement: "bottom"
|
|
9105
9213
|
}, {
|
|
9106
9214
|
default: vue.withCtx(() => [
|
|
@@ -9160,8 +9268,7 @@ function deepMerge(src = {}, target = {}) {
|
|
|
9160
9268
|
return res;
|
|
9161
9269
|
}
|
|
9162
9270
|
function getPopupContainer(node) {
|
|
9163
|
-
|
|
9164
|
-
return (_a2 = node == null ? void 0 : node.parentNode) != null ? _a2 : document.body;
|
|
9271
|
+
return (node == null ? void 0 : node.parentNode) ?? document.body;
|
|
9165
9272
|
}
|
|
9166
9273
|
function useContext(key2 = Symbol(), defaultValue) {
|
|
9167
9274
|
return vue.inject(key2, defaultValue || {});
|
|
@@ -9173,30 +9280,54 @@ function useAppProviderContext() {
|
|
|
9173
9280
|
function useDesign(scope) {
|
|
9174
9281
|
const values = useAppProviderContext();
|
|
9175
9282
|
return {
|
|
9283
|
+
// prefixCls: computed(() => `${values.prefixCls}-${scope}`),
|
|
9176
9284
|
prefixCls: `${values.prefixCls}-${scope}`,
|
|
9177
9285
|
prefixVar: values.prefixCls
|
|
9286
|
+
// style,
|
|
9178
9287
|
};
|
|
9179
9288
|
}
|
|
9180
9289
|
const props$6 = {
|
|
9290
|
+
/**
|
|
9291
|
+
* Help text max-width
|
|
9292
|
+
* @default: 600px
|
|
9293
|
+
*/
|
|
9181
9294
|
maxWidth: {
|
|
9182
9295
|
type: String,
|
|
9183
9296
|
default: "600px"
|
|
9184
9297
|
},
|
|
9298
|
+
/**
|
|
9299
|
+
* Whether to display the serial number
|
|
9300
|
+
* @default: false
|
|
9301
|
+
*/
|
|
9185
9302
|
showIndex: {
|
|
9186
9303
|
type: Boolean
|
|
9187
9304
|
},
|
|
9305
|
+
/**
|
|
9306
|
+
* Help text font color
|
|
9307
|
+
* @default: #ffffff
|
|
9308
|
+
*/
|
|
9188
9309
|
color: {
|
|
9189
9310
|
type: String,
|
|
9190
9311
|
default: "#ffffff"
|
|
9191
9312
|
},
|
|
9313
|
+
/**
|
|
9314
|
+
* Help text font size
|
|
9315
|
+
* @default: 14px
|
|
9316
|
+
*/
|
|
9192
9317
|
fontSize: {
|
|
9193
9318
|
type: String,
|
|
9194
9319
|
default: "14px"
|
|
9195
9320
|
},
|
|
9321
|
+
/**
|
|
9322
|
+
* Help text list
|
|
9323
|
+
*/
|
|
9196
9324
|
placement: {
|
|
9197
9325
|
type: String,
|
|
9198
9326
|
default: "right"
|
|
9199
9327
|
},
|
|
9328
|
+
/**
|
|
9329
|
+
* Help text list
|
|
9330
|
+
*/
|
|
9200
9331
|
text: {
|
|
9201
9332
|
type: [Array, String]
|
|
9202
9333
|
}
|
|
@@ -9256,11 +9387,23 @@ const BasicHelp_vue_vue_type_style_index_0_lang = "";
|
|
|
9256
9387
|
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
9257
9388
|
__name: "BasicTitle",
|
|
9258
9389
|
props: {
|
|
9390
|
+
/**
|
|
9391
|
+
* Help text list or string
|
|
9392
|
+
* @default: ''
|
|
9393
|
+
*/
|
|
9259
9394
|
helpMessage: {
|
|
9260
9395
|
type: [String, Array],
|
|
9261
9396
|
default: ""
|
|
9262
9397
|
},
|
|
9398
|
+
/**
|
|
9399
|
+
* Whether the color block on the left side of the title
|
|
9400
|
+
* @default: false
|
|
9401
|
+
*/
|
|
9263
9402
|
span: { type: Boolean },
|
|
9403
|
+
/**
|
|
9404
|
+
* Whether to default the text, that is, not bold
|
|
9405
|
+
* @default: false
|
|
9406
|
+
*/
|
|
9264
9407
|
normal: { type: Boolean }
|
|
9265
9408
|
},
|
|
9266
9409
|
setup(__props) {
|
|
@@ -9405,10 +9548,8 @@ const _sfc_main$B = vue.defineComponent({
|
|
|
9405
9548
|
vue.watch(
|
|
9406
9549
|
() => vue.unref(visibleRef),
|
|
9407
9550
|
(v) => {
|
|
9408
|
-
var _a2;
|
|
9409
9551
|
emit("visible-change", v);
|
|
9410
9552
|
emit("update:visible", v);
|
|
9411
|
-
instance && ((_a2 = modalMethods.emitVisible) == null ? void 0 : _a2.call(modalMethods, v, instance.uid));
|
|
9412
9553
|
vue.nextTick(() => {
|
|
9413
9554
|
if (props2.scrollTop && v && vue.unref(modalWrapperRef)) {
|
|
9414
9555
|
vue.unref(modalWrapperRef).scrollTop();
|
|
@@ -9703,6 +9844,7 @@ const basicProps$3 = {
|
|
|
9703
9844
|
type: Object,
|
|
9704
9845
|
default: () => ({})
|
|
9705
9846
|
},
|
|
9847
|
+
// 标签宽度 固定宽度
|
|
9706
9848
|
labelWidth: {
|
|
9707
9849
|
type: [Number, String],
|
|
9708
9850
|
default: 0
|
|
@@ -9712,6 +9854,7 @@ const basicProps$3 = {
|
|
|
9712
9854
|
default: () => []
|
|
9713
9855
|
},
|
|
9714
9856
|
compact: utils.propTypes.bool,
|
|
9857
|
+
// 表单配置规则
|
|
9715
9858
|
schemas: {
|
|
9716
9859
|
type: [Array],
|
|
9717
9860
|
default: () => []
|
|
@@ -9727,35 +9870,50 @@ const basicProps$3 = {
|
|
|
9727
9870
|
type: Object
|
|
9728
9871
|
},
|
|
9729
9872
|
autoSetPlaceHolder: utils.propTypes.bool.def(true),
|
|
9873
|
+
// 在INPUT组件上单击回车时,是否自动提交
|
|
9730
9874
|
autoSubmitOnEnter: utils.propTypes.bool.def(false),
|
|
9731
9875
|
submitOnReset: utils.propTypes.bool,
|
|
9732
9876
|
submitOnChange: utils.propTypes.bool,
|
|
9733
9877
|
size: utils.propTypes.oneOf(["default", "small", "large"]).def("default"),
|
|
9878
|
+
// 禁用表单
|
|
9734
9879
|
disabled: utils.propTypes.bool,
|
|
9735
9880
|
emptySpan: {
|
|
9736
9881
|
type: [Number, Object],
|
|
9737
9882
|
default: 0
|
|
9738
9883
|
},
|
|
9884
|
+
// 是否显示收起展开按钮
|
|
9739
9885
|
showAdvancedButton: utils.propTypes.bool,
|
|
9886
|
+
// 转化时间
|
|
9740
9887
|
transformDateFunc: {
|
|
9741
9888
|
type: Function,
|
|
9742
9889
|
default: (date) => {
|
|
9743
|
-
var _a2
|
|
9744
|
-
return (
|
|
9890
|
+
var _a2;
|
|
9891
|
+
return ((_a2 = date == null ? void 0 : date.format) == null ? void 0 : _a2.call(date, "YYYY-MM-DD HH:mm:ss")) ?? date;
|
|
9745
9892
|
}
|
|
9746
9893
|
},
|
|
9747
9894
|
rulesMessageJoinLabel: utils.propTypes.bool.def(true),
|
|
9895
|
+
// 超过3行自动折叠
|
|
9748
9896
|
autoAdvancedLine: utils.propTypes.number.def(3),
|
|
9897
|
+
// 不受折叠影响的行数
|
|
9749
9898
|
alwaysShowLines: utils.propTypes.number.def(1),
|
|
9899
|
+
// 是否显示操作按钮
|
|
9750
9900
|
showActionButtonGroup: utils.propTypes.bool.def(true),
|
|
9901
|
+
// 操作列Col配置
|
|
9751
9902
|
actionColOptions: Object,
|
|
9903
|
+
// 显示重置按钮
|
|
9752
9904
|
showResetButton: utils.propTypes.bool.def(true),
|
|
9905
|
+
// 是否聚焦第一个输入框,只在第一个表单项为input的时候作用
|
|
9753
9906
|
autoFocusFirstItem: utils.propTypes.bool,
|
|
9907
|
+
// 重置按钮配置
|
|
9754
9908
|
resetButtonOptions: Object,
|
|
9909
|
+
// 显示确认按钮
|
|
9755
9910
|
showSubmitButton: utils.propTypes.bool.def(true),
|
|
9911
|
+
// 确认按钮配置
|
|
9756
9912
|
submitButtonOptions: Object,
|
|
9913
|
+
// 自定义重置函数
|
|
9757
9914
|
resetFunc: Function,
|
|
9758
9915
|
submitFunc: Function,
|
|
9916
|
+
// 以下为默认props
|
|
9759
9917
|
hideRequiredMark: utils.propTypes.bool,
|
|
9760
9918
|
labelCol: Object,
|
|
9761
9919
|
layout: utils.propTypes.oneOf(["horizontal", "vertical", "inline"]).def("horizontal"),
|
|
@@ -9891,7 +10049,9 @@ const _sfc_main$A = vue.defineComponent({
|
|
|
9891
10049
|
formModel,
|
|
9892
10050
|
getSchema,
|
|
9893
10051
|
defaultValueRef,
|
|
10052
|
+
//@ts-ignore
|
|
9894
10053
|
formElRef,
|
|
10054
|
+
//@ts-ignore
|
|
9895
10055
|
schemaRef,
|
|
9896
10056
|
handleFormValues
|
|
9897
10057
|
});
|
|
@@ -9914,7 +10074,7 @@ const _sfc_main$A = vue.defineComponent({
|
|
|
9914
10074
|
vue.watch(
|
|
9915
10075
|
() => vue.unref(getProps).schemas,
|
|
9916
10076
|
(schemas) => {
|
|
9917
|
-
resetSchema(schemas
|
|
10077
|
+
resetSchema(schemas ?? []);
|
|
9918
10078
|
}
|
|
9919
10079
|
);
|
|
9920
10080
|
vue.watch(
|
|
@@ -9935,7 +10095,7 @@ const _sfc_main$A = vue.defineComponent({
|
|
|
9935
10095
|
);
|
|
9936
10096
|
vue.watch(
|
|
9937
10097
|
() => formModel,
|
|
9938
|
-
useDebounceFn(() => {
|
|
10098
|
+
useDebounceFn$1(() => {
|
|
9939
10099
|
vue.unref(getProps).submitOnChange && handleSubmit();
|
|
9940
10100
|
}, 300),
|
|
9941
10101
|
{ deep: true }
|
|
@@ -10165,6 +10325,7 @@ function useForm(props2) {
|
|
|
10165
10325
|
var _a2;
|
|
10166
10326
|
(_a2 = vue.unref(formRef)) == null ? void 0 : _a2.removeSchemaByField(field);
|
|
10167
10327
|
},
|
|
10328
|
+
// TODO promisify
|
|
10168
10329
|
getFieldsValue: () => {
|
|
10169
10330
|
var _a2;
|
|
10170
10331
|
return (_a2 = vue.unref(formRef)) == null ? void 0 : _a2.getFieldsValue();
|
|
@@ -10277,16 +10438,21 @@ const treeProps = utils.buildProps({
|
|
|
10277
10438
|
rightMenuList: {
|
|
10278
10439
|
type: Array
|
|
10279
10440
|
},
|
|
10441
|
+
// 自定义数据过滤判断方法(注: 不是整个过滤方法,而是内置过滤的判断方法,用于增强原本仅能通过title进行过滤的方式)
|
|
10280
10442
|
filterFn: {
|
|
10281
10443
|
type: Function,
|
|
10282
10444
|
default: void 0
|
|
10283
10445
|
},
|
|
10446
|
+
// 高亮搜索值,仅高亮具体匹配值(通过title)值为true时使用默认色值,值为#xxx时使用此值替代且高亮开启
|
|
10284
10447
|
highlight: {
|
|
10285
10448
|
type: [Boolean, String],
|
|
10286
10449
|
default: false
|
|
10287
10450
|
},
|
|
10451
|
+
// 搜索完成时自动展开结果
|
|
10288
10452
|
expandOnSearch: Boolean,
|
|
10453
|
+
// 搜索完成自动选中所有结果,当且仅当 checkable===true 时生效
|
|
10289
10454
|
checkOnSearch: Boolean,
|
|
10455
|
+
// 搜索完成自动select所有结果
|
|
10290
10456
|
selectedOnSearch: Boolean,
|
|
10291
10457
|
loading: {
|
|
10292
10458
|
type: Boolean,
|
|
@@ -10406,7 +10572,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
10406
10572
|
function emitChange(value) {
|
|
10407
10573
|
emit("search", value);
|
|
10408
10574
|
}
|
|
10409
|
-
const debounceEmitChange = useDebounceFn(emitChange, 200);
|
|
10575
|
+
const debounceEmitChange = useDebounceFn$1(emitChange, 200);
|
|
10410
10576
|
vue.watch(
|
|
10411
10577
|
() => searchValue.value,
|
|
10412
10578
|
(v) => {
|
|
@@ -10709,6 +10875,7 @@ const props$5 = {
|
|
|
10709
10875
|
default: true
|
|
10710
10876
|
},
|
|
10711
10877
|
axis: {
|
|
10878
|
+
// The position of the right mouse button click
|
|
10712
10879
|
type: Object,
|
|
10713
10880
|
default() {
|
|
10714
10881
|
return {
|
|
@@ -10718,6 +10885,7 @@ const props$5 = {
|
|
|
10718
10885
|
}
|
|
10719
10886
|
},
|
|
10720
10887
|
items: {
|
|
10888
|
+
// The most important list, if not, will not be displayed
|
|
10721
10889
|
type: Array,
|
|
10722
10890
|
default() {
|
|
10723
10891
|
return [];
|
|
@@ -11104,8 +11272,8 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
11104
11272
|
} = vue.unref(getFieldNames);
|
|
11105
11273
|
const matchedKeys = [];
|
|
11106
11274
|
searchState.searchData = utils.filter(vue.unref(treeDataRef), (node) => {
|
|
11107
|
-
var _a2
|
|
11108
|
-
const result = filterFn ? filterFn(searchValue, node, vue.unref(getFieldNames)) : (
|
|
11275
|
+
var _a2;
|
|
11276
|
+
const result = filterFn ? filterFn(searchValue, node, vue.unref(getFieldNames)) : ((_a2 = node[titleField]) == null ? void 0 : _a2.includes(searchValue)) ?? false;
|
|
11109
11277
|
if (result) {
|
|
11110
11278
|
matchedKeys.push(node[keyField]);
|
|
11111
11279
|
}
|
|
@@ -11286,7 +11454,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
11286
11454
|
}), vue.createVNode(antDesignVue.Spin, {
|
|
11287
11455
|
"wrapperClassName": vue.unref(props2.treeWrapperClassName),
|
|
11288
11456
|
"spinning": vue.unref(props2.loading),
|
|
11289
|
-
"tip": "
|
|
11457
|
+
"tip": "加载中..."
|
|
11290
11458
|
}, {
|
|
11291
11459
|
default: () => [vue.withDirectives(vue.createVNode(ScrollContainer$1, {
|
|
11292
11460
|
"style": scrollStyle
|
|
@@ -11431,13 +11599,12 @@ const _sfc_main$u = vue.defineComponent({
|
|
|
11431
11599
|
);
|
|
11432
11600
|
setCompensation({ useLayoutFooter: true, elements: [footerRef] });
|
|
11433
11601
|
const getClass = vue.computed(() => {
|
|
11434
|
-
var _a2;
|
|
11435
11602
|
return [
|
|
11436
11603
|
prefixCls2,
|
|
11437
11604
|
{
|
|
11438
11605
|
[`${prefixCls2}--dense`]: props2.dense
|
|
11439
11606
|
},
|
|
11440
|
-
|
|
11607
|
+
attrs.class ?? {}
|
|
11441
11608
|
];
|
|
11442
11609
|
});
|
|
11443
11610
|
const getShowHeader = vue.computed(
|
|
@@ -11617,32 +11784,49 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11617
11784
|
}
|
|
11618
11785
|
const HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$j]]);
|
|
11619
11786
|
const componentSetting = {
|
|
11787
|
+
// basic-table setting
|
|
11620
11788
|
table: {
|
|
11789
|
+
// Form interface request general configuration
|
|
11790
|
+
// support xxx.xxx.xxx
|
|
11621
11791
|
fetchSetting: {
|
|
11792
|
+
// The field name of the current page passed to the background
|
|
11622
11793
|
pageField: "current",
|
|
11794
|
+
// The number field name of each page displayed in the background
|
|
11623
11795
|
sizeField: "size",
|
|
11796
|
+
// Field name of the form data returned by the interface
|
|
11624
11797
|
listField: "records",
|
|
11798
|
+
// Total number of tables returned by the interface field name
|
|
11625
11799
|
totalField: "total"
|
|
11626
11800
|
},
|
|
11801
|
+
// Number of pages that can be selected
|
|
11627
11802
|
pageSizeOptions: ["10", "50", "80", "100"],
|
|
11803
|
+
// Default display quantity on one page
|
|
11628
11804
|
defaultPageSize: 10,
|
|
11805
|
+
// Default Size
|
|
11629
11806
|
defaultSize: "middle",
|
|
11807
|
+
// Custom general sort function
|
|
11630
11808
|
defaultSortFn: (sortInfo) => {
|
|
11631
11809
|
const { field, order } = sortInfo;
|
|
11632
11810
|
if (field && order) {
|
|
11633
11811
|
return {
|
|
11812
|
+
// The sort field passed to the backend you
|
|
11634
11813
|
field,
|
|
11814
|
+
// Sorting method passed to the background asc/desc
|
|
11635
11815
|
order
|
|
11636
11816
|
};
|
|
11637
11817
|
} else {
|
|
11638
11818
|
return {};
|
|
11639
11819
|
}
|
|
11640
11820
|
},
|
|
11821
|
+
// Custom general filter function
|
|
11641
11822
|
defaultFilterFn: (data) => {
|
|
11642
11823
|
return data;
|
|
11643
11824
|
}
|
|
11644
11825
|
},
|
|
11826
|
+
// scrollbar setting
|
|
11645
11827
|
scrollbar: {
|
|
11828
|
+
// Whether to use native scroll bar
|
|
11829
|
+
// After opening, the menu, modal, drawer will change the pop-up scroll bar to native
|
|
11646
11830
|
native: false
|
|
11647
11831
|
},
|
|
11648
11832
|
tree: {
|
|
@@ -11687,7 +11871,7 @@ function usePagination$1(refProps) {
|
|
|
11687
11871
|
if (!utils.isBoolean(pagination) && pagination) {
|
|
11688
11872
|
configRef.value = {
|
|
11689
11873
|
...vue.unref(configRef),
|
|
11690
|
-
...pagination
|
|
11874
|
+
...pagination ?? {}
|
|
11691
11875
|
};
|
|
11692
11876
|
}
|
|
11693
11877
|
});
|
|
@@ -11703,7 +11887,7 @@ function usePagination$1(refProps) {
|
|
|
11703
11887
|
pageSize: PAGE_SIZE,
|
|
11704
11888
|
size: "small",
|
|
11705
11889
|
defaultPageSize: PAGE_SIZE,
|
|
11706
|
-
showTotal: (total) =>
|
|
11890
|
+
showTotal: (total) => `共 ${total} 条数据`,
|
|
11707
11891
|
showSizeChanger: true,
|
|
11708
11892
|
pageSizeOptions: PAGE_SIZE_OPTIONS,
|
|
11709
11893
|
itemRender,
|
|
@@ -11834,13 +12018,13 @@ const ClickOutside = {
|
|
|
11834
12018
|
};
|
|
11835
12019
|
function createPlaceholderMessage(component) {
|
|
11836
12020
|
if (component.includes("Input") || component.includes("AutoComplete")) {
|
|
11837
|
-
return "
|
|
12021
|
+
return "请输入";
|
|
11838
12022
|
}
|
|
11839
12023
|
if (component.includes("Picker")) {
|
|
11840
|
-
return "
|
|
12024
|
+
return "请选择";
|
|
11841
12025
|
}
|
|
11842
12026
|
if (component.includes("Select") || component.includes("Checkbox") || component.includes("Radio") || component.includes("Switch") || component.includes("DatePicker") || component.includes("TimePicker")) {
|
|
11843
|
-
return "
|
|
12027
|
+
return "请选择";
|
|
11844
12028
|
}
|
|
11845
12029
|
return "";
|
|
11846
12030
|
}
|
|
@@ -11897,24 +12081,24 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
11897
12081
|
return ["Checkbox", "Switch"].includes(component);
|
|
11898
12082
|
});
|
|
11899
12083
|
const getComponentProps = vue.computed(() => {
|
|
11900
|
-
var _a2
|
|
12084
|
+
var _a2;
|
|
11901
12085
|
const isCheckValue = vue.unref(getIsCheckComp);
|
|
11902
12086
|
const valueField = isCheckValue ? "checked" : "value";
|
|
11903
12087
|
const val = vue.unref(currentValueRef);
|
|
11904
12088
|
const value = isCheckValue ? utils.isNumber(val) && utils.isBoolean(val) ? val : !!val : val;
|
|
11905
|
-
let compProps = (
|
|
12089
|
+
let compProps = ((_a2 = props2.column) == null ? void 0 : _a2.editComponentProps) ?? {};
|
|
11906
12090
|
const {
|
|
11907
12091
|
record,
|
|
11908
12092
|
column,
|
|
11909
12093
|
index: index2
|
|
11910
12094
|
} = props2;
|
|
11911
12095
|
if (utils.isFunction(compProps)) {
|
|
11912
|
-
compProps =
|
|
12096
|
+
compProps = compProps({
|
|
11913
12097
|
text: val,
|
|
11914
12098
|
record,
|
|
11915
12099
|
column,
|
|
11916
12100
|
index: index2
|
|
11917
|
-
})
|
|
12101
|
+
}) ?? {};
|
|
11918
12102
|
}
|
|
11919
12103
|
const component = vue.unref(getComponent);
|
|
11920
12104
|
const apiSelectProps = {};
|
|
@@ -11926,10 +12110,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
11926
12110
|
showCount: true,
|
|
11927
12111
|
maxlength: 100,
|
|
11928
12112
|
size: "small",
|
|
11929
|
-
getPopupContainer: () =>
|
|
11930
|
-
var _a3;
|
|
11931
|
-
return (_a3 = vue.unref(table2 == null ? void 0 : table2.wrapRef.value)) != null ? _a3 : document.body;
|
|
11932
|
-
},
|
|
12113
|
+
getPopupContainer: () => vue.unref(table2 == null ? void 0 : table2.wrapRef.value) ?? document.body,
|
|
11933
12114
|
placeholder: createPlaceholderMessage(vue.unref(getComponent)),
|
|
11934
12115
|
...apiSelectProps,
|
|
11935
12116
|
...compProps,
|
|
@@ -11968,7 +12149,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
11968
12149
|
return disabled;
|
|
11969
12150
|
});
|
|
11970
12151
|
const getValues = vue.computed(() => {
|
|
11971
|
-
var _a2
|
|
12152
|
+
var _a2;
|
|
11972
12153
|
const {
|
|
11973
12154
|
editValueMap
|
|
11974
12155
|
} = props2.column;
|
|
@@ -11980,9 +12161,9 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
11980
12161
|
if (!component.includes("Select") && !component.includes("Radio")) {
|
|
11981
12162
|
return value;
|
|
11982
12163
|
}
|
|
11983
|
-
const options = (
|
|
12164
|
+
const options = ((_a2 = vue.unref(getComponentProps)) == null ? void 0 : _a2.options) ?? (vue.unref(optionsRef) || []);
|
|
11984
12165
|
const option = options.find((item) => `${item.value}` === `${value}`);
|
|
11985
|
-
return (
|
|
12166
|
+
return (option == null ? void 0 : option.label) ?? value;
|
|
11986
12167
|
});
|
|
11987
12168
|
const getWrapperStyle = vue.computed(() => {
|
|
11988
12169
|
if (vue.unref(getIsCheckComp) || vue.unref(getRowEditable)) {
|
|
@@ -12264,7 +12445,6 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
12264
12445
|
};
|
|
12265
12446
|
},
|
|
12266
12447
|
render() {
|
|
12267
|
-
var _a2;
|
|
12268
12448
|
return vue.createVNode("div", {
|
|
12269
12449
|
"class": this.prefixCls
|
|
12270
12450
|
}, [vue.withDirectives(vue.createVNode("div", {
|
|
@@ -12275,13 +12455,13 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
12275
12455
|
"onClick": this.handleEdit
|
|
12276
12456
|
}, [vue.createVNode("div", {
|
|
12277
12457
|
"class": "cell-content",
|
|
12278
|
-
"title": this.column.ellipsis ?
|
|
12458
|
+
"title": this.column.ellipsis ? this.getValues ?? "" : ""
|
|
12279
12459
|
}, [this.column.editRender ? this.column.editRender({
|
|
12280
12460
|
text: this.value,
|
|
12281
12461
|
record: this.record,
|
|
12282
12462
|
column: this.column,
|
|
12283
12463
|
index: this.index
|
|
12284
|
-
}) : this.getValues ? this.getValues : "
|
|
12464
|
+
}) : this.getValues ? this.getValues : " "]), !this.column.editRow && vue.createVNode(FormOutlined$1, {
|
|
12285
12465
|
"class": `${this.prefixCls}__normal-icon`
|
|
12286
12466
|
}, null)]), [[vue.vShow, !this.isEdit]]), this.isEdit && vue.createVNode(antDesignVue.Spin, {
|
|
12287
12467
|
"spinning": this.spinning
|
|
@@ -12399,7 +12579,7 @@ function handleIndexColumn(propsRef, getPaginationRef, columns) {
|
|
|
12399
12579
|
columns.unshift({
|
|
12400
12580
|
flag: INDEX_COLUMN_FLAG,
|
|
12401
12581
|
width: 50,
|
|
12402
|
-
title: "
|
|
12582
|
+
title: "序号",
|
|
12403
12583
|
align: "center",
|
|
12404
12584
|
customRender: ({ index: index2 }) => {
|
|
12405
12585
|
const getPagination = vue.unref(getPaginationRef);
|
|
@@ -12492,9 +12672,8 @@ function useColumns(propsRef, getPaginationRef) {
|
|
|
12492
12672
|
vue.watch(
|
|
12493
12673
|
() => vue.unref(propsRef).columns,
|
|
12494
12674
|
(columns) => {
|
|
12495
|
-
var _a2;
|
|
12496
12675
|
columnsRef.value = columns;
|
|
12497
|
-
cacheColumns = (
|
|
12676
|
+
cacheColumns = (columns == null ? void 0 : columns.filter((item) => !item.flag)) ?? [];
|
|
12498
12677
|
}
|
|
12499
12678
|
);
|
|
12500
12679
|
function setCacheColumnsByField(dataIndex, value) {
|
|
@@ -12757,7 +12936,7 @@ function useDataSource(propsRef, {
|
|
|
12757
12936
|
}
|
|
12758
12937
|
function insertTableDataRecord(record, index2) {
|
|
12759
12938
|
var _a2;
|
|
12760
|
-
index2 = index2
|
|
12939
|
+
index2 = index2 ?? ((_a2 = dataSourceRef.value) == null ? void 0 : _a2.length);
|
|
12761
12940
|
vue.unref(dataSourceRef).splice(index2, 0, record);
|
|
12762
12941
|
return vue.unref(dataSourceRef);
|
|
12763
12942
|
}
|
|
@@ -12789,7 +12968,6 @@ function useDataSource(propsRef, {
|
|
|
12789
12968
|
return findRow(dataSourceRef.value);
|
|
12790
12969
|
}
|
|
12791
12970
|
async function fetch(opt) {
|
|
12792
|
-
var _a2, _b, _c;
|
|
12793
12971
|
const {
|
|
12794
12972
|
api,
|
|
12795
12973
|
searchInfo,
|
|
@@ -12824,12 +13002,12 @@ function useDataSource(propsRef, {
|
|
|
12824
13002
|
pageParams,
|
|
12825
13003
|
useSearchForm ? getFieldsValue() : {},
|
|
12826
13004
|
searchInfo,
|
|
12827
|
-
(
|
|
13005
|
+
(opt == null ? void 0 : opt.searchInfo) ?? {},
|
|
12828
13006
|
defSort,
|
|
12829
13007
|
sortInfo,
|
|
12830
13008
|
filterInfo,
|
|
12831
|
-
(
|
|
12832
|
-
(
|
|
13009
|
+
(opt == null ? void 0 : opt.sortInfo) ?? {},
|
|
13010
|
+
(opt == null ? void 0 : opt.filterInfo) ?? {}
|
|
12833
13011
|
);
|
|
12834
13012
|
if (beforeFetch && utils.isFunction(beforeFetch)) {
|
|
12835
13013
|
params = await beforeFetch(params) || params;
|
|
@@ -12979,13 +13157,12 @@ function useRowSelection(propsRef, tableData, emit) {
|
|
|
12979
13157
|
return vue.unref(getAutoCreateKey) ? ROW_KEY : rowKey;
|
|
12980
13158
|
});
|
|
12981
13159
|
function setSelectedRowKeys(rowKeys) {
|
|
12982
|
-
var _a2;
|
|
12983
13160
|
selectedRowKeysRef.value = rowKeys;
|
|
12984
13161
|
const allSelectedRows = utils.findNodeAll(
|
|
12985
13162
|
vue.toRaw(vue.unref(tableData)).concat(vue.toRaw(vue.unref(selectedRowRef))),
|
|
12986
13163
|
(item) => rowKeys == null ? void 0 : rowKeys.includes(item[vue.unref(getRowKey)]),
|
|
12987
13164
|
{
|
|
12988
|
-
children:
|
|
13165
|
+
children: propsRef.value.childrenColumnName ?? "children"
|
|
12989
13166
|
}
|
|
12990
13167
|
);
|
|
12991
13168
|
const trueSelectedRows = [];
|
|
@@ -13034,7 +13211,7 @@ function useRowSelection(propsRef, tableData, emit) {
|
|
|
13034
13211
|
function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDataSourceRef, wrapRef, formRef) {
|
|
13035
13212
|
const tableHeightRef = vue.ref(167);
|
|
13036
13213
|
const modalFn = useModalContext();
|
|
13037
|
-
const debounceRedoHeight = useDebounceFn(redoHeight, 100);
|
|
13214
|
+
const debounceRedoHeight = useDebounceFn$1(redoHeight, 100);
|
|
13038
13215
|
const getCanResize = vue.computed(() => {
|
|
13039
13216
|
const { canResize, scroll } = vue.unref(propsRef);
|
|
13040
13217
|
return canResize && !(scroll || {}).y;
|
|
@@ -13065,7 +13242,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
13065
13242
|
let footerEl;
|
|
13066
13243
|
let bodyEl;
|
|
13067
13244
|
async function calcTableHeight() {
|
|
13068
|
-
var _a2, _b, _c
|
|
13245
|
+
var _a2, _b, _c;
|
|
13069
13246
|
const {
|
|
13070
13247
|
resizeHeightOffset,
|
|
13071
13248
|
pagination,
|
|
@@ -13135,8 +13312,8 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
13135
13312
|
const tablePadding = 12;
|
|
13136
13313
|
const formMargin = 16;
|
|
13137
13314
|
let paginationMargin = 10;
|
|
13138
|
-
const wrapHeight = (
|
|
13139
|
-
let formHeight = (
|
|
13315
|
+
const wrapHeight = ((_a2 = vue.unref(wrapRef)) == null ? void 0 : _a2.offsetHeight) ?? 0;
|
|
13316
|
+
let formHeight = ((_b = vue.unref(formRef)) == null ? void 0 : _b.$el.offsetHeight) ?? 0;
|
|
13140
13317
|
if (formHeight) {
|
|
13141
13318
|
formHeight += formMargin;
|
|
13142
13319
|
}
|
|
@@ -13146,13 +13323,13 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
13146
13323
|
if (utils.isBoolean(useSearchForm) && !useSearchForm) {
|
|
13147
13324
|
paddingHeight = 0;
|
|
13148
13325
|
}
|
|
13149
|
-
const headerCellHeight = (
|
|
13326
|
+
const headerCellHeight = ((_c = tableEl.querySelector(".ant-table-title")) == null ? void 0 : _c.offsetHeight) ?? 0;
|
|
13150
13327
|
bottomIncludeBody = wrapHeight - formHeight - headerCellHeight - tablePadding - paginationMargin;
|
|
13151
13328
|
} else {
|
|
13152
13329
|
bottomIncludeBody = utils.getViewportOffset(headEl).bottomIncludeBody;
|
|
13153
13330
|
}
|
|
13154
13331
|
let height = bottomIncludeBody - (resizeHeightOffset || 0) - paddingHeight - paginationHeight - footerHeight - headerHeight;
|
|
13155
|
-
height = (
|
|
13332
|
+
height = (height > maxHeight ? maxHeight : height) ?? height;
|
|
13156
13333
|
setHeight(height);
|
|
13157
13334
|
bodyEl.style.height = `${height}px`;
|
|
13158
13335
|
}
|
|
@@ -13164,7 +13341,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
13164
13341
|
});
|
|
13165
13342
|
});
|
|
13166
13343
|
const getScrollX = vue.computed(() => {
|
|
13167
|
-
var _a2
|
|
13344
|
+
var _a2;
|
|
13168
13345
|
let width = 0;
|
|
13169
13346
|
if (vue.unref(rowSelectionRef)) {
|
|
13170
13347
|
width += 60;
|
|
@@ -13182,7 +13359,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
13182
13359
|
width += len * NORMAL_WIDTH;
|
|
13183
13360
|
}
|
|
13184
13361
|
const table2 = vue.unref(tableElRef);
|
|
13185
|
-
const tableWidth = (
|
|
13362
|
+
const tableWidth = ((_a2 = table2 == null ? void 0 : table2.$el) == null ? void 0 : _a2.offsetWidth) ?? 0;
|
|
13186
13363
|
return tableWidth > width ? "100%" : width;
|
|
13187
13364
|
});
|
|
13188
13365
|
const getScrollRef = vue.computed(() => {
|
|
@@ -13200,14 +13377,13 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
13200
13377
|
function useTableScrollTo(tableElRef, getDataSourceRef) {
|
|
13201
13378
|
let bodyEl;
|
|
13202
13379
|
async function findTargetRowToScroll(targetRowData) {
|
|
13203
|
-
var _a2;
|
|
13204
13380
|
const { id } = targetRowData;
|
|
13205
13381
|
const targetRowEl = bodyEl == null ? void 0 : bodyEl.querySelector(
|
|
13206
13382
|
`[data-row-key="${id}"]`
|
|
13207
13383
|
);
|
|
13208
13384
|
await vue.nextTick();
|
|
13209
13385
|
bodyEl == null ? void 0 : bodyEl.scrollTo({
|
|
13210
|
-
top: (
|
|
13386
|
+
top: (targetRowEl == null ? void 0 : targetRowEl.offsetTop) ?? 0,
|
|
13211
13387
|
behavior: "smooth"
|
|
13212
13388
|
});
|
|
13213
13389
|
}
|
|
@@ -13466,7 +13642,7 @@ const _sfc_main$q = vue.defineComponent({
|
|
|
13466
13642
|
const el = columnListEl.$el;
|
|
13467
13643
|
if (!el)
|
|
13468
13644
|
return;
|
|
13469
|
-
sortable =
|
|
13645
|
+
sortable = Sortablejs.create(vue.unref(el), {
|
|
13470
13646
|
animation: 500,
|
|
13471
13647
|
delay: 400,
|
|
13472
13648
|
delayOnTouchOnly: true,
|
|
@@ -13861,7 +14037,7 @@ const _sfc_main$n = vue.defineComponent({
|
|
|
13861
14037
|
return { redo, t: t2 };
|
|
13862
14038
|
}
|
|
13863
14039
|
});
|
|
13864
|
-
const _hoisted_1$b = /* @__PURE__ */ vue.createElementVNode("span", null, "
|
|
14040
|
+
const _hoisted_1$b = /* @__PURE__ */ vue.createElementVNode("span", null, "显隐搜索", -1);
|
|
13865
14041
|
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13866
14042
|
const _component_BarsOutlined = vue.resolveComponent("BarsOutlined");
|
|
13867
14043
|
const _component_Tooltip = vue.resolveComponent("Tooltip");
|
|
@@ -13881,6 +14057,7 @@ const _sfc_main$m = vue.defineComponent({
|
|
|
13881
14057
|
components: {
|
|
13882
14058
|
ColumnSetting,
|
|
13883
14059
|
SizeSetting,
|
|
14060
|
+
// RedoSetting,
|
|
13884
14061
|
FullScreenSetting,
|
|
13885
14062
|
ShowSearchSetting
|
|
13886
14063
|
},
|
|
@@ -13944,6 +14121,8 @@ const TableSettingComponent = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render
|
|
|
13944
14121
|
const _sfc_main$l = vue.defineComponent({
|
|
13945
14122
|
name: "BasicTableHeader",
|
|
13946
14123
|
components: {
|
|
14124
|
+
// Divider,
|
|
14125
|
+
// TableTitle,
|
|
13947
14126
|
TableSetting: TableSettingComponent
|
|
13948
14127
|
},
|
|
13949
14128
|
props: {
|
|
@@ -14225,10 +14404,10 @@ function useTableForm(propsRef, slots, fetch, getLoading) {
|
|
|
14225
14404
|
return keys2.map((item) => item.startsWith("form-") ? item : null).filter((item) => !!item);
|
|
14226
14405
|
});
|
|
14227
14406
|
function replaceFormSlotKey(key2) {
|
|
14228
|
-
var _a2
|
|
14407
|
+
var _a2;
|
|
14229
14408
|
if (!key2)
|
|
14230
14409
|
return "";
|
|
14231
|
-
return (
|
|
14410
|
+
return ((_a2 = key2 == null ? void 0 : key2.replace) == null ? void 0 : _a2.call(key2, /form\-/, "")) ?? "";
|
|
14232
14411
|
}
|
|
14233
14412
|
function handleSearchInfoChange(info) {
|
|
14234
14413
|
const { handleSearchInfoFn } = vue.unref(propsRef);
|
|
@@ -14293,17 +14472,22 @@ const basicProps$2 = {
|
|
|
14293
14472
|
return FETCH_SETTING;
|
|
14294
14473
|
}
|
|
14295
14474
|
},
|
|
14475
|
+
// 立即请求接口
|
|
14296
14476
|
immediate: { type: Boolean, default: true },
|
|
14297
14477
|
emptyDataIsShowTable: { type: Boolean, default: true },
|
|
14478
|
+
// 额外的请求参数
|
|
14298
14479
|
searchInfo: {
|
|
14299
14480
|
type: Object,
|
|
14300
14481
|
default: null
|
|
14301
14482
|
},
|
|
14483
|
+
// 默认的排序参数
|
|
14302
14484
|
defSort: {
|
|
14303
14485
|
type: Object,
|
|
14304
14486
|
default: null
|
|
14305
14487
|
},
|
|
14488
|
+
// 使用搜索表单
|
|
14306
14489
|
useSearchForm: utils.propTypes.bool,
|
|
14490
|
+
// 表单配置
|
|
14307
14491
|
formConfig: {
|
|
14308
14492
|
type: Object,
|
|
14309
14493
|
default: null
|
|
@@ -14521,6 +14705,7 @@ const _sfc_main$j = vue.defineComponent({
|
|
|
14521
14705
|
tableLayout: "fixed",
|
|
14522
14706
|
rowSelection: vue.unref(getRowSelectionRef),
|
|
14523
14707
|
rowKey: vue.unref(getRowKey),
|
|
14708
|
+
// @ts-ignore
|
|
14524
14709
|
columns: vue.toRaw(vue.unref(getViewColumns)).map((item) => {
|
|
14525
14710
|
return item;
|
|
14526
14711
|
}),
|
|
@@ -14692,6 +14877,11 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
14692
14877
|
__name: "Dropdown",
|
|
14693
14878
|
props: {
|
|
14694
14879
|
popconfirm: Boolean,
|
|
14880
|
+
/**
|
|
14881
|
+
* the trigger mode which executes the drop-down action
|
|
14882
|
+
* @default ['hover']
|
|
14883
|
+
* @type string[]
|
|
14884
|
+
*/
|
|
14695
14885
|
trigger: {
|
|
14696
14886
|
type: [Array],
|
|
14697
14887
|
default: () => {
|
|
@@ -14843,10 +15033,7 @@ const _sfc_main$h = vue.defineComponent({
|
|
|
14843
15033
|
}).map((action) => {
|
|
14844
15034
|
const { popConfirm } = action;
|
|
14845
15035
|
return {
|
|
14846
|
-
getPopupContainer: () =>
|
|
14847
|
-
var _a2;
|
|
14848
|
-
return (_a2 = vue.unref(table2 == null ? void 0 : table2.wrapRef.value)) != null ? _a2 : document.body;
|
|
14849
|
-
},
|
|
15036
|
+
getPopupContainer: () => vue.unref(table2 == null ? void 0 : table2.wrapRef.value) ?? document.body,
|
|
14850
15037
|
type: "link",
|
|
14851
15038
|
size: "small",
|
|
14852
15039
|
...action,
|
|
@@ -14874,19 +15061,16 @@ const _sfc_main$h = vue.defineComponent({
|
|
|
14874
15061
|
});
|
|
14875
15062
|
});
|
|
14876
15063
|
const getAlign = vue.computed(() => {
|
|
14877
|
-
var _a2
|
|
15064
|
+
var _a2;
|
|
14878
15065
|
const columns = ((_a2 = table2 == null ? void 0 : table2.getColumns) == null ? void 0 : _a2.call(table2)) || [];
|
|
14879
15066
|
const actionColumn = columns.find(
|
|
14880
15067
|
(item) => item.flag === ACTION_COLUMN_FLAG
|
|
14881
15068
|
);
|
|
14882
|
-
return (
|
|
15069
|
+
return (actionColumn == null ? void 0 : actionColumn.align) ?? "left";
|
|
14883
15070
|
});
|
|
14884
15071
|
function getTooltip(data) {
|
|
14885
15072
|
return {
|
|
14886
|
-
getPopupContainer: () =>
|
|
14887
|
-
var _a2;
|
|
14888
|
-
return (_a2 = vue.unref(table2 == null ? void 0 : table2.wrapRef.value)) != null ? _a2 : document.body;
|
|
14889
|
-
},
|
|
15073
|
+
getPopupContainer: () => vue.unref(table2 == null ? void 0 : table2.wrapRef.value) ?? document.body,
|
|
14890
15074
|
placement: "bottom",
|
|
14891
15075
|
...utils.isString(data) ? { title: data } : data
|
|
14892
15076
|
};
|
|
@@ -14995,10 +15179,15 @@ const _sfc_main$g = vue.defineComponent({
|
|
|
14995
15179
|
props: {
|
|
14996
15180
|
imgList: utils.propTypes.arrayOf(utils.propTypes.string),
|
|
14997
15181
|
size: utils.propTypes.number.def(40),
|
|
15182
|
+
// 是否简单显示(只显示第一张图片)
|
|
14998
15183
|
simpleShow: utils.propTypes.bool,
|
|
15184
|
+
// 简单模式下是否显示图片数量的badge
|
|
14999
15185
|
showBadge: utils.propTypes.bool.def(true),
|
|
15186
|
+
// 图片间距
|
|
15000
15187
|
margin: utils.propTypes.number.def(4),
|
|
15188
|
+
// src前缀,将会附加在imgList中每一项之前
|
|
15001
15189
|
srcPrefix: utils.propTypes.string.def(""),
|
|
15190
|
+
// fallback,加载失败显示图像占位符。
|
|
15002
15191
|
fallback: utils.propTypes.string.def(
|
|
15003
15192
|
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg=="
|
|
15004
15193
|
)
|
|
@@ -15251,7 +15440,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
15251
15440
|
const [registerTable, tableAction] = useTable$1({
|
|
15252
15441
|
api: () => {
|
|
15253
15442
|
},
|
|
15254
|
-
title: "
|
|
15443
|
+
title: "账号列表",
|
|
15255
15444
|
rowKey: "id",
|
|
15256
15445
|
columns: [],
|
|
15257
15446
|
rowSelection: { type: "radio" },
|
|
@@ -15261,6 +15450,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
15261
15450
|
schemas: []
|
|
15262
15451
|
},
|
|
15263
15452
|
showIndexColumn: true,
|
|
15453
|
+
// isCanResizeParent: true,
|
|
15264
15454
|
resizeHeightOffset: 200,
|
|
15265
15455
|
canResize: true,
|
|
15266
15456
|
searchInfo: {},
|
|
@@ -15559,6 +15749,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
15559
15749
|
const useWrapper = vue.computed(() => !!vue.unref(getMergeProps).title);
|
|
15560
15750
|
const getCollapseOptions = vue.computed(() => {
|
|
15561
15751
|
return {
|
|
15752
|
+
// Cannot be expanded by default
|
|
15562
15753
|
canExpand: false,
|
|
15563
15754
|
...vue.unref(getProps).collapseOptions
|
|
15564
15755
|
};
|
|
@@ -15617,7 +15808,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
15617
15808
|
if (getField && !vue.toRefs(_data).hasOwnProperty(field)) {
|
|
15618
15809
|
return utils.isFunction(render3) ? render3("", _data) : "";
|
|
15619
15810
|
}
|
|
15620
|
-
return utils.isFunction(render3) ? render3(getField, _data) : getField
|
|
15811
|
+
return utils.isFunction(render3) ? render3(getField, _data) : getField ?? "";
|
|
15621
15812
|
};
|
|
15622
15813
|
const width = contentMinWidth;
|
|
15623
15814
|
return vue.createVNode(antDesignVue.Descriptions.Item, {
|
|
@@ -15701,12 +15892,18 @@ function useDescription(props2) {
|
|
|
15701
15892
|
}
|
|
15702
15893
|
const footerProps = {
|
|
15703
15894
|
confirmLoading: { type: Boolean },
|
|
15895
|
+
/**
|
|
15896
|
+
* @description: Show close button
|
|
15897
|
+
*/
|
|
15704
15898
|
showCancelBtn: { type: Boolean, default: true },
|
|
15705
15899
|
cancelButtonProps: Object,
|
|
15706
|
-
cancelText: { type: String, default: "
|
|
15900
|
+
cancelText: { type: String, default: "关闭" },
|
|
15901
|
+
/**
|
|
15902
|
+
* @description: Show confirmation button
|
|
15903
|
+
*/
|
|
15707
15904
|
showOkBtn: { type: Boolean, default: true },
|
|
15708
15905
|
okButtonProps: Object,
|
|
15709
|
-
okText: { type: String, default: "
|
|
15906
|
+
okText: { type: String, default: "确认" },
|
|
15710
15907
|
okType: { type: String, default: "primary" },
|
|
15711
15908
|
showFooter: { type: Boolean },
|
|
15712
15909
|
footerHeight: {
|
|
@@ -15931,9 +16128,7 @@ const _sfc_main$8 = vue.defineComponent({
|
|
|
15931
16128
|
() => visibleRef.value,
|
|
15932
16129
|
(visible) => {
|
|
15933
16130
|
vue.nextTick(() => {
|
|
15934
|
-
var _a2;
|
|
15935
16131
|
emit("visible-change", visible);
|
|
15936
|
-
instance && ((_a2 = drawerInstance.emitVisible) == null ? void 0 : _a2.call(drawerInstance, visible, instance.uid));
|
|
15937
16132
|
});
|
|
15938
16133
|
}
|
|
15939
16134
|
);
|
|
@@ -16319,39 +16514,70 @@ var REGEXP_TAG_NAME = /^img|canvas$/i;
|
|
|
16319
16514
|
var MIN_CONTAINER_WIDTH = 200;
|
|
16320
16515
|
var MIN_CONTAINER_HEIGHT = 100;
|
|
16321
16516
|
var DEFAULTS = {
|
|
16517
|
+
// Define the view mode of the cropper
|
|
16322
16518
|
viewMode: 0,
|
|
16519
|
+
// 0, 1, 2, 3
|
|
16520
|
+
// Define the dragging mode of the cropper
|
|
16323
16521
|
dragMode: DRAG_MODE_CROP,
|
|
16522
|
+
// 'crop', 'move' or 'none'
|
|
16523
|
+
// Define the initial aspect ratio of the crop box
|
|
16324
16524
|
initialAspectRatio: NaN,
|
|
16525
|
+
// Define the aspect ratio of the crop box
|
|
16325
16526
|
aspectRatio: NaN,
|
|
16527
|
+
// An object with the previous cropping result data
|
|
16326
16528
|
data: null,
|
|
16529
|
+
// A selector for adding extra containers to preview
|
|
16327
16530
|
preview: "",
|
|
16531
|
+
// Re-render the cropper when resize the window
|
|
16328
16532
|
responsive: true,
|
|
16533
|
+
// Restore the cropped area after resize the window
|
|
16329
16534
|
restore: true,
|
|
16535
|
+
// Check if the current image is a cross-origin image
|
|
16330
16536
|
checkCrossOrigin: true,
|
|
16537
|
+
// Check the current image's Exif Orientation information
|
|
16331
16538
|
checkOrientation: true,
|
|
16539
|
+
// Show the black modal
|
|
16332
16540
|
modal: true,
|
|
16541
|
+
// Show the dashed lines for guiding
|
|
16333
16542
|
guides: true,
|
|
16543
|
+
// Show the center indicator for guiding
|
|
16334
16544
|
center: true,
|
|
16545
|
+
// Show the white modal to highlight the crop box
|
|
16335
16546
|
highlight: true,
|
|
16547
|
+
// Show the grid background
|
|
16336
16548
|
background: true,
|
|
16549
|
+
// Enable to crop the image automatically when initialize
|
|
16337
16550
|
autoCrop: true,
|
|
16551
|
+
// Define the percentage of automatic cropping area when initializes
|
|
16338
16552
|
autoCropArea: 0.8,
|
|
16553
|
+
// Enable to move the image
|
|
16339
16554
|
movable: true,
|
|
16555
|
+
// Enable to rotate the image
|
|
16340
16556
|
rotatable: true,
|
|
16557
|
+
// Enable to scale the image
|
|
16341
16558
|
scalable: true,
|
|
16559
|
+
// Enable to zoom the image
|
|
16342
16560
|
zoomable: true,
|
|
16561
|
+
// Enable to zoom the image by dragging touch
|
|
16343
16562
|
zoomOnTouch: true,
|
|
16563
|
+
// Enable to zoom the image by wheeling mouse
|
|
16344
16564
|
zoomOnWheel: true,
|
|
16565
|
+
// Define zoom ratio when zoom the image by wheeling mouse
|
|
16345
16566
|
wheelZoomRatio: 0.1,
|
|
16567
|
+
// Enable to move the crop box
|
|
16346
16568
|
cropBoxMovable: true,
|
|
16569
|
+
// Enable to resize the crop box
|
|
16347
16570
|
cropBoxResizable: true,
|
|
16571
|
+
// Toggle drag mode between "crop" and "move" when click twice on the cropper
|
|
16348
16572
|
toggleDragModeOnDblclick: true,
|
|
16573
|
+
// Size limitation
|
|
16349
16574
|
minCanvasWidth: 0,
|
|
16350
16575
|
minCanvasHeight: 0,
|
|
16351
16576
|
minCropBoxWidth: 0,
|
|
16352
16577
|
minCropBoxHeight: 0,
|
|
16353
16578
|
minContainerWidth: MIN_CONTAINER_WIDTH,
|
|
16354
16579
|
minContainerHeight: MIN_CONTAINER_HEIGHT,
|
|
16580
|
+
// Shortcuts of events
|
|
16355
16581
|
ready: null,
|
|
16356
16582
|
cropstart: null,
|
|
16357
16583
|
cropmove: null,
|
|
@@ -16546,6 +16772,11 @@ var onceSupported = function() {
|
|
|
16546
16772
|
supported = true;
|
|
16547
16773
|
return once;
|
|
16548
16774
|
},
|
|
16775
|
+
/**
|
|
16776
|
+
* This setter can fix a `TypeError` in strict mode
|
|
16777
|
+
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Getter_only}
|
|
16778
|
+
* @param {boolean} value - The value to set
|
|
16779
|
+
*/
|
|
16549
16780
|
set: function set2(value) {
|
|
16550
16781
|
once = value;
|
|
16551
16782
|
}
|
|
@@ -16629,7 +16860,7 @@ function isCrossOriginURL(url) {
|
|
|
16629
16860
|
return parts !== null && (parts[1] !== location.protocol || parts[2] !== location.hostname || parts[3] !== location.port);
|
|
16630
16861
|
}
|
|
16631
16862
|
function addTimestamp(url) {
|
|
16632
|
-
var timestamp = "timestamp=".concat(new Date().getTime());
|
|
16863
|
+
var timestamp = "timestamp=".concat((/* @__PURE__ */ new Date()).getTime());
|
|
16633
16864
|
return url + (url.indexOf("?") === -1 ? "?" : "&") + timestamp;
|
|
16634
16865
|
}
|
|
16635
16866
|
function getTransforms(_ref) {
|
|
@@ -16942,6 +17173,7 @@ var render = {
|
|
|
16942
17173
|
addClass(element, CLASS_HIDDEN);
|
|
16943
17174
|
removeClass(cropper2, CLASS_HIDDEN);
|
|
16944
17175
|
},
|
|
17176
|
+
// Canvas (image wrapper)
|
|
16945
17177
|
initCanvas: function initCanvas() {
|
|
16946
17178
|
var containerData = this.containerData, imageData = this.imageData;
|
|
16947
17179
|
var viewMode = this.options.viewMode;
|
|
@@ -17458,7 +17690,8 @@ var handlers = {
|
|
|
17458
17690
|
},
|
|
17459
17691
|
cropStart: function cropStart(event) {
|
|
17460
17692
|
var buttons = event.buttons, button = event.button;
|
|
17461
|
-
if (this.disabled || (event.type === "mousedown" || event.type === "pointerdown" && event.pointerType === "mouse") &&
|
|
17693
|
+
if (this.disabled || (event.type === "mousedown" || event.type === "pointerdown" && event.pointerType === "mouse") && // No primary button (Usually the left button)
|
|
17694
|
+
(isNumber(buttons) && buttons !== 1 || isNumber(button) && button !== 0 || event.ctrlKey)) {
|
|
17462
17695
|
return;
|
|
17463
17696
|
}
|
|
17464
17697
|
var options = this.options, pointers = this.pointers;
|
|
@@ -17913,6 +18146,7 @@ var change = {
|
|
|
17913
18146
|
}
|
|
17914
18147
|
};
|
|
17915
18148
|
var methods = {
|
|
18149
|
+
// Show the crop box manually
|
|
17916
18150
|
crop: function crop() {
|
|
17917
18151
|
if (this.ready && !this.cropped && !this.disabled) {
|
|
17918
18152
|
this.cropped = true;
|
|
@@ -17925,6 +18159,7 @@ var methods = {
|
|
|
17925
18159
|
}
|
|
17926
18160
|
return this;
|
|
17927
18161
|
},
|
|
18162
|
+
// Reset the image and crop box to their initial states
|
|
17928
18163
|
reset: function reset() {
|
|
17929
18164
|
if (this.ready && !this.disabled) {
|
|
17930
18165
|
this.imageData = assign({}, this.initialImageData);
|
|
@@ -17937,6 +18172,7 @@ var methods = {
|
|
|
17937
18172
|
}
|
|
17938
18173
|
return this;
|
|
17939
18174
|
},
|
|
18175
|
+
// Clear the crop box
|
|
17940
18176
|
clear: function clear() {
|
|
17941
18177
|
if (this.cropped && !this.disabled) {
|
|
17942
18178
|
assign(this.cropBoxData, {
|
|
@@ -17954,6 +18190,12 @@ var methods = {
|
|
|
17954
18190
|
}
|
|
17955
18191
|
return this;
|
|
17956
18192
|
},
|
|
18193
|
+
/**
|
|
18194
|
+
* Replace the image's src and rebuild the cropper
|
|
18195
|
+
* @param {string} url - The new URL.
|
|
18196
|
+
* @param {boolean} [hasSameSize] - Indicate if the new image has the same size as the old one.
|
|
18197
|
+
* @returns {Cropper} this
|
|
18198
|
+
*/
|
|
17957
18199
|
replace: function replace(url) {
|
|
17958
18200
|
var hasSameSize = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
17959
18201
|
if (!this.disabled && url) {
|
|
@@ -17980,6 +18222,7 @@ var methods = {
|
|
|
17980
18222
|
}
|
|
17981
18223
|
return this;
|
|
17982
18224
|
},
|
|
18225
|
+
// Enable (unfreeze) the cropper
|
|
17983
18226
|
enable: function enable() {
|
|
17984
18227
|
if (this.ready && this.disabled) {
|
|
17985
18228
|
this.disabled = false;
|
|
@@ -17987,6 +18230,7 @@ var methods = {
|
|
|
17987
18230
|
}
|
|
17988
18231
|
return this;
|
|
17989
18232
|
},
|
|
18233
|
+
// Disable (freeze) the cropper
|
|
17990
18234
|
disable: function disable() {
|
|
17991
18235
|
if (this.ready && !this.disabled) {
|
|
17992
18236
|
this.disabled = true;
|
|
@@ -17994,6 +18238,10 @@ var methods = {
|
|
|
17994
18238
|
}
|
|
17995
18239
|
return this;
|
|
17996
18240
|
},
|
|
18241
|
+
/**
|
|
18242
|
+
* Destroy the cropper and remove the instance from the image
|
|
18243
|
+
* @returns {Cropper} this
|
|
18244
|
+
*/
|
|
17997
18245
|
destroy: function destroy() {
|
|
17998
18246
|
var element = this.element;
|
|
17999
18247
|
if (!element[NAMESPACE]) {
|
|
@@ -18006,11 +18254,23 @@ var methods = {
|
|
|
18006
18254
|
this.uncreate();
|
|
18007
18255
|
return this;
|
|
18008
18256
|
},
|
|
18257
|
+
/**
|
|
18258
|
+
* Move the canvas with relative offsets
|
|
18259
|
+
* @param {number} offsetX - The relative offset distance on the x-axis.
|
|
18260
|
+
* @param {number} [offsetY=offsetX] - The relative offset distance on the y-axis.
|
|
18261
|
+
* @returns {Cropper} this
|
|
18262
|
+
*/
|
|
18009
18263
|
move: function move2(offsetX) {
|
|
18010
18264
|
var offsetY = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : offsetX;
|
|
18011
18265
|
var _this$canvasData = this.canvasData, left = _this$canvasData.left, top = _this$canvasData.top;
|
|
18012
18266
|
return this.moveTo(isUndefined(offsetX) ? offsetX : left + Number(offsetX), isUndefined(offsetY) ? offsetY : top + Number(offsetY));
|
|
18013
18267
|
},
|
|
18268
|
+
/**
|
|
18269
|
+
* Move the canvas to an absolute point
|
|
18270
|
+
* @param {number} x - The x-axis coordinate.
|
|
18271
|
+
* @param {number} [y=x] - The y-axis coordinate.
|
|
18272
|
+
* @returns {Cropper} this
|
|
18273
|
+
*/
|
|
18014
18274
|
moveTo: function moveTo(x) {
|
|
18015
18275
|
var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : x;
|
|
18016
18276
|
var canvasData = this.canvasData;
|
|
@@ -18032,6 +18292,12 @@ var methods = {
|
|
|
18032
18292
|
}
|
|
18033
18293
|
return this;
|
|
18034
18294
|
},
|
|
18295
|
+
/**
|
|
18296
|
+
* Zoom the canvas with a relative ratio
|
|
18297
|
+
* @param {number} ratio - The target ratio.
|
|
18298
|
+
* @param {Event} _originalEvent - The original event if any.
|
|
18299
|
+
* @returns {Cropper} this
|
|
18300
|
+
*/
|
|
18035
18301
|
zoom: function zoom(ratio, _originalEvent) {
|
|
18036
18302
|
var canvasData = this.canvasData;
|
|
18037
18303
|
ratio = Number(ratio);
|
|
@@ -18042,6 +18308,13 @@ var methods = {
|
|
|
18042
18308
|
}
|
|
18043
18309
|
return this.zoomTo(canvasData.width * ratio / canvasData.naturalWidth, null, _originalEvent);
|
|
18044
18310
|
},
|
|
18311
|
+
/**
|
|
18312
|
+
* Zoom the canvas to an absolute ratio
|
|
18313
|
+
* @param {number} ratio - The target ratio.
|
|
18314
|
+
* @param {Object} pivot - The zoom pivot point coordinate.
|
|
18315
|
+
* @param {Event} _originalEvent - The original event if any.
|
|
18316
|
+
* @returns {Cropper} this
|
|
18317
|
+
*/
|
|
18045
18318
|
zoomTo: function zoomTo(ratio, pivot, _originalEvent) {
|
|
18046
18319
|
var options = this.options, canvasData = this.canvasData;
|
|
18047
18320
|
var width = canvasData.width, height = canvasData.height, naturalWidth = canvasData.naturalWidth, naturalHeight = canvasData.naturalHeight;
|
|
@@ -18078,9 +18351,19 @@ var methods = {
|
|
|
18078
18351
|
}
|
|
18079
18352
|
return this;
|
|
18080
18353
|
},
|
|
18354
|
+
/**
|
|
18355
|
+
* Rotate the canvas with a relative degree
|
|
18356
|
+
* @param {number} degree - The rotate degree.
|
|
18357
|
+
* @returns {Cropper} this
|
|
18358
|
+
*/
|
|
18081
18359
|
rotate: function rotate(degree) {
|
|
18082
18360
|
return this.rotateTo((this.imageData.rotate || 0) + Number(degree));
|
|
18083
18361
|
},
|
|
18362
|
+
/**
|
|
18363
|
+
* Rotate the canvas to an absolute degree
|
|
18364
|
+
* @param {number} degree - The rotate degree.
|
|
18365
|
+
* @returns {Cropper} this
|
|
18366
|
+
*/
|
|
18084
18367
|
rotateTo: function rotateTo(degree) {
|
|
18085
18368
|
degree = Number(degree);
|
|
18086
18369
|
if (isNumber(degree) && this.ready && !this.disabled && this.options.rotatable) {
|
|
@@ -18089,14 +18372,30 @@ var methods = {
|
|
|
18089
18372
|
}
|
|
18090
18373
|
return this;
|
|
18091
18374
|
},
|
|
18375
|
+
/**
|
|
18376
|
+
* Scale the image on the x-axis.
|
|
18377
|
+
* @param {number} scaleX - The scale ratio on the x-axis.
|
|
18378
|
+
* @returns {Cropper} this
|
|
18379
|
+
*/
|
|
18092
18380
|
scaleX: function scaleX(_scaleX) {
|
|
18093
18381
|
var scaleY2 = this.imageData.scaleY;
|
|
18094
18382
|
return this.scale(_scaleX, isNumber(scaleY2) ? scaleY2 : 1);
|
|
18095
18383
|
},
|
|
18384
|
+
/**
|
|
18385
|
+
* Scale the image on the y-axis.
|
|
18386
|
+
* @param {number} scaleY - The scale ratio on the y-axis.
|
|
18387
|
+
* @returns {Cropper} this
|
|
18388
|
+
*/
|
|
18096
18389
|
scaleY: function scaleY(_scaleY) {
|
|
18097
18390
|
var scaleX2 = this.imageData.scaleX;
|
|
18098
18391
|
return this.scale(isNumber(scaleX2) ? scaleX2 : 1, _scaleY);
|
|
18099
18392
|
},
|
|
18393
|
+
/**
|
|
18394
|
+
* Scale the image
|
|
18395
|
+
* @param {number} scaleX - The scale ratio on the x-axis.
|
|
18396
|
+
* @param {number} [scaleY=scaleX] - The scale ratio on the y-axis.
|
|
18397
|
+
* @returns {Cropper} this
|
|
18398
|
+
*/
|
|
18100
18399
|
scale: function scale(scaleX2) {
|
|
18101
18400
|
var scaleY2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : scaleX2;
|
|
18102
18401
|
var imageData = this.imageData;
|
|
@@ -18118,6 +18417,11 @@ var methods = {
|
|
|
18118
18417
|
}
|
|
18119
18418
|
return this;
|
|
18120
18419
|
},
|
|
18420
|
+
/**
|
|
18421
|
+
* Get the cropped area position and size data (base on the original image)
|
|
18422
|
+
* @param {boolean} [rounded=false] - Indicate if round the data values or not.
|
|
18423
|
+
* @returns {Object} The result cropped data.
|
|
18424
|
+
*/
|
|
18121
18425
|
getData: function getData2() {
|
|
18122
18426
|
var rounded = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
18123
18427
|
var options = this.options, imageData = this.imageData, canvasData = this.canvasData, cropBoxData = this.cropBoxData;
|
|
@@ -18158,6 +18462,11 @@ var methods = {
|
|
|
18158
18462
|
}
|
|
18159
18463
|
return data;
|
|
18160
18464
|
},
|
|
18465
|
+
/**
|
|
18466
|
+
* Set the cropped area position and size with new data
|
|
18467
|
+
* @param {Object} data - The new data.
|
|
18468
|
+
* @returns {Cropper} this
|
|
18469
|
+
*/
|
|
18161
18470
|
setData: function setData2(data) {
|
|
18162
18471
|
var options = this.options, imageData = this.imageData, canvasData = this.canvasData;
|
|
18163
18472
|
var cropBoxData = {};
|
|
@@ -18199,12 +18508,24 @@ var methods = {
|
|
|
18199
18508
|
}
|
|
18200
18509
|
return this;
|
|
18201
18510
|
},
|
|
18511
|
+
/**
|
|
18512
|
+
* Get the container size data.
|
|
18513
|
+
* @returns {Object} The result container data.
|
|
18514
|
+
*/
|
|
18202
18515
|
getContainerData: function getContainerData() {
|
|
18203
18516
|
return this.ready ? assign({}, this.containerData) : {};
|
|
18204
18517
|
},
|
|
18518
|
+
/**
|
|
18519
|
+
* Get the image position and size data.
|
|
18520
|
+
* @returns {Object} The result image data.
|
|
18521
|
+
*/
|
|
18205
18522
|
getImageData: function getImageData() {
|
|
18206
18523
|
return this.sized ? assign({}, this.imageData) : {};
|
|
18207
18524
|
},
|
|
18525
|
+
/**
|
|
18526
|
+
* Get the canvas position and size data.
|
|
18527
|
+
* @returns {Object} The result canvas data.
|
|
18528
|
+
*/
|
|
18208
18529
|
getCanvasData: function getCanvasData() {
|
|
18209
18530
|
var canvasData = this.canvasData;
|
|
18210
18531
|
var data = {};
|
|
@@ -18215,6 +18536,11 @@ var methods = {
|
|
|
18215
18536
|
}
|
|
18216
18537
|
return data;
|
|
18217
18538
|
},
|
|
18539
|
+
/**
|
|
18540
|
+
* Set the canvas position and size with new data.
|
|
18541
|
+
* @param {Object} data - The new canvas data.
|
|
18542
|
+
* @returns {Cropper} this
|
|
18543
|
+
*/
|
|
18218
18544
|
setCanvasData: function setCanvasData(data) {
|
|
18219
18545
|
var canvasData = this.canvasData;
|
|
18220
18546
|
var aspectRatio = canvasData.aspectRatio;
|
|
@@ -18236,6 +18562,10 @@ var methods = {
|
|
|
18236
18562
|
}
|
|
18237
18563
|
return this;
|
|
18238
18564
|
},
|
|
18565
|
+
/**
|
|
18566
|
+
* Get the crop box position and size data.
|
|
18567
|
+
* @returns {Object} The result crop box data.
|
|
18568
|
+
*/
|
|
18239
18569
|
getCropBoxData: function getCropBoxData() {
|
|
18240
18570
|
var cropBoxData = this.cropBoxData;
|
|
18241
18571
|
var data;
|
|
@@ -18249,6 +18579,11 @@ var methods = {
|
|
|
18249
18579
|
}
|
|
18250
18580
|
return data || {};
|
|
18251
18581
|
},
|
|
18582
|
+
/**
|
|
18583
|
+
* Set the crop box position and size with new data.
|
|
18584
|
+
* @param {Object} data - The new crop box data.
|
|
18585
|
+
* @returns {Cropper} this
|
|
18586
|
+
*/
|
|
18252
18587
|
setCropBoxData: function setCropBoxData(data) {
|
|
18253
18588
|
var cropBoxData = this.cropBoxData;
|
|
18254
18589
|
var aspectRatio = this.options.aspectRatio;
|
|
@@ -18280,6 +18615,11 @@ var methods = {
|
|
|
18280
18615
|
}
|
|
18281
18616
|
return this;
|
|
18282
18617
|
},
|
|
18618
|
+
/**
|
|
18619
|
+
* Get a canvas drawn the cropped image.
|
|
18620
|
+
* @param {Object} [options={}] - The config options.
|
|
18621
|
+
* @returns {HTMLCanvasElement} - The result canvas.
|
|
18622
|
+
*/
|
|
18283
18623
|
getCroppedCanvas: function getCroppedCanvas() {
|
|
18284
18624
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
18285
18625
|
if (!this.ready || !window.HTMLCanvasElement) {
|
|
@@ -18377,6 +18717,11 @@ var methods = {
|
|
|
18377
18717
|
}))));
|
|
18378
18718
|
return canvas;
|
|
18379
18719
|
},
|
|
18720
|
+
/**
|
|
18721
|
+
* Change the aspect ratio of the crop box.
|
|
18722
|
+
* @param {number} aspectRatio - The new aspect ratio.
|
|
18723
|
+
* @returns {Cropper} this
|
|
18724
|
+
*/
|
|
18380
18725
|
setAspectRatio: function setAspectRatio(aspectRatio) {
|
|
18381
18726
|
var options = this.options;
|
|
18382
18727
|
if (!this.disabled && !isUndefined(aspectRatio)) {
|
|
@@ -18390,6 +18735,11 @@ var methods = {
|
|
|
18390
18735
|
}
|
|
18391
18736
|
return this;
|
|
18392
18737
|
},
|
|
18738
|
+
/**
|
|
18739
|
+
* Change the drag mode.
|
|
18740
|
+
* @param {string} mode - The new drag mode.
|
|
18741
|
+
* @returns {Cropper} this
|
|
18742
|
+
*/
|
|
18393
18743
|
setDragMode: function setDragMode(mode) {
|
|
18394
18744
|
var options = this.options, dragBox = this.dragBox, face = this.face;
|
|
18395
18745
|
if (this.ready && !this.disabled) {
|
|
@@ -18701,12 +19051,20 @@ var Cropper = /* @__PURE__ */ function() {
|
|
|
18701
19051
|
this.stop();
|
|
18702
19052
|
}
|
|
18703
19053
|
}
|
|
19054
|
+
/**
|
|
19055
|
+
* Get the no conflict cropper class.
|
|
19056
|
+
* @returns {Cropper} The cropper class.
|
|
19057
|
+
*/
|
|
18704
19058
|
}], [{
|
|
18705
19059
|
key: "noConflict",
|
|
18706
19060
|
value: function noConflict() {
|
|
18707
19061
|
window.Cropper = AnotherCropper;
|
|
18708
19062
|
return Cropper2;
|
|
18709
19063
|
}
|
|
19064
|
+
/**
|
|
19065
|
+
* Change the default options.
|
|
19066
|
+
* @param {Object} options - The new default options.
|
|
19067
|
+
*/
|
|
18710
19068
|
}, {
|
|
18711
19069
|
key: "setDefaults",
|
|
18712
19070
|
value: function setDefaults(options) {
|
|
@@ -18717,6 +19075,66 @@ var Cropper = /* @__PURE__ */ function() {
|
|
|
18717
19075
|
}();
|
|
18718
19076
|
assign(Cropper.prototype, render, preview, events, handlers, change, methods);
|
|
18719
19077
|
const cropper = "";
|
|
19078
|
+
function toValue(r) {
|
|
19079
|
+
return typeof r === "function" ? r() : vue.unref(r);
|
|
19080
|
+
}
|
|
19081
|
+
const noop = () => {
|
|
19082
|
+
};
|
|
19083
|
+
function createFilterWrapper(filter, fn) {
|
|
19084
|
+
function wrapper(...args) {
|
|
19085
|
+
return new Promise((resolve, reject) => {
|
|
19086
|
+
Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);
|
|
19087
|
+
});
|
|
19088
|
+
}
|
|
19089
|
+
return wrapper;
|
|
19090
|
+
}
|
|
19091
|
+
function debounceFilter(ms, options = {}) {
|
|
19092
|
+
let timer;
|
|
19093
|
+
let maxTimer;
|
|
19094
|
+
let lastRejector = noop;
|
|
19095
|
+
const _clearTimeout = (timer2) => {
|
|
19096
|
+
clearTimeout(timer2);
|
|
19097
|
+
lastRejector();
|
|
19098
|
+
lastRejector = noop;
|
|
19099
|
+
};
|
|
19100
|
+
const filter = (invoke) => {
|
|
19101
|
+
const duration = toValue(ms);
|
|
19102
|
+
const maxDuration = toValue(options.maxWait);
|
|
19103
|
+
if (timer)
|
|
19104
|
+
_clearTimeout(timer);
|
|
19105
|
+
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
|
19106
|
+
if (maxTimer) {
|
|
19107
|
+
_clearTimeout(maxTimer);
|
|
19108
|
+
maxTimer = null;
|
|
19109
|
+
}
|
|
19110
|
+
return Promise.resolve(invoke());
|
|
19111
|
+
}
|
|
19112
|
+
return new Promise((resolve, reject) => {
|
|
19113
|
+
lastRejector = options.rejectOnCancel ? reject : resolve;
|
|
19114
|
+
if (maxDuration && !maxTimer) {
|
|
19115
|
+
maxTimer = setTimeout(() => {
|
|
19116
|
+
if (timer)
|
|
19117
|
+
_clearTimeout(timer);
|
|
19118
|
+
maxTimer = null;
|
|
19119
|
+
resolve(invoke());
|
|
19120
|
+
}, maxDuration);
|
|
19121
|
+
}
|
|
19122
|
+
timer = setTimeout(() => {
|
|
19123
|
+
if (maxTimer)
|
|
19124
|
+
_clearTimeout(maxTimer);
|
|
19125
|
+
maxTimer = null;
|
|
19126
|
+
resolve(invoke());
|
|
19127
|
+
}, duration);
|
|
19128
|
+
});
|
|
19129
|
+
};
|
|
19130
|
+
return filter;
|
|
19131
|
+
}
|
|
19132
|
+
function useDebounceFn(fn, ms = 200, options = {}) {
|
|
19133
|
+
return createFilterWrapper(
|
|
19134
|
+
debounceFilter(ms, options),
|
|
19135
|
+
fn
|
|
19136
|
+
);
|
|
19137
|
+
}
|
|
18720
19138
|
const defaultOptions = {
|
|
18721
19139
|
aspectRatio: 1,
|
|
18722
19140
|
zoomable: true,
|
|
@@ -18826,9 +19244,9 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
18826
19244
|
let fileReader = new FileReader();
|
|
18827
19245
|
fileReader.readAsDataURL(blob);
|
|
18828
19246
|
fileReader.onloadend = (e) => {
|
|
18829
|
-
var _a2
|
|
19247
|
+
var _a2;
|
|
18830
19248
|
emit("cropend", {
|
|
18831
|
-
imgBase64: (
|
|
19249
|
+
imgBase64: ((_a2 = e.target) == null ? void 0 : _a2.result) ?? "",
|
|
18832
19250
|
imgInfo
|
|
18833
19251
|
});
|
|
18834
19252
|
};
|
|
@@ -18915,8 +19333,8 @@ const _sfc_main$6 = vue.defineComponent({
|
|
|
18915
19333
|
src.value = "";
|
|
18916
19334
|
previewSource.value = "";
|
|
18917
19335
|
reader.onload = function(e) {
|
|
18918
|
-
var _a2
|
|
18919
|
-
src.value = (
|
|
19336
|
+
var _a2;
|
|
19337
|
+
src.value = ((_a2 = e.target) == null ? void 0 : _a2.result) ?? "";
|
|
18920
19338
|
filename = file.name;
|
|
18921
19339
|
};
|
|
18922
19340
|
return false;
|
|
@@ -18979,11 +19397,11 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18979
19397
|
const _component_BasicModal = vue.resolveComponent("BasicModal");
|
|
18980
19398
|
return vue.openBlock(), vue.createBlock(_component_BasicModal, vue.mergeProps(_ctx.$attrs, {
|
|
18981
19399
|
onRegister: _ctx.register,
|
|
18982
|
-
title: "
|
|
19400
|
+
title: "头像上传",
|
|
18983
19401
|
width: "800px",
|
|
18984
19402
|
canFullscreen: false,
|
|
18985
19403
|
onOk: _ctx.handleOk,
|
|
18986
|
-
okText: "
|
|
19404
|
+
okText: "确认并上传"
|
|
18987
19405
|
}), {
|
|
18988
19406
|
default: vue.withCtx(() => [
|
|
18989
19407
|
vue.createElementVNode("div", {
|
|
@@ -19014,7 +19432,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19014
19432
|
}, {
|
|
19015
19433
|
default: vue.withCtx(() => [
|
|
19016
19434
|
vue.createVNode(_component_Tooltip, {
|
|
19017
|
-
title: "
|
|
19435
|
+
title: "选择图片",
|
|
19018
19436
|
placement: "bottom"
|
|
19019
19437
|
}, {
|
|
19020
19438
|
default: vue.withCtx(() => [
|
|
@@ -19032,7 +19450,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19032
19450
|
vue.createVNode(_component_Space, null, {
|
|
19033
19451
|
default: vue.withCtx(() => [
|
|
19034
19452
|
vue.createVNode(_component_Tooltip, {
|
|
19035
|
-
title: "
|
|
19453
|
+
title: "重置",
|
|
19036
19454
|
placement: "bottom"
|
|
19037
19455
|
}, {
|
|
19038
19456
|
default: vue.withCtx(() => [
|
|
@@ -19047,7 +19465,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19047
19465
|
_: 1
|
|
19048
19466
|
}),
|
|
19049
19467
|
vue.createVNode(_component_Tooltip, {
|
|
19050
|
-
title: "
|
|
19468
|
+
title: "逆时针旋转",
|
|
19051
19469
|
placement: "bottom"
|
|
19052
19470
|
}, {
|
|
19053
19471
|
default: vue.withCtx(() => [
|
|
@@ -19062,7 +19480,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19062
19480
|
_: 1
|
|
19063
19481
|
}),
|
|
19064
19482
|
vue.createVNode(_component_Tooltip, {
|
|
19065
|
-
title: "
|
|
19483
|
+
title: "顺时针旋转",
|
|
19066
19484
|
placement: "bottom"
|
|
19067
19485
|
}, {
|
|
19068
19486
|
default: vue.withCtx(() => [
|
|
@@ -19077,7 +19495,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19077
19495
|
_: 1
|
|
19078
19496
|
}),
|
|
19079
19497
|
vue.createVNode(_component_Tooltip, {
|
|
19080
|
-
title: "
|
|
19498
|
+
title: "水平翻转",
|
|
19081
19499
|
placement: "bottom"
|
|
19082
19500
|
}, {
|
|
19083
19501
|
default: vue.withCtx(() => [
|
|
@@ -19092,7 +19510,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19092
19510
|
_: 1
|
|
19093
19511
|
}),
|
|
19094
19512
|
vue.createVNode(_component_Tooltip, {
|
|
19095
|
-
title: "
|
|
19513
|
+
title: "垂直翻转",
|
|
19096
19514
|
placement: "bottom"
|
|
19097
19515
|
}, {
|
|
19098
19516
|
default: vue.withCtx(() => [
|
|
@@ -19107,7 +19525,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19107
19525
|
_: 1
|
|
19108
19526
|
}),
|
|
19109
19527
|
vue.createVNode(_component_Tooltip, {
|
|
19110
|
-
title: "
|
|
19528
|
+
title: "放大",
|
|
19111
19529
|
placement: "bottom"
|
|
19112
19530
|
}, {
|
|
19113
19531
|
default: vue.withCtx(() => [
|
|
@@ -19122,7 +19540,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19122
19540
|
_: 1
|
|
19123
19541
|
}),
|
|
19124
19542
|
vue.createVNode(_component_Tooltip, {
|
|
19125
|
-
title: "
|
|
19543
|
+
title: "缩小",
|
|
19126
19544
|
placement: "bottom"
|
|
19127
19545
|
}, {
|
|
19128
19546
|
default: vue.withCtx(() => [
|
|
@@ -19150,7 +19568,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19150
19568
|
_ctx.previewSource ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
19151
19569
|
key: 0,
|
|
19152
19570
|
src: _ctx.previewSource,
|
|
19153
|
-
alt: "
|
|
19571
|
+
alt: "预览"
|
|
19154
19572
|
}, null, 8, _hoisted_1$2)) : vue.createCommentVNode("", true)
|
|
19155
19573
|
], 2),
|
|
19156
19574
|
_ctx.previewSource ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -19222,7 +19640,7 @@ const _sfc_main$5 = vue.defineComponent({
|
|
|
19222
19640
|
function handleUploadSuccess({ source, data }) {
|
|
19223
19641
|
sourceValue.value = source;
|
|
19224
19642
|
emit("change", { source, data });
|
|
19225
|
-
createMessage.success("
|
|
19643
|
+
createMessage.success("上传成功");
|
|
19226
19644
|
}
|
|
19227
19645
|
expose({ openModal: openModal.bind(null, true), closeModal });
|
|
19228
19646
|
return {
|
|
@@ -19276,7 +19694,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19276
19694
|
onClick: _ctx.openModal
|
|
19277
19695
|
}, _ctx.btnProps), {
|
|
19278
19696
|
default: vue.withCtx(() => [
|
|
19279
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.btnText ? _ctx.btnText : "
|
|
19697
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.btnText ? _ctx.btnText : "选择图片"), 1)
|
|
19280
19698
|
]),
|
|
19281
19699
|
_: 1
|
|
19282
19700
|
}, 16, ["class", "onClick"])) : vue.createCommentVNode("", true),
|
|
@@ -19305,8 +19723,17 @@ const props = {
|
|
|
19305
19723
|
suffix: { type: String, default: "" },
|
|
19306
19724
|
separator: { type: String, default: "," },
|
|
19307
19725
|
decimal: { type: String, default: "." },
|
|
19726
|
+
/**
|
|
19727
|
+
* font color
|
|
19728
|
+
*/
|
|
19308
19729
|
color: { type: String },
|
|
19730
|
+
/**
|
|
19731
|
+
* Turn on digital animation
|
|
19732
|
+
*/
|
|
19309
19733
|
useEasing: { type: Boolean, default: true },
|
|
19734
|
+
/**
|
|
19735
|
+
* Digital animation
|
|
19736
|
+
*/
|
|
19310
19737
|
transition: { type: String, default: "linear" }
|
|
19311
19738
|
};
|
|
19312
19739
|
const _sfc_main$4 = vue.defineComponent({
|
|
@@ -19402,9 +19829,21 @@ var SizeEnum = /* @__PURE__ */ ((SizeEnum2) => {
|
|
|
19402
19829
|
})(SizeEnum || {});
|
|
19403
19830
|
(() => {
|
|
19404
19831
|
const map = /* @__PURE__ */ new Map();
|
|
19405
|
-
map.set(
|
|
19406
|
-
|
|
19407
|
-
|
|
19832
|
+
map.set(
|
|
19833
|
+
"default",
|
|
19834
|
+
48
|
|
19835
|
+
/* DEFAULT */
|
|
19836
|
+
);
|
|
19837
|
+
map.set(
|
|
19838
|
+
"small",
|
|
19839
|
+
16
|
|
19840
|
+
/* SMALL */
|
|
19841
|
+
);
|
|
19842
|
+
map.set(
|
|
19843
|
+
"large",
|
|
19844
|
+
64
|
|
19845
|
+
/* LARGE */
|
|
19846
|
+
);
|
|
19408
19847
|
return map;
|
|
19409
19848
|
})();
|
|
19410
19849
|
const _sfc_main$2 = vue.defineComponent({
|
|
@@ -19537,12 +19976,16 @@ const style = "";
|
|
|
19537
19976
|
const basicProps = {
|
|
19538
19977
|
border: true,
|
|
19539
19978
|
size: "small",
|
|
19979
|
+
// 行设置
|
|
19540
19980
|
rowConfig: {
|
|
19541
19981
|
isHover: true,
|
|
19542
19982
|
height: 40
|
|
19543
19983
|
},
|
|
19984
|
+
// 序号设置
|
|
19544
19985
|
seqConfig: {},
|
|
19986
|
+
// 高度
|
|
19545
19987
|
height: "auto"
|
|
19988
|
+
// autoResize: true
|
|
19546
19989
|
};
|
|
19547
19990
|
const basicColumn = {
|
|
19548
19991
|
showHeaderOverflow: "tooltip",
|
|
@@ -19651,14 +20094,14 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19651
20094
|
const getActions = vue.computed(() => {
|
|
19652
20095
|
return [
|
|
19653
20096
|
{
|
|
19654
|
-
label: "
|
|
20097
|
+
label: "编辑",
|
|
19655
20098
|
onClick: () => {
|
|
19656
20099
|
emit("updateStatusEdit", true);
|
|
19657
20100
|
},
|
|
19658
20101
|
ifShow: props2.row._isEdit === false
|
|
19659
20102
|
},
|
|
19660
20103
|
{
|
|
19661
|
-
label: "
|
|
20104
|
+
label: "确定",
|
|
19662
20105
|
onClick: () => {
|
|
19663
20106
|
emit("updateStatusEdit", false);
|
|
19664
20107
|
emit("edit-ensure");
|
|
@@ -19666,7 +20109,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19666
20109
|
ifShow: props2.row._isEdit === true
|
|
19667
20110
|
},
|
|
19668
20111
|
{
|
|
19669
|
-
label: "
|
|
20112
|
+
label: "取消",
|
|
19670
20113
|
onClick: () => {
|
|
19671
20114
|
emit("updateStatusEdit", false);
|
|
19672
20115
|
emit("edit-cancel");
|
|
@@ -19695,7 +20138,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
19695
20138
|
isCompatible: { type: Boolean, default: false },
|
|
19696
20139
|
actionColumn: { default: () => {
|
|
19697
20140
|
return {
|
|
19698
|
-
title: "
|
|
20141
|
+
title: "操作",
|
|
19699
20142
|
field: "action",
|
|
19700
20143
|
width: 150
|
|
19701
20144
|
};
|
|
@@ -19887,7 +20330,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
19887
20330
|
type: "seq",
|
|
19888
20331
|
width: "60",
|
|
19889
20332
|
align: "center",
|
|
19890
|
-
title: "
|
|
20333
|
+
title: "序号"
|
|
19891
20334
|
})) : vue.createCommentVNode("", true),
|
|
19892
20335
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getColumns), (column, index2) => {
|
|
19893
20336
|
return vue.openBlock(), vue.createBlock(_component_vxe_column, vue.mergeProps({ key: index2 }, column, {
|
|
@@ -19920,7 +20363,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
19920
20363
|
}), 128)),
|
|
19921
20364
|
vue.unref(getProps).isShowAction ? (vue.openBlock(), vue.createBlock(_component_vxe_column, vue.mergeProps({
|
|
19922
20365
|
key: 3,
|
|
19923
|
-
title: "
|
|
20366
|
+
title: "操作",
|
|
19924
20367
|
field: "action",
|
|
19925
20368
|
align: "center"
|
|
19926
20369
|
}, vue.unref(getProps).actionColumn), {
|
|
@@ -19959,7 +20402,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
19959
20402
|
pageSizeOptions: vue.unref(page).pageSizeOptions,
|
|
19960
20403
|
"show-size-changer": "",
|
|
19961
20404
|
"show-quick-jumper": "",
|
|
19962
|
-
"show-total": (total) =>
|
|
20405
|
+
"show-total": (total) => `共 ${total} 条数据`,
|
|
19963
20406
|
onChange: handlePageChange
|
|
19964
20407
|
}, null, 8, ["total", "current", "page-size", "pageSizeOptions", "show-total"])
|
|
19965
20408
|
], 2)) : vue.createCommentVNode("", true)
|
|
@@ -20003,7 +20446,7 @@ function useTablePlus(tableProps) {
|
|
|
20003
20446
|
return [register, methods2];
|
|
20004
20447
|
}
|
|
20005
20448
|
function useTable(app) {
|
|
20006
|
-
app.use(
|
|
20449
|
+
app.use(VXETable, {});
|
|
20007
20450
|
}
|
|
20008
20451
|
const withInstall = (comp) => {
|
|
20009
20452
|
comp.install = (app, options) => {
|