@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
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@polyv/watch-identify-sdk-ui-default",
|
|
3
|
+
"version": "0.1.0-rc.1",
|
|
4
|
+
"description": "观看端用户系统认证-默认场景",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"polyv",
|
|
7
|
+
"watch",
|
|
8
|
+
"identify",
|
|
9
|
+
"watch-identify-sdk"
|
|
10
|
+
],
|
|
11
|
+
"author": "polyv",
|
|
12
|
+
"main": "./lib/polyv-watch-identify-sdk-ui-default.common.js",
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"vue": "~2.7.14"
|
|
15
|
+
},
|
|
16
|
+
"peerDependenciesMeta": {
|
|
17
|
+
"@polyv/watch-identify-sdk-core": {
|
|
18
|
+
"optional": true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"browser": "./lib/polyv-watch-identify-sdk-ui-default.common.js",
|
|
22
|
+
"typings": "./types/exports/index.d.ts"
|
|
23
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 中文语言配置
|
|
3
|
+
*/
|
|
4
|
+
export declare const chinaLang: {
|
|
5
|
+
'identifyCore.error.uploadImage': string;
|
|
6
|
+
'base.back': string;
|
|
7
|
+
'base.error.unknown': string;
|
|
8
|
+
'base.error.iarSetup': string;
|
|
9
|
+
'base.agree': string;
|
|
10
|
+
'base.disagree': string;
|
|
11
|
+
'base.sendSmsFail': string;
|
|
12
|
+
'base.unSetSmsPlatformFail': string;
|
|
13
|
+
'base.region': string;
|
|
14
|
+
'base.ok': string;
|
|
15
|
+
'base.backTop': string;
|
|
16
|
+
'base.people': string;
|
|
17
|
+
'base.error.payFail': string;
|
|
18
|
+
'base.confirm': string;
|
|
19
|
+
'base.cancel': string;
|
|
20
|
+
'base.ignore': string;
|
|
21
|
+
'base.refresh': string;
|
|
22
|
+
'base.reload': string;
|
|
23
|
+
'base.warmTips': string;
|
|
24
|
+
'base.enterLive': string;
|
|
25
|
+
'base.tips': string;
|
|
26
|
+
'base.you': string;
|
|
27
|
+
'base.me': string;
|
|
28
|
+
'base.more': string;
|
|
29
|
+
'base.changeLang': string;
|
|
30
|
+
'base.message': string;
|
|
31
|
+
'base.packUp': string;
|
|
32
|
+
'base.spreadOut': string;
|
|
33
|
+
'base.copy': string;
|
|
34
|
+
'base.fullText': string;
|
|
35
|
+
'base.translate': string;
|
|
36
|
+
'base.translateFinish': string;
|
|
37
|
+
'base.camera': string;
|
|
38
|
+
'base.popup.supportDragUp': string;
|
|
39
|
+
'base.popup.understood': string;
|
|
40
|
+
'base.enabled.on': string;
|
|
41
|
+
'base.enabled.off': string;
|
|
42
|
+
'base.notVisibleDialog': string;
|
|
43
|
+
'base.pip.show': string;
|
|
44
|
+
'base.pip.close': string;
|
|
45
|
+
'base.searchKeyword': string;
|
|
46
|
+
'base.emptyOptions': string;
|
|
47
|
+
'base.noMore': string;
|
|
48
|
+
'base.sendSuccess': string;
|
|
49
|
+
'base.deleteSuccess': string;
|
|
50
|
+
'base.system.version.deprecated': string;
|
|
51
|
+
'base.submit': string;
|
|
52
|
+
'base.submitSuccess': string;
|
|
53
|
+
'base.submitFail': string;
|
|
54
|
+
'base.smsCodeError': string;
|
|
55
|
+
'base.noData': string;
|
|
56
|
+
'base.reSendWhenIsShield': string;
|
|
57
|
+
'base.needCheck': string;
|
|
58
|
+
'copy.link': string;
|
|
59
|
+
'copy.success': string;
|
|
60
|
+
'copy.linkSuccess': string;
|
|
61
|
+
'form.name.phoneNumber': string;
|
|
62
|
+
'form.name.verifyCode': string;
|
|
63
|
+
'form.placeholder.phoneInput': string;
|
|
64
|
+
'form.placeholder.smsVerify': string;
|
|
65
|
+
'form.placeholder.imageVerify': string;
|
|
66
|
+
'form.placeholder.enterCountry': string;
|
|
67
|
+
'form.placeholder.contacts': string;
|
|
68
|
+
'form.placeholder.address': string;
|
|
69
|
+
'form.placeholder.corpName': string;
|
|
70
|
+
'form.placeholder.position': string;
|
|
71
|
+
'form.placeholder.email': string;
|
|
72
|
+
'form.error.phoneNumberRequired': string;
|
|
73
|
+
'form.error.phoneNumberError': string;
|
|
74
|
+
'form.error.smsVerifyRequired': string;
|
|
75
|
+
'form.error.imageCaptchaError': string;
|
|
76
|
+
'form.error.emailRequired': string;
|
|
77
|
+
'form.error.emailError': string;
|
|
78
|
+
'form.error.onlyCnAnEn': string;
|
|
79
|
+
'form.error.areaError': string;
|
|
80
|
+
'form.error.improveInfo': string;
|
|
81
|
+
'form.getSmsVerify': string;
|
|
82
|
+
'form.resend': string;
|
|
83
|
+
'form.radio': string;
|
|
84
|
+
'form.checkbox': string;
|
|
85
|
+
'form.select.multiPrefix': string;
|
|
86
|
+
'form.select.multiSuffix': string;
|
|
87
|
+
'form.uploadImage.prefixTips': string;
|
|
88
|
+
'form.uploadImage.suffixTips': string;
|
|
89
|
+
'unit.day': string;
|
|
90
|
+
'unit.dayTitle': string;
|
|
91
|
+
'unit.hour': string;
|
|
92
|
+
'unit.hourTitle': string;
|
|
93
|
+
'unit.minute': string;
|
|
94
|
+
'unit.minuteTitle': string;
|
|
95
|
+
'unit.second': string;
|
|
96
|
+
'unit.secondTitle': string;
|
|
97
|
+
'identify.login.confirm': string;
|
|
98
|
+
'identify.login.tips1': string;
|
|
99
|
+
'identify.login.tips2': string;
|
|
100
|
+
'weixin.scanToPay': string;
|
|
101
|
+
'weixin.pay.success': string;
|
|
102
|
+
'weixin.error.payTimeout': string;
|
|
103
|
+
'weixin.error.toWechatPay': string;
|
|
104
|
+
'weixin.error.openInClient': string;
|
|
105
|
+
'weixin.snapshot.tips': string;
|
|
106
|
+
'wxAuth.dialog.title': string;
|
|
107
|
+
'wxAuth.qrcode.tips': string;
|
|
108
|
+
'wxAuth.qrcode.tips2': string;
|
|
109
|
+
'wxAuth.copy': string;
|
|
110
|
+
'wxAuth.btn.text': string;
|
|
111
|
+
'wxAuth.protocol.tips': string;
|
|
112
|
+
'identityInfo.bindMobile': string;
|
|
113
|
+
'login.method.tips': string;
|
|
114
|
+
'login.method.tips.onlyWeixin': string;
|
|
115
|
+
'login.method.tips.onlyPhone': string;
|
|
116
|
+
'scan.login.tips.scanned': string;
|
|
117
|
+
'scan.login.tips.scanned2': string;
|
|
118
|
+
'scan.login.tips.success': string;
|
|
119
|
+
'scan.login.tips.fail': string;
|
|
120
|
+
'scan.login.tips.expired': string;
|
|
121
|
+
'scan.login.result.success': string;
|
|
122
|
+
'scan.login.result.fail': string;
|
|
123
|
+
'scan.login.result.expired': string;
|
|
124
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LangType } from './lang-enum';
|
|
2
|
+
import { LangKey, LangLocaleFn } from './types';
|
|
3
|
+
/** 转换多语言 */
|
|
4
|
+
export declare function translate(key: LangKey, options?: UniversalParams<string>): string;
|
|
5
|
+
export type LangInstallOptions = {
|
|
6
|
+
locale: LangType | LangLocaleFn;
|
|
7
|
+
};
|
|
8
|
+
export declare const changeLocale: (options: LangInstallOptions) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LangType } from './lang-enum';
|
|
2
|
+
import { chinaLang } from './i18ns/china';
|
|
3
|
+
/** 某个多语言配置 */
|
|
4
|
+
export type LangConfig = typeof chinaLang;
|
|
5
|
+
export type LangKey = keyof LangConfig;
|
|
6
|
+
/** 多语言匹配类型 */
|
|
7
|
+
export type LangI18nData = Record<LangType, LangConfig>;
|
|
8
|
+
export type LangLocaleFn = () => LangType;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function getElement(selector: string | HTMLElement): HTMLElement | null;
|
|
2
|
+
/**
|
|
3
|
+
* 格式化样式数值
|
|
4
|
+
* @param size 数值或数值字符串
|
|
5
|
+
*/
|
|
6
|
+
export declare function formatStyleSize(size?: string | number): string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* 判断是否已滚动接近底部
|
|
9
|
+
* @param $el Dom节点
|
|
10
|
+
*/
|
|
11
|
+
export declare function isScrollNearBottom($el?: HTMLElement | null): boolean;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file 验证相关的工具函数
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 根据区号验证手机号是否正确
|
|
6
|
+
* @param phoneNumber 手机号
|
|
7
|
+
* @param areaCode 区号,默认:+86
|
|
8
|
+
* @returns 正确的手机号返回 true
|
|
9
|
+
*/
|
|
10
|
+
export declare function validatePhoneNumber(phoneNumber: string, areaCode?: string): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* 验证图片验证码
|
|
13
|
+
* @param imageCaptcha 图片验证码
|
|
14
|
+
* @param imageId 图片验证码 id
|
|
15
|
+
* @returns 正确的验证码返回 true
|
|
16
|
+
*/
|
|
17
|
+
export declare function validateImageCaptcha(imageCaptcha: string, imageId: string): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 文本是否包含特殊字符
|
|
20
|
+
* @param text 目标文本
|
|
21
|
+
* @returns 如果存在特殊字符则返回 true
|
|
22
|
+
*/
|
|
23
|
+
export declare function validateSpecialString(text: string): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* 检测文本中是否仅包含中英文和空格
|
|
26
|
+
* @param text 目标文本
|
|
27
|
+
* @returns 如果存在其他字符则返回 false
|
|
28
|
+
*/
|
|
29
|
+
export declare function validateCnAndEn(text: string): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 检测文本是否符合"用户名称"规则
|
|
32
|
+
* @param userName 用户名称
|
|
33
|
+
* @returns 如果存在其他字符则返回 false
|
|
34
|
+
*/
|
|
35
|
+
export declare function validateUserName(userName: string): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EmitFn, ObjectEmitsOptions } from 'vue/types/v3-setup-context';
|
|
2
|
+
type EmitFuncType<P = void> = (arg: P) => void;
|
|
3
|
+
/**
|
|
4
|
+
* 创建 emit 配置的空函数
|
|
5
|
+
*/
|
|
6
|
+
export declare const emitFunc: <P = void>() => EmitFuncType<P>;
|
|
7
|
+
export type VueEmit<F extends () => ObjectEmitsOptions> = EmitFn<ReturnType<F>>;
|
|
8
|
+
type UpdateEmitReturn<K extends string, P = void> = Record<`update:${K}`, EmitFuncType<P>>;
|
|
9
|
+
export declare function updateModelEmit<K extends string, P>(field: K): UpdateEmitReturn<K, P>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export type SimilarResponsive<T = unknown> = T | Ref<T>;
|
|
3
|
+
/**
|
|
4
|
+
* 获取 ref 响应式对象中的 dom 节点,如果不是则返回 undefined
|
|
5
|
+
* @param targetRef 响应式对象
|
|
6
|
+
*/
|
|
7
|
+
export declare const getRefElem: <E extends HTMLElement>(targetRef: Ref | HTMLElement) => E | undefined;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Vue 的 props 工具
|
|
3
|
+
*/
|
|
4
|
+
import { IconComponentOption } from '@polyv/icons-vue/icon-builder';
|
|
5
|
+
import { ComputedRef, ExtractPropTypes } from 'vue';
|
|
6
|
+
import { oneOf as _oneOf, oneOfType as _oneOfType, VueTypeValidableDef } from 'vue-types';
|
|
7
|
+
/** Vue prop 配置工具 */
|
|
8
|
+
export declare class PropUtils {
|
|
9
|
+
/** String 类型,默认:'' */
|
|
10
|
+
static get string(): VueTypeValidableDef<string> & {
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
/** String 类型,默认:undefined */
|
|
14
|
+
static get looseString(): VueTypeValidableDef<string>;
|
|
15
|
+
/** Number 类型,默认:0 */
|
|
16
|
+
static get number(): VueTypeValidableDef<number> & {
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
/** Number 类型,默认:undefined */
|
|
20
|
+
static get looseNumber(): VueTypeValidableDef<number>;
|
|
21
|
+
/** Boolean 类型,默认:true */
|
|
22
|
+
static get bool(): VueTypeValidableDef<boolean> & {
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
static readonly objectType: <T extends {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>() => VueTypeValidableDef<T>;
|
|
28
|
+
/** Array 类型,默认:[] */
|
|
29
|
+
static readonly array: <T = unknown>() => VueTypeValidableDef<T[]> & {
|
|
30
|
+
default: () => T[];
|
|
31
|
+
};
|
|
32
|
+
/** Object 类型 */
|
|
33
|
+
static readonly object: <T extends {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}>() => VueTypeValidableDef<T>;
|
|
36
|
+
/** Function 类型 */
|
|
37
|
+
static readonly func: <T extends (...args: any[]) => any>() => VueTypeValidableDef<T>;
|
|
38
|
+
/** 指定为数组中的值 */
|
|
39
|
+
static readonly oneOf: typeof _oneOf;
|
|
40
|
+
/** 自定义类型 */
|
|
41
|
+
static readonly oneOfType: typeof _oneOfType;
|
|
42
|
+
/** 枚举类型 */
|
|
43
|
+
static readonly enum: <T extends string = string>() => VueTypeValidableDef<T>;
|
|
44
|
+
/** 图标组件类型 */
|
|
45
|
+
static readonly icon: () => VueTypeValidableDef<IconComponentOption>;
|
|
46
|
+
}
|
|
47
|
+
export type VueProps<FN extends () => UniversalParams> = Readonly<ExtractPropTypes<ReturnType<FN>>>;
|
|
48
|
+
export type FormatProps<FN extends () => UniversalParams> = Partial<ExtractPropTypes<ReturnType<FN>>>;
|
|
49
|
+
export type PropComputedRefs<P extends object> = {
|
|
50
|
+
[K in keyof P]: ComputedRef<P[K]>;
|
|
51
|
+
};
|
|
52
|
+
/** 结构 props,将 props 转成 computed */
|
|
53
|
+
export declare const useProps: <P extends object>(props: P) => PropComputedRefs<P>;
|
|
@@ -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,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,14 @@
|
|
|
1
|
+
export declare const useBindIdentityInfo: () => {
|
|
2
|
+
visible: import("vue").Ref<boolean>;
|
|
3
|
+
formData: {
|
|
4
|
+
phoneNumber: string;
|
|
5
|
+
areaCode: string;
|
|
6
|
+
smsCode: string;
|
|
7
|
+
protocolChecked: boolean;
|
|
8
|
+
};
|
|
9
|
+
formRules: import("vue").ComputedRef<import("async-validator").Rules>;
|
|
10
|
+
UserAgreementConfig: import("vue").Ref<import("@polyv/watch-identify-sdk-core").UserAgreementConfig | undefined>;
|
|
11
|
+
protocolContent: import("vue").ComputedRef<string>;
|
|
12
|
+
onSubmit: () => Promise<void>;
|
|
13
|
+
closeDialog: () => void;
|
|
14
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ValidatorRules } from '../../plugins/async-validator';
|
|
2
|
+
export declare enum IdentityInfoScene {
|
|
3
|
+
/** 登录 */
|
|
4
|
+
Login = "login",
|
|
5
|
+
/** 绑定 */
|
|
6
|
+
Bind = "bind"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 用户信息输入
|
|
10
|
+
* @hook
|
|
11
|
+
*/
|
|
12
|
+
export declare const useIdentityInfoInput: (options: {
|
|
13
|
+
scene: IdentityInfoScene;
|
|
14
|
+
loginSuccessCb?: () => void;
|
|
15
|
+
}) => {
|
|
16
|
+
formData: {
|
|
17
|
+
phoneNumber: string;
|
|
18
|
+
areaCode: string;
|
|
19
|
+
smsCode: string;
|
|
20
|
+
protocolChecked: boolean;
|
|
21
|
+
};
|
|
22
|
+
formRules: import("vue").ComputedRef<ValidatorRules>;
|
|
23
|
+
UserAgreementConfig: import("vue").Ref<import("@polyv/watch-identify-sdk-core").UserAgreementConfig | undefined>;
|
|
24
|
+
protocolContent: import("vue").ComputedRef<string>;
|
|
25
|
+
submitForm: () => Promise<void>;
|
|
26
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
showHeader: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
3
|
+
default: boolean;
|
|
4
|
+
};
|
|
5
|
+
showFooter: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
contentStyle: import("vue-types").VueTypeValidableDef<{
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}> & {
|
|
11
|
+
default: () => {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
bodyLocked: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
closeOnClickMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
maskOpacity: import("vue-types").VueTypeValidableDef<number> & {
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
appendToBody: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
37
|
+
close: (arg?: void | undefined) => void;
|
|
38
|
+
"update:visible": (arg: boolean) => void;
|
|
39
|
+
open: (arg?: void | undefined) => void;
|
|
40
|
+
opened: (arg?: void | undefined) => void;
|
|
41
|
+
closed: (arg?: void | undefined) => void;
|
|
42
|
+
}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
showHeader: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
showFooter: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
contentStyle: import("vue-types").VueTypeValidableDef<{
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}> & {
|
|
52
|
+
default: () => {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
bodyLocked: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
closeOnClickMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
maskOpacity: import("vue-types").VueTypeValidableDef<number> & {
|
|
63
|
+
default: number;
|
|
64
|
+
};
|
|
65
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
appendToBody: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
}>>, {
|
|
78
|
+
title: string;
|
|
79
|
+
visible: boolean;
|
|
80
|
+
showHeader: boolean;
|
|
81
|
+
appendToBody: boolean;
|
|
82
|
+
closable: boolean;
|
|
83
|
+
closeOnClickMask: boolean;
|
|
84
|
+
maskOpacity: number;
|
|
85
|
+
contentStyle: {
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
};
|
|
88
|
+
bodyLocked: boolean;
|
|
89
|
+
showFooter: boolean;
|
|
90
|
+
}>, {
|
|
91
|
+
title?(_: {}): any;
|
|
92
|
+
default?(_: {}): any;
|
|
93
|
+
footer?(_: {}): any;
|
|
94
|
+
}>;
|
|
95
|
+
export default _default;
|
|
96
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
97
|
+
new (): {
|
|
98
|
+
$scopedSlots: S;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
hideHeaderBorder: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
3
|
+
default: boolean;
|
|
4
|
+
};
|
|
5
|
+
mask: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
bodyLocked: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
height: import("vue-types").VueTypeValidableDef<number> & {
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
closeOnClickMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
positionComputedElem: import("vue-types").VueTypeValidableDef<string> & {
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
mountEl: import("vue-types").VueTypeValidableDef<string> & {
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
appendToBody: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
resetPosition(): void;
|
|
43
|
+
setMountEl(): void;
|
|
44
|
+
handleDocumentEventToReset(): void;
|
|
45
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
46
|
+
close: (arg?: void | undefined) => void;
|
|
47
|
+
"update:visible": (arg: boolean) => void;
|
|
48
|
+
open: (arg?: void | undefined) => void;
|
|
49
|
+
opened: (arg?: void | undefined) => void;
|
|
50
|
+
closed: (arg?: void | undefined) => void;
|
|
51
|
+
}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
hideHeaderBorder: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
mask: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
bodyLocked: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
|
62
|
+
default: number;
|
|
63
|
+
};
|
|
64
|
+
height: import("vue-types").VueTypeValidableDef<number> & {
|
|
65
|
+
default: number;
|
|
66
|
+
};
|
|
67
|
+
closeOnClickMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
positionComputedElem: import("vue-types").VueTypeValidableDef<string> & {
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
mountEl: import("vue-types").VueTypeValidableDef<string> & {
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
appendToBody: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
}>>, {
|
|
92
|
+
title: string;
|
|
93
|
+
mask: boolean;
|
|
94
|
+
width: number;
|
|
95
|
+
height: number;
|
|
96
|
+
visible: boolean;
|
|
97
|
+
appendToBody: boolean;
|
|
98
|
+
closable: boolean;
|
|
99
|
+
closeOnClickMask: boolean;
|
|
100
|
+
hideHeaderBorder: boolean;
|
|
101
|
+
draggable: boolean;
|
|
102
|
+
mountEl: string;
|
|
103
|
+
bodyLocked: boolean;
|
|
104
|
+
positionComputedElem: string;
|
|
105
|
+
}>, {
|
|
106
|
+
default?(_: {}): any;
|
|
107
|
+
}>;
|
|
108
|
+
export default _default;
|
|
109
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
110
|
+
new (): {
|
|
111
|
+
$scopedSlots: S;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
export interface DialogTipsInstance {
|
|
3
|
+
/** 显示弹层的提示 */
|
|
4
|
+
showDialogTips: (tips: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const DIALOG_TIPS_PROVIDE_KEY: InjectionKey<DialogTipsInstance>;
|
|
7
|
+
/**
|
|
8
|
+
* 弹层提示 hooks(用于弹层中)
|
|
9
|
+
*/
|
|
10
|
+
export declare const useDialogTips: () => {
|
|
11
|
+
dialogTips: import("vue").Ref<string | undefined>;
|
|
12
|
+
showDialogTips: (tips: string) => void;
|
|
13
|
+
dialogTipsInstance: DialogTipsInstance;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* 弹层提示 hook
|
|
17
|
+
*/
|
|
18
|
+
export declare const useDialogTipsUtils: () => {
|
|
19
|
+
showDialogTips: (tips: string) => void;
|
|
20
|
+
};
|