@polyv/vue-components 1.0.2 → 1.1.0

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 (145) hide show
  1. package/index.es.js +4453 -2279
  2. package/package.json +4 -3
  3. package/src/components/basic-countdown/use-basic-countdown.d.ts +27 -7
  4. package/src/components/{normal-button/normal-button.vue.d.ts → button/button.vue.d.ts} +6 -14
  5. package/src/components/button/index.d.ts +3 -0
  6. package/src/components/button/type.d.ts +50 -0
  7. package/src/components/{normal-button/use-normal-button.d.ts → button/use-button.d.ts} +33 -11
  8. package/src/components/carousel/index.d.ts +3 -0
  9. package/src/components/category-select/category-select-item.vue.d.ts +22 -0
  10. package/src/components/category-select/category-select.vue.d.ts +21 -0
  11. package/src/components/category-select/index.d.ts +3 -0
  12. package/src/components/category-select/use-category-select.d.ts +25 -0
  13. package/src/components/dropdown/dropdown-item.vue.d.ts +31 -0
  14. package/src/components/dropdown/dropdown-menu.vue.d.ts +17 -0
  15. package/src/components/dropdown/dropdown.vue.d.ts +61 -0
  16. package/src/components/dropdown/index.d.ts +4 -0
  17. package/src/components/dropdown/use-dropdown.d.ts +70 -0
  18. package/src/components/empty/empty.vue.d.ts +14 -0
  19. package/src/components/empty/index.d.ts +2 -0
  20. package/src/components/empty/use-empty.d.ts +14 -0
  21. package/src/components/exports.d.ts +8 -1
  22. package/src/components/form/{form-area-picker/form-area-picker.vue.d.ts → area-picker/area-picker.vue.d.ts} +7 -7
  23. package/src/components/form/area-picker/index.d.ts +2 -0
  24. package/src/components/form/{form-area-picker/use-form-area-picker.d.ts → area-picker/use-area-picker.d.ts} +26 -13
  25. package/src/components/form/checkbox/index.d.ts +4 -0
  26. package/src/components/form/{form-checkbox/use-form-checkbox.d.ts → checkbox/use-checkbox.d.ts} +47 -12
  27. package/src/components/form/form-item/use-form-item.d.ts +30 -9
  28. package/src/components/form/form-submit-button/form-submit-button.vue.d.ts +13 -13
  29. package/src/components/form/form-submit-button/use-form-submit-button.d.ts +12 -5
  30. package/src/components/form/form-wrap/form-wrap.vue.d.ts +2 -0
  31. package/src/components/form/form-wrap/use-form-wrap.d.ts +48 -9
  32. package/src/components/form/hooks/use-form-common.d.ts +13 -2
  33. package/src/components/form/index.d.ts +5 -5
  34. package/src/components/form/input/index.d.ts +2 -0
  35. package/src/components/form/{form-input/form-input.vue.d.ts → input/input.vue.d.ts} +19 -22
  36. package/src/components/form/{form-input/use-form-input.d.ts → input/use-input.d.ts} +89 -21
  37. package/src/components/form/protocol/index.d.ts +2 -0
  38. package/src/components/form/{form-protocol/use-form-protocol.d.ts → protocol/use-protocol.d.ts} +9 -5
  39. package/src/components/form/radio/index.d.ts +4 -0
  40. package/src/components/form/{form-radio/form-radio.vue.d.ts → radio/radio.vue.d.ts} +0 -6
  41. package/src/components/form/radio/use-radio.d.ts +41 -0
  42. package/src/components/form/types/index.d.ts +12 -3
  43. package/src/components/icons/icons/{info-round-filled → check-round-fill}/index.d.ts +1 -1
  44. package/src/components/icons/icons/close-round/index.d.ts +6 -0
  45. package/src/components/icons/icons/copy/index.d.ts +6 -0
  46. package/src/components/icons/icons/down-file/index.d.ts +6 -0
  47. package/src/components/icons/icons/down-load/index.d.ts +6 -0
  48. package/src/components/icons/icons/info-round-fill/index.d.ts +6 -0
  49. package/src/components/icons/icons/loading/index.d.ts +6 -0
  50. package/src/components/icons/icons/search/index.d.ts +6 -0
  51. package/src/components/icons/icons/triangle-down/index.d.ts +6 -0
  52. package/src/components/icons/icons/triangle-up/index.d.ts +6 -0
  53. package/src/components/icons/icons/warning-round-fill/index.d.ts +6 -0
  54. package/src/components/icons/icons/zoom-in/index.d.ts +6 -0
  55. package/src/components/icons/icons/zoom-out/index.d.ts +6 -0
  56. package/src/components/icons/map.d.ts +13 -1
  57. package/src/components/loading/directive.d.ts +16 -0
  58. package/src/components/loading/hook.d.ts +9 -0
  59. package/src/components/loading/index.d.ts +6 -0
  60. package/src/components/loading/loading-circle.vue.d.ts +2 -0
  61. package/src/components/loading/loading.vue.d.ts +30 -0
  62. package/src/components/loading/service.d.ts +11 -0
  63. package/src/components/loading/types.d.ts +24 -0
  64. package/src/components/loading/use-loading-component.d.ts +29 -0
  65. package/src/components/normal-pendant/index.d.ts +1 -0
  66. package/src/components/normal-pendant/normal-pendant.vue.d.ts +1 -8
  67. package/src/components/normal-pendant/use-normal-pendant.d.ts +36 -0
  68. package/src/components/popup/hooks/popup-props.d.ts +129 -37
  69. package/src/components/popup/hooks/use-popup-back.d.ts +1 -1
  70. package/src/components/popup/hooks/use-popup-config.d.ts +3 -0
  71. package/src/components/popup/hooks/use-popup-height.d.ts +1 -1
  72. package/src/components/popup/hooks/use-popup-scroll.d.ts +1 -0
  73. package/src/components/popup/hooks/use-popup-visible.d.ts +1 -0
  74. package/src/components/popup/popup.vue.d.ts +20 -15
  75. package/src/components/resize-box/index.d.ts +3 -0
  76. package/src/components/resize-box/resize-box.vue.d.ts +97 -0
  77. package/src/components/resize-box/type.d.ts +34 -0
  78. package/src/components/resize-box/use-resize-box.d.ts +105 -0
  79. package/src/components/reward-receive/entrance/reward-receive.vue.d.ts +4 -7
  80. package/src/components/reward-receive/hooks/use-reward-receive.d.ts +8 -3
  81. package/src/components/reward-receive/index.d.ts +1 -0
  82. package/src/components/switch/index.d.ts +2 -0
  83. package/src/components/switch/switch.vue.d.ts +51 -0
  84. package/src/components/switch/use-switch.d.ts +66 -0
  85. package/src/hooks/business/use-config-provider/index.d.ts +18 -5
  86. package/src/hooks/business/use-request/index.d.ts +56 -0
  87. package/src/hooks/business/use-resize-oss-image/index.d.ts +5 -0
  88. package/src/hooks/business/use-skin-color/index.d.ts +44 -0
  89. package/src/hooks/components/use-action-sheet/types.d.ts +27 -5
  90. package/src/hooks/components/use-image-preview/index.d.ts +12 -0
  91. package/src/hooks/components/use-message-box/_component/message-box-element.vue.d.ts +46 -11
  92. package/src/hooks/components/use-message-box/_component/use-message-box-element.d.ts +135 -3
  93. package/src/hooks/components/use-message-box/index.d.ts +3 -0
  94. package/src/hooks/components/use-message-box/types.d.ts +50 -8
  95. package/src/hooks/components/use-popper/_popper-type.d.ts +8 -4
  96. package/src/hooks/components/use-popper/index.d.ts +2 -2
  97. package/src/hooks/components/use-toast/_component/toast-element.vue.d.ts +32 -5
  98. package/src/hooks/components/use-toast/_component/use-toast-element.d.ts +37 -6
  99. package/src/hooks/components/use-toast/hook.d.ts +11 -0
  100. package/src/hooks/components/use-toast/index.d.ts +3 -10
  101. package/src/hooks/components/use-toast/types.d.ts +8 -2
  102. package/src/hooks/exports.d.ts +10 -1
  103. package/src/hooks/interactive/use-hover/index.d.ts +8 -0
  104. package/src/hooks/interactive/use-outside/index.d.ts +24 -0
  105. package/src/hooks/interactive/use-screen-orientation/index.d.ts +2 -2
  106. package/src/hooks/pagination/use-scroll-pagintaion/index.d.ts +1 -0
  107. package/src/hooks/platform/weixin/load-wx-sdk.d.ts +9 -0
  108. package/src/hooks/platform/weixin/use-weixin-mini-program.d.ts +6 -0
  109. package/src/hooks/platform/weixin/use-weixin-sdk.d.ts +14 -0
  110. package/src/hooks/plugin/use-resize-observer/index.d.ts +1 -1
  111. package/src/hooks/tools/use-browser/index.d.ts +8 -0
  112. package/src/hooks/tools/use-download/index.d.ts +6 -0
  113. package/src/hooks/tools/use-event-listener/index.d.ts +1 -1
  114. package/src/hooks/tools/use-set-interval/index.d.ts +1 -0
  115. package/src/hooks/tools/use-set-timeout/index.d.ts +1 -0
  116. package/src/hooks/tools/use-simple-visible/index.d.ts +28 -7
  117. package/src/hooks/vue/use-storage-ref/index.d.ts +3 -0
  118. package/src/hooks/vue/use-vue/index.d.ts +15 -0
  119. package/src/lang/common/en.json.d.ts +5 -1
  120. package/src/lang/common/ja.json.d.ts +5 -1
  121. package/src/lang/common/ko.json.d.ts +5 -1
  122. package/src/lang/common/ru.json.d.ts +5 -1
  123. package/src/lang/common/zh-CN.json.d.ts +5 -1
  124. package/src/lang/common/zh-TW.json.d.ts +5 -1
  125. package/src/lang/internal/index.d.ts +4 -0
  126. package/src/plugins/polyv-ui/mobile-import.d.ts +1 -0
  127. package/src/vue-utils/emit-utils.d.ts +3 -1
  128. package/src/vue-utils/props-utils.d.ts +1 -3
  129. package/styles/animation.scss +0 -9
  130. package/styles/mixins.scss +8 -6
  131. package/styles/skin-color.scss +64 -0
  132. package/src/components/form/form-area-picker/index.d.ts +0 -2
  133. package/src/components/form/form-checkbox/index.d.ts +0 -4
  134. package/src/components/form/form-input/index.d.ts +0 -2
  135. package/src/components/form/form-protocol/index.d.ts +0 -2
  136. package/src/components/form/form-radio/index.d.ts +0 -3
  137. package/src/components/normal-button/index.d.ts +0 -3
  138. package/src/components/normal-button/type.d.ts +0 -28
  139. package/src/hooks/interactive/use-click-outside/index.d.ts +0 -14
  140. package/src/components/form/{form-checkbox/form-checkbox-group.vue.d.ts → checkbox/checkbox-group.vue.d.ts} +0 -0
  141. package/src/components/form/{form-checkbox/form-checkbox.vue.d.ts → checkbox/checkbox.vue.d.ts} +4 -4
  142. /package/src/components/form/{form-checkbox → checkbox}/type.d.ts +0 -0
  143. /package/src/components/form/{form-protocol/form-protocol.vue.d.ts → protocol/protocol.vue.d.ts} +0 -0
  144. /package/src/components/form/{form-radio/form-radio-group.vue.d.ts → radio/radio-group.vue.d.ts} +0 -0
  145. /package/src/components/form/{form-radio → radio}/type.d.ts +0 -0
