@skyfox2000/webui 1.3.13 → 1.3.14
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/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 +415 -394
- package/package.json +2 -2
- 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
|
@@ -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
|
}
|