nuxt-hs-ui 2.11.4 → 2.12.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/dist/module.json +1 -1
- package/dist/runtime/components/form/radio.vue +2 -2
- package/dist/runtime/components/interactive/dialog.vue +21 -2
- package/dist/runtime/components/interactive/modal.vue +0 -1
- package/dist/runtime/types/dialog.d.ts +1 -0
- package/dist/runtime/types/dialog.js +1 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -221,7 +221,7 @@ interface SelectItemShow extends DisplaySelectItem<IdType> {
|
|
|
221
221
|
const displayList: Ref<SelectItemShow[]> = ref([]);
|
|
222
222
|
|
|
223
223
|
const setDisplayList = () => {
|
|
224
|
-
console.log("setDisplayList");
|
|
224
|
+
// console.log("setDisplayList");
|
|
225
225
|
displayList.value = useDisplayList<IdType>({
|
|
226
226
|
list: ObjectCopy(props.list).map((row) => {
|
|
227
227
|
return { ...row, text: gt(row.text) };
|
|
@@ -390,7 +390,7 @@ const onKeyup = (event: KeyboardEvent) => {
|
|
|
390
390
|
const setValue = async (row: SelectItemShow | null) => {
|
|
391
391
|
if (props.disabled) return;
|
|
392
392
|
if (props.readonly) return;
|
|
393
|
-
console.log(row);
|
|
393
|
+
// console.log(row);
|
|
394
394
|
displayData.value = row;
|
|
395
395
|
};
|
|
396
396
|
|
|
@@ -83,6 +83,17 @@ const clickCancel = () => {
|
|
|
83
83
|
item.data.cancelBtnClick();
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
+
const clickBg = () => {
|
|
87
|
+
if (activeItem.value === null) return;
|
|
88
|
+
const item = activeItem.value;
|
|
89
|
+
if (activeItem.value?.data.option.bgClose === true) {
|
|
90
|
+
item.data.cancelBtnClick();
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
if (item.data.option.btnCancel.isShow === false) return;
|
|
94
|
+
item.data.cancelBtnClick();
|
|
95
|
+
};
|
|
96
|
+
|
|
86
97
|
watch(activateTs, async (ts) => {
|
|
87
98
|
await nextTick();
|
|
88
99
|
if (ts === null || !isShow.value) {
|
|
@@ -217,6 +228,14 @@ const baseCardHeader = [
|
|
|
217
228
|
"py-1",
|
|
218
229
|
"pe-1",
|
|
219
230
|
];
|
|
231
|
+
|
|
232
|
+
const modalClosable = computed(() => {
|
|
233
|
+
if (activeItem.value?.data.option.btnCancel.isShow) return true;
|
|
234
|
+
if (activeItem.value?.data.option.bgClose !== undefined) {
|
|
235
|
+
return activeItem.value?.data.option.bgClose;
|
|
236
|
+
}
|
|
237
|
+
return false;
|
|
238
|
+
});
|
|
220
239
|
</script>
|
|
221
240
|
|
|
222
241
|
<template>
|
|
@@ -226,8 +245,8 @@ const baseCardHeader = [
|
|
|
226
245
|
:show="isShow"
|
|
227
246
|
:z-index="zindex"
|
|
228
247
|
focus-lock
|
|
229
|
-
:closeable="
|
|
230
|
-
@close="
|
|
248
|
+
:closeable="modalClosable"
|
|
249
|
+
@close="clickBg()"
|
|
231
250
|
>
|
|
232
251
|
<Card
|
|
233
252
|
v-if="activeItem !== null"
|