@@ -1,8 +1,8 @@
1
1
  import { VueEmit, VueProps } from '../../../vue-utils';
2
2
  /**
3
- * <form-input> 实例
3
+ * <pwc-input> 实例
4
4
  */
5
- export interface FormInputInstance {
5
+ export interface InputInstance {
6
6
  /** 强制更新 */
7
7
  forceUpdate(): void;
8
8
  /** 聚焦输入框 */
@@ -11,48 +11,88 @@ export interface FormInputInstance {
11
11
  blurInput(): void;
12
12
  }
13
13
  export type InputValueType = string | number;
14
- export declare const formInputProps: () => {
15
- /** 绑定值 */
14
+ export declare const inputProps: () => {
15
+ /**
16
+ * 绑定值,支持 v-model
17
+ * @propType InputValueType
18
+ */
16
19
  value: import('vue-types').VueTypeDef<InputValueType> & {
17
20
  default: InputValueType;
18
21
  };
19
- /** 只读 */
22
+ /**
23
+ * 只读
24
+ * @default false
25
+ */
20
26
  readonly: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
21
27
  default: boolean;
22
28
  };
23
- /** 禁用输入 */
29
+ /**
30
+ * 是否禁用
31
+ * @default false
32
+ */
24
33
  disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
25
34
  default: boolean;
26
35
  };
27
- /** 输入框原生类型 */
36
+ /**
37
+ * 输入框原生类型
38
+ * @default 'text'
39
+ */
28
40
  type: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
29
41
  default: string;
30
42
  };
31
- /** 输入框占位 */
43
+ /**
44
+ * 输入框占位
45
+ * @default ''
46
+ */
32
47
  placeholder: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
33
48
  default: string;
34
49
  };
