@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,3 +1,4 @@
1
+ import { Ref } from 'vue';
1
2
  export interface UseSimpleVisibleOptions {
2
3
  /**
3
4
  * 是否自动关闭
@@ -13,29 +14,49 @@ export interface UseSimpleVisibleOptions {
13
14
  autoCloseTime?: number;
14
15
  /**
15
16
  * 显示时回调
17
+ * @propType () => void
16
18
  */
17
19
  showCallback?: () => void;
18
20
  /**
19
21
  * 隐藏时回调
22
+ * @propType () => void
20
23
  */
21
24
  hideCallback?: () => void;
22
25
  /**
23
26
  * 隐藏延迟回调
27
+ * @propType () => void
24
28
  */
25
29
  hideDelayCallback?: () => void;
26
30
  /**
27
31
  * 更新回调
32
+ * @propType (visible: boolean) => void
28
33
  */
29
34
  changeCallback?: (visible: boolean) => void;
30
35
  }
36
+ export interface UseSimpleVisibleReturn {
37
+ /** 显示状态 */
38
+ visible: Ref<boolean>;
39
+ /** 设置显示状态 */
40
+ setVisible: (visible: boolean) => void;
41
+ /** 显示 */
42
+ open: () => void;
43
+ /** 关闭 */
44
+ close: () => void;
45
+ /** 显示 */
46
+ show: () => void;
47
+ /** 关闭 */
48
+ hide: () => void;
49
+ /** 切换显示状态 */
50
+ toggle: () => void;
51
+ }
31
52
  /**
32
53
  * 简单的显隐 hook
33
54
  * @param defaultVisible 默认显示状态,默认:false
55
+ * @param options 选项
34
56
  */
35
- export declare const useSimpleVisible: (defaultVisible?: boolean, options?: UseSimpleVisibleOptions) => {
36
- visible: import('vue').Ref<boolean>;
37
- setVisible: (_visible?: boolean) => void;
38
- show: () => void;
39
- close: () => void;
40
- toggle: () => void;
41
- };
57
+ export declare function useSimpleVisible(defaultVisible?: boolean, options?: UseSimpleVisibleOptions): UseSimpleVisibleReturn;
58
+ /**
59
+ * 简单的显隐 hook
60
+ * @param options 选项
61
+ */
62
+ export declare function useSimpleVisible(options?: UseSimpleVisibleOptions): UseSimpleVisibleReturn;
@@ -0,0 +1,3 @@
1
+ import { Ref, UnwrapRef } from 'vue';
2
+ export declare function useStorageRef<T>(key: string, value: T): Ref<UnwrapRef<T>>;
3
+ export declare function useStorageRef<T = any>(key: string): Ref<T | undefined>;
@@ -1,4 +1,17 @@
1
+ import { ComponentInstance } from '../../../vue-utils';
1
2
  import { default as Vue, Component, VNode } from 'vue';
3
+ /** 获取 Vue 构造函数 */
4
+ export declare function getVueConstructor(): typeof Vue;
5
+ /** 创建 Vue 实例 */
6
+ export declare function createVueInstance<Props extends Record<string, any> = {}, Emits extends Record<string, any> = {}>(vueComponent: Component, options?: {
7
+ parent?: any;
8
+ props?: Props;
9
+ on?: Emits;
10
+ }): unknown;
11
+ /** 销毁 Vue 实例 */
12
+ export declare function destroyVueInstance(instance: ComponentInstance<any>): void;
13
+ /** 获取 Vue 实例的 dom 节点 */
14
+ export declare function getVueInstanceElem(instance: ComponentInstance<any>): Element | undefined;
2
15
  /**
3
16
  * 对 Vue 一些方法的简单封装
4
17
  */
@@ -12,4 +25,6 @@ export declare const useVue: () => {
12
25
  props?: Props;
13
26
  on?: Emits;
14
27
  }) => unknown;
28
+ getVueInstanceElem: typeof getVueInstanceElem;
29
+ destroyVueInstance: typeof destroyVueInstance;
15
30
  };
@@ -6,7 +6,11 @@ declare const _default: {
6
6
  "submit": "Submit",
7
7
  "submitSuccess": "Success",
8
8
  "known": "I know",
9
- "copySuccess": "Copy success"
9
+ "copySuccess": "Copy success",
10
+ "copyLinkSuccess": "Link copy success, you can paste it in the browser to download",
11
+ "tips": "Tips",
12
+ "success": "Success",
13
+ "empty": "Empty"
10
14
  }
