@cmstops/pro-compo 3.9.1-rc.4 → 3.9.1-rc.6
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/README.md +103 -76
- package/dist/index.css +45 -4
- package/dist/index.min.css +1 -1
- package/es/baseFilter/component.js +71 -14
- package/es/hooks/usePopper.d.ts +1 -1
- package/es/hooks/usePopper.js +3 -3
- package/es/index.css +45 -4
- package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +268 -0
- package/es/selectResourceModal/__demo__/module/basic.d.ts +299 -0
- package/es/selectResourceModal/components/List/ListNormal/Filter.js +192 -90
- package/es/selectResourceModal/components/List/ListNormal/index.js +23 -7
- package/es/selectResourceModal/hooks/useResponsiveFilter.d.ts +21 -0
- package/es/selectResourceModal/hooks/useResponsiveFilter.js +142 -0
- package/es/selectResourceModal/style/index.css +45 -4
- package/es/selectResourceModal/style/index.less +14 -0
- package/es/selectResourceModal/style/list.less +40 -4
- package/es/utils/index.js +6 -6
- package/lib/baseFilter/component.js +69 -12
- package/lib/hooks/usePopper.js +3 -3
- package/lib/index.css +45 -4
- package/lib/selectResourceModal/components/List/ListNormal/Filter.js +189 -87
- package/lib/selectResourceModal/components/List/ListNormal/index.js +22 -6
- package/lib/selectResourceModal/hooks/useResponsiveFilter.js +144 -0
- package/lib/selectResourceModal/style/index.css +45 -4
- package/lib/selectResourceModal/style/index.less +14 -0
- package/lib/selectResourceModal/style/list.less +40 -4
- package/lib/utils/index.js +6 -6
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, nextTick, toRaw, openBlock, createElementBlock, Fragment, createElementVNode, withModifiers, createVNode, withCtx, renderList, createBlock, unref, normalizeStyle, createCommentVNode
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, ref, computed, watch, nextTick, toRaw, openBlock, createElementBlock, Fragment, createElementVNode, withModifiers, createVNode, withCtx, renderList, createBlock, renderSlot, unref, createTextVNode, toDisplayString, normalizeStyle, createCommentVNode } from "vue";
|
|
2
|
+
import { InputGroup, Select, Option, Input, InputSearch, RangePicker, RadioGroup, Radio } from "@arco-design/web-vue";
|
|
3
3
|
import _sfc_main$2 from "./components/filterItem.js";
|
|
4
4
|
import _sfc_main$1 from "./components/FilterGroup.js";
|
|
5
5
|
const _sfc_main = defineComponent({
|
|
@@ -37,9 +37,11 @@ const _sfc_main = defineComponent({
|
|
|
37
37
|
});
|
|
38
38
|
return _columns;
|
|
39
39
|
});
|
|
40
|
-
const getOptions = (
|
|
41
|
-
return item
|
|
42
|
-
|
|
40
|
+
const getOptions = computed(() => {
|
|
41
|
+
return (item) => {
|
|
42
|
+
return item.options ? item.options : [];
|
|
43
|
+
};
|
|
44
|
+
});
|
|
43
45
|
const hasValue = computed(() => {
|
|
44
46
|
return (key) => {
|
|
45
47
|
var _a, _b;
|
|
@@ -76,7 +78,10 @@ const _sfc_main = defineComponent({
|
|
|
76
78
|
_form[column.range] = rangeTemp[column.range];
|
|
77
79
|
} else if (column.component === "select") {
|
|
78
80
|
_form[column.key] = column.defaultValue || null;
|
|
79
|
-
} else {
|
|
81
|
+
} else if (column.component === "input-group") {
|
|
82
|
+
_form[column.selectKey] = column.selectDefaultValue || "";
|
|
83
|
+
_form[column.inputKey] = column.inputDefaultValue || "";
|
|
84
|
+
} else if (column.component) {
|
|
80
85
|
_form[column.key] = column.defaultValue || "";
|
|
81
86
|
}
|
|
82
87
|
});
|
|
@@ -178,17 +183,48 @@ const _sfc_main = defineComponent({
|
|
|
178
183
|
active: hasValue.value(item.key)
|
|
179
184
|
}, {
|
|
180
185
|
default: withCtx(() => [
|
|
181
|
-
item.component === "input" ? (openBlock(), createBlock(unref(
|
|
182
|
-
|
|
186
|
+
item.slot ? renderSlot(_ctx.$slots, item.slot, { key: 0 }) : item.component === "input-group" ? (openBlock(), createBlock(unref(InputGroup), { key: 1 }, {
|
|
187
|
+
default: withCtx(() => [
|
|
188
|
+
createVNode(unref(Select), {
|
|
189
|
+
modelValue: form.value[item.selectKey],
|
|
190
|
+
"onUpdate:modelValue": ($event) => form.value[item.selectKey] = $event,
|
|
191
|
+
"default-active-first-option": "",
|
|
192
|
+
style: { "width": "100px" }
|
|
193
|
+
}, {
|
|
194
|
+
default: withCtx(() => [
|
|
195
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.selectOptions, (option, idx) => {
|
|
196
|
+
return openBlock(), createBlock(unref(Option), {
|
|
197
|
+
key: idx,
|
|
198
|
+
value: option.value
|
|
199
|
+
}, {
|
|
200
|
+
default: withCtx(() => [
|
|
201
|
+
createTextVNode(toDisplayString(option.label), 1)
|
|
202
|
+
]),
|
|
203
|
+
_: 2
|
|
204
|
+
}, 1032, ["value"]);
|
|
205
|
+
}), 128))
|
|
206
|
+
]),
|
|
207
|
+
_: 2
|
|
208
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
209
|
+
createVNode(unref(Input), {
|
|
210
|
+
modelValue: form.value[item.inputKey],
|
|
211
|
+
"onUpdate:modelValue": ($event) => form.value[item.inputKey] = $event,
|
|
212
|
+
placeholder: item.placeholder ? item.placeholder : `\u8BF7\u8F93\u5165${item.inputLabel}`,
|
|
213
|
+
style: { "width": "180px" }
|
|
214
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
215
|
+
]),
|
|
216
|
+
_: 2
|
|
217
|
+
}, 1024)) : item.component === "input" ? (openBlock(), createBlock(unref(InputSearch), {
|
|
218
|
+
key: 2,
|
|
183
219
|
modelValue: form.value[item.key],
|
|
184
220
|
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
185
221
|
style: normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
186
222
|
"allow-clear": "",
|
|
187
223
|
size: "medium",
|
|
188
|
-
placeholder: `\u8BF7\u8F93\u5165${item.label}`
|
|
224
|
+
placeholder: item.placeholder ? item.placeholder : `\u8BF7\u8F93\u5165${item.label}`
|
|
189
225
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder"])) : createCommentVNode("v-if", true),
|
|
190
226
|
item.component === "select" ? (openBlock(), createBlock(unref(Select), {
|
|
191
|
-
key:
|
|
227
|
+
key: 3,
|
|
192
228
|
modelValue: form.value[item.key],
|
|
193
229
|
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
194
230
|
"popup-container": "#base-filter-popup-container",
|
|
@@ -196,13 +232,13 @@ const _sfc_main = defineComponent({
|
|
|
196
232
|
"allow-search": item.allowSearch,
|
|
197
233
|
"default-active-first-option": false,
|
|
198
234
|
style: normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
199
|
-
placeholder: `\u8BF7\u9009\u62E9${item.label}`,
|
|
235
|
+
placeholder: item.placeholder ? item.placeholder : `\u8BF7\u9009\u62E9${item.label}`,
|
|
200
236
|
onSearch: ($event) => handleSelectSearch($event, item),
|
|
201
237
|
onPopupVisibleChange: ($event) => handleSelectPopupChange($event, item),
|
|
202
238
|
onChange: ($event) => handleSelectChange($event, item)
|
|
203
239
|
}, {
|
|
204
240
|
default: withCtx(() => [
|
|
205
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(getOptions(item), (opt) => {
|
|
241
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(getOptions.value(item), (opt) => {
|
|
206
242
|
return openBlock(), createBlock(unref(Option), {
|
|
207
243
|
key: opt.value,
|
|
208
244
|
label: opt.label,
|
|
@@ -213,7 +249,7 @@ const _sfc_main = defineComponent({
|
|
|
213
249
|
_: 2
|
|
214
250
|
}, 1032, ["modelValue", "onUpdate:modelValue", "allow-search", "style", "placeholder", "onSearch", "onPopupVisibleChange", "onChange"])) : createCommentVNode("v-if", true),
|
|
215
251
|
item.component === "range-picker" ? (openBlock(), createBlock(unref(RangePicker), {
|
|
216
|
-
key:
|
|
252
|
+
key: 4,
|
|
217
253
|
modelValue: form.value[item.key].range,
|
|
218
254
|
"onUpdate:modelValue": ($event) => form.value[item.key].range = $event,
|
|
219
255
|
style: normalizeStyle({ width: styleWidth(form.value[item.key]) }),
|
|
@@ -224,7 +260,28 @@ const _sfc_main = defineComponent({
|
|
|
224
260
|
"popup-container": "#base-filter-popup-container",
|
|
225
261
|
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
226
262
|
}, ["stop"]))
|
|
227
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "style"])) : createCommentVNode("v-if", true)
|
|
263
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "style"])) : createCommentVNode("v-if", true),
|
|
264
|
+
item.component === "radio" ? (openBlock(), createBlock(unref(RadioGroup), {
|
|
265
|
+
key: 5,
|
|
266
|
+
modelValue: form.value[item.key],
|
|
267
|
+
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
268
|
+
type: "button"
|
|
269
|
+
}, {
|
|
270
|
+
default: withCtx(() => [
|
|
271
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.options || [], (option, idx) => {
|
|
272
|
+
return openBlock(), createBlock(unref(Radio), {
|
|
273
|
+
key: idx,
|
|
274
|
+
value: option.value
|
|
275
|
+
}, {
|
|
276
|
+
default: withCtx(() => [
|
|
277
|
+
createTextVNode(toDisplayString(option.label), 1)
|
|
278
|
+
]),
|
|
279
|
+
_: 2
|
|
280
|
+
}, 1032, ["value"]);
|
|
281
|
+
}), 128))
|
|
282
|
+
]),
|
|
283
|
+
_: 2
|
|
284
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
228
285
|
]),
|
|
229
286
|
_: 2
|
|
230
287
|
}, 1032, ["active"]);
|
package/es/hooks/usePopper.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Placement } from '@popperjs/core';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
export default function usePopper(pannel: Ref<HTMLElement | undefined>, triggerEl: Ref<HTMLElement | undefined>): {
|
|
4
|
-
initPopper: (placement?: Placement) => void;
|
|
4
|
+
initPopper: (placement?: Placement, of?: number[] | undefined) => void;
|
|
5
5
|
show: () => void;
|
|
6
6
|
hide: () => void;
|
|
7
7
|
visible: Ref<boolean, boolean>;
|
package/es/hooks/usePopper.js
CHANGED
|
@@ -8,16 +8,16 @@ function usePopper(pannel, triggerEl) {
|
|
|
8
8
|
};
|
|
9
9
|
const show = () => {
|
|
10
10
|
visible.value = true;
|
|
11
|
-
window.onclick = (
|
|
11
|
+
window.onclick = () => {
|
|
12
12
|
hide();
|
|
13
13
|
visible.value = false;
|
|
14
14
|
window.onclick = null;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
const initPopper = (placement = "bottom-start") => {
|
|
17
|
+
const initPopper = (placement = "bottom-start", of) => {
|
|
18
18
|
if (!pannel.value || !triggerEl.value)
|
|
19
19
|
return;
|
|
20
|
-
const offset = [0, 10];
|
|
20
|
+
const offset = of != null ? of : [0, 10];
|
|
21
21
|
if (window.__POWERED_BY_WUJIE__) {
|
|
22
22
|
offset[1] = -54;
|
|
23
23
|
}
|
package/es/index.css
CHANGED
|
@@ -4529,11 +4529,13 @@
|
|
|
4529
4529
|
}
|
|
4530
4530
|
.resource-list-footer,
|
|
4531
4531
|
.resource-list-header,
|
|
4532
|
+
.resource-list-content .resource-list-content-empty,
|
|
4532
4533
|
.resource-list-content .arco-scrollbar-container {
|
|
4533
4534
|
padding: 0 40px;
|
|
4534
4535
|
}
|
|
4535
4536
|
.resource-list-footer {
|
|
4536
4537
|
display: flex;
|
|
4538
|
+
flex-wrap: wrap;
|
|
4537
4539
|
justify-content: space-between;
|
|
4538
4540
|
padding-bottom: 20px;
|
|
4539
4541
|
}
|
|
@@ -4543,6 +4545,10 @@
|
|
|
4543
4545
|
gap: 10px;
|
|
4544
4546
|
align-items: center;
|
|
4545
4547
|
justify-content: flex-end;
|
|
4548
|
+
margin-top: 10px;
|
|
4549
|
+
}
|
|
4550
|
+
.resource-list-footer .footer-right .list-selected-wrapper {
|
|
4551
|
+
font-size: 12px;
|
|
4546
4552
|
}
|
|
4547
4553
|
.resource-list-content-loading {
|
|
4548
4554
|
display: flex;
|
|
@@ -4554,7 +4560,7 @@
|
|
|
4554
4560
|
.resource-list .list-item-grid {
|
|
4555
4561
|
display: grid;
|
|
4556
4562
|
grid-gap: 20px;
|
|
4557
|
-
grid-template-columns: repeat(
|
|
4563
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
4558
4564
|
}
|
|
4559
4565
|
.resource-list .list-content {
|
|
4560
4566
|
margin-top: 30px;
|
|
@@ -4597,7 +4603,8 @@
|
|
|
4597
4603
|
}
|
|
4598
4604
|
.resource-list .list-filter-wrapper .list-filter-tags {
|
|
4599
4605
|
display: flex;
|
|
4600
|
-
|
|
4606
|
+
flex-wrap: wrap;
|
|
4607
|
+
gap: 10px;
|
|
4601
4608
|
margin-top: 10px;
|
|
4602
4609
|
}
|
|
4603
4610
|
.resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag {
|
|
@@ -4618,16 +4625,41 @@
|
|
|
4618
4625
|
justify-content: space-between;
|
|
4619
4626
|
}
|
|
4620
4627
|
.resource-list .list-filter-wrapper .list-filter .filter-list {
|
|
4628
|
+
position: relative;
|
|
4629
|
+
/** 给 popup 一个参考 */
|
|
4621
4630
|
display: flex;
|
|
4622
|
-
flex-wrap: wrap;
|
|
4623
|
-
gap: 10px;
|
|
4624
4631
|
}
|
|
4625
4632
|
.resource-list .list-filter-wrapper .list-filter .filter-list .filter-item {
|
|
4626
4633
|
width: 100px;
|
|
4634
|
+
margin-right: 10px;
|
|
4635
|
+
}
|
|
4636
|
+
.resource-list .list-filter-wrapper .list-filter .filter-list .arco-trigger-popup {
|
|
4637
|
+
z-index: 100000 !important;
|
|
4627
4638
|
}
|
|
4628
4639
|
.resource-list .list-filter-wrapper .list-filter .arco-input-prepend {
|
|
4629
4640
|
padding: 0;
|
|
4630
4641
|
}
|
|
4642
|
+
.resource-list .list-filter-wrapper .list-filter .more-btn {
|
|
4643
|
+
position: relative;
|
|
4644
|
+
/** 给 poperjs 一个参考 */
|
|
4645
|
+
}
|
|
4646
|
+
.resource-list .list-filter-wrapper .list-filter .more-btn .filter-pannel {
|
|
4647
|
+
inset: 40px auto auto auto !important;
|
|
4648
|
+
}
|
|
4649
|
+
.resource-list .list-filter-wrapper .filter-extra {
|
|
4650
|
+
display: flex;
|
|
4651
|
+
gap: 10px;
|
|
4652
|
+
}
|
|
4653
|
+
.resource-list .list-filter-wrapper .filter-pannel {
|
|
4654
|
+
z-index: 100000;
|
|
4655
|
+
display: flex;
|
|
4656
|
+
flex-direction: column;
|
|
4657
|
+
gap: 10px;
|
|
4658
|
+
padding: 10px;
|
|
4659
|
+
background-color: #fff;
|
|
4660
|
+
border-radius: 4px;
|
|
4661
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
4662
|
+
}
|
|
4631
4663
|
.resource-list .title {
|
|
4632
4664
|
display: flex;
|
|
4633
4665
|
gap: 8px;
|
|
@@ -4641,6 +4673,10 @@
|
|
|
4641
4673
|
height: 16px;
|
|
4642
4674
|
background-color: #4886ff;
|
|
4643
4675
|
}
|
|
4676
|
+
.resource-select-wrap {
|
|
4677
|
+
width: 100%;
|
|
4678
|
+
height: 100%;
|
|
4679
|
+
}
|
|
4644
4680
|
.resource-select-modal-body {
|
|
4645
4681
|
height: 80vh;
|
|
4646
4682
|
padding: 0;
|
|
@@ -4669,6 +4705,11 @@
|
|
|
4669
4705
|
.resource-select-container .resource-select-header .arco-tabs-content {
|
|
4670
4706
|
display: none !important;
|
|
4671
4707
|
}
|
|
4708
|
+
.resource-select-container .resource-list-content .resource-list-content-empty {
|
|
4709
|
+
box-sizing: border-box;
|
|
4710
|
+
width: 100%;
|
|
4711
|
+
height: 100%;
|
|
4712
|
+
}
|
|
4672
4713
|
.iframe-container {
|
|
4673
4714
|
position: relative;
|
|
4674
4715
|
height: 95vh;
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file
|
|
3
|
+
* @title selectResourceModal
|
|
4
|
+
* @memberOf 组件类型,例如:数据输入
|
|
5
|
+
* @description 描述你的组件。
|
|
6
|
+
*/
|
|
7
|
+
export declare const DivWrapper: {
|
|
8
|
+
(args: any): {
|
|
9
|
+
components: {
|
|
10
|
+
selectResourceModal: any;
|
|
11
|
+
AButton: {
|
|
12
|
+
new (...args: any[]): {
|
|
13
|
+
$: import("vue").ComponentInternalInstance;
|
|
14
|
+
$data: {};
|
|
15
|
+
$props: Partial<{
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
loading: boolean;
|
|
18
|
+
long: boolean;
|
|
19
|
+
htmlType: string;
|
|
20
|
+
}> & Omit<Readonly<{
|
|
21
|
+
type?: unknown;
|
|
22
|
+
shape?: unknown;
|
|
23
|
+
status?: unknown;
|
|
24
|
+
size?: unknown;
|
|
25
|
+
long?: unknown;
|
|
26
|
+
loading?: unknown;
|
|
27
|
+
disabled?: unknown;
|
|
28
|
+
htmlType?: unknown;
|
|
29
|
+
href?: unknown;
|
|
30
|
+
} & {
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
loading: boolean;
|
|
33
|
+
long: boolean;
|
|
34
|
+
htmlType: string;
|
|
35
|
+
} & {
|
|
36
|
+
size?: "small" | "mini" | "medium" | "large" | undefined;
|
|
37
|
+
type?: "text" | "dashed" | "outline" | "primary" | "secondary" | undefined;
|
|
38
|
+
href?: string | undefined;
|
|
39
|
+
shape?: "circle" | "round" | "square" | undefined;
|
|
40
|
+
status?: "success" | "normal" | "warning" | "danger" | undefined;
|
|
41
|
+
}> & {
|
|
42
|
+
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
43
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "long" | "loading" | "disabled" | "htmlType">;
|
|
44
|
+
$attrs: {
|
|
45
|
+
[x: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
$refs: {
|
|
48
|
+
[x: string]: unknown;
|
|
49
|
+
};
|
|
50
|
+
$slots: Readonly<{
|
|
51
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
54
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
55
|
+
$emit: (event: "click", ev: MouseEvent) => void;
|
|
56
|
+
$el: any;
|
|
57
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
58
|
+
type?: unknown;
|
|
59
|
+
shape?: unknown;
|
|
60
|
+
status?: unknown;
|
|
61
|
+
size?: unknown;
|
|
62
|
+
long?: unknown;
|
|
63
|
+
loading?: unknown;
|
|
64
|
+
disabled?: unknown;
|
|
65
|
+
htmlType?: unknown;
|
|
66
|
+
href?: unknown;
|
|
67
|
+
} & {
|
|
68
|
+
disabled: boolean;
|
|
69
|
+
loading: boolean;
|
|
70
|
+
long: boolean;
|
|
71
|
+
htmlType: string;
|
|
72
|
+
} & {
|
|
73
|
+
size?: "small" | "mini" | "medium" | "large" | undefined;
|
|
74
|
+
type?: "text" | "dashed" | "outline" | "primary" | "secondary" | undefined;
|
|
75
|
+
href?: string | undefined;
|
|
76
|
+
shape?: "circle" | "round" | "square" | undefined;
|
|
77
|
+
status?: "success" | "normal" | "warning" | "danger" | undefined;
|
|
78
|
+
}> & {
|
|
79
|
+
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
prefixCls: string;
|
|
82
|
+
cls: import("vue").ComputedRef<(string | {
|
|
83
|
+
[x: string]: boolean;
|
|
84
|
+
})[]>;
|
|
85
|
+
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
86
|
+
handleClick: (ev: MouseEvent) => void;
|
|
87
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
88
|
+
click: (ev: MouseEvent) => true;
|
|
89
|
+
}, string, {
|
|
90
|
+
disabled: boolean;
|
|
91
|
+
loading: boolean;
|
|
92
|
+
long: boolean;
|
|
93
|
+
htmlType: string;
|
|
94
|
+
}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions> & {
|
|
95
|
+
beforeCreate?: (() => void) | (() => void)[] | undefined;
|
|
96
|
+
created?: (() => void) | (() => void)[] | undefined;
|
|
97
|
+
beforeMount?: (() => void) | (() => void)[] | undefined;
|
|
98
|
+
mounted?: (() => void) | (() => void)[] | undefined;
|
|
99
|
+
beforeUpdate?: (() => void) | (() => void)[] | undefined;
|
|
100
|
+
updated?: (() => void) | (() => void)[] | undefined;
|
|
101
|
+
activated?: (() => void) | (() => void)[] | undefined;
|
|
102
|
+
deactivated?: (() => void) | (() => void)[] | undefined;
|
|
103
|
+
beforeDestroy?: (() => void) | (() => void)[] | undefined;
|
|
104
|
+
beforeUnmount?: (() => void) | (() => void)[] | undefined;
|
|
105
|
+
destroyed?: (() => void) | (() => void)[] | undefined;
|
|
106
|
+
unmounted?: (() => void) | (() => void)[] | undefined;
|
|
107
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
|
|
108
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
|
|
109
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[] | undefined;
|
|
110
|
+
};
|
|
111
|
+
$forceUpdate: () => void;
|
|
112
|
+
$nextTick: typeof import("vue").nextTick;
|
|
113
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
114
|
+
} & Readonly<{
|
|
115
|
+
type?: unknown;
|
|
116
|
+
shape?: unknown;
|
|
117
|
+
status?: unknown;
|
|
118
|
+
size?: unknown;
|
|
119
|
+
long?: unknown;
|
|
120
|
+
loading?: unknown;
|
|
121
|
+
disabled?: unknown;
|
|
122
|
+
htmlType?: unknown;
|
|
123
|
+
href?: unknown;
|
|
124
|
+
} & {
|
|
125
|
+
disabled: boolean;
|
|
126
|
+
loading: boolean;
|
|
127
|
+
long: boolean;
|
|
128
|
+
htmlType: string;
|
|
129
|
+
} & {
|
|
130
|
+
size?: "small" | "mini" | "medium" | "large" | undefined;
|
|
131
|
+
type?: "text" | "dashed" | "outline" | "primary" | "secondary" | undefined;
|
|
132
|
+
href?: string | undefined;
|
|
133
|
+
shape?: "circle" | "round" | "square" | undefined;
|
|
134
|
+
status?: "success" | "normal" | "warning" | "danger" | undefined;
|
|
135
|
+
}> & {
|
|
136
|
+
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
137
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
138
|
+
prefixCls: string;
|
|
139
|
+
cls: import("vue").ComputedRef<(string | {
|
|
140
|
+
[x: string]: boolean;
|
|
141
|
+
})[]>;
|
|
142
|
+
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
143
|
+
handleClick: (ev: MouseEvent) => void;
|
|
144
|
+
}> & import("vue").ComponentCustomProperties;
|
|
145
|
+
__isFragment?: undefined;
|
|
146
|
+
__isTeleport?: undefined;
|
|
147
|
+
__isSuspense?: undefined;
|
|
148
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
149
|
+
type?: unknown;
|
|
150
|
+
shape?: unknown;
|
|
151
|
+
status?: unknown;
|
|
152
|
+
size?: unknown;
|
|
153
|
+
long?: unknown;
|
|
154
|
+
loading?: unknown;
|
|
155
|
+
disabled?: unknown;
|
|
156
|
+
htmlType?: unknown;
|
|
157
|
+
href?: unknown;
|
|
158
|
+
} & {
|
|
159
|
+
disabled: boolean;
|
|
160
|
+
loading: boolean;
|
|
161
|
+
long: boolean;
|
|
162
|
+
htmlType: string;
|
|
163
|
+
} & {
|
|
164
|
+
size?: "small" | "mini" | "medium" | "large" | undefined;
|
|
165
|
+
type?: "text" | "dashed" | "outline" | "primary" | "secondary" | undefined;
|
|
166
|
+
href?: string | undefined;
|
|
167
|
+
shape?: "circle" | "round" | "square" | undefined;
|
|
168
|
+
status?: "success" | "normal" | "warning" | "danger" | undefined;
|
|
169
|
+
}> & {
|
|
170
|
+
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
171
|
+
}, {
|
|
172
|
+
prefixCls: string;
|
|
173
|
+
cls: import("vue").ComputedRef<(string | {
|
|
174
|
+
[x: string]: boolean;
|
|
175
|
+
})[]>;
|
|
176
|
+
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
177
|
+
handleClick: (ev: MouseEvent) => void;
|
|
178
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
179
|
+
click: (ev: MouseEvent) => true;
|
|
180
|
+
}, string, {
|
|
181
|
+
disabled: boolean;
|
|
182
|
+
loading: boolean;
|
|
183
|
+
long: boolean;
|
|
184
|
+
htmlType: string;
|
|
185
|
+
}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
186
|
+
Group: import("vue").DefineComponent<{
|
|
187
|
+
type: {
|
|
188
|
+
type: import("vue").PropType<"text" | "dashed" | "outline" | "primary" | "secondary">;
|
|
189
|
+
};
|
|
190
|
+
status: {
|
|
191
|
+
type: import("vue").PropType<"success" | "normal" | "warning" | "danger">;
|
|
192
|
+
};
|
|
193
|
+
shape: {
|
|
194
|
+
type: import("vue").PropType<"circle" | "round" | "square">;
|
|
195
|
+
};
|
|
196
|
+
size: {
|
|
197
|
+
type: import("vue").PropType<"small" | "mini" | "medium" | "large">;
|
|
198
|
+
};
|
|
199
|
+
disabled: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
};
|
|
202
|
+
}, {
|
|
203
|
+
prefixCls: string;
|
|
204
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
205
|
+
type?: unknown;
|
|
206
|
+
status?: unknown;
|
|
207
|
+
shape?: unknown;
|
|
208
|
+
size?: unknown;
|
|
209
|
+
disabled?: unknown;
|
|
210
|
+
} & {
|
|
211
|
+
disabled: boolean;
|
|
212
|
+
} & {
|
|
213
|
+
size?: "small" | "mini" | "medium" | "large" | undefined;
|
|
214
|
+
type?: "text" | "dashed" | "outline" | "primary" | "secondary" | undefined;
|
|
215
|
+
shape?: "circle" | "round" | "square" | undefined;
|
|
216
|
+
status?: "success" | "normal" | "warning" | "danger" | undefined;
|
|
217
|
+
}>, {
|
|
218
|
+
disabled: boolean;
|
|
219
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
220
|
+
install: (app: import("vue").App<any>, options?: import("@arco-design/web-vue/es/_utils/types").ArcoOptions | undefined) => void;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
setup(): {
|
|
224
|
+
visible: import("vue").Ref<boolean, boolean>;
|
|
225
|
+
submit: (data: any, ...args: any) => void;
|
|
226
|
+
args: any;
|
|
227
|
+
};
|
|
228
|
+
template: string;
|
|
229
|
+
};
|
|
230
|
+
args: {
|
|
231
|
+
wrap: string;
|
|
232
|
+
userInfo: {
|
|
233
|
+
domain_id: number;
|
|
234
|
+
repository_id: number;
|
|
235
|
+
};
|
|
236
|
+
maxcount: number;
|
|
237
|
+
filterOptions: {
|
|
238
|
+
mediaType: string;
|
|
239
|
+
mediaTypeStrict: boolean;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
argTypes: {
|
|
243
|
+
userInfo: {
|
|
244
|
+
description: string;
|
|
245
|
+
control: {
|
|
246
|
+
type: string;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
maxcount: {
|
|
250
|
+
description: string;
|
|
251
|
+
control: {
|
|
252
|
+
type: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
filterOptions: {
|
|
256
|
+
description: string;
|
|
257
|
+
control: {
|
|
258
|
+
type: string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
onSubmit: {
|
|
262
|
+
action: string;
|
|
263
|
+
};
|
|
264
|
+
onUpdateVis: {
|
|
265
|
+
action: string;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
};
|