35
- /** 最大长度 */
50
+ /**
51
+ * 最大长度
52
+ * @default Infinity
53
+ */
36
54
  maxlength: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
37
55
  default: number;
38
56
  };
39
- /** 显示字数限制,默认:false */
57
+ /**
58
+ * 显示字数限制
59
+ * @default false
60
+ */
40
61
  showWordLimit: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
41
62
  default: boolean;
42
63
  };
43
- /** 尾部文字 */
64
+ /**
65
+ * 前缀文字
66
+ * @default ''
67
+ */
68
+ prefixText: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
69
+ default: string;
70
+ };
71
+ /**
72
+ * 后缀文字
73
+ * @default ''
74
+ */
44
75
  suffixText: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
45
76
  default: string;
46
77
  };
47
- /** 清空,PC 端默认 true,移动端默认 false */
78
+ /**
79
+ * 清空
80
+ * @default false
81
+ */
48
82
  clearabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
49
83
  default: boolean;
50
84
  };
51
- /** 使用 textarea */
85
+ /**
86
+ * 使用 textarea
87
+ * @default false
88
+ */
52
89
  useTextarea: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
53
90
  default: boolean;
54
91
  };
55
- /** 行数 */
92
+ /**
93
+ * textarea 时的行数
94
+ * @default 4
95
+ */
56
96
  rows: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
