vue-devui 1.6.34-alpha.0 → 1.6.34-alpha.1
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/breadcrumb/index.es.js +6 -1
- package/breadcrumb/index.umd.js +2 -2
- package/category-search/index.es.js +30 -9
- package/category-search/index.umd.js +24 -24
- package/data-grid/index.es.js +6 -1
- package/data-grid/index.umd.js +1 -1
- package/dropdown/index.es.js +6 -1
- package/dropdown/index.umd.js +2 -2
- package/editor-md/index.es.js +6 -1
- package/editor-md/index.umd.js +2 -2
- package/package.json +1 -1
- package/pagination/index.es.js +12 -2
- package/pagination/index.umd.js +2 -2
- package/select/index.es.js +6 -1
- package/select/index.umd.js +2 -2
- package/table/index.es.js +6 -1
- package/table/index.umd.js +2 -2
- package/time-select/index.es.js +6 -1
- package/time-select/index.umd.js +8 -8
- package/types/breadcrumb/src/breadcrumb-item.d.ts +3 -0
- package/types/breadcrumb/src/breadcrumb.d.ts +3 -0
- package/types/category-search/src/category-search-types.d.ts +7 -0
- package/types/dropdown/src/dropdown-types.d.ts +4 -0
- package/types/dropdown/src/dropdown.d.ts +3 -0
- package/types/select/src/select-types.d.ts +4 -0
- package/vue-devui.es.js +37 -11
- package/vue-devui.umd.js +67 -67
|
@@ -21,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
offset: number | import("../../dropdown/src/dropdown-types").OffsetOptions;
|
|
22
22
|
position: import("../../dropdown/src/dropdown-types").Placement[];
|
|
23
23
|
visible: boolean;
|
|
24
|
+
appendToBody: boolean;
|
|
24
25
|
showAnimation: boolean;
|
|
25
26
|
trigger: import("../../dropdown/src/dropdown-types").TriggerType;
|
|
26
27
|
closeScope: import("../../dropdown/src/dropdown-types").CloseScopeArea;
|
|
@@ -33,6 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
34
|
offset: number | import("../../dropdown/src/dropdown-types").OffsetOptions;
|
|
34
35
|
position: import("../../dropdown/src/dropdown-types").Placement[];
|
|
35
36
|
visible: boolean;
|
|
37
|
+
appendToBody: boolean;
|
|
36
38
|
showAnimation: boolean;
|
|
37
39
|
trigger: import("../../dropdown/src/dropdown-types").TriggerType;
|
|
38
40
|
closeScope: import("../../dropdown/src/dropdown-types").CloseScopeArea;
|
|
@@ -47,6 +49,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
49
|
offset: number | import("../../dropdown/src/dropdown-types").OffsetOptions;
|
|
48
50
|
position: import("../../dropdown/src/dropdown-types").Placement[];
|
|
49
51
|
visible: boolean;
|
|
52
|
+
appendToBody: boolean;
|
|
50
53
|
showAnimation: boolean;
|
|
51
54
|
trigger: import("../../dropdown/src/dropdown-types").TriggerType;
|
|
52
55
|
closeScope: import("../../dropdown/src/dropdown-types").CloseScopeArea;
|
|
@@ -31,6 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
offset: number | import("../../dropdown/src/dropdown-types").OffsetOptions;
|
|
32
32
|
position: import("../../dropdown/src/dropdown-types").Placement[];
|
|
33
33
|
visible: boolean;
|
|
34
|
+
appendToBody: boolean;
|
|
34
35
|
showAnimation: boolean;
|
|
35
36
|
trigger: import("../../dropdown/src/dropdown-types").TriggerType;
|
|
36
37
|
closeScope: import("../../dropdown/src/dropdown-types").CloseScopeArea;
|
|
@@ -43,6 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
44
|
offset: number | import("../../dropdown/src/dropdown-types").OffsetOptions;
|
|
44
45
|
position: import("../../dropdown/src/dropdown-types").Placement[];
|
|
45
46
|
visible: boolean;
|
|
47
|
+
appendToBody: boolean;
|
|
46
48
|
showAnimation: boolean;
|
|
47
49
|
trigger: import("../../dropdown/src/dropdown-types").TriggerType;
|
|
48
50
|
closeScope: import("../../dropdown/src/dropdown-types").CloseScopeArea;
|
|
@@ -57,6 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
59
|
offset: number | import("../../dropdown/src/dropdown-types").OffsetOptions;
|
|
58
60
|
position: import("../../dropdown/src/dropdown-types").Placement[];
|
|
59
61
|
visible: boolean;
|
|
62
|
+
appendToBody: boolean;
|
|
60
63
|
showAnimation: boolean;
|
|
61
64
|
trigger: import("../../dropdown/src/dropdown-types").TriggerType;
|
|
62
65
|
closeScope: import("../../dropdown/src/dropdown-types").CloseScopeArea;
|
|
@@ -113,6 +113,7 @@ export interface TextConfig {
|
|
|
113
113
|
filterTitle?: string;
|
|
114
114
|
labelConnector?: string;
|
|
115
115
|
noCategoriesAvailable?: string;
|
|
116
|
+
tagMenuEmpty?: string;
|
|
116
117
|
}
|
|
117
118
|
export interface ExtendConfig {
|
|
118
119
|
show?: boolean;
|
|
@@ -190,6 +191,7 @@ export declare const categorySearchProps: {
|
|
|
190
191
|
filterTitle: string;
|
|
191
192
|
labelConnector: string;
|
|
192
193
|
noCategoriesAvailable: string;
|
|
194
|
+
tagMenuEmpty: string;
|
|
193
195
|
};
|
|
194
196
|
};
|
|
195
197
|
extendConfig: {
|
|
@@ -199,6 +201,10 @@ export declare const categorySearchProps: {
|
|
|
199
201
|
type: PropType<StyleType>;
|
|
200
202
|
default: string;
|
|
201
203
|
};
|
|
204
|
+
appendToBody: {
|
|
205
|
+
type: BooleanConstructor;
|
|
206
|
+
default: boolean;
|
|
207
|
+
};
|
|
202
208
|
};
|
|
203
209
|
export type CategorySearchProps = ExtractPropTypes<typeof categorySearchProps>;
|
|
204
210
|
export interface CategorySearchInjection {
|
|
@@ -208,6 +214,7 @@ export interface CategorySearchInjection {
|
|
|
208
214
|
innerTextConfig: Ref<TextConfig>;
|
|
209
215
|
tagMaxWidth: Ref<number | undefined> | undefined;
|
|
210
216
|
inputReadOnly: Ref<boolean>;
|
|
217
|
+
appendToBody: Ref<boolean>;
|
|
211
218
|
placeholder: Ref<string>;
|
|
212
219
|
innerSearchKey: Ref<string>;
|
|
213
220
|
innerSelectedTags: Ref<ICategorySearchTagItem[]>;
|
|
@@ -51,6 +51,10 @@ export declare const dropdownProps: {
|
|
|
51
51
|
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
52
52
|
default: string;
|
|
53
53
|
};
|
|
54
|
+
appendToBody: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
54
58
|
};
|
|
55
59
|
export type DropdownProps = ExtractPropTypes<typeof dropdownProps>;
|
|
56
60
|
export interface UseDropdownProps {
|
|
@@ -3,6 +3,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
offset: number | import("./dropdown-types").OffsetOptions;
|
|
4
4
|
position: import("./dropdown-types").Placement[];
|
|
5
5
|
visible: boolean;
|
|
6
|
+
appendToBody: boolean;
|
|
6
7
|
showAnimation: boolean;
|
|
7
8
|
trigger: import("./dropdown-types").TriggerType;
|
|
8
9
|
closeScope: import("./dropdown-types").CloseScopeArea;
|
|
@@ -15,6 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
16
|
offset: number | import("./dropdown-types").OffsetOptions;
|
|
16
17
|
position: import("./dropdown-types").Placement[];
|
|
17
18
|
visible: boolean;
|
|
19
|
+
appendToBody: boolean;
|
|
18
20
|
showAnimation: boolean;
|
|
19
21
|
trigger: import("./dropdown-types").TriggerType;
|
|
20
22
|
closeScope: import("./dropdown-types").CloseScopeArea;
|
|
@@ -29,6 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
31
|
offset: number | import("./dropdown-types").OffsetOptions;
|
|
30
32
|
position: import("./dropdown-types").Placement[];
|
|
31
33
|
visible: boolean;
|
|
34
|
+
appendToBody: boolean;
|
|
32
35
|
showAnimation: boolean;
|
|
33
36
|
trigger: import("./dropdown-types").TriggerType;
|
|
34
37
|
closeScope: import("./dropdown-types").CloseScopeArea;
|
|
@@ -117,6 +117,10 @@ export declare const selectProps: {
|
|
|
117
117
|
readonly maxLength: {
|
|
118
118
|
readonly type: NumberConstructor;
|
|
119
119
|
};
|
|
120
|
+
readonly appendToBody: {
|
|
121
|
+
readonly type: BooleanConstructor;
|
|
122
|
+
readonly default: true;
|
|
123
|
+
};
|
|
120
124
|
};
|
|
121
125
|
export type SelectProps = ExtractPropTypes<typeof selectProps>;
|
|
122
126
|
export type OptionModelValue = number | string;
|
package/vue-devui.es.js
CHANGED
|
@@ -11551,6 +11551,10 @@ const dropdownProps$1 = {
|
|
|
11551
11551
|
teleport: {
|
|
11552
11552
|
type: [String, Object],
|
|
11553
11553
|
default: "body"
|
|
11554
|
+
},
|
|
11555
|
+
appendToBody: {
|
|
11556
|
+
type: Boolean,
|
|
11557
|
+
default: true
|
|
11554
11558
|
}
|
|
11555
11559
|
};
|
|
11556
11560
|
const dropdownMap = /* @__PURE__ */ new Map();
|
|
@@ -11770,7 +11774,8 @@ var Dropdown$1 = defineComponent({
|
|
|
11770
11774
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots)];
|
|
11771
11775
|
}
|
|
11772
11776
|
}), createVNode(Teleport, {
|
|
11773
|
-
"to": teleport.value
|
|
11777
|
+
"to": teleport.value,
|
|
11778
|
+
"disabled": !props.appendToBody
|
|
11774
11779
|
}, {
|
|
11775
11780
|
default: () => [createVNode(Transition, {
|
|
11776
11781
|
"name": showAnimation.value ? ns2.m(`fade-${currentPosition.value}`) : ""
|
|
@@ -14576,7 +14581,8 @@ const categorySearchProps = {
|
|
|
14576
14581
|
createFilter: "",
|
|
14577
14582
|
filterTitle: "",
|
|
14578
14583
|
labelConnector: "|",
|
|
14579
|
-
noCategoriesAvailable: ""
|
|
14584
|
+
noCategoriesAvailable: "",
|
|
14585
|
+
tagMenuEmpty: ""
|
|
14580
14586
|
})
|
|
14581
14587
|
},
|
|
14582
14588
|
extendConfig: {
|
|
@@ -14585,6 +14591,10 @@ const categorySearchProps = {
|
|
|
14585
14591
|
styleType: {
|
|
14586
14592
|
type: String,
|
|
14587
14593
|
default: "default"
|
|
14594
|
+
},
|
|
14595
|
+
appendToBody: {
|
|
14596
|
+
type: Boolean,
|
|
14597
|
+
default: true
|
|
14588
14598
|
}
|
|
14589
14599
|
};
|
|
14590
14600
|
const categorySearchInjectionKey = Symbol("d-category-search");
|
|
@@ -14676,6 +14686,7 @@ var CategorySearchTagDropdown = defineComponent({
|
|
|
14676
14686
|
const {
|
|
14677
14687
|
rootCtx,
|
|
14678
14688
|
ComponentMap,
|
|
14689
|
+
appendToBody,
|
|
14679
14690
|
onSearchKeyTagClick,
|
|
14680
14691
|
addTagContext,
|
|
14681
14692
|
removeTagContext
|
|
@@ -14715,6 +14726,7 @@ var CategorySearchTagDropdown = defineComponent({
|
|
|
14715
14726
|
"position": ["bottom-start", "top-start", "bottom-end", "top-end"],
|
|
14716
14727
|
"class": "dp-category-search-dropdown dp-dropdown-menu-fix",
|
|
14717
14728
|
"close-scope": checkType(item.value),
|
|
14729
|
+
"append-to-body": appendToBody.value,
|
|
14718
14730
|
"onToggle": onToggle
|
|
14719
14731
|
}, {
|
|
14720
14732
|
default: () => createVNode("li", {
|
|
@@ -14790,6 +14802,7 @@ var CategorySearchInput = defineComponent({
|
|
|
14790
14802
|
currentSearchCategory,
|
|
14791
14803
|
ComponentMap,
|
|
14792
14804
|
currentSelectTag,
|
|
14805
|
+
appendToBody,
|
|
14793
14806
|
onCategoryItemClick,
|
|
14794
14807
|
searchKeyChangeEvent,
|
|
14795
14808
|
searchInputValue,
|
|
@@ -14848,6 +14861,7 @@ var CategorySearchInput = defineComponent({
|
|
|
14848
14861
|
"align": "start",
|
|
14849
14862
|
"position": ["bottom-start", "top-start", "bottom-end", "top-end"],
|
|
14850
14863
|
"close-scope": checkType(currentSelectTag.value),
|
|
14864
|
+
"append-to-body": appendToBody.value,
|
|
14851
14865
|
"onToggle": onToggle
|
|
14852
14866
|
}, {
|
|
14853
14867
|
default: () => createVNode("input", {
|
|
@@ -15109,6 +15123,7 @@ var CategorySearchSave = defineComponent({
|
|
|
15109
15123
|
const {
|
|
15110
15124
|
innerTextConfig,
|
|
15111
15125
|
filterNameRules,
|
|
15126
|
+
appendToBody,
|
|
15112
15127
|
createFilterFn
|
|
15113
15128
|
} = inject(categorySearchInjectionKey);
|
|
15114
15129
|
const {
|
|
@@ -15130,6 +15145,7 @@ var CategorySearchSave = defineComponent({
|
|
|
15130
15145
|
"position": ["bottom-start", "top-start", "bottom-end", "top-end"],
|
|
15131
15146
|
"close-scope": "blank",
|
|
15132
15147
|
"class": "dp-save-panel",
|
|
15148
|
+
"append-to-body": appendToBody.value,
|
|
15133
15149
|
"onToggle": onToggle
|
|
15134
15150
|
}, {
|
|
15135
15151
|
default: () => createVNode(SaveIcon, {
|
|
@@ -15229,7 +15245,8 @@ var RadioMenu = defineComponent({
|
|
|
15229
15245
|
tag: tag2
|
|
15230
15246
|
} = toRefs(props);
|
|
15231
15247
|
const {
|
|
15232
|
-
chooseItem
|
|
15248
|
+
chooseItem,
|
|
15249
|
+
innerTextConfig
|
|
15233
15250
|
} = inject(categorySearchInjectionKey);
|
|
15234
15251
|
const key = computed(() => tag2.value.filterKey || "label");
|
|
15235
15252
|
return () => {
|
|
@@ -15247,7 +15264,7 @@ var RadioMenu = defineComponent({
|
|
|
15247
15264
|
}, [createVNode("span", null, [item[key.value]])]);
|
|
15248
15265
|
})]) : createVNode("div", {
|
|
15249
15266
|
"class": "dp-no-data-tip"
|
|
15250
|
-
}, [
|
|
15267
|
+
}, [innerTextConfig.value.tagMenuEmpty || "\u6682\u65E0\u6570\u636E"]);
|
|
15251
15268
|
};
|
|
15252
15269
|
}
|
|
15253
15270
|
});
|
|
@@ -15260,7 +15277,8 @@ var CheckboxMenu = defineComponent({
|
|
|
15260
15277
|
tag: tag2
|
|
15261
15278
|
} = toRefs(props);
|
|
15262
15279
|
const {
|
|
15263
|
-
chooseItems
|
|
15280
|
+
chooseItems,
|
|
15281
|
+
innerTextConfig
|
|
15264
15282
|
} = inject(categorySearchInjectionKey);
|
|
15265
15283
|
const onConfirmClick = () => {
|
|
15266
15284
|
chooseItems(tag2.value);
|
|
@@ -15292,7 +15310,7 @@ var CheckboxMenu = defineComponent({
|
|
|
15292
15310
|
default: () => [createTextVNode("\u53D6\u6D88")]
|
|
15293
15311
|
})])]) : createVNode("div", {
|
|
15294
15312
|
"class": "dp-no-data-tip"
|
|
15295
|
-
}, [
|
|
15313
|
+
}, [innerTextConfig.value.tagMenuEmpty || "\u6682\u65E0\u6570\u636E"]);
|
|
15296
15314
|
};
|
|
15297
15315
|
}
|
|
15298
15316
|
});
|
|
@@ -15308,7 +15326,8 @@ var LabelMenu = defineComponent({
|
|
|
15308
15326
|
tag: tag2
|
|
15309
15327
|
} = toRefs(props);
|
|
15310
15328
|
const {
|
|
15311
|
-
chooseItems
|
|
15329
|
+
chooseItems,
|
|
15330
|
+
innerTextConfig
|
|
15312
15331
|
} = inject(categorySearchInjectionKey);
|
|
15313
15332
|
const onConfirmClick = () => {
|
|
15314
15333
|
chooseItems(tag2.value);
|
|
@@ -15365,7 +15384,7 @@ var LabelMenu = defineComponent({
|
|
|
15365
15384
|
default: () => [createTextVNode("\u53D6\u6D88")]
|
|
15366
15385
|
})])]) : createVNode("div", {
|
|
15367
15386
|
"class": "dp-no-data-tip"
|
|
15368
|
-
}, [
|
|
15387
|
+
}, [innerTextConfig.value.tagMenuEmpty || "\u6682\u65E0\u6570\u636E"]);
|
|
15369
15388
|
};
|
|
15370
15389
|
}
|
|
15371
15390
|
});
|
|
@@ -15802,7 +15821,8 @@ function useCategorySearch(props, ctx2) {
|
|
|
15802
15821
|
toggleScrollToTail,
|
|
15803
15822
|
showSearchCategory,
|
|
15804
15823
|
filterNameRules,
|
|
15805
|
-
extendConfig
|
|
15824
|
+
extendConfig,
|
|
15825
|
+
appendToBody
|
|
15806
15826
|
} = toRefs(props);
|
|
15807
15827
|
const innerCategory = ref([]);
|
|
15808
15828
|
const innerSelectedTags = ref([]);
|
|
@@ -16095,6 +16115,7 @@ function useCategorySearch(props, ctx2) {
|
|
|
16095
16115
|
innerTextConfig,
|
|
16096
16116
|
tagMaxWidth,
|
|
16097
16117
|
inputReadOnly,
|
|
16118
|
+
appendToBody,
|
|
16098
16119
|
placeholder,
|
|
16099
16120
|
innerSearchKey,
|
|
16100
16121
|
innerSelectedTags,
|
|
@@ -42735,6 +42756,10 @@ const selectProps = {
|
|
|
42735
42756
|
},
|
|
42736
42757
|
maxLength: {
|
|
42737
42758
|
type: Number
|
|
42759
|
+
},
|
|
42760
|
+
appendToBody: {
|
|
42761
|
+
type: Boolean,
|
|
42762
|
+
default: true
|
|
42738
42763
|
}
|
|
42739
42764
|
};
|
|
42740
42765
|
const optionProps = {
|
|
@@ -43175,7 +43200,8 @@ var Select = defineComponent({
|
|
|
43175
43200
|
}, [createVNode(SelectContent, {
|
|
43176
43201
|
"ref": selectRef
|
|
43177
43202
|
}, null), createVNode(Teleport, {
|
|
43178
|
-
"to": "body"
|
|
43203
|
+
"to": "body",
|
|
43204
|
+
"disabled": !props.appendToBody
|
|
43179
43205
|
}, {
|
|
43180
43206
|
default: () => [createVNode(Transition, {
|
|
43181
43207
|
"name": `fade-${currentPosition.value}`
|
|
@@ -54787,7 +54813,7 @@ const installs = [
|
|
|
54787
54813
|
VirtualListInstall
|
|
54788
54814
|
];
|
|
54789
54815
|
var vueDevui = {
|
|
54790
|
-
version: "1.6.34-alpha.
|
|
54816
|
+
version: "1.6.34-alpha.1",
|
|
54791
54817
|
install(app) {
|
|
54792
54818
|
installs.forEach((p) => app.use(p));
|
|
54793
54819
|
}
|