@skyfox2000/webui 1.4.15 → 1.4.16
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/lib/assets/modules/{baseLayout-BtJNPMBy.js → baseLayout-DQQ-vZCD.js} +3 -3
- package/lib/assets/modules/{file-upload-CYNi1NsW.js → file-upload-Dc61Tbof.js} +1 -1
- package/lib/assets/modules/{index-BOOirPG2.js → index-CX7vtghj.js} +1 -1
- package/lib/assets/modules/{index-DWnhNqJu.js → index-DrGkF0qX.js} +2 -2
- package/lib/assets/modules/{index-Cj6QnoC7.js → index-Dz624mC-.js} +2 -2
- package/lib/assets/modules/{menuTabs-DDGkYuvg.js → menuTabs-BwAVx2tx.js} +2 -2
- package/lib/assets/modules/{toolIcon-DXQt60Ya.js → toolIcon-B2btIpdL.js} +1 -1
- package/lib/assets/modules/{upload-template-CaeUt6VI.js → upload-template-BqG06zPn.js} +318 -310
- package/lib/assets/modules/{uploadList-D0jw6jNr.js → uploadList-DlbvQOtR.js} +4 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +5 -5
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +316 -312
- package/package.json +1 -1
- package/src/components/content/table/index.vue +1 -1
- package/src/components/form/autoComplete/index.vue +5 -1
- package/src/components/form/cascader/index.vue +8 -10
- package/src/components/form/checkbox/index.vue +8 -11
- package/src/components/form/radio/index.vue +9 -14
- package/src/components/form/select/index.vue +4 -1
- package/src/components/form/treeSelect/index.vue +5 -1
package/package.json
CHANGED
|
@@ -167,7 +167,7 @@ watch(
|
|
|
167
167
|
|
|
168
168
|
const visible = ref(false);
|
|
169
169
|
onActivated(() => {
|
|
170
|
-
if (visible.value && gridCtrl) gridCtrl.reload.value = true;
|
|
170
|
+
if (visible.value && gridCtrl && gridCtrl.autoload) gridCtrl.reload.value = true;
|
|
171
171
|
});
|
|
172
172
|
|
|
173
173
|
onMounted(async () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { ref, onUnmounted, useAttrs, watch, shallowRef, PropType } from 'vue';
|
|
2
|
+
import { ref, onUnmounted, useAttrs, watch, shallowRef, PropType, onActivated } from 'vue';
|
|
3
3
|
import { AutoComplete, Input } from 'ant-design-vue';
|
|
4
4
|
import {
|
|
5
5
|
useInputFactory,
|
|
@@ -130,6 +130,10 @@ const onSelected = (value: any) => {
|
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
+
onActivated(() => {
|
|
134
|
+
if (optionCtrl && optionCtrl.autoload) optionCtrl.reload.value = true;
|
|
135
|
+
});
|
|
136
|
+
|
|
133
137
|
onUnmounted(() => {
|
|
134
138
|
if (optionCtrl) unloadOption(optionCtrl, props);
|
|
135
139
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { ref, onMounted, onUnmounted, useAttrs, watch, shallowRef } from 'vue';
|
|
2
|
+
import { ref, onMounted, onUnmounted, useAttrs, watch, shallowRef, onActivated } from 'vue';
|
|
3
3
|
import {
|
|
4
4
|
circleLoading,
|
|
5
5
|
useInputFactory,
|
|
@@ -79,13 +79,17 @@ const onChanged = (_: ValueType, selected: DefaultOptionType[]) => {
|
|
|
79
79
|
const labels: string[] = getSelectedLabels(selectedOptions);
|
|
80
80
|
|
|
81
81
|
emit('update:labels', labels);
|
|
82
|
-
emit('update:value', values);
|
|
82
|
+
emit('update:value', values);
|
|
83
83
|
if (errInfo?.value.errClass && editorCtrl) {
|
|
84
84
|
/// 重新开始验证
|
|
85
85
|
formValidate(editorCtrl);
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
+
onActivated(() => {
|
|
90
|
+
if (optionCtrl && optionCtrl.autoload) optionCtrl.reload.value = true;
|
|
91
|
+
});
|
|
92
|
+
|
|
89
93
|
onMounted(() => {
|
|
90
94
|
if (url.value && !url.value.fieldMap) {
|
|
91
95
|
url.value.fieldMap = {
|
|
@@ -108,14 +112,8 @@ onUnmounted(() => {
|
|
|
108
112
|
<circleLoading class="text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" />
|
|
109
113
|
<span>数据加载中...</span>
|
|
110
114
|
</div>
|
|
111
|
-
<Cascader
|
|
112
|
-
:
|
|
113
|
-
:class="[errInfo?.errClass]"
|
|
114
|
-
:allow-clear="true"
|
|
115
|
-
:placeholder="selectOptions.length > 0 ? '请选择' + labelText : ''"
|
|
116
|
-
@change="onChanged"
|
|
117
|
-
v-bind="attrs"
|
|
118
|
-
/>
|
|
115
|
+
<Cascader :options="selectOptions" :class="[errInfo?.errClass]" :allow-clear="true"
|
|
116
|
+
:placeholder="selectOptions.length > 0 ? '请选择' + labelText : ''" @change="onChanged" v-bind="attrs" />
|
|
119
117
|
</div>
|
|
120
118
|
</template>
|
|
121
119
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { ref, onMounted, onUnmounted, useAttrs, watch, shallowRef } from 'vue';
|
|
2
|
+
import { ref, onMounted, onUnmounted, useAttrs, watch, shallowRef, onActivated } from 'vue';
|
|
3
3
|
import { Checkbox, CheckboxGroup } from 'ant-design-vue';
|
|
4
4
|
import {
|
|
5
5
|
// circleLoading,
|
|
@@ -75,6 +75,10 @@ const onChanged = (e: CheckboxValueType[]) => {
|
|
|
75
75
|
emit('update:labels', labels);
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
+
onActivated(() => {
|
|
79
|
+
if (optionCtrl && optionCtrl.autoload) optionCtrl.reload.value = true;
|
|
80
|
+
});
|
|
81
|
+
|
|
78
82
|
onMounted(() => {
|
|
79
83
|
if (url.value && !url.value.fieldMap) {
|
|
80
84
|
url.value.fieldMap = {
|
|
@@ -99,20 +103,13 @@ onUnmounted(() => {
|
|
|
99
103
|
</div> -->
|
|
100
104
|
<CheckboxGroup @change="onChanged" class="w-full mb-[-3px]" v-bind="attrs">
|
|
101
105
|
<template v-if="checkboxOptions.length > 0">
|
|
102
|
-
<Checkbox
|
|
103
|
-
|
|
104
|
-
:key="item.value"
|
|
105
|
-
:value="item.value"
|
|
106
|
-
:disabled="
|
|
107
|
-
item.disabled || (item.value && disabledItems && disabledItems.indexOf(item.value.toString()) > -1)
|
|
108
|
-
"
|
|
109
|
-
:class="[
|
|
106
|
+
<Checkbox v-for="item in checkboxOptions" :key="item.value" :value="item.value" :disabled="item.disabled || (item.value && disabledItems && disabledItems.indexOf(item.value.toString()) > -1)
|
|
107
|
+
" :class="[
|
|
110
108
|
errInfo?.errClass === 'error' ? 'error !text-red-400' : '',
|
|
111
109
|
'text-nowrap',
|
|
112
110
|
'pb-1',
|
|
113
111
|
wrap ? `w-1/${props.wrap}` : '',
|
|
114
|
-
]"
|
|
115
|
-
>
|
|
112
|
+
]">
|
|
116
113
|
{{ item.label }}
|
|
117
114
|
</Checkbox>
|
|
118
115
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { ref, onMounted, onUnmounted, watch, useAttrs, shallowRef } from 'vue';
|
|
2
|
+
import { ref, onMounted, onUnmounted, watch, useAttrs, shallowRef, onActivated } from 'vue';
|
|
3
3
|
import { Radio, RadioChangeEvent, RadioGroup } from 'ant-design-vue';
|
|
4
4
|
import {
|
|
5
5
|
OptionCommProps,
|
|
@@ -102,6 +102,10 @@ const onChanged = (e: RadioChangeEvent) => {
|
|
|
102
102
|
emit('update:labels', labels);
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
+
onActivated(() => {
|
|
106
|
+
if (optionCtrl && optionCtrl.autoload) optionCtrl.reload.value = true;
|
|
107
|
+
});
|
|
108
|
+
|
|
105
109
|
onMounted(() => {
|
|
106
110
|
if (url.value && !url.value.fieldMap) {
|
|
107
111
|
url.value.fieldMap = {
|
|
@@ -118,26 +122,17 @@ onUnmounted(() => {
|
|
|
118
122
|
</script>
|
|
119
123
|
<template>
|
|
120
124
|
<div class="min-h-[32px] pt-1">
|
|
121
|
-
<RadioGroup
|
|
122
|
-
v-
|
|
123
|
-
:autocheck="false"
|
|
124
|
-
@change="onChanged"
|
|
125
|
-
class="w-full flex align-items flex-wrap mb-[-3px]"
|
|
126
|
-
v-bind="attrs"
|
|
127
|
-
>
|
|
125
|
+
<RadioGroup v-model:value="innerValue" :autocheck="false" @change="onChanged"
|
|
126
|
+
class="w-full flex align-items flex-wrap mb-[-3px]" v-bind="attrs">
|
|
128
127
|
<template v-if="radioOptions.length > 0">
|
|
129
128
|
<template v-for="item in radioOptions" :key="item.value">
|
|
130
|
-
<Radio
|
|
131
|
-
:checked="isValueEqual(item.value, props.value)"
|
|
132
|
-
v-if="item.visible !== false"
|
|
133
|
-
:value="item.value"
|
|
129
|
+
<Radio :checked="isValueEqual(item.value, props.value)" v-if="item.visible !== false" :value="item.value"
|
|
134
130
|
:class="[
|
|
135
131
|
errInfo?.errClass === 'error' ? 'error !text-red-400' : '',
|
|
136
132
|
'text-nowrap',
|
|
137
133
|
'pb-1',
|
|
138
134
|
wrap ? `w-1/${props.wrap}` : '',
|
|
139
|
-
]"
|
|
140
|
-
>
|
|
135
|
+
]">
|
|
141
136
|
{{ item.label }}
|
|
142
137
|
</Radio>
|
|
143
138
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { ref, onMounted, onUnmounted, watch, PropType, useAttrs, shallowRef } from 'vue';
|
|
2
|
+
import { ref, onMounted, onUnmounted, watch, PropType, useAttrs, shallowRef, onActivated } from 'vue';
|
|
3
3
|
import { Select, SelectOption } from 'ant-design-vue';
|
|
4
4
|
import {
|
|
5
5
|
circleLoading,
|
|
@@ -172,6 +172,9 @@ watch(
|
|
|
172
172
|
},
|
|
173
173
|
);
|
|
174
174
|
|
|
175
|
+
onActivated(() => {
|
|
176
|
+
if (optionCtrl && optionCtrl.autoload) optionCtrl.reload.value = true;
|
|
177
|
+
});
|
|
175
178
|
|
|
176
179
|
onMounted(() => {
|
|
177
180
|
if (url.value && !url.value.fieldMap) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { ref, watch, onMounted, PropType } from 'vue';
|
|
2
|
+
import { ref, watch, onMounted, PropType, onActivated } from 'vue';
|
|
3
3
|
import { TreeSelect } from 'ant-design-vue';
|
|
4
4
|
import type { SelectValue, TreeControl, TreeNode } from '@/index';
|
|
5
5
|
import { queryTree, useInputFactory } from '@/index';
|
|
@@ -87,6 +87,10 @@ const handleChange = (value: SelectValue) => {
|
|
|
87
87
|
emit('change', currentValue.value);
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
+
onActivated(() => {
|
|
91
|
+
if (props.treeCtrl && props.treeCtrl.autoload) props.treeCtrl.reload.value = true;
|
|
92
|
+
});
|
|
93
|
+
|
|
90
94
|
// 组件挂载时加载数据
|
|
91
95
|
onMounted(() => {
|
|
92
96
|
if (!treeCtrl.fieldMap) {
|