57
97
  default: number;
58
98
  };
@@ -61,28 +101,56 @@ export declare const formInputProps: () => {
61
101
  default: boolean;
62
102
  };
63
103
  };
64
- export declare const formInputEmits: () => {
65
- /** 失焦 */
104
+ export declare const inputEmits: () => {
105
+ /**
106
+ * 失焦
107
+ * @cbName 输入值
108
+ * @cbType InputValueType
109
+ */
66
110
  blur: import('../../../vue-utils').EmitFuncType<InputValueType>;
67
- /** 聚焦 */
111
+ /**
112
+ * 聚焦
113
+ * @cbName 输入值
114
+ * @cbType InputValueType
115
+ */
68
116
  focus: import('../../../vue-utils').EmitFuncType<InputValueType>;
69
- /** 回车事件 */
117
+ /**
118
+ * 回车事件
119
+ * @cbName 输入值
120
+ * @cbType InputValueType
121
+ */
70
122
  enter: import('../../../vue-utils').EmitFuncType<InputValueType>;
71
123
  };
124
+ /**
125
+ * 输入框插槽
126
+ */
127
+ export interface InputSlots {
128
+ /**
129
+ * 前缀插槽
130
+ */
131
+ prefix: void;
132
+ /**
133
+ * 后缀插槽
134
+ */
135
+ suffix: void;
136
+ }
72
137
  export declare const useFormInput: (options: {
73
- props: VueProps<typeof formInputProps>;
74
- emit: VueEmit<typeof formInputEmits>;
138
+ props: VueProps<typeof inputProps>;
139
+ emit: VueEmit<typeof inputEmits>;
75
140
  classPrefix: string;
76
141
  }) => {
77
142
  modelValue: import('vue').ComputedRef<InputValueType>;
78
143
  inputRef: import('vue').Ref<HTMLInputElement | HTMLTextAreaElement | undefined>;
79
144
  inputClassNames: import('vue').ComputedRef<string[]>;
80
145
  isFocus: import('vue').Ref<boolean>;
146
+ isHoveringClear: import('vue').Ref<boolean>;
81
147
  onInputChanged: (event: Event) => void;
82
148
  onInputBlur: () => void;
83
149
  onInputFocus: () => void;
84
150
  onInputEnter: () => void;
85
151
  clearValue: () => void;
86
- formInstance: FormInputInstance;
152
+ handleClearClick: (event: MouseEvent) => void;
153
+ handleClearTouch: (event: TouchEvent) => void;
154
+ formInstance: InputInstance;
87
155
  wordLimitText: import('vue').ComputedRef<string>;
88
156
  };
@@ -0,0 +1,2 @@
1
+ export { default as PwcProtocol } from './protocol.vue';
2
+ export * from './use-protocol';
@@ -1,16 +1,20 @@
1
1
  import { VueProps } from '../../../vue-utils';
2
- export declare const formProtocolProps: () => {
3
- /** 是否选中 */
2
+ export declare const protocolProps: () => {
3
+ /**
4
+ * 是否选中,支持 v-model
5
+ */
4
6
  value: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
5
7
  default: boolean;
6
8
  };
7
- /** 协议内容 */
9
+ /**
10
+ * 协议 html 内容
11
+ */
8
12
  content: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
9
13
  default: string;
10
14
  };
11
15
  };
