vue-devui 1.6.4-markdown.1 → 1.6.4
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/auto-complete/index.es.js +2 -1
- package/auto-complete/index.umd.js +1 -1
- package/button/index.es.js +2 -1
- package/button/index.umd.js +1 -1
- package/carousel/index.es.js +213 -36
- package/carousel/index.umd.js +1 -1
- package/carousel/style.css +1 -1
- package/category-search/index.es.js +2 -1
- package/category-search/index.umd.js +1 -1
- package/collapse/index.es.js +18 -15
- package/collapse/index.umd.js +5 -5
- package/data-grid/index.es.js +2 -1
- package/data-grid/index.umd.js +1 -1
- package/date-picker-pro/index.es.js +6 -21
- package/date-picker-pro/index.umd.js +12 -12
- package/date-picker-pro/style.css +1 -1
- package/editable-select/index.es.js +2 -1
- package/editable-select/index.umd.js +1 -1
- package/editor-md/index.es.js +3 -30
- package/editor-md/index.umd.js +14 -14
- package/icon/index.es.js +2 -1
- package/icon/index.umd.js +1 -1
- package/input/index.es.js +6 -21
- package/input/index.umd.js +11 -11
- package/input/style.css +1 -1
- package/mention/index.es.js +2 -1
- package/mention/index.umd.js +1 -1
- package/message/index.es.js +2 -1
- package/message/index.umd.js +1 -1
- package/modal/index.es.js +4 -27
- package/modal/index.umd.js +1 -7
- package/modal/style.css +1 -1
- package/notification/index.es.js +2 -1
- package/notification/index.umd.js +2 -2
- package/package.json +1 -1
- package/pagination/index.es.js +238 -50
- package/pagination/index.umd.js +21 -16
- package/pagination/style.css +1 -1
- package/result/index.es.js +2 -1
- package/result/index.umd.js +1 -1
- package/search/index.es.js +27 -48
- package/search/index.umd.js +14 -18
- package/search/style.css +1 -1
- package/select/index.es.js +42 -40
- package/select/index.umd.js +15 -10
- package/select/style.css +1 -1
- package/steps/index.es.js +2 -1
- package/steps/index.umd.js +1 -1
- package/style.css +2 -2
- package/table/index.es.js +2 -1
- package/table/index.umd.js +1 -1
- package/time-picker/index.es.js +6 -21
- package/time-picker/index.umd.js +16 -16
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +42 -40
- package/time-select/index.umd.js +10 -5
- package/time-select/style.css +1 -1
- package/timeline/index.es.js +2 -1
- package/timeline/index.umd.js +1 -1
- package/types/editor-md/src/composables/use-editor-md.d.ts +0 -1
- package/types/editor-md/src/editor-md-types.d.ts +0 -3
- package/types/icon/src/icon-types.d.ts +1 -0
- package/types/search/src/components/search-close-icon.d.ts +2 -0
- package/types/search/src/components/search-icon.d.ts +2 -0
- package/types/select/src/components/select-arrow-icon.d.ts +2 -0
- package/upload/index.es.js +2 -1
- package/upload/index.umd.js +2 -2
- package/vue-devui.es.js +80 -180
- package/vue-devui.umd.js +86 -97
- package/types/carousel/src/components/carousel-icons.d.ts +0 -2
- package/types/modal/src/components/modal-icons.d.ts +0 -1
- package/types/svg-icons/index.d.ts +0 -3
package/pagination/index.es.js
CHANGED
|
@@ -29,7 +29,7 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, unref, nextTick, withModifiers, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, toRef, onBeforeMount, vShow, resolveComponent, getCurrentInstance, resolveDirective } from "vue";
|
|
32
|
+
import { defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, ref, unref, nextTick, withModifiers, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, toRef, onBeforeMount, vShow, resolveComponent, getCurrentInstance, resolveDirective, resolveDynamicComponent } from "vue";
|
|
33
33
|
import { onClickOutside } from "@vueuse/core";
|
|
34
34
|
import "clipboard";
|
|
35
35
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
@@ -5587,6 +5587,9 @@ function useNamespace(block, needDot = false) {
|
|
|
5587
5587
|
em
|
|
5588
5588
|
};
|
|
5589
5589
|
}
|
|
5590
|
+
function isUrl(value) {
|
|
5591
|
+
return /^((http|https):)?\/\//.test(value);
|
|
5592
|
+
}
|
|
5590
5593
|
function useFieldCollection() {
|
|
5591
5594
|
const itemContexts = [];
|
|
5592
5595
|
const addItemContext = (field) => {
|
|
@@ -8821,45 +8824,47 @@ var Option = defineComponent({
|
|
|
8821
8824
|
};
|
|
8822
8825
|
}
|
|
8823
8826
|
});
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8835
|
-
|
|
8836
|
-
|
|
8837
|
-
|
|
8838
|
-
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8827
|
+
const AlertCloseIcon = () => createVNode("svg", {
|
|
8828
|
+
"width": "10px",
|
|
8829
|
+
"height": "10px",
|
|
8830
|
+
"viewBox": "0 0 10 10",
|
|
8831
|
+
"version": "1.1",
|
|
8832
|
+
"xmlns": "http://www.w3.org/2000/svg"
|
|
8833
|
+
}, [createVNode("g", {
|
|
8834
|
+
"stroke": "none",
|
|
8835
|
+
"stroke-width": "1",
|
|
8836
|
+
"fill": "none",
|
|
8837
|
+
"fill-rule": "evenodd"
|
|
8838
|
+
}, [createVNode("g", {
|
|
8839
|
+
"transform": "translate(-3.000000, -3.000000)",
|
|
8840
|
+
"fill-rule": "nonzero"
|
|
8841
|
+
}, [createVNode("path", {
|
|
8842
|
+
"d": `M11.6426,3.19816936 C11.9239974,2.91574512 12.4131626,2.93784891 12.7352108,3.24751057 C13.0571998,3.5572302
|
|
8843
|
+
13.0901298,4.03723416 12.8087324,4.31965839 L9.14064666,7.99900183 L12.8087324,11.6803416 C13.0645482,11.9370909
|
|
8844
|
+
13.0605893,12.3571292 12.8158402,12.6640749 L12.7352108,12.7524894 C12.4131626,13.0621511 11.9239974,13.0842548
|
|
8845
|
+
11.6426,12.8018306 L8,9.14489021 L4.35740003,12.8018306 C4.10158422,13.05858 3.6740594,13.0636532 3.35648225,12.8298003
|
|
8846
|
+
L3.26478919,12.7524894 C2.94280021,12.4427698 2.90987023,11.9627658 3.19126762,11.6803416 L6.8583349,7.99900183
|
|
8847
|
+
L3.19126762,4.31965839 C2.93545181,4.06290908 2.93941068,3.64287076 3.18415975,3.3359251 L3.26478919,3.24751057
|
|
8848
|
+
C3.58683735,2.93784891 4.07600264,2.91574512 4.35740003,3.19816936 L8,6.85411161 L11.6426,3.19816936 Z`
|
|
8849
|
+
}, null)])])]);
|
|
8850
|
+
const SelectArrowIcon = () => createVNode("svg", {
|
|
8851
|
+
"width": "1em",
|
|
8852
|
+
"height": "1em",
|
|
8853
|
+
"viewBox": "0 0 16 16",
|
|
8854
|
+
"version": "1.1",
|
|
8855
|
+
"xmlns": "http://www.w3.org/2000/svg"
|
|
8856
|
+
}, [createVNode("g", {
|
|
8857
|
+
"stroke": "none",
|
|
8858
|
+
"stroke-width": "1",
|
|
8859
|
+
"fill": "none",
|
|
8860
|
+
"fill-rule": "evenodd"
|
|
8861
|
+
}, [createVNode("path", {
|
|
8862
|
+
"d": `M12.1464466,6.85355339 L8.35355339,10.6464466 C8.15829124,10.8417088 7.84170876,10.8417088
|
|
8863
|
+
7.64644661,10.6464466 L3.85355339,6.85355339 C3.65829124,6.65829124 3.65829124,6.34170876
|
|
8864
|
+
3.85355339,6.14644661 C3.94732158,6.05267842 4.07449854,6 4.20710678,6 L11.7928932,6 C12.0690356,6
|
|
8865
|
+
12.2928932,6.22385763 12.2928932,6.5 C12.2928932,6.63260824 12.2402148,6.7597852 12.1464466,6.85355339 Z`,
|
|
8866
|
+
"fill-rule": "nonzero"
|
|
8867
|
+
}, null)])]);
|
|
8863
8868
|
const tagProps = {
|
|
8864
8869
|
type: {
|
|
8865
8870
|
type: String,
|
|
@@ -9346,7 +9351,7 @@ var SelectContent = defineComponent({
|
|
|
9346
9351
|
}, null), createVNode("span", {
|
|
9347
9352
|
"onClick": handleClear,
|
|
9348
9353
|
"class": clearCls.value
|
|
9349
|
-
}, [createVNode(
|
|
9354
|
+
}, [createVNode(AlertCloseIcon, null, null)]), createVNode("span", {
|
|
9350
9355
|
"class": arrowCls.value
|
|
9351
9356
|
}, [createVNode(SelectArrowIcon, null, null)])]);
|
|
9352
9357
|
};
|
|
@@ -10095,6 +10100,188 @@ var PageNumBtn = defineComponent({
|
|
|
10095
10100
|
}, [createVNode(NextLinkIcon, null, null)])])]);
|
|
10096
10101
|
}
|
|
10097
10102
|
});
|
|
10103
|
+
const DEFAULT_PREFIX = "icon";
|
|
10104
|
+
const iconProps = {
|
|
10105
|
+
name: {
|
|
10106
|
+
type: String,
|
|
10107
|
+
default: "",
|
|
10108
|
+
required: true
|
|
10109
|
+
},
|
|
10110
|
+
size: {
|
|
10111
|
+
type: [Number, String],
|
|
10112
|
+
default: "inherit"
|
|
10113
|
+
},
|
|
10114
|
+
color: {
|
|
10115
|
+
type: String,
|
|
10116
|
+
default: "inherit"
|
|
10117
|
+
},
|
|
10118
|
+
component: {
|
|
10119
|
+
type: Object,
|
|
10120
|
+
default: null
|
|
10121
|
+
},
|
|
10122
|
+
classPrefix: {
|
|
10123
|
+
type: String,
|
|
10124
|
+
default: DEFAULT_PREFIX
|
|
10125
|
+
},
|
|
10126
|
+
operable: {
|
|
10127
|
+
type: Boolean,
|
|
10128
|
+
default: false
|
|
10129
|
+
},
|
|
10130
|
+
disabled: {
|
|
10131
|
+
type: Boolean,
|
|
10132
|
+
default: false
|
|
10133
|
+
},
|
|
10134
|
+
rotate: {
|
|
10135
|
+
type: [Number, String]
|
|
10136
|
+
}
|
|
10137
|
+
};
|
|
10138
|
+
const svgIconProps = {
|
|
10139
|
+
name: {
|
|
10140
|
+
type: String,
|
|
10141
|
+
default: "",
|
|
10142
|
+
required: true
|
|
10143
|
+
},
|
|
10144
|
+
color: {
|
|
10145
|
+
type: String,
|
|
10146
|
+
default: "inherit"
|
|
10147
|
+
},
|
|
10148
|
+
size: {
|
|
10149
|
+
type: [Number, String],
|
|
10150
|
+
default: "inherit"
|
|
10151
|
+
}
|
|
10152
|
+
};
|
|
10153
|
+
var icon = "";
|
|
10154
|
+
var svgIcon = defineComponent({
|
|
10155
|
+
name: "DSvgIcon",
|
|
10156
|
+
props: svgIconProps,
|
|
10157
|
+
setup(props) {
|
|
10158
|
+
const {
|
|
10159
|
+
name,
|
|
10160
|
+
color,
|
|
10161
|
+
size
|
|
10162
|
+
} = toRefs(props);
|
|
10163
|
+
const ns2 = useNamespace$1("svg-icon");
|
|
10164
|
+
const iconName = computed(() => `#icon-${name.value}`);
|
|
10165
|
+
const iconSize = computed(() => {
|
|
10166
|
+
return typeof size.value === "number" ? `${size.value}px` : size.value;
|
|
10167
|
+
});
|
|
10168
|
+
const styles = {
|
|
10169
|
+
width: iconSize.value,
|
|
10170
|
+
height: iconSize.value
|
|
10171
|
+
};
|
|
10172
|
+
return () => {
|
|
10173
|
+
return createVNode("svg", {
|
|
10174
|
+
"class": ns2.b(),
|
|
10175
|
+
"style": styles
|
|
10176
|
+
}, [createVNode("use", {
|
|
10177
|
+
"xlink:href": iconName.value,
|
|
10178
|
+
"fill": color.value
|
|
10179
|
+
}, null)]);
|
|
10180
|
+
};
|
|
10181
|
+
}
|
|
10182
|
+
});
|
|
10183
|
+
function useIconDom(props, ctx2) {
|
|
10184
|
+
const {
|
|
10185
|
+
component,
|
|
10186
|
+
name,
|
|
10187
|
+
size,
|
|
10188
|
+
color,
|
|
10189
|
+
classPrefix,
|
|
10190
|
+
rotate
|
|
10191
|
+
} = toRefs(props);
|
|
10192
|
+
const ns2 = useNamespace$1("icon");
|
|
10193
|
+
const iconSize = computed(() => {
|
|
10194
|
+
return typeof size.value === "number" ? `${size.value}px` : size.value;
|
|
10195
|
+
});
|
|
10196
|
+
const IconComponent = component.value ? resolveDynamicComponent(component.value) : resolveDynamicComponent(svgIcon);
|
|
10197
|
+
const imgIconDom = () => {
|
|
10198
|
+
return createVNode("img", mergeProps({
|
|
10199
|
+
"src": name.value,
|
|
10200
|
+
"alt": name.value.split("/")[name.value.split("/").length - 1],
|
|
10201
|
+
"class": [(rotate == null ? void 0 : rotate.value) === "infinite" && ns2.m("spin")],
|
|
10202
|
+
"style": {
|
|
10203
|
+
width: iconSize.value || "",
|
|
10204
|
+
transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)`,
|
|
10205
|
+
verticalAlign: "middle"
|
|
10206
|
+
}
|
|
10207
|
+
}, ctx2.attrs), null);
|
|
10208
|
+
};
|
|
10209
|
+
const svgIconDom = () => {
|
|
10210
|
+
return createVNode(IconComponent, mergeProps({
|
|
10211
|
+
"name": name.value,
|
|
10212
|
+
"color": color.value,
|
|
10213
|
+
"size": iconSize.value,
|
|
10214
|
+
"class": [(rotate == null ? void 0 : rotate.value) === "infinite" && ns2.m("spin")],
|
|
10215
|
+
"style": {
|
|
10216
|
+
transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)`
|
|
10217
|
+
}
|
|
10218
|
+
}, ctx2.attrs), null);
|
|
10219
|
+
};
|
|
10220
|
+
const fontIconDom = () => {
|
|
10221
|
+
const fontIconClass = /^icon-/.test(name.value) ? name.value : `${classPrefix.value}-${name.value}`;
|
|
10222
|
+
return createVNode("i", mergeProps({
|
|
10223
|
+
"class": [classPrefix.value, fontIconClass, (rotate == null ? void 0 : rotate.value) === "infinite" && ns2.m("spin")],
|
|
10224
|
+
"style": {
|
|
10225
|
+
fontSize: iconSize.value,
|
|
10226
|
+
color: color.value,
|
|
10227
|
+
transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)`
|
|
10228
|
+
}
|
|
10229
|
+
}, ctx2.attrs), null);
|
|
10230
|
+
};
|
|
10231
|
+
const iconDom = () => {
|
|
10232
|
+
return component.value ? svgIconDom() : isUrl(name.value) ? imgIconDom() : fontIconDom();
|
|
10233
|
+
};
|
|
10234
|
+
return {
|
|
10235
|
+
iconDom
|
|
10236
|
+
};
|
|
10237
|
+
}
|
|
10238
|
+
var Icon = defineComponent({
|
|
10239
|
+
name: "DIcon",
|
|
10240
|
+
props: iconProps,
|
|
10241
|
+
emits: ["click"],
|
|
10242
|
+
setup(props, ctx2) {
|
|
10243
|
+
const {
|
|
10244
|
+
disabled,
|
|
10245
|
+
operable
|
|
10246
|
+
} = toRefs(props);
|
|
10247
|
+
const {
|
|
10248
|
+
iconDom
|
|
10249
|
+
} = useIconDom(props, ctx2);
|
|
10250
|
+
const ns2 = useNamespace$1("icon");
|
|
10251
|
+
const wrapClassed = computed(() => ({
|
|
10252
|
+
[ns2.e("container")]: true,
|
|
10253
|
+
[ns2.m("disabled")]: disabled.value,
|
|
10254
|
+
[ns2.m("operable")]: operable.value,
|
|
10255
|
+
[ns2.m("no-slots")]: !Object.keys(ctx2.slots).length
|
|
10256
|
+
}));
|
|
10257
|
+
const onClick = (e) => {
|
|
10258
|
+
if (disabled.value) {
|
|
10259
|
+
return;
|
|
10260
|
+
}
|
|
10261
|
+
ctx2.emit("click", e);
|
|
10262
|
+
};
|
|
10263
|
+
return () => {
|
|
10264
|
+
var _a, _b, _c, _d;
|
|
10265
|
+
return createVNode("div", {
|
|
10266
|
+
"class": wrapClassed.value,
|
|
10267
|
+
"onClick": onClick
|
|
10268
|
+
}, [(_b = (_a = ctx2.slots).prefix) == null ? void 0 : _b.call(_a), iconDom(), (_d = (_c = ctx2.slots).suffix) == null ? void 0 : _d.call(_c)]);
|
|
10269
|
+
};
|
|
10270
|
+
}
|
|
10271
|
+
});
|
|
10272
|
+
var iconGroup = "";
|
|
10273
|
+
defineComponent({
|
|
10274
|
+
name: "DIconGroup",
|
|
10275
|
+
setup(_, ctx2) {
|
|
10276
|
+
const ns2 = useNamespace$1("icon-group");
|
|
10277
|
+
return () => {
|
|
10278
|
+
var _a, _b;
|
|
10279
|
+
return createVNode("div", {
|
|
10280
|
+
"class": ns2.b()
|
|
10281
|
+
}, [(_b = (_a = ctx2.slots).default) == null ? void 0 : _b.call(_a)]);
|
|
10282
|
+
};
|
|
10283
|
+
}
|
|
10284
|
+
});
|
|
10098
10285
|
const dropdownProps = {
|
|
10099
10286
|
visible: {
|
|
10100
10287
|
type: Boolean,
|
|
@@ -10488,7 +10675,7 @@ var PageSize = defineComponent({
|
|
|
10488
10675
|
setup() {
|
|
10489
10676
|
const ns2 = useNamespace("pagination");
|
|
10490
10677
|
const paginationContext = inject(paginationInjectionKey);
|
|
10491
|
-
const
|
|
10678
|
+
const iconRotate = ref(0);
|
|
10492
10679
|
const {
|
|
10493
10680
|
size,
|
|
10494
10681
|
currentPageSize,
|
|
@@ -10497,13 +10684,8 @@ var PageSize = defineComponent({
|
|
|
10497
10684
|
pageSizeChange,
|
|
10498
10685
|
t
|
|
10499
10686
|
} = paginationContext;
|
|
10500
|
-
const pageSizeClasses = computed(() => ({
|
|
10501
|
-
[ns2.e("size")]: true,
|
|
10502
|
-
[ns2.em("size", size.value)]: Boolean(size.value),
|
|
10503
|
-
[ns2.em("size", "open")]: isOpen.value
|
|
10504
|
-
}));
|
|
10505
10687
|
const onDropdownToggle = (e) => {
|
|
10506
|
-
|
|
10688
|
+
iconRotate.value = e ? 180 : 0;
|
|
10507
10689
|
};
|
|
10508
10690
|
return () => createVNode(Fragment, null, [createVNode(Dropdown, {
|
|
10509
10691
|
"position": pageSizeDirection.value,
|
|
@@ -10512,8 +10694,14 @@ var PageSize = defineComponent({
|
|
|
10512
10694
|
}, {
|
|
10513
10695
|
default: () => createVNode("div", {
|
|
10514
10696
|
"tabindex": "0",
|
|
10515
|
-
"class":
|
|
10516
|
-
}, [createVNode(
|
|
10697
|
+
"class": [ns2.e("size"), size.value ? ns2.em("size", size.value) : ""]
|
|
10698
|
+
}, [createVNode(Icon, {
|
|
10699
|
+
"name": "select-arrow",
|
|
10700
|
+
"size": "16px",
|
|
10701
|
+
"rotate": iconRotate.value
|
|
10702
|
+
}, {
|
|
10703
|
+
prefix: () => createVNode("span", null, [currentPageSize.value])
|
|
10704
|
+
})]),
|
|
10517
10705
|
menu: () => createVNode("ul", null, [pageSizeOptions.value.map((item, index2) => createVNode("li", {
|
|
10518
10706
|
"class": {
|
|
10519
10707
|
active: item === currentPageSize.value
|