@polyv/vue-components 1.0.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.
Files changed (159) hide show
  1. package/font/din-pro/index.scss +26 -0
  2. package/font/youshe/index.scss +8 -0
  3. package/index.es.js +5574 -0
  4. package/package.json +22 -0
  5. package/src/components/basic-countdown/basic-countdown.vue.d.ts +71 -0
  6. package/src/components/basic-countdown/index.d.ts +2 -0
  7. package/src/components/basic-countdown/use-basic-countdown.d.ts +44 -0
  8. package/src/components/exports.d.ts +7 -0
  9. package/src/components/form/form-area-picker/form-area-picker.vue.d.ts +39 -0
  10. package/src/components/form/form-area-picker/index.d.ts +2 -0
  11. package/src/components/form/form-area-picker/use-form-area-picker.d.ts +50 -0
  12. package/src/components/form/form-checkbox/form-checkbox-group.vue.d.ts +27 -0
  13. package/src/components/form/form-checkbox/form-checkbox.vue.d.ts +67 -0
  14. package/src/components/form/form-checkbox/index.d.ts +4 -0
  15. package/src/components/form/form-checkbox/type.d.ts +8 -0
  16. package/src/components/form/form-checkbox/use-form-checkbox.d.ts +38 -0
  17. package/src/components/form/form-input/form-input.vue.d.ts +117 -0
  18. package/src/components/form/form-input/index.d.ts +2 -0
  19. package/src/components/form/form-input/use-form-input.d.ts +88 -0
  20. package/src/components/form/form-item/form-item.vue.d.ts +54 -0
  21. package/src/components/form/form-item/index.d.ts +2 -0
  22. package/src/components/form/form-item/use-form-item.d.ts +71 -0
  23. package/src/components/form/form-protocol/form-protocol.vue.d.ts +19 -0
  24. package/src/components/form/form-protocol/index.d.ts +2 -0
  25. package/src/components/form/form-protocol/use-form-protocol.d.ts +19 -0
  26. package/src/components/form/form-radio/form-radio-group.vue.d.ts +21 -0
  27. package/src/components/form/form-radio/form-radio.vue.d.ts +56 -0
  28. package/src/components/form/form-radio/index.d.ts +3 -0
  29. package/src/components/form/form-radio/type.d.ts +7 -0
  30. package/src/components/form/form-submit-button/form-submit-button.vue.d.ts +61 -0
  31. package/src/components/form/form-submit-button/index.d.ts +2 -0
  32. package/src/components/form/form-submit-button/use-form-submit-button.d.ts +35 -0
  33. package/src/components/form/form-wrap/form-wrap.vue.d.ts +74 -0
  34. package/src/components/form/form-wrap/index.d.ts +2 -0
  35. package/src/components/form/form-wrap/use-form-wrap.d.ts +64 -0
  36. package/src/components/form/hooks/use-form-common.d.ts +25 -0
  37. package/src/components/form/index.d.ts +9 -0
  38. package/src/components/form/types/index.d.ts +19 -0
  39. package/src/components/icons/icons/arrow-down/index.d.ts +6 -0
  40. package/src/components/icons/icons/arrow-left/index.d.ts +6 -0
  41. package/src/components/icons/icons/arrow-right/index.d.ts +6 -0
  42. package/src/components/icons/icons/arrow-up/index.d.ts +6 -0
  43. package/src/components/icons/icons/check/index.d.ts +6 -0
  44. package/src/components/icons/icons/close/index.d.ts +6 -0
  45. package/src/components/icons/icons/close-round-fill/index.d.ts +6 -0
  46. package/src/components/icons/icons/empty-prize/index.d.ts +6 -0
  47. package/src/components/icons/icons/error-round/index.d.ts +6 -0
  48. package/src/components/icons/icons/info-round-filled/index.d.ts +6 -0
  49. package/src/components/icons/icons/list/index.d.ts +6 -0
  50. package/src/components/icons/icons/question-round/index.d.ts +6 -0
  51. package/src/components/icons/icons/success-round/index.d.ts +6 -0
  52. package/src/components/icons/map.d.ts +17 -0
  53. package/src/components/normal-button/index.d.ts +3 -0
  54. package/src/components/normal-button/normal-button.vue.d.ts +64 -0
  55. package/src/components/normal-button/type.d.ts +28 -0
  56. package/src/components/normal-button/use-normal-button.d.ts +37 -0
  57. package/src/components/normal-pendant/index.d.ts +1 -0
  58. package/src/components/normal-pendant/normal-pendant.vue.d.ts +43 -0
  59. package/src/components/popup/hooks/popup-props.d.ts +114 -0
  60. package/src/components/popup/hooks/use-popup-append.d.ts +13 -0
  61. package/src/components/popup/hooks/use-popup-back.d.ts +13 -0
  62. package/src/components/popup/hooks/use-popup-config.d.ts +13 -0
  63. package/src/components/popup/hooks/use-popup-draggable.d.ts +15 -0
  64. package/src/components/popup/hooks/use-popup-height.d.ts +25 -0
  65. package/src/components/popup/hooks/use-popup-position.d.ts +11 -0
  66. package/src/components/popup/hooks/use-popup-scroll.d.ts +8 -0
  67. package/src/components/popup/hooks/use-popup-visible.d.ts +14 -0
  68. package/src/components/popup/hooks/use-popup-width.d.ts +10 -0
  69. package/src/components/popup/index.d.ts +4 -0
  70. package/src/components/popup/popup.vue.d.ts +205 -0
  71. package/src/components/popup/types.d.ts +17 -0
  72. package/src/components/reward-receive/entrance/reward-receive.vue.d.ts +31 -0
  73. package/src/components/reward-receive/hooks/use-reward-receive.d.ts +82 -0
  74. package/src/components/reward-receive/index.d.ts +3 -0
  75. package/src/components/reward-receive/types/index.d.ts +66 -0
  76. package/src/hooks/business/use-app-element/index.d.ts +4 -0
  77. package/src/hooks/business/use-config-provider/index.d.ts +22 -0
  78. package/src/hooks/business/use-track-event/index.d.ts +21 -0
  79. package/src/hooks/components/use-action-sheet/_component/action-sheet.vue.d.ts +20 -0
  80. package/src/hooks/components/use-action-sheet/_component/use-action-sheet-comp.d.ts +13 -0
  81. package/src/hooks/components/use-action-sheet/hook.d.ts +4 -0
  82. package/src/hooks/components/use-action-sheet/index.d.ts +3 -0
  83. package/src/hooks/components/use-action-sheet/types.d.ts +15 -0
  84. package/src/hooks/components/use-auto-topmost/index.d.ts +13 -0
  85. package/src/hooks/components/use-message-box/_component/message-box-element.vue.d.ts +64 -0
  86. package/src/hooks/components/use-message-box/_component/use-message-box-element.d.ts +46 -0
  87. package/src/hooks/components/use-message-box/index.d.ts +9 -0
  88. package/src/hooks/components/use-message-box/types.d.ts +24 -0
  89. package/src/hooks/components/use-popper/_hooks/use-popper-arrow.d.ts +2 -0
  90. package/src/hooks/components/use-popper/_hooks/use-popper-core.d.ts +15 -0
  91. package/src/hooks/components/use-popper/_hooks/use-popper-interactive.d.ts +5 -0
  92. package/src/hooks/components/use-popper/_hooks/use-popper-visible.d.ts +6 -0
  93. package/src/hooks/components/use-popper/_popper-type.d.ts +75 -0
  94. package/src/hooks/components/use-popper/index.d.ts +32 -0
  95. package/src/hooks/components/use-toast/_component/toast-element.vue.d.ts +34 -0
  96. package/src/hooks/components/use-toast/_component/use-toast-element.d.ts +32 -0
  97. package/src/hooks/components/use-toast/index.d.ts +11 -0
  98. package/src/hooks/components/use-toast/types.d.ts +21 -0
  99. package/src/hooks/exports.d.ts +34 -0
  100. package/src/hooks/interactive/use-click-outside/index.d.ts +14 -0
  101. package/src/hooks/interactive/use-fullscreen/index.d.ts +29 -0
  102. package/src/hooks/interactive/use-hover-visible/index.d.ts +16 -0
  103. package/src/hooks/interactive/use-page-fullscreen/index.d.ts +6 -0
  104. package/src/hooks/interactive/use-screen-orientation/index.d.ts +25 -0
  105. package/src/hooks/interactive/use-scroll/index.d.ts +20 -0
  106. package/src/hooks/interactive/use-sound-effect/index.d.ts +6 -0
  107. package/src/hooks/pagination/types.d.ts +60 -0
  108. package/src/hooks/pagination/use-scroll-pagintaion/index.d.ts +17 -0
  109. package/src/hooks/pagination/use-static-pagination/index.d.ts +24 -0
  110. package/src/hooks/plugin/use-resize-observer/index.d.ts +13 -0
  111. package/src/hooks/plugin/use-svga-animation/index.d.ts +25 -0
  112. package/src/hooks/plugin/use-svga-player/index.d.ts +24 -0
  113. package/src/hooks/tools/use-append-to/index.d.ts +7 -0
  114. package/src/hooks/tools/use-body-locked/index.d.ts +10 -0
  115. package/src/hooks/tools/use-browser/index.d.ts +14 -0
  116. package/src/hooks/tools/use-copy-text/index.d.ts +9 -0
  117. package/src/hooks/tools/use-count-down/index.d.ts +39 -0
  118. package/src/hooks/tools/use-event-bus/index.d.ts +19 -0
  119. package/src/hooks/tools/use-event-listener/index.d.ts +2 -0
  120. package/src/hooks/tools/use-link-open/index.d.ts +3 -0
  121. package/src/hooks/tools/use-set-interval/index.d.ts +9 -0
  122. package/src/hooks/tools/use-set-timeout/index.d.ts +9 -0
  123. package/src/hooks/tools/use-simple-visible/index.d.ts +41 -0
  124. package/src/hooks/tools/use-target-event-emitter/index.d.ts +10 -0
  125. package/src/hooks/tools/use-window-resize-listener/index.d.ts +34 -0
  126. package/src/hooks/vue/use-model-value/index.d.ts +13 -0
  127. package/src/hooks/vue/use-vue/index.d.ts +15 -0
  128. package/src/index.d.ts +6 -0
  129. package/src/interface/index.d.ts +4 -0
  130. package/src/lang/common/en.json.d.ts +14 -0
  131. package/src/lang/common/index.d.ts +4 -0
  132. package/src/lang/common/ja.json.d.ts +13 -0
  133. package/src/lang/common/ko.json.d.ts +13 -0
  134. package/src/lang/common/ru.json.d.ts +13 -0
  135. package/src/lang/common/zh-CN.json.d.ts +14 -0
  136. package/src/lang/common/zh-TW.json.d.ts +13 -0
  137. package/src/lang/exports.d.ts +2 -0
  138. package/src/lang/hook.d.ts +12 -0
  139. package/src/lang/internal/en.json.d.ts +21 -0
  140. package/src/lang/internal/index.d.ts +34 -0
  141. package/src/lang/internal/ja.json.d.ts +21 -0
  142. package/src/lang/internal/ko.json.d.ts +21 -0
  143. package/src/lang/internal/ru.json.d.ts +21 -0
  144. package/src/lang/internal/zh-CN.json.d.ts +21 -0
  145. package/src/lang/internal/zh-TW.json.d.ts +21 -0
  146. package/src/lang/types.d.ts +12 -0
  147. package/src/lang/utils.d.ts +1 -0
  148. package/src/plugins/async-validator/index.d.ts +3 -0
  149. package/src/plugins/exports.d.ts +2 -0
  150. package/src/plugins/polyv-ui/area-utils.d.ts +13 -0
  151. package/src/plugins/polyv-ui/mobile-import.d.ts +1 -0
  152. package/src/plugins/polyv-ui/types.d.ts +19 -0
  153. package/src/plugins/svgaplayerweb/load-svga-player.d.ts +15 -0
  154. package/src/utils/dom.d.ts +5 -0
  155. package/src/vue-utils/emit-utils.d.ts +12 -0
  156. package/src/vue-utils/index.d.ts +18 -0
  157. package/src/vue-utils/props-utils.d.ts +61 -0
  158. package/styles/animation.scss +24 -0
  159. package/styles/mixins.scss +123 -0