12
- export declare const useFormProtocol: (options: {
13
- props: VueProps<typeof formProtocolProps>;
16
+ export declare const useProtocol: (options: {
17
+ props: VueProps<typeof protocolProps>;
14
18
  }) => {
15
19
  modelValue: import('vue').ComputedRef<boolean>;
16
20
  onCheckboxChange: (checked: boolean) => void;
@@ -0,0 +1,4 @@
1
+ export { default as PwcRadio } from './radio.vue';
2
+ export { default as PwcRadioGroup } from './radio-group.vue';
3
+ export * from './type';
4
+ export * from './use-radio';
@@ -12,15 +12,12 @@ declare const __VLS_component: import('vue').DefineComponent<{
12
12
  label: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
13
13
  default: string;
14
14
  };
15
- /** 是否禁用 */
16
15
  disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
17
16
  default: boolean;
18
17
  };
19
- /** 是否显示背景色 */
20
18
  showBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
21
19
  default: boolean;
22
20
  };
23
- /** 显示前缀 */
24
21
  showPrefix: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
25
22
  default: boolean;
26
23
  };
@@ -29,15 +26,12 @@ declare const __VLS_component: import('vue').DefineComponent<{
29
26
  label: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
30
27
  default: string;
31
28
  };
32
- /** 是否禁用 */
33
29
  disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
34
30
  default: boolean;
35
31
  };
36
- /** 是否显示背景色 */
37
32
  showBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
38
33
  default: boolean;
39
34
  };
40
- /** 显示前缀 */
41
35
  showPrefix: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
42
36
  default: boolean;
43
37
  };
@@ -0,0 +1,41 @@
1
+ export declare const radioGroupProps: () => {
2
+ /**
3
+ * 单选框组绑定值,支持 v-model
4
+ * @propType FormRadioValue
5
+ */
6
+ value: import('vue-types').VueTypeDef<any>;
7
+ };
8
+ export declare const radioProps: () => {
9
+ /**
10
+ * 单选框值
11
+ * @propType FormRadioValue
12
+ */
13
+ value: import('vue-types').VueTypeDef<any>;
14
+ /**
15
+ * 单选框标签
16
+ */
17
+ label: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
18
+ default: string;
19
+ };
20
+ /**
21
+ * 是否禁用
22
+ * @default false
23
+ */
24
+ disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
25
+ default: boolean;
26
+ };
27
+ /**
28
+ * 是否显示背景色
29
+ * @default false
30
+ */
31
+ showBackground: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
32
+ default: boolean;
33
+ };
34
+ /**
35
+ * 显示前缀
36
+ * @default true
37
+ */
38
+ showPrefix: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
39
+ default: boolean;
40
+ };
41
+ };
@@ -1,10 +1,19 @@
1
1
  /** 表单尺寸 */
2
2
  export declare enum FormSize {
3
- /** 默认 - 48px */
3
+ /**
4
+ * 默认
5
+ * @height 48px
6
+ */
4
7
  Default = "default",
5
- /** 中 - 40px */
8
+ /**
9
+ * 中
10
+ * @height 40px
11
+ */
6
12
  Medium = "medium",
7
- /** 小 - 32px */
13
+ /**
14
+ * 小
15
+ * @height 32px
16
+ */
8
17
  Small = "small"
9
18
  }
