@skyfox2000/webui 1.3.13 → 1.3.15
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/{file-upload-CUZwipDq.js → file-upload-D8Ln4vVV.js} +1 -1
- package/lib/assets/modules/{index-CRI5J3tC.js → index-B2AK2Li9.js} +2 -2
- package/lib/assets/modules/{index-VW3ychQv.js → index-BnDOMkVL.js} +1 -1
- package/lib/assets/modules/{index-CiPOV7eS.js → index-C8qhSdva.js} +2 -2
- package/lib/assets/modules/{menuTabs-CX8-KAho.js → menuTabs-FUxE-a2D.js} +2 -2
- package/lib/assets/modules/{toolIcon-0Ar6hd78.js → toolIcon-bJ_WgHLU.js} +1 -1
- package/lib/assets/modules/{uploadList-Bj9RG8dw.js → uploadList-BAX79qeV.js} +4 -4
- package/lib/assets/modules/{uploadList-Ce4hn5ZE.js → uploadList-BNkHE3fR.js} +1 -1
- package/lib/components/content/search/index.vue.d.ts +2 -0
- package/lib/components/form/index.d.ts +2 -0
- package/lib/components/form/timePicker/index.vue.d.ts +6 -0
- package/lib/components/index.d.ts +1 -1
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +3 -3
- 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/UploadForm/index.js +4 -4
- package/lib/index.d.ts +1 -1
- package/lib/webui.es.js +417 -396
- package/package.json +2 -2
- package/src/components/content/search/index.vue +9 -15
- package/src/components/form/index.ts +3 -0
- package/src/components/form/timePicker/index.vue +24 -0
- package/src/components/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/utils/page.ts +1 -1
package/package.json
CHANGED
|
@@ -39,6 +39,7 @@ const props = defineProps<{
|
|
|
39
39
|
|
|
40
40
|
const emits = defineEmits<{
|
|
41
41
|
(e: 'update:search', val: Record<string, any>): void;
|
|
42
|
+
(e: 'reset'): void;
|
|
42
43
|
}>();
|
|
43
44
|
|
|
44
45
|
/**
|
|
@@ -117,19 +118,15 @@ const onReset = () => {
|
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
emits('update:search', data);
|
|
121
|
+
|
|
122
|
+
emits('reset');
|
|
120
123
|
};
|
|
121
124
|
</script>
|
|
122
125
|
<template>
|
|
123
|
-
<Form
|
|
124
|
-
|
|
125
|
-
:
|
|
126
|
-
|
|
127
|
-
flexWrap: 'wrap',
|
|
128
|
-
borderBottom: '1px solid #e9e9e9',
|
|
129
|
-
}"
|
|
130
|
-
class="flex mb-[10px]"
|
|
131
|
-
v-submit="onSearch"
|
|
132
|
-
>
|
|
126
|
+
<Form v-if="defaultSlots + controlSlots > 0" :label-col="{ flex: '60px' }" :style="{
|
|
127
|
+
flexWrap: 'wrap',
|
|
128
|
+
borderBottom: '1px solid #e9e9e9',
|
|
129
|
+
}" class="flex mb-[10px]" v-submit="onSearch">
|
|
133
130
|
<!-- 默认插槽 -->
|
|
134
131
|
<slot></slot>
|
|
135
132
|
<!-- 受控插槽 -->
|
|
@@ -137,11 +134,8 @@ const onReset = () => {
|
|
|
137
134
|
<!-- 表单操作按钮 占位数量 -->
|
|
138
135
|
<SearchItem class="w-1/3" v-if="holderSize >= 1"> </SearchItem>
|
|
139
136
|
<SearchItem class="w-1/3" v-if="holderSize >= 2"> </SearchItem>
|
|
140
|
-
<SearchItem
|
|
141
|
-
|
|
142
|
-
class="w-1/3 flex justify-end text-right pr-5"
|
|
143
|
-
:wrapper-col="{ flex: 'auto' }"
|
|
144
|
-
>
|
|
137
|
+
<SearchItem v-if="defaultSlots || gridCtrl.searchBar" class="w-1/3 flex justify-end text-right pr-5"
|
|
138
|
+
:wrapper-col="{ flex: 'auto' }">
|
|
145
139
|
<Space>
|
|
146
140
|
<Button type="primary" @click="onSearch" icon="icon-search">搜索</Button>
|
|
147
141
|
<Button @click="onReset" icon="icon-reset">重置</Button>
|
|
@@ -43,6 +43,9 @@ export { Switch };
|
|
|
43
43
|
import Textarea from './textarea/index.vue';
|
|
44
44
|
export { Textarea };
|
|
45
45
|
|
|
46
|
+
import TimePicker from './timePicker/index.vue';
|
|
47
|
+
export { TimePicker };
|
|
48
|
+
|
|
46
49
|
import Transfer from './transfer/index.vue';
|
|
47
50
|
export { Transfer };
|
|
48
51
|
import TransferTable from './transfer/transferTable.vue';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from 'vue';
|
|
3
|
+
import { TimePicker } from 'ant-design-vue';
|
|
4
|
+
import locale from 'ant-design-vue/es/date-picker/locale/zh_CN';
|
|
5
|
+
import { formValidate, useInputFactory } from '@/index';
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
valueFormat?: string;
|
|
8
|
+
}>();
|
|
9
|
+
|
|
10
|
+
const { editorCtrl, labelText, errInfo } = useInputFactory();
|
|
11
|
+
const onBlur = () => {
|
|
12
|
+
if (errInfo?.value.errClass && editorCtrl) {
|
|
13
|
+
/// 重新开始验证
|
|
14
|
+
formValidate(editorCtrl);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const timeFormat = ref<string>(props.valueFormat ?? 'HH:mm');
|
|
19
|
+
</script>
|
|
20
|
+
<template>
|
|
21
|
+
<TimePicker class="w-full"
|
|
22
|
+
:class="[errInfo?.errClass === 'error' ? 'error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]' : '']"
|
|
23
|
+
:placeholder="'请选择' + labelText" :locale="locale" :valueFormat="timeFormat" @blur="onBlur" />
|
|
24
|
+
</template>
|
package/src/components/index.ts
CHANGED
package/src/index.ts
CHANGED
package/src/utils/page.ts
CHANGED
|
@@ -90,7 +90,7 @@ const initUrls = (apiUrls: ApiUrls) => {
|
|
|
90
90
|
if (!apiUrls.urls[urlKey]!.api) {
|
|
91
91
|
apiUrls.urls[urlKey]!.api = apiUrls.api;
|
|
92
92
|
}
|
|
93
|
-
if (
|
|
93
|
+
if (apiUrls.urls[urlKey]!.authorize === undefined) {
|
|
94
94
|
apiUrls.urls[urlKey]!.authorize = apiUrls.authorize;
|
|
95
95
|
}
|
|
96
96
|
}
|