vue-devui 1.0.0 → 1.1.0
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 +36 -5
- package/alert/style.css +1 -1
- package/auto-complete/index.es.js +27 -16
- package/auto-complete/index.umd.js +11 -11
- package/auto-complete/style.css +1 -1
- package/button/index.es.js +7 -6
- package/button/index.umd.js +5 -5
- package/button/style.css +1 -1
- package/card/style.css +1 -1
- package/checkbox/index.es.js +19 -14
- package/checkbox/index.umd.js +8 -8
- package/checkbox/style.css +1 -1
- package/date-picker-pro/index.es.js +138 -133
- package/date-picker-pro/index.umd.js +13 -13
- package/date-picker-pro/style.css +1 -1
- package/drawer/index.es.js +22 -5
- package/drawer/index.umd.js +1 -1
- package/drawer/style.css +1 -1
- package/dropdown/index.es.js +16 -3
- package/dropdown/index.umd.js +1 -1
- package/dropdown/style.css +1 -1
- package/editable-select/index.es.js +67 -62
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/form/index.es.js +14 -8
- package/form/index.umd.js +5 -5
- package/form/style.css +1 -1
- package/icon/index.es.js +2 -1
- package/icon/index.umd.js +1 -1
- package/icon/style.css +1 -1
- package/image-preview/style.css +1 -1
- package/input/index.es.js +22 -11
- package/input/index.umd.js +4 -4
- package/input/style.css +1 -1
- package/input-number/index.es.js +26 -23
- package/input-number/index.umd.js +1 -1
- package/input-number/style.css +1 -1
- package/loading/index.es.js +51 -51
- package/loading/index.umd.js +1 -1
- package/mention/index.es.js +33 -17
- package/mention/index.umd.js +10 -10
- package/mention/style.css +1 -1
- package/message/index.es.js +2 -1
- package/message/index.umd.js +1 -1
- package/message/style.css +1 -1
- package/modal/index.es.js +158 -43
- package/modal/index.umd.js +1 -1
- package/modal/style.css +1 -1
- package/notification/index.es.js +7 -9
- package/notification/index.umd.js +1 -1
- package/notification/style.css +1 -1
- package/nuxt/components/paginationInjectionKey.js +3 -0
- package/overlay/index.es.js +12 -2
- package/overlay/index.umd.js +1 -1
- package/overlay/style.css +1 -1
- package/package.json +2 -2
- package/pagination/index.es.js +10160 -278
- package/pagination/index.umd.js +27 -1
- package/pagination/style.css +1 -1
- package/panel/index.es.js +4 -0
- package/panel/index.umd.js +1 -1
- package/popover/index.es.js +13 -5
- package/popover/index.umd.js +9 -9
- package/popover/style.css +1 -1
- package/radio/index.es.js +14 -8
- package/radio/index.umd.js +4 -4
- package/radio/style.css +1 -1
- package/result/index.es.js +2 -1
- package/result/index.umd.js +1 -1
- package/result/style.css +1 -1
- package/search/index.es.js +23 -12
- package/search/index.umd.js +4 -4
- package/search/style.css +1 -1
- package/select/index.es.js +134 -113
- package/select/index.umd.js +10 -10
- package/select/style.css +1 -1
- package/skeleton/style.css +1 -1
- package/splitter/index.es.js +30 -7
- package/splitter/index.umd.js +16 -16
- package/splitter/style.css +1 -1
- package/status/index.es.js +4 -0
- package/status/index.umd.js +1 -1
- package/steps/index.es.js +2 -1
- package/steps/index.umd.js +1 -1
- package/steps/style.css +1 -1
- package/style.css +1 -1
- package/switch/index.es.js +14 -8
- package/switch/index.umd.js +13 -13
- package/switch/style.css +1 -1
- package/table/index.es.js +159 -66
- package/table/index.umd.js +7 -7
- package/table/style.css +1 -1
- package/tabs/index.es.js +95 -44
- package/tabs/index.umd.js +1 -1
- package/tabs/style.css +1 -1
- package/tag/index.es.js +1 -1
- package/tag/index.umd.js +1 -1
- package/tag/style.css +1 -1
- package/textarea/index.es.js +17 -9
- package/textarea/index.umd.js +13 -13
- package/textarea/style.css +1 -1
- package/time-picker/index.es.js +154 -151
- package/time-picker/index.umd.js +14 -14
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +141 -117
- package/time-select/index.umd.js +13 -13
- package/time-select/style.css +1 -1
- package/timeline/index.es.js +2 -1
- package/timeline/index.umd.js +1 -1
- package/timeline/style.css +1 -1
- package/tooltip/index.es.js +28 -6
- package/tooltip/index.umd.js +7 -7
- package/tooltip/style.css +1 -1
- package/tree/index.es.js +47 -38
- package/tree/index.umd.js +7 -7
- package/tree/style.css +1 -1
- package/upload/index.es.js +9 -10
- package/upload/index.umd.js +1 -1
- package/upload/style.css +1 -1
- package/vue-devui.es.js +3496 -3121
- package/vue-devui.umd.js +21 -21
- package/alert/index.d.ts +0 -7
- package/auto-complete/index.d.ts +0 -7
- package/avatar/index.d.ts +0 -7
- package/badge/index.d.ts +0 -7
- package/button/index.d.ts +0 -7
- package/card/index.d.ts +0 -7
- package/checkbox/index.d.ts +0 -7
- package/collapse/index.d.ts +0 -7
- package/countdown/index.d.ts +0 -7
- package/date-picker-pro/index.d.ts +0 -7
- package/drawer/index.d.ts +0 -7
- package/dropdown/index.d.ts +0 -7
- package/editable-select/index.d.ts +0 -7
- package/form/index.d.ts +0 -7
- package/fullscreen/index.d.ts +0 -7
- package/grid/index.d.ts +0 -7
- package/icon/index.d.ts +0 -7
- package/image-preview/index.d.ts +0 -7
- package/index.d.ts +0 -7
- package/input/index.d.ts +0 -7
- package/input-number/index.d.ts +0 -7
- package/layout/index.d.ts +0 -7
- package/loading/index.d.ts +0 -7
- package/mention/index.d.ts +0 -7
- package/menu/index.d.ts +0 -7
- package/message/index.d.ts +0 -7
- package/modal/index.d.ts +0 -7
- package/notification/index.d.ts +0 -7
- package/nuxt/components/Loading.js +0 -3
- package/overlay/index.d.ts +0 -7
- package/pagination/index.d.ts +0 -7
- package/panel/index.d.ts +0 -7
- package/popover/index.d.ts +0 -7
- package/progress/index.d.ts +0 -7
- package/radio/index.d.ts +0 -7
- package/rate/index.d.ts +0 -7
- package/result/index.d.ts +0 -7
- package/ripple/index.d.ts +0 -7
- package/search/index.d.ts +0 -7
- package/select/index.d.ts +0 -7
- package/skeleton/index.d.ts +0 -7
- package/slider/index.d.ts +0 -7
- package/splitter/index.d.ts +0 -7
- package/statistic/index.d.ts +0 -7
- package/status/index.d.ts +0 -7
- package/steps/index.d.ts +0 -7
- package/switch/index.d.ts +0 -7
- package/table/index.d.ts +0 -7
- package/tabs/index.d.ts +0 -7
- package/tag/index.d.ts +0 -7
- package/textarea/index.d.ts +0 -7
- package/time-picker/index.d.ts +0 -7
- package/time-select/index.d.ts +0 -7
- package/timeline/index.d.ts +0 -7
- package/tooltip/index.d.ts +0 -7
- package/tree/index.d.ts +0 -7
- package/upload/index.d.ts +0 -7
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ English | [简体中文](README.zh-CN.md)
|
|
|
12
12
|
|
|
13
13
|
🌈 Features:
|
|
14
14
|
|
|
15
|
-
- 📦
|
|
15
|
+
- 📦 55 high-quality components that are simple, easy to use, and flexible.
|
|
16
16
|
- 🔑 Support for TypeScript.
|
|
17
17
|
- ⛰️ Support for Nuxt3.
|
|
18
18
|
- ⚡ Support for on-demand import.
|
|
@@ -21,12 +21,27 @@ English | [简体中文](README.zh-CN.md)
|
|
|
21
21
|
|
|
22
22
|
## 🔧 Usage
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
First install vue-devui with npm, yarn or pnpm.
|
|
25
25
|
|
|
26
|
+
Install with npm
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
npm install vue-devui --save
|
|
26
30
|
```
|
|
27
|
-
|
|
31
|
+
|
|
32
|
+
Install with yarn
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
yarn add vue-devui
|
|
28
36
|
```
|
|
29
37
|
|
|
38
|
+
Install with pnpm
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
pnpm add vue-devui
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
|
|
30
45
|
Then import `DevUI` in the `main.ts` file:
|
|
31
46
|
|
|
32
47
|
```ts
|
|
@@ -50,20 +65,27 @@ Then you can use the vue devui component(such as `<d-button>`) in the `App.vue`
|
|
|
50
65
|
|
|
51
66
|
## 🖥️ Development
|
|
52
67
|
|
|
53
|
-
```
|
|
68
|
+
```sh
|
|
54
69
|
git clone git@github.com:DevCloudFE/vue-devui.git
|
|
55
70
|
cd vue-devui
|
|
56
|
-
pnpm
|
|
71
|
+
pnpm install
|
|
57
72
|
pnpm dev
|
|
58
73
|
```
|
|
59
74
|
|
|
60
75
|
Open your browser and visit: [http://localhost:3000/](http://localhost:3000/).
|
|
61
76
|
|
|
77
|
+
Or you can run other command
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
pnpm scripts
|
|
81
|
+
```
|
|
82
|
+
|
|
62
83
|
## 🤝 Contributing
|
|
63
84
|
|
|
64
85
|
Welcome to join our Vue DevUI open source project!🎉
|
|
65
86
|
|
|
66
87
|
By participating in the Vue DevUI project, we can together:
|
|
88
|
+
|
|
67
89
|
- 🔥 Learn the latest cool `Vite` + `Vue3` + `TypeScript` + `JSX` technology.
|
|
68
90
|
- 🎁 Learn how to design and develop UI components.
|
|
69
91
|
- ⭐ Hone programming skills and learn excellent programming practice.
|
|
@@ -144,6 +166,15 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
144
166
|
<td align="center"><a href="https://github.com/79E"><img src="https://avatars.githubusercontent.com/u/71202421?v=4?s=100" width="100px;" alt=""/><br /><sub><b>79</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=79E" title="Code">💻</a></td>
|
|
145
167
|
<td align="center"><a href="https://github.com/SituC"><img src="https://avatars.githubusercontent.com/u/29355875?v=4?s=100" width="100px;" alt=""/><br /><sub><b>wailen</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=SituC" title="Code">💻</a></td>
|
|
146
168
|
<td align="center"><a href="https://github.com/JensonMiao"><img src="https://avatars.githubusercontent.com/u/46488783?v=4?s=100" width="100px;" alt=""/><br /><sub><b>jenson</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=JensonMiao" title="Code">💻</a></td>
|
|
169
|
+
<td align="center"><a href="https://github.com/dbsdaicheng"><img src="https://avatars.githubusercontent.com/u/62135142?v=4?s=100" width="100px;" alt=""/><br /><sub><b>dbsdaicheng</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=dbsdaicheng" title="Tests">⚠️</a></td>
|
|
170
|
+
<td align="center"><a href="https://github.com/qinwencheng"><img src="https://avatars.githubusercontent.com/u/24841685?v=4?s=100" width="100px;" alt=""/><br /><sub><b>qinwencheng</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=qinwencheng" title="Code">💻</a></td>
|
|
171
|
+
<td align="center"><a href="https://github.com/angelanana"><img src="https://avatars.githubusercontent.com/u/63281354?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Angelanana</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=angelanana" title="Code">💻</a></td>
|
|
172
|
+
<td align="center"><a href="https://github.com/joo1es"><img src="https://avatars.githubusercontent.com/u/76929557?v=4?s=100" width="100px;" alt=""/><br /><sub><b>joo1es</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=joo1es" title="Code">💻</a></td>
|
|
173
|
+
<td align="center"><a href="https://github.com/handsomezyw"><img src="https://avatars.githubusercontent.com/u/34366225?v=4?s=100" width="100px;" alt=""/><br /><sub><b>handsomezyw</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=handsomezyw" title="Code">💻</a></td>
|
|
174
|
+
<td align="center"><a href="https://github.com/iamyoki"><img src="https://avatars.githubusercontent.com/u/74389358?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yoki</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=iamyoki" title="Code">💻</a></td>
|
|
175
|
+
</tr>
|
|
176
|
+
<tr>
|
|
177
|
+
<td align="center"><a href="https://github.com/LadyChatterleyLover"><img src="https://avatars.githubusercontent.com/u/35223515?v=4?s=100" width="100px;" alt=""/><br /><sub><b>luopei</b></sub></a><br /><a href="https://github.com/DevCloudFE/vue-devui/commits?author=LadyChatterleyLover" title="Code">💻</a></td>
|
|
147
178
|
</tr>
|
|
148
179
|
</table>
|
|
149
180
|
|
package/alert/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.devui-alert{color:var(--devui-text, #252b3a);font-size:var(--devui-font-size, 14px);border:1px solid transparent;padding:8px 16px;line-height:24px;border-radius:var(--devui-border-radius,
|
|
1
|
+
.devui-alert{color:var(--devui-text, #252b3a);font-size:var(--devui-font-size, 14px);border:1px solid transparent;padding:8px 16px;line-height:24px;border-radius:var(--devui-border-radius, 2px);display:flex;align-items:center;position:relative;width:100%;overflow:hidden}.devui-alert.devui-alert--center{justify-content:center}.devui-alert .devui-alert__content{display:flex;padding:0 16px 0 4px;word-break:normal;word-wrap:break-word}.devui-alert .devui-alert__close-icon{color:var(--devui-text, #252b3a);opacity:1;line-height:26px;height:24px;position:absolute;right:16px;top:8px}.devui-alert .devui-alert__close-icon>svg path{fill:var(--devui-light-text, #ffffff)}.devui-alert .devui-alert__close-icon span{color:var(--devui-text, #252b3a);font-size:var(--devui-font-size, 14px);font-weight:700}.devui-alert.devui-alert--success{background-color:var(--devui-success-bg, #edfff9);border-color:var(--devui-success-line, #50d4ab);color:var(--devui-text, #252b3a)}.devui-alert.devui-alert--success .devui-alert__close-icon>svg path{fill:var(--devui-success-line, #50d4ab)}.devui-alert.devui-alert--info{background-color:var(--devui-info-bg, #f2f5fc);border-color:var(--devui-info-line, #5e7ce0);color:var(--devui-text, #252b3a)}.devui-alert.devui-alert--info .devui-alert__close-icon>svg path{fill:var(--devui-info-line, #5e7ce0)}.devui-alert.devui-alert--warning{background-color:var(--devui-warning-bg, #fff3e8);border-color:var(--devui-warning-line, #fa9841);color:var(--devui-text, #252b3a)}.devui-alert.devui-alert--warning .devui-alert__close-icon>svg path{fill:var(--devui-warning-line, #fa9841)}.devui-alert.devui-alert--danger{background-color:var(--devui-danger-bg, #ffeeed);border-color:var(--devui-danger-line, #f66f6a);color:var(--devui-text, #252b3a)}.devui-alert.devui-alert--danger .devui-alert__close-icon>svg path{fill:var(--devui-danger-line, #f66f6a)}.devui-alert.devui-alert--simple{border-color:var(--devui-line, #d7d8da);color:var(--devui-text, #252b3a)}.devui-alert.devui-alert--simple .devui-alert__close-icon>svg path{fill:var(--devui-text-weak, #575d6c)}.devui-alert svg.devui-alert__icon{width:16px;height:16px;vertical-align:middle;transform:translateY(-1px)}.devui-alert .devui-alert__icon.devui-alert__icon--success>g path{fill:var(--devui-success-line, #50d4ab)}.devui-alert .devui-alert__icon.devui-alert__icon--success>g polygon{fill:var(--devui-light-text, #ffffff);stroke:var(--devui-light-text, #ffffff)}.devui-alert .devui-alert__icon.devui-alert__icon--warning>g path.warning-outer{fill:var(--devui-warning-line, #fa9841)}.devui-alert .devui-alert__icon.devui-alert__icon--warning>g path.warning-inner{fill:var(--devui-light-text, #ffffff);stroke:var(--devui-light-text, #ffffff)}.devui-alert .devui-alert__icon.devui-alert__icon--info>g path.info-outer{fill:var(--devui-info-line, #5e7ce0)}.devui-alert .devui-alert__icon.devui-alert__icon--info>g path.info-inner{fill:var(--devui-light-text, #ffffff);stroke:var(--devui-light-text, #ffffff)}.devui-alert .devui-alert__icon.devui-alert__icon--error>g path.error-outer{fill:var(--devui-danger-line, #f66f6a)}.devui-alert .devui-alert__icon.devui-alert__icon--error>g path.error-inner{fill:var(--devui-light-text, #ffffff);stroke:var(--devui-light-text, #ffffff)}.devui-alert__icon-wrap{margin-right:4px}.devui-alter--close{margin:0;padding-top:0;padding-bottom:0;transform-origin:50% 0;transition:all .3s ease-in-out}.devui-alert-leave-active{animation:alertUpOut .3s ease-in-out;animation-fill-mode:both}@keyframes alertUpOut{0%{transform:scaleY(1);transform-origin:0% 0%;opacity:1}to{transform:scaleY(0);transform-origin:0% 0%;opacity:0}}
|
|
@@ -33,7 +33,7 @@ var __publicField = (obj, key, value) => {
|
|
|
33
33
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
34
34
|
return value;
|
|
35
35
|
};
|
|
36
|
-
import { ref, nextTick, defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, unref, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport,
|
|
36
|
+
import { ref, nextTick, defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, unref, withModifiers, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, render, getCurrentInstance, resolveDirective, vShow, resolveDynamicComponent, isVNode } from "vue";
|
|
37
37
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
38
38
|
const defaultFormatter = (item) => {
|
|
39
39
|
if (typeof item === "string") {
|
|
@@ -6171,6 +6171,10 @@ const flexibleOverlayProps = {
|
|
|
6171
6171
|
isArrowCenter: {
|
|
6172
6172
|
type: Boolean,
|
|
6173
6173
|
default: true
|
|
6174
|
+
},
|
|
6175
|
+
clickEventBubble: {
|
|
6176
|
+
type: Boolean,
|
|
6177
|
+
default: false
|
|
6174
6178
|
}
|
|
6175
6179
|
};
|
|
6176
6180
|
function getScrollParent(element) {
|
|
@@ -6285,6 +6289,9 @@ const FlexibleOverlay = defineComponent({
|
|
|
6285
6289
|
expose
|
|
6286
6290
|
}) {
|
|
6287
6291
|
const ns2 = useNamespace("flexible-overlay");
|
|
6292
|
+
const {
|
|
6293
|
+
clickEventBubble
|
|
6294
|
+
} = toRefs(props);
|
|
6288
6295
|
const {
|
|
6289
6296
|
arrowRef,
|
|
6290
6297
|
overlayRef,
|
|
@@ -6298,7 +6305,10 @@ const FlexibleOverlay = defineComponent({
|
|
|
6298
6305
|
return props.modelValue && createVNode("div", mergeProps({
|
|
6299
6306
|
"ref": overlayRef,
|
|
6300
6307
|
"class": ns2.b()
|
|
6301
|
-
}, attrs
|
|
6308
|
+
}, attrs, {
|
|
6309
|
+
"onClick": withModifiers(() => ({}), [clickEventBubble.value ? "" : "stop"]),
|
|
6310
|
+
"onPointerup": withModifiers(() => ({}), ["stop"])
|
|
6311
|
+
}), [(_a = slots.default) == null ? void 0 : _a.call(slots), props.showArrow && createVNode("div", {
|
|
6302
6312
|
"ref": arrowRef,
|
|
6303
6313
|
"class": ns2.e("arrow")
|
|
6304
6314
|
}, null)]);
|
|
@@ -6417,7 +6427,7 @@ const TransformOriginMap = {
|
|
|
6417
6427
|
function usePopover(props, visible, placement, origin, popoverRef) {
|
|
6418
6428
|
const { trigger, isOpen } = toRefs(props);
|
|
6419
6429
|
const overlayStyles = computed(() => ({
|
|
6420
|
-
zIndex: 1060,
|
|
6430
|
+
zIndex: "var(--devui-z-index-pop-up, 1060)",
|
|
6421
6431
|
transformOrigin: TransformOriginMap[placement.value]
|
|
6422
6432
|
}));
|
|
6423
6433
|
const onDocumentClick = (e) => {
|
|
@@ -6660,8 +6670,6 @@ var Popover = defineComponent({
|
|
|
6660
6670
|
"style": overlayStyles.value
|
|
6661
6671
|
}, attrs, {
|
|
6662
6672
|
"onPositionChange": handlePositionChange,
|
|
6663
|
-
"onClick": withModifiers(() => ({}), ["stop"]),
|
|
6664
|
-
"onPointerup": withModifiers(() => ({}), ["stop"]),
|
|
6665
6673
|
"onMouseenter": onMouseenter,
|
|
6666
6674
|
"onMouseleave": onMouseleave
|
|
6667
6675
|
}), {
|
|
@@ -6860,9 +6868,7 @@ var FormControl = defineComponent({
|
|
|
6860
6868
|
}, {
|
|
6861
6869
|
default: () => {
|
|
6862
6870
|
var _a, _b;
|
|
6863
|
-
return [
|
|
6864
|
-
"class": ns2.e("control-content")
|
|
6865
|
-
}, [(_b = (_a = ctx2.slots).default) == null ? void 0 : _b.call(_a)]), createTextVNode(",")];
|
|
6871
|
+
return [(_b = (_a = ctx2.slots).default) == null ? void 0 : _b.call(_a)];
|
|
6866
6872
|
}
|
|
6867
6873
|
}), showFeedback.value && createVNode("span", {
|
|
6868
6874
|
"class": [ns2.e("feedback-icon"), ns2.em("feedback-icon", feedbackStatus.value)]
|
|
@@ -8197,7 +8203,7 @@ class LoadingOptions {
|
|
|
8197
8203
|
}
|
|
8198
8204
|
var loading = "";
|
|
8199
8205
|
var Loading = defineComponent({
|
|
8200
|
-
name: "
|
|
8206
|
+
name: "Loading",
|
|
8201
8207
|
inheritAttrs: false,
|
|
8202
8208
|
props: loadingProps,
|
|
8203
8209
|
setup(props) {
|
|
@@ -8350,12 +8356,12 @@ const handleProps = (el, vprops) => {
|
|
|
8350
8356
|
const props = __spreadValues(__spreadValues({}, new LoadingOptions()), vprops);
|
|
8351
8357
|
const loadingTemplateRef = props.loadingTemplateRef;
|
|
8352
8358
|
const loadingInstance = createComponent(loadingConstructor, __spreadValues({}, props), loadingTemplateRef ? () => loadingTemplateRef : null);
|
|
8353
|
-
el.style.position = props.positionType;
|
|
8359
|
+
el.style.position = props.positionType || "relative";
|
|
8354
8360
|
el.options = props;
|
|
8355
8361
|
el.instance = loadingInstance;
|
|
8356
8362
|
el.mask = (_a = loadingInstance == null ? void 0 : loadingInstance.proxy) == null ? void 0 : _a.$el;
|
|
8357
8363
|
};
|
|
8358
|
-
const
|
|
8364
|
+
const LoadingDirective = {
|
|
8359
8365
|
mounted: function(el, binding, vnode) {
|
|
8360
8366
|
handleProps(el, vnode.props);
|
|
8361
8367
|
removeAttribute(el);
|
|
@@ -8390,7 +8396,8 @@ function deepAssign(...objects) {
|
|
|
8390
8396
|
var zhCN = {
|
|
8391
8397
|
pagination: {
|
|
8392
8398
|
totalItemText: "\u6240\u6709\u6761\u76EE",
|
|
8393
|
-
goToText: "\u8DF3\u81F3"
|
|
8399
|
+
goToText: "\u8DF3\u81F3",
|
|
8400
|
+
perPage: "\u6761/\u9875"
|
|
8394
8401
|
},
|
|
8395
8402
|
accordion: {
|
|
8396
8403
|
loading: "\u52A0\u8F7D\u4E2D",
|
|
@@ -8541,7 +8548,7 @@ function createI18nTranslate(name, app, newPrefix) {
|
|
|
8541
8548
|
var DAutoCompleteDropdown = defineComponent({
|
|
8542
8549
|
name: "DAutoCompleteDropdown",
|
|
8543
8550
|
directives: {
|
|
8544
|
-
|
|
8551
|
+
Loading: LoadingDirective
|
|
8545
8552
|
},
|
|
8546
8553
|
setup(props, ctx2) {
|
|
8547
8554
|
const app = getCurrentInstance();
|
|
@@ -8611,7 +8618,7 @@ var DAutoCompleteDropdown = defineComponent({
|
|
|
8611
8618
|
"class": ns2.e("no-result-template")
|
|
8612
8619
|
}, [createVNode("div", {
|
|
8613
8620
|
"class": noDataNs.b()
|
|
8614
|
-
}, [ctx2.slots.noResultItemTemplate()])])])]), [[resolveDirective("
|
|
8621
|
+
}, [ctx2.slots.noResultItemTemplate()])])])]), [[resolveDirective("loading"), showLoading.value], [vShow, visible.value && searchList.value.length > 0 || ctx2.slots.noResultItemTemplate && showNoResultItemTemplate.value || isSearching && ctx2.slots.searchingTemplate && (searchStatus == null ? void 0 : searchStatus.value)]]);
|
|
8615
8622
|
};
|
|
8616
8623
|
}
|
|
8617
8624
|
});
|
|
@@ -8824,7 +8831,8 @@ var Icon = defineComponent({
|
|
|
8824
8831
|
const wrapClassed = computed(() => ({
|
|
8825
8832
|
[ns2.e("container")]: true,
|
|
8826
8833
|
[ns2.m("disabled")]: disabled.value,
|
|
8827
|
-
[ns2.m("operable")]: operable.value
|
|
8834
|
+
[ns2.m("operable")]: operable.value,
|
|
8835
|
+
[ns2.m("no-slots")]: !Object.keys(ctx2.slots).length
|
|
8828
8836
|
}));
|
|
8829
8837
|
const onClick = (e) => {
|
|
8830
8838
|
if (disabled.value) {
|
|
@@ -8959,7 +8967,10 @@ var AutoComplete = defineComponent({
|
|
|
8959
8967
|
"origin": origin.value,
|
|
8960
8968
|
"position": position.value,
|
|
8961
8969
|
"modelValue": visible.value,
|
|
8962
|
-
"onUpdate:modelValue": ($event) => visible.value = $event
|
|
8970
|
+
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
8971
|
+
"style": {
|
|
8972
|
+
zIndex: "var(--devui-z-index-dropdown, 1052)"
|
|
8973
|
+
}
|
|
8963
8974
|
}, {
|
|
8964
8975
|
default: () => [createVNode("div", {
|
|
8965
8976
|
"class": ns2.e("menu"),
|