10
19
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @file InfoRoundFilled Icon
2
+ * @file CheckRoundFill Icon
3
3
  * @author Auto Generated by @polyv/icons-cli
4
4
  */
5
5
  declare const _default: import('@polyv/icons-vue/icon-builder').IconComponentOption<import('@polyv/icons-vue/common/interfaces').IconCommonProps>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @file CloseRound 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 Copy 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 DownFile 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 DownLoad 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 InfoRoundFill 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 Loading 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 Search 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 TriangleDown 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 TriangleUp 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 WarningRoundFill 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 ZoomIn 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 ZoomOut 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;
@@ -7,11 +7,23 @@ export { default as PwcIconArrowLeft } from './icons/arrow-left';
7
7
  export { default as PwcIconArrowRight } from './icons/arrow-right';
8
8
  export { default as PwcIconArrowUp } from './icons/arrow-up';
9
9
  export { default as PwcIconCheck } from './icons/check';
10
+ export { default as PwcIconCheckRoundFill } from './icons/check-round-fill';
10
11
  export { default as PwcIconClose } from './icons/close';
12
+ export { default as PwcIconCloseRound } from './icons/close-round';
11
13
  export { default as PwcIconCloseRoundFill } from './icons/close-round-fill';
14
+ export { default as PwcIconCopy } from './icons/copy';
15
+ export { default as PwcIconDownFile } from './icons/down-file';
16
+ export { default as PwcIconDownLoad } from './icons/down-load';
12
17
  export { default as PwcIconEmptyPrize } from './icons/empty-prize';
13
18
  export { default as PwcIconErrorRound } from './icons/error-round';
14
- export { default as PwcIconInfoRoundFilled } from './icons/info-round-filled';
19
+ export { default as PwcIconInfoRoundFill } from './icons/info-round-fill';
15
20
  export { default as PwcIconList } from './icons/list';
21
+ export { default as PwcIconLoading } from './icons/loading';
16
22
  export { default as PwcIconQuestionRound } from './icons/question-round';
23
+ export { default as PwcIconSearch } from './icons/search';
17
24
  export { default as PwcIconSuccessRound } from './icons/success-round';