11
15
  }
12
16
  ;
@@ -6,7 +6,11 @@ declare const _default: {
6
6
  "submit": "送信",
7
7
  "submitSuccess": "送信成功",
8
8
  "known": "わかりました",
9
- "copySuccess": "コピー成功"
9
+ "copySuccess": "コピー成功",
10
+ "copyLinkSuccess": "リンクをコピーしました。ブラウザに貼り付けてダウンロードしてください",
11
+ "tips": "ヒント",
12
+ "success": "成功",
13
+ "empty": "空"
10
14
  }
11
15
  };
12
16
 
@@ -6,7 +6,11 @@ declare const _default: {
6
6
  "submit": "제출",
7
7
  "submitSuccess": "제출 성공",
8
8
  "known": "알겠습니다",
9
- "copySuccess": "복사 성공"
9
+ "copySuccess": "복사 성공",
10
+ "copyLinkSuccess": "링크 복사 성공, 브라우저에 붙여넣기하여 다운로드",
11
+ "tips": "팁",
12
+ "success": "성공",
13
+ "empty": "비어있음"
10
14
  }
11
15
  };
12
16
 
@@ -6,7 +6,11 @@ declare const _default: {
6
6
  "submit": "Отправить",
7
7
  "submitSuccess": "Успешно отправлено",
8
8
  "known": "Понятно",
9
- "copySuccess": "Скопировано успешно"
9
+ "copySuccess": "Скопировано успешно",
10
+ "copyLinkSuccess": "Ссылка скопирована успешно, можно перейти в браузер и вставить для загрузки",
11
+ "tips": "Подсказка",
12
+ "success": "Успешно",
13
+ "empty": "Пусто"
10
14
  }
11
15
  };
12
16
 
@@ -6,7 +6,11 @@ declare const _default: {
6
6
  "submit": "提交",
7
7
  "submitSuccess": "提交成功",
8
8
  "known": "我知道了",
9
- "copySuccess": "复制成功"
9
+ "copySuccess": "复制成功",
10
+ "copyLinkSuccess": "链接复制成功,可去浏览器粘贴下载",
11
+ "tips": "提示",
12
+ "success": "成功",
13
+ "empty": "暂无内容"
10
14
  }
11
15
  }
12
16
  ;
@@ -6,7 +6,11 @@ declare const _default: {
6
6
  "submit": "提交",
7
7
  "submitSuccess": "提交成功",
8
8
  "known": "我知道了",
9
- "copySuccess": "複製成功"
9
+ "copySuccess": "複製成功",
10
+ "copyLinkSuccess": "連結複製成功,可去瀏覽器貼上下載",
11
+ "tips": "提示",
12
+ "success": "成功",
13
+ "empty": "暫無內容"
10
14
  }
11
15
  };
12
16
 
@@ -26,6 +26,10 @@ declare const useInternalI18n: () => {
26
26
  submitSuccess: string;
27
27
  known: string;
28
28
  copySuccess: string;
29
+ copyLinkSuccess: string;
30
+ tips: string;
31
+ success: string;
32
+ empty: string;
29
33
  };
30
34
  }>, options?: import('../..').UniversalParams<string | number>) => string;
31
35
  currentLang: import('vue').ComputedRef<import('../types').I18nLangs>;
@@ -1 +1,2 @@
1
1
  export { default as PlvAreaPicker } from '@polyv/polyv-ui/lib-front-mob/area-picker';
2
+ export { default as PlvImagePreview } from '@polyv/polyv-ui/lib-admin/image-preview';
@@ -5,7 +5,9 @@ export type EmitFuncType<P = void> = (arg: P) => void;
5
5
  */
6
6
  export declare const emitFunc: <P = void>() => EmitFuncType<P>;
7
7
  export type VueEmit<F extends () => ObjectEmitsOptions> = EmitFn<ReturnType<F>>;
8
- export type UpdateEmitReturn<K extends string, P = void> = Record<`update:${K}`, EmitFuncType<P>>;
8
+ export type UpdateEmitReturn<K extends string, P = void> = {
9
+ [key in `update:${K}`]: EmitFuncType<P>;
10
+ };
9
11
  export declare function updateModelEmit<K extends string, P>(field: K): UpdateEmitReturn<K, P>;
