@polyv/vue-components 1.0.1 → 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 +5 -4
  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
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "@polyv/vue-components",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "main": "./index.es.js",
5
5
  "types": "./src/index.d.ts",
6
+ "type": "module",
6
7
  "dependencies": {
7
8
  "@juggle/resize-observer": "^3.4.0",
8
9
  "@just4/dom": "^1.0.0",
9
10
  "@just4/load-script": "^1.2.0",
11
+ "@just4/querystring": "^2.0.0",
10
12
  "@just4/ua-info": "^3.0.0",
11
13
  "@polyv/icons-vue": "1.1.0",
12
- "@polyv/polyv-ui": "4.10.0-dev-20250904.1",
14
+ "@polyv/polyv-ui": "4.11.0",
13
15
  "@popperjs/core": "2.11.4",
14
16
  "async-validator": "4.2.5",
15
17
  "clipboard": "2.0.10",
@@ -17,6 +19,5 @@
17
19
  "svgaplayerweb": "2.3.2",
18
20
  "vue-types": "5.1.1"
19
21
  },
20
- "module": "./index.es.js",
21
- "type": "module"
22
+ "module": "./index.es.js"
22
23
  }
@@ -1,31 +1,51 @@
1
1
  import { VueEmit, VueProps } from '../../vue-utils';
2
2
  export declare const basicCountdownProps: () => {
3
- /** 秒数 */
3
+ /**
4
+ * 秒数
5
+ */
4
6
  second: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
5
- /** 时间戳 */
7
+ /**
8
+ * 时间戳
9
+ */
6
10
  timestamp: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
7
- /** 时数为 0 时隐藏 */
11
+ /**
12
+ * 时数为 0 时隐藏
13
+ * @default false
14
+ */
8
15
  hideZeroHour: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
9
16
  default: boolean;
10
17
  };
11
- /** 是否使用倒计时 */
18
+ /**
19
+ * 是否使用倒计时
20
+ * @default true
21
+ */
12
22
  useClock: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
13
23
  default: boolean;
14
24
  };
15
- /** 数字样式 */
25
+ /**
26
+ * 数字样式
27
+ */
16
28
  itemClass: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
17
29
  default: string;
18
30
  };
19
- /** 冒号样式 */
31
+ /**
32
+ * 冒号样式
33
+ */
20
34
  colonClass: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
21
35
  default: string;
22
36
  };
23
- /** 完成秒数 */
37
+ /**
38
+ * 完成秒数
39
+ * @default 0
40
+ */
24
41
  finishSecond: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
25
42
  default: number;
26
43
  };
27
44
  };
28
45
  export declare const basicCountdownEmit: () => {
46
+ /**
47
+ * 倒计时结束
48
+ */
29
49
  finish: import('../../vue-utils').EmitFuncType<void>;
30
50
  };