25
+ export { default as PwcIconTriangleDown } from './icons/triangle-down';
26
+ export { default as PwcIconTriangleUp } from './icons/triangle-up';
27
+ export { default as PwcIconWarningRoundFill } from './icons/warning-round-fill';
28
+ export { default as PwcIconZoomIn } from './icons/zoom-in';
29
+ export { default as PwcIconZoomOut } from './icons/zoom-out';
@@ -0,0 +1,16 @@
1
+ import { ComponentInstance } from '../../vue-utils';
2
+ import { Directive } from 'vue';
3
+ import { default as PwcLoading } from './loading.vue';
4
+ import { LoadingOptions } from './types';
5
+ declare const INSTANCE_KEY: unique symbol;
6
+ interface LoadingElement extends HTMLElement {
7
+ [INSTANCE_KEY]?: {
8
+ loadingVm: ComponentInstance<typeof PwcLoading>;
9
+ loadingElem: Element;
10
+ };
11
+ }
12
+ type LoadingBinding = boolean | {
13
+ loading: boolean;
14
+ } & LoadingOptions;
15
+ export declare const vLoading: Directive<LoadingElement, LoadingBinding>;
16
+ export {};
@@ -0,0 +1,9 @@
1
+ import { Ref } from 'vue';
2
+ import { LoadingOptions } from './types';
3
+ export declare const useLoading: (options?: {
4
+ loading?: Ref<boolean>;
5
+ } & LoadingOptions) => {
6
+ loading: Ref<boolean>;
7
+ showLoading: () => void;
8
+ hideLoading: () => void;
9
+ };
@@ -0,0 +1,6 @@
1
+ export * from './directive';
2
+ export * from './hook';
3
+ export { default as PwcLoading } from './loading.vue';
4
+ export * from './types';
5
+ export * from './use-loading-component';
6
+ export * from './service';
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,30 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ size: import('vue-types').VueTypeDef<import('./types').LoadingSize> & {
3
+ default: import('./types').LoadingSize;
4
+ };
5
+ color: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
6
+ default: string;
7
+ };
8
+ background: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
9
+ type: import('vue-types').VueTypeDef<"circle" | "dot"> & {
10
+ default: "circle" | "dot";
11
+ };
12
+ }, {
13
+ topmostElem: () => Promise<void>;
14
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
15
+ size: import('vue-types').VueTypeDef<import('./types').LoadingSize> & {
16
+ default: import('./types').LoadingSize;
17
+ };
18
+ color: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
19
+ default: string;
20
+ };
21
+ background: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
22
+ type: import('vue-types').VueTypeDef<"circle" | "dot"> & {
23
+ default: "circle" | "dot";
24
+ };
25
+ }>>, {
26
+ type: "circle" | "dot";
27
+ size: import('./types').LoadingSize;
28
+ color: string;
29
+ }>;
30
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { LoadingOptions } from './types';
2
+ export declare const loading: (options?: LoadingOptions & {
3
+ /**
4
+ * 插入的节点
5
+ * @default document.body
6
+ */
7
+ appendTo?: Element;
8
+ }) => {
9
+ close: () => void;
10
+ };
11
+ export type LoadingServiceContext = ReturnType<typeof loading>;
@@ -0,0 +1,24 @@
1
+ export declare const loadingType: readonly ["circle", "dot"];
2
+ export type LoadingType = typeof loadingType[number];
3
+ export type LoadingSize = number | 'auto';
4
+ export type LoadingOptions = {
5
+ /**
6
+ * 尺寸
7
+ * @default 'auto'
8
+ */
9
+ size?: number | 'auto';
10
+ /**
11
+ * 颜色
12
+ * @default '#3082FE'
13
+ */
14
+ color?: string;
15
+ /**
16
+ * 类型
17
+ */
18
+ type?: LoadingType;
19
+ /**
20
+ * 背景颜色
21
+ * @default 'rgba(255,255,255, 0.35)'
22
+ */
23
+ background?: string;
24
+ };
@@ -0,0 +1,29 @@
1
+ import { LoadingSize } from './types';
2
+ export declare const loadingProps: () => {
3
+ /**
4
+ * 大小
5
+ * @propType LoadingSize
6
+ * @default 32
7
+ */
8
+ size: import('vue-types').VueTypeDef<LoadingSize> & {
9
+ default: LoadingSize;
10
+ };
11
+ /**
12
+ * 颜色
13
+ */
14
+ color: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
15
+ default: string;
16
+ };
17
+ /**
18
+ * 背景颜色
19
+ */
20
+ background: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
21
+ /**
22
+ * 加载类型
23
+ * @propType LoadingType
24
+ * @default 'circle'
25
+ */
26
+ type: import('vue-types').VueTypeDef<"circle" | "dot"> & {
27
+ default: "circle" | "dot";
28
+ };
29
+ };
@@ -1 +1,2 @@
1
1
  export { default as PwcNormalPendant } from './normal-pendant.vue';
2
+ export * from './use-normal-pendant';
@@ -1,36 +1,29 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
- /** 挂件图片 */
3
2
  iconUrl: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
4
3
  default: string;
5
4
  };
6
- /** 挂件文案 */
7
5
  text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
8
6
  default: string;
9
7
  };
10
- /** 倒计时秒数 */
11
8
  countdownSecond: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
12
9
  default: number;
13
10
  };
14
- /** 倒计时时间戳 */
15
11
  countdownTimestamp: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
16
12
  default: number;
17
13
  };
18
14
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
15
  "click-pendant": (arg?: void | undefined) => void;
16
+ "countdown-finish": (arg?: void | undefined) => void;
20
17
  }, string, Readonly<import('vue').ExtractPropTypes<{
21
- /** 挂件图片 */
22
18
  iconUrl: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
23
19
  default: string;
24
20
  };
25
- /** 挂件文案 */
26
21
  text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
27
22
  default: string;
28
23
  };
29
- /** 倒计时秒数 */
30
24
  countdownSecond: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
31
25
  default: number;
32
26
  };
33
- /** 倒计时时间戳 */
34
27
  countdownTimestamp: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
35
28
  default: number;
36
29
  };