kui-vue 5.3.0 → 5.3.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/dist/index.js +2 -2
- package/es/index.js +19 -4
- package/es/locale/de.js +1 -1
- package/es/locale/el.js +1 -1
- package/es/locale/en.js +1 -1
- package/es/locale/fr.js +1 -1
- package/es/locale/it.js +1 -1
- package/es/locale/ja.js +1 -1
- package/es/locale/ko.js +1 -1
- package/es/locale/ru.js +1 -1
- package/es/locale/th.js +1 -1
- package/es/locale/uk.js +1 -1
- package/es/locale/vi.js +1 -1
- package/es/locale/zh-CN.js +1 -1
- package/es/locale/zh-TW.js +1 -1
- package/lib/index.js +2 -2
- package/lib/locale/de.js +1 -1
- package/lib/locale/el.js +1 -1
- package/lib/locale/en.js +1 -1
- package/lib/locale/fr.js +1 -1
- package/lib/locale/it.js +1 -1
- package/lib/locale/ja.js +1 -1
- package/lib/locale/ko.js +1 -1
- package/lib/locale/ru.js +1 -1
- package/lib/locale/th.js +1 -1
- package/lib/locale/uk.js +1 -1
- package/lib/locale/vi.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/package.json +1 -1
- package/style/index.css +1 -1
- package/types/message/index.d.ts +2 -0
- package/types/notice/content.d.ts +3 -0
- package/vetur/web-types.json +1 -1
package/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* kui-vue v5.3.
|
|
2
|
+
* kui-vue v5.3.1
|
|
3
3
|
* Copyright 2017-present, kui-vue.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Homepage: https://k-ui.cn
|
|
@@ -10125,7 +10125,8 @@ var content_default = /* @__PURE__ */ defineComponent({
|
|
|
10125
10125
|
noticeType: {
|
|
10126
10126
|
type: String,
|
|
10127
10127
|
default: "message"
|
|
10128
|
-
}
|
|
10128
|
+
},
|
|
10129
|
+
grouping: String
|
|
10129
10130
|
},
|
|
10130
10131
|
setup(props, { emit }) {
|
|
10131
10132
|
const onClose = () => {
|
|
@@ -10186,7 +10187,19 @@ var container_default = /* @__PURE__ */ defineComponent({
|
|
|
10186
10187
|
setup(ps, { expose }) {
|
|
10187
10188
|
const options = ref([]);
|
|
10188
10189
|
const show = (option) => {
|
|
10189
|
-
let { duration = 3.5, onClose, closable, noticeType } = option;
|
|
10190
|
+
let { duration = 3.5, onClose, closable, noticeType, grouping } = option;
|
|
10191
|
+
if (grouping) {
|
|
10192
|
+
const existingItem = options.value.find((item) => item.grouping === grouping);
|
|
10193
|
+
if (existingItem) {
|
|
10194
|
+
existingItem.content = option.content;
|
|
10195
|
+
existingItem.type = option.type;
|
|
10196
|
+
if (option.icon !== void 0) existingItem.icon = option.icon;
|
|
10197
|
+
if (option.color !== void 0) existingItem.color = option.color;
|
|
10198
|
+
clearTimeout(existingItem.__timer);
|
|
10199
|
+
if (duration > 0) existingItem.__timer = setTimeout(existingItem.__callback, duration * 1e3);
|
|
10200
|
+
return existingItem.__callback;
|
|
10201
|
+
}
|
|
10202
|
+
}
|
|
10190
10203
|
const key = getUuid();
|
|
10191
10204
|
let timer = void 0;
|
|
10192
10205
|
let callback = () => {
|
|
@@ -10198,7 +10211,9 @@ var container_default = /* @__PURE__ */ defineComponent({
|
|
|
10198
10211
|
if (closable === true && noticeType == "message" || noticeType == "notice") option.onClose = () => callback();
|
|
10199
10212
|
options.value.push({
|
|
10200
10213
|
...option,
|
|
10201
|
-
key
|
|
10214
|
+
key,
|
|
10215
|
+
__timer: timer,
|
|
10216
|
+
__callback: callback
|
|
10202
10217
|
});
|
|
10203
10218
|
return callback;
|
|
10204
10219
|
};
|
package/es/locale/de.js
CHANGED
package/es/locale/el.js
CHANGED
package/es/locale/en.js
CHANGED
package/es/locale/fr.js
CHANGED
package/es/locale/it.js
CHANGED
package/es/locale/ja.js
CHANGED
package/es/locale/ko.js
CHANGED
package/es/locale/ru.js
CHANGED
package/es/locale/th.js
CHANGED
package/es/locale/uk.js
CHANGED
package/es/locale/vi.js
CHANGED
package/es/locale/zh-CN.js
CHANGED
package/es/locale/zh-TW.js
CHANGED