31
51
  export declare const useBasicCountdown: (options: {
@@ -1,13 +1,4 @@
1
- declare function __VLS_template(): {
2
- attrs: Partial<{}>;
3
- slots: {
4
- default?(_: {}): any;
5
- };
6
- refs: {};
7
- rootEl: HTMLButtonElement;
8
- };
9
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import('vue').DefineComponent<{
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
11
2
  type: import('vue-types').VueTypeValidableDef<import('./type').ButtonType, import('vue-types/dist/types').ValidatorFunction<import('./type').ButtonType>> & {
12
3
  default: import('./type').ButtonType;
13
4
  };
@@ -49,13 +40,14 @@ declare const __VLS_component: import('vue').DefineComponent<{
49
40
  };
50
41
  }>>, {
51
42
  type: import('./type').ButtonType;
52
- square: boolean;
53
- block: boolean;
43
+ disabled: boolean;
54
44
  size: import('./type').ButtonSize;
55
45
  outline: boolean;
56
- disabled: boolean;
46
+ block: boolean;
47
+ square: boolean;
48
+ }>, {
49
+ default?(_: {}): any;
57
50
  }>;
58
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
59
51
  export default _default;
60
52
  type __VLS_WithTemplateSlots<T, S> = T & {
61
53
  new (): {
@@ -0,0 +1,3 @@
1
+ export { default as PwcButton } from './button.vue';
2
+ export * from './use-button';
3
+ export * from './type';
@@ -0,0 +1,50 @@
1
+ /**
2
+ * 按钮类型
3
+ */
4
+ export declare enum ButtonType {
5
+ /**
6
+ * 默认按钮
7
+ */
8
+ Primary = "primary",
9
+ /**
10
+ * 信息按钮
11
+ */
12
+ Info = "info",
13
+ /**
14
+ * 危险按钮
15
+ */
16
+ Danger = "danger",
17
+ /**
18
+ * 多彩按钮
19
+ */
20
+ Multicolour = "multicolour",
21
+ /**
22
+ * 警告按钮
23
+ */
24
+ Warning = "warning"
25
+ }
26
+ /**
27
+ * 按钮尺寸
28
+ */
29
+ export declare enum ButtonSize {
30
+ /**
31
+ * 大号按钮
32
+ * @height 48px
33
+ */
34
+ Large = "large",
35
+ /**
36
+ * 默认按钮
37
+ * @height 40px
38
+ */
39
+ Default = "",
40
+ /**
41
+ * 小号按钮
42
+ * @height 32px
43
+ */
44
+ Small = "small",
45
+ /**
46
+ * 迷你按钮
47
+ * @height 28px
48
+ */
49
+ Mini = "mini"
50
+ }
@@ -1,37 +1,59 @@
1
1
  import { VueEmit, VueProps } from '../../vue-utils';
2
2
  import { ButtonSize, ButtonType } from './type';
3
- export declare const normalButtonProps: () => {
4
- /** 按钮类型 */
3
+ export declare const buttonProps: () => {
4
+ /**
5
+ * 按钮类型
6
+ * @default ButtonType.Primary
7
+ */
5
8
  type: import('vue-types').VueTypeValidableDef<ButtonType, import('vue-types/dist/types').ValidatorFunction<ButtonType>> & {
6
9
  default: ButtonType;
7
10
  };
8
- /** 是否禁用 */
11
+ /**
12
+ * 是否禁用
13
+ * @default false
14
+ */
9
15
  disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
10
16
  default: boolean;
11
17
  };
12
- /** 按钮大小 */
18
+ /**
19
+ * 按钮大小
20
+ * @default ButtonSize.Default
21
+ */
13
22
  size: import('vue-types').VueTypeValidableDef<ButtonSize, import('vue-types/dist/types').ValidatorFunction<ButtonSize>> & {
14
23
  default: ButtonSize;
15
24
  };
16
- /** 是否为描边按钮 */
25
+ /**
26
+ * 是否为描边按钮
27
+ * @default false
28
+ */
17
29
  outline: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
18
30
  default: boolean;
19
31
  };
20
- /** 是否为块级按钮 */
32
+ /**
33
+ * 是否为块级按钮
34
+ * @default false
35
+ */
21
36
  block: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
22
37
  default: boolean;
23
38
  };
24
- /** 是否为方形按钮 */
39
+ /**
40
+ * 是否为方形按钮
41
+ * @default false
42
+ */
25
43
  square: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
26
44
  default: boolean;
27
45
  };
28
46
  };
29
- export declare const normalButtonEmits: () => {
47
+ export declare const buttonEmits: () => {
48
+ /**
49
+ * 点击事件
50
+ * @cbName 鼠标事件
51
+ */
30
52
  click: import('../../vue-utils').EmitFuncType<MouseEvent>;
31
53
  };
32
- export declare const useNormalButton: (options: {
33
- props: VueProps<typeof normalButtonProps>;
34
- emit: VueEmit<typeof normalButtonEmits>;
54
+ export declare const useButton: (options: {
55
+ props: VueProps<typeof buttonProps>;
56
+ emit: VueEmit<typeof buttonEmits>;
35
57
  }) => {
36
58
  onClick: (event: MouseEvent) => void;
37
59
  };
@@ -0,0 +1,3 @@
1
+ import { ComponentOptions } from 'vue';
2
+ export declare const PwcCarousel: ComponentOptions<any>;
3
+ export declare const PwcCarouselItem: ComponentOptions<any>;
@@ -0,0 +1,22 @@
1
+ import { CategorySelectValue } from './use-category-select';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<{
12
+ value: import('vue-types').VueTypeDef<CategorySelectValue>;
13
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
14
+ value: import('vue-types').VueTypeDef<CategorySelectValue>;
15
+ }>>, {}>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $scopedSlots: S;
21
+ };
22
+ };
@@ -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<import('./use-category-select').CategorySelectValue>;
12
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
13
+ value: import('vue-types').VueTypeDef<import('./use-category-select').CategorySelectValue>;
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,3 @@
1
+ export { default as PwcCategorySelectItem } from './category-select-item.vue';
2
+ export { default as PwcCategorySelect } from './category-select.vue';
3
+ export * from './use-category-select';
@@ -0,0 +1,25 @@
1
+ import { ComputedRef, InjectionKey } from 'vue';
2
+ export type CategorySelectValue = string | number;
3
+ export declare const categorySelectProps: () => {
4
+ /**
5
+ * 绑定值,支持 v-model
6
+ */
7
+ value: import('vue-types').VueTypeDef<CategorySelectValue>;
8
+ };
9
+ export declare const categorySelectItemProps: () => {
10
+ /**
11
+ * 选项值
12
+ */
13
+ value: import('vue-types').VueTypeDef<CategorySelectValue>;
14
+ };
15
+ export interface CategroySelectInjectData {
16
+ /**
17
+ * 绑定值
18
+ */
19
+ modelValue: ComputedRef<CategorySelectValue | undefined>;
20
+ /**
21
+ * 更新绑定值
22
+ */
23
+ updateModelValue: (value: CategorySelectValue | undefined) => void;
24
+ }
25
+ export declare const CATEGORY_SELECT_INJECT_KEY: InjectionKey<CategroySelectInjectData>;
@@ -0,0 +1,31 @@
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
+ command: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
12
+ disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
13
+ default: boolean;
14
+ };
15
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ click: (arg?: void | undefined) => void;
17
+ }, string, Readonly<import('vue').ExtractPropTypes<{
18
+ command: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
19
+ disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
20
+ default: boolean;
21
+ };
22
+ }>>, {
23
+ disabled: boolean;
24
+ }>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $scopedSlots: S;
30
+ };
31
+ };
@@ -0,0 +1,17 @@
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<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{}>>, {}>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $scopedSlots: S;
16
+ };
17
+ };
@@ -0,0 +1,61 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ dropdown?(_: {}): any;
6
+ };
7
+ refs: {
8
+ referenceRef: HTMLDivElement;
9
+ popperRef: HTMLDivElement;
10
+ };
11
+ rootEl: HTMLDivElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<{
15
+ trigger: import('vue-types').VueTypeDef<"click" | "hover" | "focus" | "long-press" | "custom"> & {
16
+ default: "click" | "hover" | "focus" | "long-press" | "custom";
17
+ };
18
+ placement: import('vue-types').VueTypeDef<"top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end"> & {
19
+ default: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
20
+ };
21
+ showArrow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
22
+ default: boolean;
23
+ };
24
+ referenceClass: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
25
+ default: string;
26
+ };
27
+ disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
28
+ default: boolean;
29
+ };
30
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
+ command: (arg: string) => void;
32
+ }, string, Readonly<import('vue').ExtractPropTypes<{
33
+ trigger: import('vue-types').VueTypeDef<"click" | "hover" | "focus" | "long-press" | "custom"> & {
34
+ default: "click" | "hover" | "focus" | "long-press" | "custom";
35
+ };
36
+ placement: import('vue-types').VueTypeDef<"top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end"> & {
37
+ default: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
38
+ };
39
+ showArrow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
40
+ default: boolean;
41
+ };
42
+ referenceClass: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
43
+ default: string;
44
+ };
45
+ disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
46
+ default: boolean;
47
+ };
48
+ }>>, {
49
+ disabled: boolean;
50
+ trigger: "click" | "hover" | "focus" | "long-press" | "custom";
51
+ placement: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
52
+ showArrow: boolean;
53
+ referenceClass: string;
54
+ }>;
55
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
56
+ export default _default;
57
+ type __VLS_WithTemplateSlots<T, S> = T & {
58
+ new (): {
59
+ $scopedSlots: S;
60
+ };
61
+ };
@@ -0,0 +1,4 @@
1
+ export { default as PwcDropdown } from './dropdown.vue';
2
+ export { default as PwcDropdownMenu } from './dropdown-menu.vue';
3
+ export { default as PwcDropdownItem } from './dropdown-item.vue';
4
+ export * from './use-dropdown';
@@ -0,0 +1,70 @@
1
+ import { InjectionKey } from 'vue';
2
+ export declare const dropdownProps: () => {
3
+ /**
4
+ * 触发方式
5
+ * @propType PopperTrigger
6
+ * @default click
7
+ */
8
+ trigger: import('vue-types').VueTypeDef<"click" | "hover" | "focus" | "long-press" | "custom"> & {
9
+ default: "click" | "hover" | "focus" | "long-press" | "custom";
10
+ };
11
+ /**
12
+ * 弹层位置
13
+ * @propType PopperPlacement
14
+ * @default bottom-end
15
+ */
16
+ placement: import('vue-types').VueTypeDef<"top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end"> & {
17
+ default: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
18
+ };
19
+ /**
20
+ * 显示箭头
21
+ * @default true
22
+ */
23
+ showArrow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
24
+ default: boolean;
25
+ };
26
+ /**
27
+ * 触发节点 class
28
+ */
29
+ referenceClass: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
30
+ default: string;
31
+ };
32
+ /**
33
+ * 是否禁用
34
+ * @default false
35
+ */
36
+ disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
37
+ default: boolean;
38
+ };
39
+ };
40
+ export declare const dropdownEmit: () => {
41
+ /**
42
+ * 触发指令
43
+ * @param 指令
44
+ */
45
+ command: import('../../vue-utils').EmitFuncType<string>;
46
+ };
47
+ export declare const dropdownItemProps: () => {
48
+ /**
49
+ * 指令
50
+ */
51
+ command: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
52
+ /**
53
+ * 是否禁用
54
+ * @default false
55
+ */
56
+ disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
57
+ default: boolean;
58
+ };
59
+ };
60
+ export declare const dropdownItemEmit: () => {
61
+ /**
62
+ * 点击菜单项
63
+ */
64
+ click: import('../../vue-utils').EmitFuncType<void>;
65
+ };
66
+ export interface DropdownInject {
67
+ /** 点击菜单项 */
68
+ onClickItem: (command: string | undefined) => void;
69
+ }
70
+ export declare const DROPDOWN_INJECT_KEY: InjectionKey<DropdownInject>;
@@ -0,0 +1,14 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ icon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue/icon-builder').IconComponentOption>>;
3
+ text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
4
+ default: string;
5
+ };
6
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
7
+ icon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue/icon-builder').IconComponentOption>>;
8
+ text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
9
+ default: string;
10
+ };
11
+ }>>, {
12
+ text: string;
13
+ }>;
14
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as PwcEmpty } from './empty.vue';
2
+ export * from './use-empty';
@@ -0,0 +1,14 @@
1
+ export declare const emptyProps: () => {
2
+ /**
3
+ * 自定义图标
4
+ * @propType IconComponentOption
5
+ */
6
+ icon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue/icon-builder').IconComponentOption>>;
7
+ /**
8
+ * 空状态文本
9
+ * @default '暂无内容'
10
+ */
11
+ text: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
12
+ default: string;
13
+ };
14
+ };
@@ -1,7 +1,14 @@
1
1
  export * from './basic-countdown';
