@polyv/watch-identify-sdk-ui-default 0.1.0-rc.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/README.md +1 -0
- package/lib/demo.html +1 -0
- package/lib/entranceMobile/demo.html +1 -0
- package/lib/entranceMobile/entranceMobile.common.js +23792 -0
- package/lib/entranceMobile/entranceMobile.common.js.map +1 -0
- package/lib/entranceMobile/entranceMobile.umd.js +23819 -0
- package/lib/entranceMobile/entranceMobile.umd.js.map +1 -0
- package/lib/entranceMobile/entranceMobile.umd.min.js +16 -0
- package/lib/entranceMobile/entranceMobile.umd.min.js.map +1 -0
- package/lib/entrancePc/demo.html +1 -0
- package/lib/entrancePc/entrancePc.common.js +27390 -0
- package/lib/entrancePc/entrancePc.common.js.map +1 -0
- package/lib/entrancePc/entrancePc.umd.js +27417 -0
- package/lib/entrancePc/entrancePc.umd.js.map +1 -0
- package/lib/entrancePc/entrancePc.umd.min.js +16 -0
- package/lib/entrancePc/entrancePc.umd.min.js.map +1 -0
- package/lib/polyv-watch-identify-sdk-ui-default.common.js +30474 -0
- package/lib/polyv-watch-identify-sdk-ui-default.common.js.map +1 -0
- package/lib/polyv-watch-identify-sdk-ui-default.umd.js +30501 -0
- package/lib/polyv-watch-identify-sdk-ui-default.umd.js.map +1 -0
- package/lib/polyv-watch-identify-sdk-ui-default.umd.min.js +16 -0
- package/lib/polyv-watch-identify-sdk-ui-default.umd.min.js.map +1 -0
- package/package.json +23 -0
- package/types/assets/lang/i18ns/china.d.ts +124 -0
- package/types/assets/lang/i18ns/english.d.ts +5 -0
- package/types/assets/lang/i18ns/index.d.ts +3 -0
- package/types/assets/lang/index.d.ts +8 -0
- package/types/assets/lang/lang-enum.d.ts +7 -0
- package/types/assets/lang/types.d.ts +8 -0
- package/types/assets/utils/browser.d.ts +6 -0
- package/types/assets/utils/copy.d.ts +9 -0
- package/types/assets/utils/dom.d.ts +11 -0
- package/types/assets/utils/utils.d.ts +5 -0
- package/types/assets/utils/validate.d.ts +35 -0
- package/types/assets/utils/vue-utils/emit-utils.d.ts +10 -0
- package/types/assets/utils/vue-utils/index.d.ts +7 -0
- package/types/assets/utils/vue-utils/props-utils.d.ts +53 -0
- package/types/components/bind-identity-info/mobile-bind-identity-info.vue.d.ts +2 -0
- package/types/components/bind-identity-info/pc-bind-identity-info.vue.d.ts +2 -0
- package/types/components/bind-identity-info/use-bind-identity-info.d.ts +14 -0
- package/types/components/bind-identity-info/use-identity-info-input.d.ts +26 -0
- package/types/components/common-base/dialog/mobile-dialog/index.d.ts +2 -0
- package/types/components/common-base/dialog/mobile-dialog/mobile-dialog.vue.d.ts +100 -0
- package/types/components/common-base/dialog/pc-dialog/index.d.ts +3 -0
- package/types/components/common-base/dialog/pc-dialog/pc-dialog.vue.d.ts +113 -0
- package/types/components/common-base/dialog/pc-dialog/types.d.ts +6 -0
- package/types/components/common-base/dialog/use-dialog-tips.d.ts +20 -0
- package/types/components/common-base/dialog/use-dialog.d.ts +125 -0
- package/types/components/common-base/form/form-checkbox/mobile-form-checkbox.vue.d.ts +29 -0
- package/types/components/common-base/form/form-checkbox/pc-form-checkbox.vue.d.ts +29 -0
- package/types/components/common-base/form/form-checkbox/use-form-checkbox.d.ts +23 -0
- package/types/components/common-base/form/form-image-verify-input/mobile-form-image-verify-input.vue.d.ts +24 -0
- package/types/components/common-base/form/form-image-verify-input/pc-form-image-verify-input.vue.d.ts +24 -0
- package/types/components/common-base/form/form-image-verify-input/type.d.ts +4 -0
- package/types/components/common-base/form/form-image-verify-input/use-image-verify-input.d.ts +26 -0
- package/types/components/common-base/form/form-input/hooks/use-form-input.d.ts +79 -0
- package/types/components/common-base/form/form-input/mobile-form-input.vue.d.ts +103 -0
- package/types/components/common-base/form/form-input/pc-form-input.vue.d.ts +103 -0
- package/types/components/common-base/form/form-input/types/form-input-types.d.ts +11 -0
- package/types/components/common-base/form/form-item.vue.d.ts +46 -0
- package/types/components/common-base/form/form-phone-input/mobile-form-phone-input.vue.d.ts +48 -0
- package/types/components/common-base/form/form-phone-input/pc-form-phone-input.vue.d.ts +48 -0
- package/types/components/common-base/form/form-phone-input/use-form-phone-input.d.ts +43 -0
- package/types/components/common-base/form/form-protocol/mobile-form-protocol.vue.d.ts +30 -0
- package/types/components/common-base/form/form-protocol/pc-form-protocol.vue.d.ts +30 -0
- package/types/components/common-base/form/form-protocol/use-form-protocol.d.ts +29 -0
- package/types/components/common-base/form/form-slide-verify/mobile-form-slide-verify.vue.d.ts +11 -0
- package/types/components/common-base/form/form-slide-verify/pc-form-slide-verify.vue.d.ts +11 -0
- package/types/components/common-base/form/form-slide-verify/use-slide-verify.d.ts +28 -0
- package/types/components/common-base/form/form-sms-verify-input/mobile-form-sms-verify-input.vue.d.ts +57 -0
- package/types/components/common-base/form/form-sms-verify-input/pc-form-sms-verify-input.vue.d.ts +57 -0
- package/types/components/common-base/form/form-sms-verify-input/use-sms-verify-input.d.ts +65 -0
- package/types/components/common-base/form/form-submit-button.vue.d.ts +70 -0
- package/types/components/common-base/form/form-wrap.vue.d.ts +74 -0
- package/types/components/common-base/form/hooks/use-form-common.d.ts +27 -0
- package/types/components/common-base/form/hooks/use-form-item.d.ts +57 -0
- package/types/components/common-base/form/hooks/use-form-submit-button.d.ts +41 -0
- package/types/components/common-base/form/hooks/use-form.d.ts +69 -0
- package/types/components/common-base/form/types/enums.d.ts +18 -0
- package/types/components/common-base/form/types/form-types.d.ts +25 -0
- package/types/components/common-base/loading/loading-animation.vue.d.ts +2 -0
- package/types/components/common-base/message-box/index.d.ts +7 -0
- package/types/components/common-base/message-box/mobile-message-box.vue.d.ts +78 -0
- package/types/components/common-base/message-box/pc-message-box.vue.d.ts +141 -0
- package/types/components/common-base/message-box/use-message-box.d.ts +174 -0
- package/types/components/common-base/normal-button/index.d.ts +3 -0
- package/types/components/common-base/normal-button/normal-button.vue.d.ts +73 -0
- package/types/components/common-base/normal-button/types.d.ts +47 -0
- package/types/components/common-base/normal-button/use-normal-button.d.ts +41 -0
- package/types/components/common-base/phone-code/mobile-phone-code.vue.d.ts +14 -0
- package/types/components/common-base/phone-code/pc-phone-code.vue.d.ts +14 -0
- package/types/components/common-base/phone-code/phone-code-data-en.d.ts +10 -0
- package/types/components/common-base/phone-code/phone-code-data.d.ts +10 -0
- package/types/components/common-base/phone-code/use-phone-code.d.ts +45 -0
- package/types/components/common-base/popup/index.d.ts +4 -0
- package/types/components/common-base/popup/mobile-popup.vue.d.ts +213 -0
- package/types/components/common-base/popup/types.d.ts +25 -0
- package/types/components/common-base/popup/use-popup.d.ts +160 -0
- package/types/components/component-icons/mobile/icons/arrow-down/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/arrow-left/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/arrow-right/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/arrow-up/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/ask/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/barrage-setting/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/booking/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/chat/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/check/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/check-round-fill/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/close/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/close-round/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/close-round-fill/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/danmu-switch/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/delete/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/emotion/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/forbid/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/heart/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/highlight/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/keyboard/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/like/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/me/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/media/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/message/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/news/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/pack-up/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/page-view/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/people/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/play-round/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/product/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/search/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/share/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/smiling-face/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/translate/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/video-call/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/voice-call/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/warning-round-fill/index.d.ts +6 -0
- package/types/components/component-icons/mobile/icons/watch-duration/index.d.ts +6 -0
- package/types/components/component-icons/mobile/map.d.ts +5 -0
- package/types/components/component-icons/pc/icons/apply-video-call/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/arrow-down/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/arrow-left/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/arrow-right/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/arrow-up/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/barrage-local-bottom/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/barrage-local-full/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/barrage-local-half/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/barrage-local-top/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/barrage-setting/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/bind-mobile/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/booking/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/bulletin/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/caret-down/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/caret-left/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/caret-right/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/caret-up/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/chat-error/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/chat-loading/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/chat-loading2/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/chat-msg-loading/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/check/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/check-round-fill/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/close/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/close-round/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/close-round-fill/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/copy/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/device-setting/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/emotion/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/feedback/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/forbid/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/hang-up/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/highlight/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/lang/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/media/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/page-view/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/people/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/pic/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/picture/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/play-round/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/reply/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/screenshare-setting/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/screenshare-start/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/screenshare-stop/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/search/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/set-nick/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/share/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/tips/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/translate/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/video-call/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/voice-call/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/warning-round-fill/index.d.ts +6 -0
- package/types/components/component-icons/pc/icons/watch-duration/index.d.ts +6 -0
- package/types/components/component-icons/pc/map.d.ts +4 -0
- package/types/components/direct-login-page/direct-login-page.vue.d.ts +2 -0
- package/types/components/direct-login-page/use-direct-login-page.d.ts +1 -0
- package/types/components/identify-login-page/mobile-identify-login-page.vue.d.ts +11 -0
- package/types/components/identify-login-page/pc-identify-login-page.vue.d.ts +11 -0
- package/types/components/identify-login-page/use-identify-login-page.d.ts +3 -0
- package/types/components/login-method-switch/index.d.ts +3 -0
- package/types/components/login-method-switch/mobile-login-method-switch.vue.d.ts +14 -0
- package/types/components/login-method-switch/pc-login-method-switch.vue.d.ts +14 -0
- package/types/components/login-method-switch/types.d.ts +7 -0
- package/types/components/login-method-switch/use-login-method-switch.d.ts +20 -0
- package/types/components/wx-login-page/components/wx-scan-login/pc-wx-scan-login.vue.d.ts +2 -0
- package/types/components/wx-login-page/components/wx-scan-login/use-wx-scan-login.d.ts +7 -0
- package/types/components/wx-login-page/mobile-wx-login-page.vue.d.ts +9 -0
- package/types/components/wx-login-page/pc-wx-login-page.vue.d.ts +9 -0
- package/types/components/wx-login-page/use-wx-login-page.d.ts +23 -0
- package/types/exports/index.d.ts +5 -0
- package/types/exports/lib/mobile.d.ts +65 -0
- package/types/exports/lib/pc.d.ts +45 -0
- package/types/exports/lib/watch-identify-login-page/mobile-watch-identify-login-page.vue.d.ts +40 -0
- package/types/exports/lib/watch-identify-login-page/pc-watch-identify-login-page.vue.d.ts +40 -0
- package/types/exports/lib/watch-identify-scan-login-result/watch-identify-scan-login-result.vue.d.ts +20 -0
- package/types/exports/mobile-index.d.ts +5 -0
- package/types/exports/pc-index.d.ts +5 -0
- package/types/hooks/behaviors/use-append-to/index.d.ts +7 -0
- package/types/hooks/behaviors/use-click-outside/index.d.ts +19 -0
- package/types/hooks/business/use-login-config/index.d.ts +25 -0
- package/types/hooks/components/use-popper/_components/popper-arrow.vue.d.ts +23 -0
- package/types/hooks/components/use-popper/_hooks/use-popper-arrow.d.ts +15 -0
- package/types/hooks/components/use-popper/_hooks/use-popper-core.d.ts +241 -0
- package/types/hooks/components/use-popper/_hooks/use-popper-interactive.d.ts +5 -0
- package/types/hooks/components/use-popper/_hooks/use-popper-visible.d.ts +9 -0
- package/types/hooks/components/use-popper/_popper-type.d.ts +70 -0
- package/types/hooks/components/use-popper/index.d.ts +31 -0
- package/types/hooks/components/use-popper/use-auto-topmost-show.d.ts +7 -0
- package/types/hooks/components/use-toast/_components/mobile-toast.vue.d.ts +42 -0
- package/types/hooks/components/use-toast/_components/pc-toast.vue.d.ts +42 -0
- package/types/hooks/components/use-toast/_hooks/use-toast-comp.d.ts +53 -0
- package/types/hooks/components/use-toast/_toast_type.d.ts +28 -0
- package/types/hooks/components/use-toast/index.d.ts +59 -0
- package/types/hooks/core/use-page-size/index.d.ts +4 -0
- package/types/hooks/core/use-root-inject/index.d.ts +11 -0
- package/types/hooks/core/use-root-provide/index.d.ts +58 -0
- package/types/hooks/core/use-screen-orient/index.d.ts +25 -0
- package/types/hooks/core/use-vue/index.d.ts +11 -0
- package/types/hooks/core/use-window-resize-listener/index.d.ts +7 -0
- package/types/hooks/platform/use-weixin/use-weixin-authorize.d.ts +4 -0
- package/types/hooks/tools/use-count-down/index.d.ts +29 -0
- package/types/main.d.ts +7 -0
- package/types/plugins/async-validator/index.d.ts +3 -0
- package/types/plugins/external-lib-loaders/load-ali-awsc.d.ts +4 -0
- package/types/plugins/polyv-ui/admin-import.d.ts +3 -0
- package/types/plugins/polyv-ui/types.d.ts +63 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { VueProps } from '../../../../assets/utils/vue-utils/props-utils';
|
|
2
|
+
import { InjectionKey } from 'vue';
|
|
3
|
+
import { FormItemInstance, FormValidateOptions } from '../types/form-types';
|
|
4
|
+
export declare const formItemProps: () => {
|
|
5
|
+
/** 该节点属于表单数据中的哪个字段 */
|
|
6
|
+
formField: import("vue-types").VueTypeValidableDef<string>;
|
|
7
|
+
/** 节点标签 */
|
|
8
|
+
label: import("vue-types").VueTypeValidableDef<string>;
|
|
9
|
+
/** 表单标题宽度 */
|
|
10
|
+
labelWidth: import("vue-types").VueTypeValidableDef<number>;
|
|
11
|
+
/** 表单标题高度 */
|
|
12
|
+
labelHeight: import("vue-types").VueTypeValidableDef<number>;
|
|
13
|
+
/** 表单输入框内容宽度 */
|
|
14
|
+
contentWidth: import("vue-types").VueTypeValidableDef<number>;
|
|
15
|
+
/** 是否显示异常信息 */
|
|
16
|
+
showErrorMessage: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
/** 节点异常信息 */
|
|
20
|
+
errorMessage: import("vue-types").VueTypeValidableDef<string>;
|
|
21
|
+
/** label 模式 */
|
|
22
|
+
labelModel: import("vue-types").VueTypeDef<"header" | "inline">;
|
|
23
|
+
/** 是否显示必填星号 */
|
|
24
|
+
required: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
/** <form-item> 组件名 */
|
|
29
|
+
export declare const FORM_ITEM_COMPONENT_NAME = "form-item";
|
|
30
|
+
/**
|
|
31
|
+
* 判断 vue 实例是否为 <form-item>
|
|
32
|
+
* @param instance 实例
|
|
33
|
+
*/
|
|
34
|
+
export declare const isFormItemInstance: (instance: unknown) => instance is FormItemInstance;
|
|
35
|
+
export declare const FORM_ITEM_PROVIDE_KEY: InjectionKey<FormItemInstance>;
|
|
36
|
+
export declare const useFormItemInject: () => FormItemInstance | undefined;
|
|
37
|
+
export declare const useFormItem: (options: {
|
|
38
|
+
props: VueProps<typeof formItemProps>;
|
|
39
|
+
}) => {
|
|
40
|
+
required: import("vue").ComputedRef<boolean>;
|
|
41
|
+
labelText: import("vue").ComputedRef<string | undefined>;
|
|
42
|
+
labelModel: import("vue").ComputedRef<"header" | "inline">;
|
|
43
|
+
labelStyle: import("vue").ComputedRef<{
|
|
44
|
+
width?: undefined;
|
|
45
|
+
height?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
width: string | undefined;
|
|
48
|
+
height: string | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
contentWidthStyle: import("vue").ComputedRef<string | undefined>;
|
|
51
|
+
itemErrorMessage: import("vue").Ref<string | undefined>;
|
|
52
|
+
formItemIsError: import("vue").ComputedRef<boolean>;
|
|
53
|
+
removeErrorMessage: () => void;
|
|
54
|
+
validateFormItem: (validateOptions?: FormValidateOptions) => Promise<void>;
|
|
55
|
+
formItemInstance: FormItemInstance;
|
|
56
|
+
isMobile: boolean;
|
|
57
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { VueProps } from '../../../../assets/utils/vue-utils/props-utils';
|
|
2
|
+
export declare const formSubmitButtonProps: () => {
|
|
3
|
+
/** 防抖提交,默认:false */
|
|
4
|
+
debounceSubmit: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
text: import("vue-types").VueTypeValidableDef<string> & {
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
nativeType: import("vue-types").VueTypeValidableDef<import("../../normal-button").ButtonNativeType> & {
|
|
11
|
+
default: import("../../normal-button").ButtonNativeType;
|
|
12
|
+
};
|
|
13
|
+
/** 防抖提交,默认:false */
|
|
14
|
+
type: import("vue-types").VueTypeValidableDef<import("../../normal-button").ButtonType> & {
|
|
15
|
+
default: import("../../normal-button").ButtonType;
|
|
16
|
+
};
|
|
17
|
+
size: import("vue-types").VueTypeValidableDef<import("../../normal-button").ButtonSize> & {
|
|
18
|
+
default: import("../../normal-button").ButtonSize;
|
|
19
|
+
};
|
|
20
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
block: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
icon: import("vue-types").VueTypeValidableDef<import("@polyv/icons-vue/icon-builder").IconComponentOption>;
|
|
27
|
+
/** 检查按钮是否需要禁用 */
|
|
28
|
+
iconClass: import("vue-types").VueTypeValidableDef<string> & {
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
allowDisabledClick: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare const useFormSubmitButton: (options: {
|
|
36
|
+
props: VueProps<typeof formSubmitButtonProps>;
|
|
37
|
+
}) => {
|
|
38
|
+
buttonIsDisabled: import("vue").ComputedRef<boolean>;
|
|
39
|
+
checkDisabled: () => Promise<void>;
|
|
40
|
+
onButtonClick: () => void;
|
|
41
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { VueEmit } from '../../../../assets/utils/vue-utils/emit-utils';
|
|
2
|
+
import { VueProps } from '../../../../assets/utils/vue-utils/props-utils';
|
|
3
|
+
import { ValidatorRules } from '../../../../plugins/async-validator';
|
|
4
|
+
import { ComputedRef, InjectionKey, Ref } from 'vue';
|
|
5
|
+
import { FormTheme } from '../types/enums';
|
|
6
|
+
import { FormValidateOptions } from '../types/form-types';
|
|
7
|
+
export declare const formWrapProps: () => {
|
|
8
|
+
/** 绑定的表单对象 */
|
|
9
|
+
formData: import("vue-types").VueTypeValidableDef<{
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}> & {
|
|
12
|
+
default: () => {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/** 验证规则 */
|
|
17
|
+
formRules: import("vue-types").VueTypeValidableDef<ValidatorRules> & {
|
|
18
|
+
default: () => ValidatorRules;
|
|
19
|
+
};
|
|
20
|
+
/** 表单标题宽度 */
|
|
21
|
+
labelWidth: import("vue-types").VueTypeValidableDef<number> & {
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
/** 表单标题高度 */
|
|
25
|
+
labelHeight: import("vue-types").VueTypeValidableDef<number> & {
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
/** 表单输入框内容宽度 */
|
|
29
|
+
contentWidth: import("vue-types").VueTypeValidableDef<number>;
|
|
30
|
+
/** 表单提交方法 */
|
|
31
|
+
submitAction: import("vue-types").VueTypeValidableDef<(...args: any[]) => any>;
|
|
32
|
+
/** 表单主题,dark-黑暗 */
|
|
33
|
+
theme: import("vue-types").VueTypeValidableDef<FormTheme>;
|
|
34
|
+
/** label 模式,默认:inline */
|
|
35
|
+
labelModel: import("vue-types").VueTypeDef<"header" | "inline"> & {
|
|
36
|
+
default: "header" | "inline";
|
|
37
|
+
};
|
|
38
|
+
/** 是否开启 debug 打印,默认:false */
|
|
39
|
+
debug: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export declare const formWrapEmits: () => {
|
|
44
|
+
'submit-form': (arg: UniversalParams<unknown>) => void;
|
|
45
|
+
};
|
|
46
|
+
export type FormWrapProps = VueProps<typeof formWrapProps>;
|
|
47
|
+
/** <form-wrap> 注入类型 */
|
|
48
|
+
export interface FormWrapInjectData {
|
|
49
|
+
/** 是否正在提交 */
|
|
50
|
+
isSubmiting: Ref<boolean>;
|
|
51
|
+
/** debug */
|
|
52
|
+
debug: ComputedRef<boolean>;
|
|
53
|
+
/** 验证当前表单 */
|
|
54
|
+
validateCurrentForm(validateOptions?: FormValidateOptions): Promise<void>;
|
|
55
|
+
/** 提交当前表单 */
|
|
56
|
+
submitForm(validateOptions?: FormValidateOptions): Promise<void>;
|
|
57
|
+
}
|
|
58
|
+
export declare const FORM_WRAP_PROPS_PROVIDE_KEY: InjectionKey<FormWrapProps>;
|
|
59
|
+
export declare const useFormWrapPropsInject: () => FormWrapProps | undefined;
|
|
60
|
+
export declare const FORM_WRAP_PROVIDE_KEY: InjectionKey<FormWrapInjectData>;
|
|
61
|
+
export declare const useFormWrapInject: () => FormWrapInjectData | undefined;
|
|
62
|
+
export declare const useFormWrap: (options: {
|
|
63
|
+
props: VueProps<typeof formWrapProps>;
|
|
64
|
+
emit: VueEmit<typeof formWrapEmits>;
|
|
65
|
+
}) => {
|
|
66
|
+
isSubmiting: Ref<boolean>;
|
|
67
|
+
validateCurrentForm: (validateOptions?: FormValidateOptions) => Promise<void>;
|
|
68
|
+
submitForm: (validateOptions: FormValidateOptions) => Promise<void>;
|
|
69
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** 表单尺寸 */
|
|
2
|
+
export declare enum FormSize {
|
|
3
|
+
/** 默认 - 48px */
|
|
4
|
+
Default = "default",
|
|
5
|
+
/** 中 - 40px */
|
|
6
|
+
Medium = "medium",
|
|
7
|
+
/** 小 - 32px */
|
|
8
|
+
Small = "small"
|
|
9
|
+
}
|
|
10
|
+
/** 表单主题 */
|
|
11
|
+
export declare enum FormTheme {
|
|
12
|
+
/** 默认 */
|
|
13
|
+
Default = "default",
|
|
14
|
+
/** 黑暗 */
|
|
15
|
+
Dark = "dark",
|
|
16
|
+
/** 简约 */
|
|
17
|
+
Simplicity = "simplicity"
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 表单验证选项
|
|
4
|
+
*/
|
|
5
|
+
export interface FormValidateOptions {
|
|
6
|
+
/** 是否显示异常消息 */
|
|
7
|
+
showErrorMessage?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 表单节点对象
|
|
11
|
+
*/
|
|
12
|
+
export interface FormItemInstance {
|
|
13
|
+
isFormItem: true;
|
|
14
|
+
/** 表单节点是否验证异常 */
|
|
15
|
+
formItemIsError: ComputedRef<boolean>;
|
|
16
|
+
/** 设置异常提示 */
|
|
17
|
+
setErrorMessage(message: string | undefined): void;
|
|
18
|
+
/** 移除异常提示 */
|
|
19
|
+
removeErrorMessage(): void;
|
|
20
|
+
/** 验证表单节点 */
|
|
21
|
+
validateFormItem(validateOptions?: FormValidateOptions): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
export declare const formItemLabelModels: ["inline", "header"];
|
|
24
|
+
/** 表单节点 label 样式,inline-行内,header-头部 */
|
|
25
|
+
export type FormItemLabelModel = typeof formItemLabelModels[number];
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VueProps } from '../../../assets/utils/vue-utils/props-utils';
|
|
2
|
+
import MobileMessageBox from './mobile-message-box.vue';
|
|
3
|
+
import PcMessageBox from './pc-message-box.vue';
|
|
4
|
+
import { messageBoxCommonProps, MessageBoxInstance } from './use-message-box';
|
|
5
|
+
export declare const messageBox: (props: Partial<VueProps<typeof messageBoxCommonProps>>) => MessageBoxInstance;
|
|
6
|
+
export { PcMessageBox, MobileMessageBox };
|
|
7
|
+
export * from './use-message-box';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
isRotate: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
3
|
+
default: boolean;
|
|
4
|
+
};
|
|
5
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
appendToBody: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
contentCenter: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
type: import("vue-types").VueTypeValidableDef<import("./use-message-box").MessageBoxType> & {
|
|
18
|
+
default: import("./use-message-box").MessageBoxType;
|
|
19
|
+
};
|
|
20
|
+
content: import("vue-types").VueTypeValidableDef<string> & {
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
cancelButtonText: import("vue-types").VueTypeValidableDef<string> & {
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
confirmButtonText: import("vue-types").VueTypeValidableDef<string> & {
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
$open: () => void;
|
|
31
|
+
$close: () => void;
|
|
32
|
+
$confirm: () => Promise<boolean>;
|
|
33
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
34
|
+
cancel: (arg?: void | undefined) => void;
|
|
35
|
+
"after-enter": (arg?: void | undefined) => void;
|
|
36
|
+
"after-leave": (arg?: void | undefined) => void;
|
|
37
|
+
confirm: (arg?: void | undefined) => void;
|
|
38
|
+
"click-link": (arg: HTMLAnchorElement) => void;
|
|
39
|
+
}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
isRotate: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
appendToBody: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
contentCenter: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
type: import("vue-types").VueTypeValidableDef<import("./use-message-box").MessageBoxType> & {
|
|
56
|
+
default: import("./use-message-box").MessageBoxType;
|
|
57
|
+
};
|
|
58
|
+
content: import("vue-types").VueTypeValidableDef<string> & {
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
cancelButtonText: import("vue-types").VueTypeValidableDef<string> & {
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
confirmButtonText: import("vue-types").VueTypeValidableDef<string> & {
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
}>>, {
|
|
68
|
+
type: import("./use-message-box").MessageBoxType;
|
|
69
|
+
title: string;
|
|
70
|
+
visible: boolean;
|
|
71
|
+
appendToBody: boolean;
|
|
72
|
+
content: string;
|
|
73
|
+
contentCenter: boolean;
|
|
74
|
+
cancelButtonText: string;
|
|
75
|
+
confirmButtonText: string;
|
|
76
|
+
isRotate: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
export default _default;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
3
|
+
default: boolean;
|
|
4
|
+
};
|
|
5
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
appendToBody: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
contentCenter: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
type: import("vue-types").VueTypeValidableDef<import("./use-message-box").MessageBoxType> & {
|
|
15
|
+
default: import("./use-message-box").MessageBoxType;
|
|
16
|
+
};
|
|
17
|
+
content: import("vue-types").VueTypeValidableDef<string> & {
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
cancelButtonText: import("vue-types").VueTypeValidableDef<string> & {
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
confirmButtonText: import("vue-types").VueTypeValidableDef<string> & {
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
hideHeaderBorder: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
mask: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
bodyLocked: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
height: import("vue-types").VueTypeValidableDef<number> & {
|
|
39
|
+
default: number;
|
|
40
|
+
};
|
|
41
|
+
closeOnClickMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
positionComputedElem: import("vue-types").VueTypeValidableDef<string> & {
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
mountEl: import("vue-types").VueTypeValidableDef<string> & {
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
}, {
|
|
57
|
+
$open: () => void;
|
|
58
|
+
$close: () => void;
|
|
59
|
+
$confirm: () => Promise<boolean>;
|
|
60
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
61
|
+
cancel: (arg?: void | undefined) => void;
|
|
62
|
+
"after-enter": (arg?: void | undefined) => void;
|
|
63
|
+
"after-leave": (arg?: void | undefined) => void;
|
|
64
|
+
confirm: (arg?: void | undefined) => void;
|
|
65
|
+
"click-link": (arg: HTMLAnchorElement) => void;
|
|
66
|
+
}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
67
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
appendToBody: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
contentCenter: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
type: import("vue-types").VueTypeValidableDef<import("./use-message-box").MessageBoxType> & {
|
|
80
|
+
default: import("./use-message-box").MessageBoxType;
|
|
81
|
+
};
|
|
82
|
+
content: import("vue-types").VueTypeValidableDef<string> & {
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
cancelButtonText: import("vue-types").VueTypeValidableDef<string> & {
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
confirmButtonText: import("vue-types").VueTypeValidableDef<string> & {
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
hideHeaderBorder: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
mask: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
bodyLocked: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
|
101
|
+
default: number;
|
|
102
|
+
};
|
|
103
|
+
height: import("vue-types").VueTypeValidableDef<number> & {
|
|
104
|
+
default: number;
|
|
105
|
+
};
|
|
106
|
+
closeOnClickMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
positionComputedElem: import("vue-types").VueTypeValidableDef<string> & {
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
mountEl: import("vue-types").VueTypeValidableDef<string> & {
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
}>>, {
|
|
122
|
+
type: import("./use-message-box").MessageBoxType;
|
|
123
|
+
title: string;
|
|
124
|
+
mask: boolean;
|
|
125
|
+
width: number;
|
|
126
|
+
height: number;
|
|
127
|
+
visible: boolean;
|
|
128
|
+
appendToBody: boolean;
|
|
129
|
+
closable: boolean;
|
|
130
|
+
closeOnClickMask: boolean;
|
|
131
|
+
hideHeaderBorder: boolean;
|
|
132
|
+
draggable: boolean;
|
|
133
|
+
mountEl: string;
|
|
134
|
+
content: string;
|
|
135
|
+
contentCenter: boolean;
|
|
136
|
+
cancelButtonText: string;
|
|
137
|
+
confirmButtonText: string;
|
|
138
|
+
bodyLocked: boolean;
|
|
139
|
+
positionComputedElem: string;
|
|
140
|
+
}>;
|
|
141
|
+
export default _default;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { VueEmit } from '../../../assets/utils/vue-utils/emit-utils';
|
|
2
|
+
import { VueProps } from '../../../assets/utils/vue-utils/props-utils';
|
|
3
|
+
export interface MessageBoxInstance {
|
|
4
|
+
/** 手动显示确认框 */
|
|
5
|
+
$open: () => void;
|
|
6
|
+
/** 手动关闭确认框 */
|
|
7
|
+
$close: () => void;
|
|
8
|
+
/** 显示确认框,并获取确认结果 */
|
|
9
|
+
$confirm: () => Promise<boolean>;
|
|
10
|
+
}
|
|
11
|
+
export declare enum MessageBoxType {
|
|
12
|
+
Confirm = "Confirm"
|
|
13
|
+
}
|
|
14
|
+
export declare const messageBoxCommonProps: () => {
|
|
15
|
+
/** 组件内部不会使用这个 props,只允许通过 $confirm 之类的实例方法来打开 */
|
|
16
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
/** 弹层标题 */
|
|
20
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
/** 是否插入到 body 中,默认:true */
|
|
24
|
+
appendToBody: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
/** 内容居中 */
|
|
28
|
+
contentCenter: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
/** 消息框框类型 */
|
|
32
|
+
type: import("vue-types").VueTypeValidableDef<MessageBoxType> & {
|
|
33
|
+
default: MessageBoxType;
|
|
34
|
+
};
|
|
35
|
+
/** 消息内容 */
|
|
36
|
+
content: import("vue-types").VueTypeValidableDef<string> & {
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
/** 取消按钮文本 */
|
|
40
|
+
cancelButtonText: import("vue-types").VueTypeValidableDef<string> & {
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
/** 确认按钮文本 */
|
|
44
|
+
confirmButtonText: import("vue-types").VueTypeValidableDef<string> & {
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare const messageBoxPcProps: () => {
|
|
49
|
+
/** 组件内部不会使用这个 props,只允许通过 $confirm 之类的实例方法来打开 */
|
|
50
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
/** 弹层标题 */
|
|
54
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
/** 是否插入到 body 中,默认:true */
|
|
58
|
+
appendToBody: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
/** 内容居中 */
|
|
62
|
+
contentCenter: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
/** 消息框框类型 */
|
|
66
|
+
type: import("vue-types").VueTypeValidableDef<MessageBoxType> & {
|
|
67
|
+
default: MessageBoxType;
|
|
68
|
+
};
|
|
69
|
+
/** 消息内容 */
|
|
70
|
+
content: import("vue-types").VueTypeValidableDef<string> & {
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
/** 取消按钮文本 */
|
|
74
|
+
cancelButtonText: import("vue-types").VueTypeValidableDef<string> & {
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
/** 确认按钮文本 */
|
|
78
|
+
confirmButtonText: import("vue-types").VueTypeValidableDef<string> & {
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
hideHeaderBorder: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
mask: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
85
|
+
default: boolean;
|
|
86
|
+
}; /** 内容居中 */
|
|
87
|
+
bodyLocked: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
|
91
|
+
default: number;
|
|
92
|
+
};
|
|
93
|
+
height: import("vue-types").VueTypeValidableDef<number> & {
|
|
94
|
+
default: number;
|
|
95
|
+
};
|
|
96
|
+
closeOnClickMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
positionComputedElem: import("vue-types").VueTypeValidableDef<string> & {
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
mountEl: import("vue-types").VueTypeValidableDef<string> & {
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
export declare const messageBoxMobileProps: () => {
|
|
113
|
+
/** 是否旋转 */
|
|
114
|
+
isRotate: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
/** 组件内部不会使用这个 props,只允许通过 $confirm 之类的实例方法来打开 */
|
|
118
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
/** 弹层标题 */
|
|
122
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
/** 是否插入到 body 中,默认:true */
|
|
126
|
+
appendToBody: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
129
|
+
/** 内容居中 */
|
|
130
|
+
contentCenter: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
/** 消息框框类型 */
|
|
134
|
+
type: import("vue-types").VueTypeValidableDef<MessageBoxType> & {
|
|
135
|
+
default: MessageBoxType;
|
|
136
|
+
};
|
|
137
|
+
/** 消息内容 */
|
|
138
|
+
content: import("vue-types").VueTypeValidableDef<string> & {
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
/** 取消按钮文本 */
|
|
142
|
+
cancelButtonText: import("vue-types").VueTypeValidableDef<string> & {
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
145
|
+
/** 确认按钮文本 */
|
|
146
|
+
confirmButtonText: import("vue-types").VueTypeValidableDef<string> & {
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
export declare const messageBoxEmits: () => {
|
|
151
|
+
/** 取消回调 */
|
|
152
|
+
cancel: (arg: void) => void;
|
|
153
|
+
/** 确认回调 */
|
|
154
|
+
confirm: (arg: void) => void;
|
|
155
|
+
/** 进入之后 */
|
|
156
|
+
'after-enter': (arg: void) => void;
|
|
157
|
+
/** 离开之后 */
|
|
158
|
+
'after-leave': (arg: void) => void;
|
|
159
|
+
/** 点击链接 */
|
|
160
|
+
'click-link': (arg: HTMLAnchorElement) => void;
|
|
161
|
+
};
|
|
162
|
+
export declare const useMessageBox: (options: {
|
|
163
|
+
props: VueProps<typeof messageBoxCommonProps>;
|
|
164
|
+
emit: VueEmit<typeof messageBoxEmits>;
|
|
165
|
+
}) => {
|
|
166
|
+
innerVisible: import("vue").Ref<boolean>;
|
|
167
|
+
messageBoxInstance: MessageBoxInstance;
|
|
168
|
+
messageBoxRef: import("vue").Ref<any>;
|
|
169
|
+
messageBoxContentRef: import("vue").Ref<HTMLElement | undefined>;
|
|
170
|
+
onAfterEnter: () => void;
|
|
171
|
+
onAfterLeave: () => void;
|
|
172
|
+
onCancel: () => void;
|
|
173
|
+
onConfirm: () => void;
|
|
174
|
+
};
|