@@ -0,0 +1,54 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{
11
+ formField: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
12
+ label: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
13
+ labelWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
14
+ labelHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
15
+ contentWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
16
+ showErrorMessage: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
17
+ default: boolean;
18
+ };
19
+ errorMessage: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
20
+ labelModel: import('vue-types').VueTypeDef<"header" | "inline">;
21
+ required: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
22
+ default: boolean;
23
+ };
24
+ }, {
25
+ isFormItem: true;
26
+ formItemIsError: import('vue').ComputedRef<boolean>;
27
+ setErrorMessage(message: string | undefined): void;
28
+ removeErrorMessage(): void;
29
+ validateFormItem(validateOptions?: import('..').FormValidateOptions): Promise<void>;
30
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
31
+ formField: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
32
+ label: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
33
+ labelWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
34
+ labelHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
35
+ contentWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
36
+ showErrorMessage: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
37
+ default: boolean;
38
+ };
39
+ errorMessage: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
40
+ labelModel: import('vue-types').VueTypeDef<"header" | "inline">;
41
+ required: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
42
+ default: boolean;
43
+ };
44
+ }>>, {
45
+ required: boolean;
46
+ showErrorMessage: boolean;
47
+ }>;
48
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
49
+ export default _default;
50
+ type __VLS_WithTemplateSlots<T, S> = T & {
51
+ new (): {
52
+ $scopedSlots: S;
53
+ };
54
+ };
@@ -0,0 +1,2 @@
1
+ export { default as PwcFormItem } from './form-item.vue';
2
+ export * from './use-form-item';
@@ -0,0 +1,71 @@
1
+ import { VueProps } from '../../../vue-utils';
2
+ import { ComputedRef, InjectionKey } from 'vue';
3
+ import { FormValidateOptions } from '../types';
4
+ export declare const formItemProps: () => {
5
+ /** 该节点属于表单数据中的哪个字段 */
6
+ formField: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
7
+ /** 节点标签 */
8
+ label: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
9
+ /** 表单标题宽度 */
10
+ labelWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
11
+ /** 表单标题高度 */
12
+ labelHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
13
+ /** 表单输入框内容宽度 */
14
+ contentWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
15
+ /** 是否显示异常信息 */
16
+ showErrorMessage: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
17
+ default: boolean;
18
+ };
19
+ /** 节点异常信息 */
20
+ errorMessage: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
21
+ /** label 模式 */
22
+ labelModel: import('vue-types').VueTypeDef<"header" | "inline">;
23
+ /** 是否显示必填星号 */
24
+ required: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
25
+ default: boolean;
26
+ };
27
+ };
28
+ /**
29
+ * 表单节点对象
30
+ */
31
+ export interface FormItemInstance {
32
+ isFormItem: true;
33
+ /** 表单节点是否验证异常 */
34
+ formItemIsError: ComputedRef<boolean>;
35
+ /** 设置异常提示 */
36
+ setErrorMessage(message: string | undefined): void;
37
+ /** 移除异常提示 */
38
+ removeErrorMessage(): void;
39
+ /** 验证表单节点 */
40
+ validateFormItem(validateOptions?: FormValidateOptions): Promise<void>;
41
+ }
42
+ /**
43
+ * 判断 vue 实例是否为 <form-item>
44
+ * @param instance 实例
45
+ */
46
+ export declare const isFormItemInstance: (instance: unknown) => instance is FormItemInstance;
47
+ export declare const FORM_ITEM_PROVIDE_KEY: InjectionKey<FormItemInstance>;
48
+ export declare const useFormItemInject: () => FormItemInstance | undefined;
49
+ export declare const useFormItem: (options: {
50
+ props: VueProps<typeof formItemProps>;
51
+ }) => {
52
+ required: ComputedRef<boolean>;
53
+ labelText: ComputedRef<string | undefined>;
54
+ labelModel: ComputedRef<"header" | "inline">;
55
+ labelStyle: ComputedRef<{
56
+ width?: undefined;
57
+ height?: undefined;
58
+ } | {
59
+ width: string | undefined;
60
+ height: string | undefined;
61
+ }>;
62
+ contentWidthStyle: ComputedRef<string | undefined>;
63
+ contentStyle: ComputedRef<{
64
+ width: string | undefined;
65
+ }>;
66
+ itemErrorMessage: import('vue').Ref<string | undefined>;
67
+ formItemIsError: ComputedRef<boolean>;
68
+ removeErrorMessage: () => void;
69
+ validateFormItem: (validateOptions?: FormValidateOptions) => Promise<void>;
70
+ formItemInstance: FormItemInstance;
71
+ };
@@ -0,0 +1,19 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ value: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
3
+ default: boolean;
4
+ };
5
+ content: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
6
+ default: string;
7
+ };
8
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
9
+ value: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
10
+ default: boolean;
11
+ };
12
+ content: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
13
+ default: string;
14
+ };
15
+ }>>, {
16
+ value: boolean;
17
+ content: string;
18
+ }>;
19
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as PwcFormProtocol } from './form-protocol.vue';
2
+ export * from './use-form-protocol';
@@ -0,0 +1,19 @@
1
+ import { VueProps } from '../../../vue-utils';
2
+ export declare const formProtocolProps: () => {
3
+ /** 是否选中 */
4
+ value: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
5
+ default: boolean;
6
+ };
7
+ /** 协议内容 */
8
+ content: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
9
+ default: string;
10
+ };
11
+ };
12
+ export declare const useFormProtocol: (options: {
13
+ props: VueProps<typeof formProtocolProps>;
14
+ }) => {
15
+ modelValue: import('vue').ComputedRef<boolean>;
16
+ onCheckboxChange: (checked: boolean) => void;
17
+ protocolContentRef: import('vue').Ref<HTMLDivElement | undefined>;
18
+ contentHtml: import('vue').ComputedRef<string>;
19
+ };
@@ -0,0 +1,21 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{
11
+ value: import('vue-types').VueTypeDef<any>;
12
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
13
+ value: import('vue-types').VueTypeDef<any>;
14
+ }>>, {}>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $scopedSlots: S;
20
+ };
21
+ };
@@ -0,0 +1,56 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{
11
+ value: import('vue-types').VueTypeDef<any>;
12
+ label: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
13
+ default: string;
14
+ };
15
+ /** 是否禁用 */
16
+ disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
17
+ default: boolean;
18
+ };
19
+ /** 是否显示背景色 */
20
+ showBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
21
+ default: boolean;
22
+ };
23
+ /** 显示前缀 */
24
+ showPrefix: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
25
+ default: boolean;
26
+ };
27
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
28
+ value: import('vue-types').VueTypeDef<any>;
29
+ label: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
30
+ default: string;
31
+ };
32
+ /** 是否禁用 */
33
+ disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
34
+ default: boolean;
35
+ };
36
+ /** 是否显示背景色 */
37
+ showBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
38
+ default: boolean;
39
+ };
40
+ /** 显示前缀 */
41
+ showPrefix: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
42
+ default: boolean;
43
+ };
44
+ }>>, {
45
+ label: string;
46
+ disabled: boolean;
47
+ showBackground: boolean;
48
+ showPrefix: boolean;
49
+ }>;
50
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
51
+ export default _default;
52
+ type __VLS_WithTemplateSlots<T, S> = T & {
53
+ new (): {
54
+ $scopedSlots: S;
55
+ };
56
+ };
@@ -0,0 +1,3 @@
1
+ export { default as PwcFormRadio } from './form-radio.vue';
2
+ export { default as PwcFormRadioGroup } from './form-radio-group.vue';
3
+ export * from './type';
@@ -0,0 +1,7 @@
1
+ import { ComputedRef, InjectionKey } from 'vue';
2
+ export type FormRadioValue = any;
3
+ export interface RadioGroupInjectData {
4
+ modelValue: ComputedRef<FormRadioValue>;
5
+ emitInput: (value: FormRadioValue) => void;
6
+ }
7
+ export declare const RADIO_GROUP_INJECT_KEY: InjectionKey<RadioGroupInjectData>;
@@ -0,0 +1,61 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
3
+ default: string;
4
+ };
5
+ debounceSubmit: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
6
+ default: boolean;
7
+ };
8
+ type: import('vue-types').VueTypeValidableDef<import('../../normal-button').ButtonType, import('vue-types/dist/types').ValidatorFunction<import('../../normal-button').ButtonType>> & {
9
+ default: import('../../normal-button').ButtonType;
10
+ };
11
+ disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
12
+ default: boolean;
13
+ };
14
+ size: import('vue-types').VueTypeValidableDef<import('../../normal-button').ButtonSize, import('vue-types/dist/types').ValidatorFunction<import('../../normal-button').ButtonSize>> & {
15
+ default: import('../../normal-button').ButtonSize;
16
+ };
17
+ outline: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
18
+ default: boolean;
19
+ };
20
+ block: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
21
+ default: boolean;
22
+ };
23
+ square: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
24
+ default: boolean;
25
+ };
26
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
27
+ text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
28
+ default: string;
29
+ };
30
+ debounceSubmit: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
31
+ default: boolean;
32
+ };
33
+ type: import('vue-types').VueTypeValidableDef<import('../../normal-button').ButtonType, import('vue-types/dist/types').ValidatorFunction<import('../../normal-button').ButtonType>> & {
34
+ default: import('../../normal-button').ButtonType;
35
+ };
36
+ disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
37
+ default: boolean;
38
+ };
39
+ size: import('vue-types').VueTypeValidableDef<import('../../normal-button').ButtonSize, import('vue-types/dist/types').ValidatorFunction<import('../../normal-button').ButtonSize>> & {
40
+ default: import('../../normal-button').ButtonSize;
41
+ };
42
+ outline: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
43
+ default: boolean;
44
+ };
45
+ block: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
46
+ default: boolean;
47
+ };
48
+ square: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
49
+ default: boolean;
50
+ };
51
+ }>>, {
52
+ type: import('../../normal-button').ButtonType;
53
+ text: string;
54
+ square: boolean;
55
+ block: boolean;
56
+ size: import('../../normal-button').ButtonSize;
57
+ outline: boolean;
58
+ disabled: boolean;
59
+ debounceSubmit: boolean;
60
+ }>;
61
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as PwcFormSubmitButton } from './form-submit-button.vue';
2
+ export * from './use-form-submit-button';
@@ -0,0 +1,35 @@
1
+ import { VueProps } from '../../../vue-utils';
2
+ export declare const formSubmitButtonProps: () => {
3
+ text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
4
+ default: string;
5
+ };
6
+ /** 防抖提交,默认:false */
7
+ debounceSubmit: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
8
+ default: boolean;
9
+ };
10
+ type: import('vue-types').VueTypeValidableDef<import('../../normal-button').ButtonType, import('vue-types/dist/types').ValidatorFunction<import('../../normal-button').ButtonType>> & {
11
+ default: import('../../normal-button').ButtonType;
12
+ };
13
+ disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
14
+ default: boolean;
15
+ };
16
+ size: import('vue-types').VueTypeValidableDef<import('../../normal-button').ButtonSize, import('vue-types/dist/types').ValidatorFunction<import('../../normal-button').ButtonSize>> & {
17
+ default: import('../../normal-button').ButtonSize;
18
+ };
19
+ outline: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
20
+ default: boolean;
21
+ };
22
+ block: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
23
+ default: boolean;
24
+ };
25
+ square: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
26
+ default: boolean;
27
+ };
28
+ };
29
+ export declare const useFormSubmitButton: (options: {
30
+ props: VueProps<typeof formSubmitButtonProps>;
31
+ }) => {
32
+ buttonIsDisabled: import('vue').ComputedRef<boolean>;
33
+ checkDisabled: () => Promise<void>;
34
+ onButtonClick: () => void;
35
+ };
@@ -0,0 +1,74 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{
11
+ formData: import('vue-types').VueTypeValidableDef<{
12
+ [key: string]: any;
13
+ }, import('vue-types/dist/types').ValidatorFunction<{
14
+ [key: string]: any;
15
+ }>> & {
16
+ default: () => {
17
+ [key: string]: any;
18
+ };
19
+ };
20
+ formRules: import('vue-types').VueTypeValidableDef<import('async-validator').Rules, import('vue-types/dist/types').ValidatorFunction<import('async-validator').Rules>> & {
21
+ default: () => import('async-validator').Rules;
22
+ };
23
+ labelWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
24
+ labelHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
25
+ contentWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
26
+ submitAction: import('vue-types').VueTypeValidableDef<(...args: any[]) => any, import('vue-types/dist/types').ValidatorFunction<(...args: any[]) => any>>;
27
+ labelModel: import('vue-types').VueTypeDef<"header" | "inline"> & {
28
+ default: "header" | "inline";
29
+ };
30
+ debug: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
31
+ default: boolean;
32
+ };
33
+ }, {
34
+ validateCurrentForm: (validateOptions?: import('..').FormValidateOptions) => Promise<void>;
35
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
36
+ "submit-form": (arg: import('../../..').UniversalParams) => void;
37
+ }, string, Readonly<import('vue').ExtractPropTypes<{
38
+ formData: import('vue-types').VueTypeValidableDef<{
39
+ [key: string]: any;
40
+ }, import('vue-types/dist/types').ValidatorFunction<{
41
+ [key: string]: any;
42
+ }>> & {
43
+ default: () => {
44
+ [key: string]: any;
45
+ };
46
+ };
47
+ formRules: import('vue-types').VueTypeValidableDef<import('async-validator').Rules, import('vue-types/dist/types').ValidatorFunction<import('async-validator').Rules>> & {
48
+ default: () => import('async-validator').Rules;
49
+ };
50
+ labelWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
51
+ labelHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
52
+ contentWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
53
+ submitAction: import('vue-types').VueTypeValidableDef<(...args: any[]) => any, import('vue-types/dist/types').ValidatorFunction<(...args: any[]) => any>>;
54
+ labelModel: import('vue-types').VueTypeDef<"header" | "inline"> & {
55
+ default: "header" | "inline";
56
+ };
57
+ debug: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
58
+ default: boolean;
59
+ };
60
+ }>>, {
61
+ formData: {
62
+ [key: string]: any;
63
+ };
64
+ formRules: import('async-validator').Rules;
65
+ labelModel: "header" | "inline";
66
+ debug: boolean;
67
+ }>;
68
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
69
+ export default _default;
70
+ type __VLS_WithTemplateSlots<T, S> = T & {
71
+ new (): {
72
+ $scopedSlots: S;
73
+ };
74
+ };
@@ -0,0 +1,2 @@
1
+ export { default as PwcFormWrap } from './form-wrap.vue';
2
+ export * from './use-form-wrap';
@@ -0,0 +1,64 @@
1
+ import { UniversalParams } from '../../../interface';
2
+ import { ValidatorRules } from '../../../plugins/async-validator';
3
+ import { VueEmit, VueProps } from '../../../vue-utils';
4
+ import { ComputedRef, InjectionKey, Ref } from 'vue';
5
+ import { FormValidateOptions } from '../types';
6
+ export declare const formWrapProps: () => {
7
+ /** 绑定的表单对象 */
8
+ formData: import('vue-types').VueTypeValidableDef<{
9
+ [key: string]: any;
10
+ }, import('vue-types/dist/types').ValidatorFunction<{
11
+ [key: string]: any;
12
+ }>> & {
13
+ default: () => {
14
+ [key: string]: any;
15
+ };
16
+ };
17
+ /** 验证规则 */
18
+ formRules: import('vue-types').VueTypeValidableDef<ValidatorRules, import('vue-types/dist/types').ValidatorFunction<ValidatorRules>> & {
19
+ default: () => ValidatorRules;
20
+ };
21
+ /** 表单标题宽度 */
22
+ labelWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
23
+ /** 表单标题高度 */
24
+ labelHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
25
+ /** 表单输入框内容宽度 */
26
+ contentWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
27
+ /** 表单提交方法 */
28
+ submitAction: import('vue-types').VueTypeValidableDef<(...args: any[]) => any, import('vue-types/dist/types').ValidatorFunction<(...args: any[]) => any>>;
29
+ /** label 模式,默认:inline */
30
+ labelModel: import('vue-types').VueTypeDef<"header" | "inline"> & {
31
+ default: "header" | "inline";
32
+ };
33
+ /** 是否开启 debug 打印,默认:false */
34
+ debug: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
35
+ default: boolean;
36
+ };
37
+ };
38
+ export declare const formWrapEmits: () => {
39
+ 'submit-form': import('../../../vue-utils').EmitFuncType<UniversalParams>;
40
+ };
41
+ export type FormWrapProps = VueProps<typeof formWrapProps>;
42
+ /** <form-wrap> 注入类型 */
43
+ export interface FormWrapInjectData {
44
+ /** 是否正在提交 */
45
+ isSubmiting: Ref<boolean>;
46
+ /** debug */
47
+ debug: ComputedRef<boolean>;
48
+ /** 验证当前表单 */
49
+ validateCurrentForm(validateOptions?: FormValidateOptions): Promise<void>;
50
+ /** 提交当前表单 */
51
+ submitForm(validateOptions?: FormValidateOptions): Promise<void>;
52
+ }
53
+ export declare const FORM_WRAP_PROPS_PROVIDE_KEY: InjectionKey<FormWrapProps>;
54
+ export declare const useFormWrapPropsInject: () => FormWrapProps | undefined;
55
+ export declare const FORM_WRAP_PROVIDE_KEY: InjectionKey<FormWrapInjectData>;
56
+ export declare const useFormWrapInject: () => FormWrapInjectData | undefined;
57
+ export declare const useFormWrap: (options: {
58
+ props: VueProps<typeof formWrapProps>;
59
+ emit: VueEmit<typeof formWrapEmits>;
60
+ }) => {
61
+ isSubmiting: Ref<boolean>;
62
+ validateCurrentForm: (validateOptions?: FormValidateOptions) => Promise<void>;
63
+ submitForm: (validateOptions: FormValidateOptions) => Promise<void>;
64
+ };
@@ -0,0 +1,25 @@
1
+ import { VueProps } from '../../../vue-utils';
2
+ import { FormSize } from '../types';
3
+ export declare const formCommonProps: () => {
4
+ /** 尺寸 */
5
+ size: import('vue-types').VueTypeValidableDef<FormSize, import('vue-types/dist/types').ValidatorFunction<FormSize>>;
6
+ /** 是否进行表单验证 */
7
+ validateForm: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
8
+ default: boolean;
9
+ };
10
+ };
11
+ export declare const useFormCommon: (options: {
12
+ props: VueProps<typeof formCommonProps>;
13
+ classPrefix: string;
14
+ }) => {
15
+ commonClassNames: import('vue').ComputedRef<string[]>;
16
+ };
17
+ /** 表单组件下的验证状态 hook */
18
+ export declare const useFormCommonValidate: (options: {
19
+ props: VueProps<typeof formCommonProps>;
20
+ }) => {
21
+ validateCurrentFormItem: () => Promise<void>;
22
+ blurToValidateItem: () => Promise<void>;
23
+ focusToRemoveError: () => void;
24
+ formItemIsError: import('vue').ComputedRef<boolean>;
25
+ };
@@ -0,0 +1,9 @@
1
+ export * from './form-area-picker';
2
+ export * from './form-checkbox';
3
+ export * from './form-input';
4
+ export * from './form-item';
5
+ export * from './form-protocol';
6
+ export * from './form-radio';
7
+ export * from './form-submit-button';
8
+ export * from './form-wrap';
9
+ export * from './types';
@@ -0,0 +1,19 @@
1
+ /** 表单尺寸 */
2
+ export declare enum FormSize {
3
+ /** 默认 - 48px */
4
+ Default = "default",
5
+ /** 中 - 40px */
6
+ Medium = "medium",
7
+ /** 小 - 32px */
8
+ Small = "small"
9
+ }
10
+ /**
11
+ * 表单验证选项
12
+ */
13
+ export interface FormValidateOptions {
14
+ /** 是否显示异常消息 */
15
+ showErrorMessage?: boolean;
16
+ }
17
+ export declare const formItemLabelModels: readonly ["inline", "header"];
18
+ /** 表单节点 label 样式,inline-行内,header-头部 */
19
+ export type FormItemLabelModel = typeof formItemLabelModels[number];
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @file ArrowDown Icon
3
+ * @author Auto Generated by @polyv/icons-cli
4
+ */
5
+ declare const _default: import('@polyv/icons-vue/icon-builder').IconComponentOption<import('@polyv/icons-vue/common/interfaces').IconCommonProps>;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @file ArrowLeft Icon
3
+ * @author Auto Generated by @polyv/icons-cli
4
+ */
5
+ declare const _default: import('@polyv/icons-vue/icon-builder').IconComponentOption<import('@polyv/icons-vue/common/interfaces').IconCommonProps>;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @file ArrowRight Icon
3
+ * @author Auto Generated by @polyv/icons-cli
4
+ */
5
+ declare const _default: import('@polyv/icons-vue/icon-builder').IconComponentOption<import('@polyv/icons-vue/common/interfaces').IconCommonProps>;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @file ArrowUp Icon
3
+ * @author Auto Generated by @polyv/icons-cli
4
+ */
5
+ declare const _default: import('@polyv/icons-vue/icon-builder').IconComponentOption<import('@polyv/icons-vue/common/interfaces').IconCommonProps>;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @file Check Icon
3
+ * @author Auto Generated by @polyv/icons-cli
4
+ */
5
+ declare const _default: import('@polyv/icons-vue/icon-builder').IconComponentOption<import('@polyv/icons-vue/common/interfaces').IconCommonProps>;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @file Close Icon
3
+ * @author Auto Generated by @polyv/icons-cli
4
+ */
5
+ declare const _default: import('@polyv/icons-vue/icon-builder').IconComponentOption<import('@polyv/icons-vue/common/interfaces').IconCommonProps>;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @file CloseRoundFill Icon
3
+ * @author Auto Generated by @polyv/icons-cli
4
+ */
5
+ declare const _default: import('@polyv/icons-vue/icon-builder').IconComponentOption<import('@polyv/icons-vue/common/interfaces').IconCommonProps>;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @file EmptyPrize Icon
3
+ * @author Auto Generated by @polyv/icons-cli
4
+ */
5
+ declare const _default: import('@polyv/icons-vue/icon-builder').IconComponentOption<import('@polyv/icons-vue/common/interfaces').IconCommonProps>;
6
+ export default _default;