2
+ export * from './button';
3
+ export * from './carousel';
4
+ export * from './category-select';
5
+ export * from './dropdown';
6
+ export * from './empty';
2
7
  export * from './form';
3
8
  export * from './icons/map';
4
- export * from './normal-button';
9
+ export * from './loading';
5
10
  export * from './normal-pendant';
6
11
  export * from './popup';
12
+ export * from './resize-box';
7
13
  export * from './reward-receive';
14
+ export * from './switch';
@@ -2,12 +2,12 @@ declare const _default: import('vue').DefineComponent<{
2
2
  value: import('vue-types').VueTypeValidableDef<string[], import('vue-types/dist/types').ValidatorFunction<string[]>> & {
3
3
  default: () => string[];
4
4
  };
5
- areaPickerText: import('vue-types').VueTypeValidableDef<string[], import('vue-types/dist/types').ValidatorFunction<string[]>> & {
6
- default: () => string[];
7
- };
8
5
  placeholder: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
9
6
  default: string;
10
7
  };
8
+ disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
9
+ default: boolean;
10
+ };
11
11
  size: import('vue-types').VueTypeValidableDef<import('..').FormSize, import('vue-types/dist/types').ValidatorFunction<import('..').FormSize>>;
12
12
  validateForm: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
13
13
  default: boolean;
@@ -20,20 +20,20 @@ declare const _default: import('vue').DefineComponent<{
20
20
  value: import('vue-types').VueTypeValidableDef<string[], import('vue-types/dist/types').ValidatorFunction<string[]>> & {
21
21
  default: () => string[];
22
22
  };
23
- areaPickerText: import('vue-types').VueTypeValidableDef<string[], import('vue-types/dist/types').ValidatorFunction<string[]>> & {
24
- default: () => string[];
25
- };
26
23
  placeholder: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
27
24
  default: string;
28
25
  };
26
+ disabled: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
27
+ default: boolean;
28
+ };
29
29
  size: import('vue-types').VueTypeValidableDef<import('..').FormSize, import('vue-types/dist/types').ValidatorFunction<import('..').FormSize>>;
30
30
  validateForm: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
31
31
  default: boolean;
32
32
  };
33
33
  }>>, {
34
34
  value: string[];
35
+ disabled: boolean;
35
36
  validateForm: boolean;
36
37
  placeholder: string;
37
- areaPickerText: string[];
38
38
  }>;
39
39
  export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as PwcAreaPicker } from './area-picker.vue';
2
+ export * from './use-area-picker';