10
12
  export type FormatEmit<F extends () => ObjectEmitsOptions> = {
11
13
  [K in keyof ReturnType<F>]?: (...args: ReturnType<F>[K] extends (...args: any) => any ? Parameters<ReturnType<F>[K]> : []) => void;
@@ -20,9 +20,7 @@ export declare const PropUtils: {
20
20
  readonly bool: VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
21
21
  default: boolean;
22
22
  };
23
- readonly looseBool: import('vue-types').VueTypeDef<boolean | undefined> & {
24
- default: boolean | undefined;
25
- };
23
+ readonly looseBool: VueTypeValidableDef<boolean | undefined>;
26
24
  readonly looseElement: import('vue-types').VueTypeDef<HTMLElement | undefined> & {
27
25
  default: (() => HTMLElement) | undefined;
28
26
  };
@@ -13,12 +13,3 @@
13
13
  opacity: 1;
14
14
  }
15
15
  }
16
-
17
- @keyframes pwc-loading-animation {
18
- 0% {
19
- transform: rotateZ(0);
20
- }
21
- 100% {
22
- transform: rotateZ(360deg);
23
- }
24
- }
@@ -45,10 +45,11 @@
45
45
  &::-webkit-scrollbar {
46
46
  width: 6px;
47
47
  height: 6px;
48
+ background-color: transparent;
48
49
  }
49
50
  &::-webkit-scrollbar-thumb {
50
51
  background-color: $thumbColor;
51
- border-radius: 3px;
52
+ border-color: transparent;
52
53
  transition: background-color 0.2s ease;
53
54
  &:hover {
54
55
  background-color: $thumbColor-hover;
@@ -61,6 +62,9 @@
61
62
  background-color: $trackColor;
62
63
  border-left: 1px solid $trackBorder;
63
64
  }
65
+ &::-webkit-scrollbar-track-piece {
66
+ background-color: transparent !important
67
+ }
64
68
  }
65
69
 
66
70
  /**
@@ -82,11 +86,9 @@
82
86
  // 用安全距离替换原底部padding值。若原底部padding值大于底部安全距离,则不会被替换。
83
87
  @if $isReplace {
84
88
  padding-bottom: $normalBottom;
85
- .g-page--ios & {
86
- @supports (padding-bottom: env(safe-area-inset-bottom)) or (padding-bottom: constant(safe-area-inset-bottom, $normalBottom)) {
87
- padding-bottom: unquote('max(constant(safe-area-inset-bottom, #{$normalBottom}), #{$normalBottom})');
88
- padding-bottom: unquote('max(env(safe-area-inset-bottom, #{$normalBottom}), #{$normalBottom})');
89
- }
89
+ @supports (padding-bottom: env(safe-area-inset-bottom)) or (padding-bottom: constant(safe-area-inset-bottom, $normalBottom)) {
90
+ padding-bottom: unquote('max(constant(safe-area-inset-bottom, #{$normalBottom}), #{$normalBottom})');
91
+ padding-bottom: unquote('max(env(safe-area-inset-bottom, #{$normalBottom}), #{$normalBottom})');
90
92
  }
91
93
  } @else {
92
94
  // 安全距离与原底部padding值叠加
@@ -0,0 +1,64 @@
1
+ @use 'sass:map';
2
+ @use './mixins.scss' as *;
3
+
4
+ $skin-color-mode-prefix: 'pwc-skin-color-mode';
5
+
6
+ @mixin set-skin-style($styles: ()) {
7
+ $selector: &;
8
+
9
+ // 设置默认浅色
10
+ @each $prop, $val in map-get($styles, light) {
11
+ #{$prop}: #{$val};
12
+ }
13
+
14
+ @at-root {
15
+ .#{$skin-color-mode-prefix}--dark {
16
+ #{$selector} {
17
+ @each $prop, $val in map-get($styles, dark) {
18
+ #{$prop}: #{$val};
19
+ }
20
+ }
21
+ }
22
+ // 浅色必须在 dark 之后,ignoreSkinColor 为 true 时,浅色样式会覆盖 dark 样式
23
+ .#{$skin-color-mode-prefix}--light {
24
+ #{$selector} {
25
+ @each $prop, $val in map-get($styles, light) {
26
+ #{$prop}: #{$val};
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
32
+
33
+ @mixin set-dark-style() {
34
+ $selector: &;
35
+
36
+ @at-root {
37
+ .#{$skin-color-mode-prefix}--dark {
38
+ #{$selector} {
39
+ @content;
40
+ }
41
+ }
42
+ }
43
+ }
44
+
45
+ @mixin set-light-style() {
46
+ $selector: &;
47
+
48
+ @at-root {
49
+ .#{$skin-color-mode-prefix}--light {
50
+ #{$selector} {
51
+ @content;
52
+ }
53
+ }
54
+ }
55
+ }
56
+
57
+ @mixin set-scrollbar-color {
58
+ @include set-dark-style {
59
+ @include scrollbar(transparent, transparent, rgba(#ffffff, 0.16));
60
+ }
61
+ @include set-light-style {
62
+ @include scrollbar(transparent, transparent, rgba(#000000, 0.16));
63
+ }
64
+ }
@@ -1,2 +0,0 @@
1
- export { default as PwcFormAreaPicker } from './form-area-picker.vue';
2
- export * from './use-form-area-picker';
@@ -1,4 +0,0 @@
1
- export { default as PwcFormCheckbox } from './form-checkbox.vue';
2
- export { default as PwcFormCheckboxGroup } from './form-checkbox-group.vue';
3
- export * from './type';
4
- export * from './use-form-checkbox';
@@ -1,2 +0,0 @@
1
- export { default as PwcFormInput } from './form-input.vue';
2
- export * from './use-form-input';
@@ -1,2 +0,0 @@
1
- export { default as PwcFormProtocol } from './form-protocol.vue';
2
- export * from './use-form-protocol';
@@ -1,3 +0,0 @@
1
- export { default as PwcFormRadio } from './form-radio.vue';
2
- export { default as PwcFormRadioGroup } from './form-radio-group.vue';
3
- export * from './type';
@@ -1,3 +0,0 @@
1
- export { default as PwcNormalButton } from './normal-button.vue';
2
- export * from './use-normal-button';
3
- export * from './type';
@@ -1,28 +0,0 @@
1
- /**
2
- * 按钮类型
3
- */
4
- export declare enum ButtonType {
5
- Primary = "primary",
6
- Info = "info",
7
- Danger = "danger",
8
- Outline = "outline",
9
- Multicolour = "multicolour",
10
- MulticolourOutline = "multicolour-outline",
11
- /** 橙色 */
12
- Orange = "orange",
13
- /** 橙色线性 */
14
- OrangeOutline = "orange-outline"
15
- }
16
- /**
17
- * 按钮尺寸
18
- */
19
- export declare enum ButtonSize {
20
- /** height: 40px */
21
- Default = "",
22
- /** height: 48px */
23
- Middle = "middle",
24
- /** height: 32px */
25
- Small = "small",
26
- /** height: 28px */
27
- Mini = "mini"
28
- }
@@ -1,14 +0,0 @@
1
- import { Ref } from 'vue';
2
- export type ClickOutsideTargetType = Ref | HTMLElement | string;
3
- export type ClickOutsideTargets = ClickOutsideTargetType | ClickOutsideTargetType[];
4
- export type ClickOutsideTargetsFunction = () => ClickOutsideTargets;
5
- /**
6
- * 点击节点外部事件 hook
7
- * @param targets 响应式节点数组或获取方法
8
- * @param callback 回调方法
9
- * @param autoListen 自动监听,默认:true
10
- */
11
- export declare const useClickOutside: (targets: ClickOutsideTargets | ClickOutsideTargetsFunction, callback: () => unknown, autoListen?: boolean) => {
12
- listenClickOutSide: () => void;
13
- removeListenClickOutSide: () => void;
14
- };
@@ -8,10 +8,10 @@ declare function __VLS_template(): {
8
8
  };
9
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
10
  declare const __VLS_component: import('vue').DefineComponent<{
11
- circle: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
11
+ checked: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
12
12
  default: boolean;
13
13
  };
14
- checked: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
14
+ circle: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
15
15
  default: boolean;
16
16
  };
17
17
  value: import('vue-types').VueTypeDef<any>;
@@ -31,10 +31,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
31
31
  change: (arg: boolean) => void;
32
32
  "update:checked": (arg: boolean) => void;
33
33
  }, string, Readonly<import('vue').ExtractPropTypes<{
34
- circle: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
34
+ checked: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
35
35
  default: boolean;
36
36
  };
37
- checked: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
37
+ circle: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
38
38
  default: boolean;
39
39
  };
40
40
  value: import('vue-types').VueTypeDef<any>;