@polyv/vue-components 1.0.2 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.es.js +4453 -2279
- package/package.json +4 -3
- package/src/components/basic-countdown/use-basic-countdown.d.ts +27 -7
- package/src/components/{normal-button/normal-button.vue.d.ts → button/button.vue.d.ts} +6 -14
- package/src/components/button/index.d.ts +3 -0
- package/src/components/button/type.d.ts +50 -0
- package/src/components/{normal-button/use-normal-button.d.ts → button/use-button.d.ts} +33 -11
- package/src/components/carousel/index.d.ts +3 -0
- package/src/components/category-select/category-select-item.vue.d.ts +22 -0
- package/src/components/category-select/category-select.vue.d.ts +21 -0
- package/src/components/category-select/index.d.ts +3 -0
- package/src/components/category-select/use-category-select.d.ts +25 -0
- package/src/components/dropdown/dropdown-item.vue.d.ts +31 -0
- package/src/components/dropdown/dropdown-menu.vue.d.ts +17 -0
- package/src/components/dropdown/dropdown.vue.d.ts +61 -0
- package/src/components/dropdown/index.d.ts +4 -0
- package/src/components/dropdown/use-dropdown.d.ts +70 -0
- package/src/components/empty/empty.vue.d.ts +14 -0
- package/src/components/empty/index.d.ts +2 -0
- package/src/components/empty/use-empty.d.ts +14 -0
- package/src/components/exports.d.ts +8 -1
- package/src/components/form/{form-area-picker/form-area-picker.vue.d.ts → area-picker/area-picker.vue.d.ts} +7 -7
- package/src/components/form/area-picker/index.d.ts +2 -0
- package/src/components/form/{form-area-picker/use-form-area-picker.d.ts → area-picker/use-area-picker.d.ts} +26 -13
- package/src/components/form/checkbox/index.d.ts +4 -0
- package/src/components/form/{form-checkbox/use-form-checkbox.d.ts → checkbox/use-checkbox.d.ts} +47 -12
- package/src/components/form/form-item/use-form-item.d.ts +30 -9
- package/src/components/form/form-submit-button/form-submit-button.vue.d.ts +13 -13
- package/src/components/form/form-submit-button/use-form-submit-button.d.ts +12 -5
- package/src/components/form/form-wrap/form-wrap.vue.d.ts +2 -0
- package/src/components/form/form-wrap/use-form-wrap.d.ts +48 -9
- package/src/components/form/hooks/use-form-common.d.ts +13 -2
- package/src/components/form/index.d.ts +5 -5
- package/src/components/form/input/index.d.ts +2 -0
- package/src/components/form/{form-input/form-input.vue.d.ts → input/input.vue.d.ts} +19 -22
- package/src/components/form/{form-input/use-form-input.d.ts → input/use-input.d.ts} +89 -21
- package/src/components/form/protocol/index.d.ts +2 -0
- package/src/components/form/{form-protocol/use-form-protocol.d.ts → protocol/use-protocol.d.ts} +9 -5
- package/src/components/form/radio/index.d.ts +4 -0
- package/src/components/form/{form-radio/form-radio.vue.d.ts → radio/radio.vue.d.ts} +0 -6
- package/src/components/form/radio/use-radio.d.ts +41 -0
- package/src/components/form/types/index.d.ts +12 -3
- package/src/components/icons/icons/{info-round-filled → check-round-fill}/index.d.ts +1 -1
- package/src/components/icons/icons/close-round/index.d.ts +6 -0
- package/src/components/icons/icons/copy/index.d.ts +6 -0
- package/src/components/icons/icons/down-file/index.d.ts +6 -0
- package/src/components/icons/icons/down-load/index.d.ts +6 -0
- package/src/components/icons/icons/info-round-fill/index.d.ts +6 -0
- package/src/components/icons/icons/loading/index.d.ts +6 -0
- package/src/components/icons/icons/search/index.d.ts +6 -0
- package/src/components/icons/icons/triangle-down/index.d.ts +6 -0
- package/src/components/icons/icons/triangle-up/index.d.ts +6 -0
- package/src/components/icons/icons/warning-round-fill/index.d.ts +6 -0
- package/src/components/icons/icons/zoom-in/index.d.ts +6 -0
- package/src/components/icons/icons/zoom-out/index.d.ts +6 -0
- package/src/components/icons/map.d.ts +13 -1
- package/src/components/loading/directive.d.ts +16 -0
- package/src/components/loading/hook.d.ts +9 -0
- package/src/components/loading/index.d.ts +6 -0
- package/src/components/loading/loading-circle.vue.d.ts +2 -0
- package/src/components/loading/loading.vue.d.ts +30 -0
- package/src/components/loading/service.d.ts +11 -0
- package/src/components/loading/types.d.ts +24 -0
- package/src/components/loading/use-loading-component.d.ts +29 -0
- package/src/components/normal-pendant/index.d.ts +1 -0
- package/src/components/normal-pendant/normal-pendant.vue.d.ts +1 -8
- package/src/components/normal-pendant/use-normal-pendant.d.ts +36 -0
- package/src/components/popup/hooks/popup-props.d.ts +129 -37
- package/src/components/popup/hooks/use-popup-back.d.ts +1 -1
- package/src/components/popup/hooks/use-popup-config.d.ts +3 -0
- package/src/components/popup/hooks/use-popup-height.d.ts +1 -1
- package/src/components/popup/hooks/use-popup-scroll.d.ts +1 -0
- package/src/components/popup/hooks/use-popup-visible.d.ts +1 -0
- package/src/components/popup/popup.vue.d.ts +20 -15
- package/src/components/resize-box/index.d.ts +3 -0
- package/src/components/resize-box/resize-box.vue.d.ts +97 -0
- package/src/components/resize-box/type.d.ts +34 -0
- package/src/components/resize-box/use-resize-box.d.ts +105 -0
- package/src/components/reward-receive/entrance/reward-receive.vue.d.ts +4 -7
- package/src/components/reward-receive/hooks/use-reward-receive.d.ts +8 -3
- package/src/components/reward-receive/index.d.ts +1 -0
- package/src/components/switch/index.d.ts +2 -0
- package/src/components/switch/switch.vue.d.ts +51 -0
- package/src/components/switch/use-switch.d.ts +66 -0
- package/src/hooks/business/use-config-provider/index.d.ts +18 -5
- package/src/hooks/business/use-request/index.d.ts +56 -0
- package/src/hooks/business/use-resize-oss-image/index.d.ts +5 -0
- package/src/hooks/business/use-skin-color/index.d.ts +44 -0
- package/src/hooks/components/use-action-sheet/types.d.ts +27 -5
- package/src/hooks/components/use-image-preview/index.d.ts +12 -0
- package/src/hooks/components/use-message-box/_component/message-box-element.vue.d.ts +46 -11
- package/src/hooks/components/use-message-box/_component/use-message-box-element.d.ts +135 -3
- package/src/hooks/components/use-message-box/index.d.ts +3 -0
- package/src/hooks/components/use-message-box/types.d.ts +50 -8
- package/src/hooks/components/use-popper/_popper-type.d.ts +8 -4
- package/src/hooks/components/use-popper/index.d.ts +2 -2
- package/src/hooks/components/use-toast/_component/toast-element.vue.d.ts +32 -5
- package/src/hooks/components/use-toast/_component/use-toast-element.d.ts +37 -6
- package/src/hooks/components/use-toast/hook.d.ts +11 -0
- package/src/hooks/components/use-toast/index.d.ts +3 -10
- package/src/hooks/components/use-toast/types.d.ts +8 -2
- package/src/hooks/exports.d.ts +10 -1
- package/src/hooks/interactive/use-hover/index.d.ts +8 -0
- package/src/hooks/interactive/use-outside/index.d.ts +24 -0
- package/src/hooks/interactive/use-screen-orientation/index.d.ts +2 -2
- package/src/hooks/pagination/use-scroll-pagintaion/index.d.ts +1 -0
- package/src/hooks/platform/weixin/load-wx-sdk.d.ts +9 -0
- package/src/hooks/platform/weixin/use-weixin-mini-program.d.ts +6 -0
- package/src/hooks/platform/weixin/use-weixin-sdk.d.ts +14 -0
- package/src/hooks/plugin/use-resize-observer/index.d.ts +1 -1
- package/src/hooks/tools/use-browser/index.d.ts +8 -0
- package/src/hooks/tools/use-download/index.d.ts +6 -0
- package/src/hooks/tools/use-event-listener/index.d.ts +1 -1
- package/src/hooks/tools/use-set-interval/index.d.ts +1 -0
- package/src/hooks/tools/use-set-timeout/index.d.ts +1 -0
- package/src/hooks/tools/use-simple-visible/index.d.ts +28 -7
- package/src/hooks/vue/use-storage-ref/index.d.ts +3 -0
- package/src/hooks/vue/use-vue/index.d.ts +15 -0
- package/src/lang/common/en.json.d.ts +5 -1
- package/src/lang/common/ja.json.d.ts +5 -1
- package/src/lang/common/ko.json.d.ts +5 -1
- package/src/lang/common/ru.json.d.ts +5 -1
- package/src/lang/common/zh-CN.json.d.ts +5 -1
- package/src/lang/common/zh-TW.json.d.ts +5 -1
- package/src/lang/internal/index.d.ts +4 -0
- package/src/plugins/polyv-ui/mobile-import.d.ts +1 -0
- package/src/vue-utils/emit-utils.d.ts +3 -1
- package/src/vue-utils/props-utils.d.ts +1 -3
- package/styles/animation.scss +0 -9
- package/styles/mixins.scss +8 -6
- package/styles/skin-color.scss +64 -0
- package/src/components/form/form-area-picker/index.d.ts +0 -2
- package/src/components/form/form-checkbox/index.d.ts +0 -4
- package/src/components/form/form-input/index.d.ts +0 -2
- package/src/components/form/form-protocol/index.d.ts +0 -2
- package/src/components/form/form-radio/index.d.ts +0 -3
- package/src/components/normal-button/index.d.ts +0 -3
- package/src/components/normal-button/type.d.ts +0 -28
- package/src/hooks/interactive/use-click-outside/index.d.ts +0 -14
- package/src/components/form/{form-checkbox/form-checkbox-group.vue.d.ts → checkbox/checkbox-group.vue.d.ts} +0 -0
- package/src/components/form/{form-checkbox/form-checkbox.vue.d.ts → checkbox/checkbox.vue.d.ts} +4 -4
- /package/src/components/form/{form-checkbox → checkbox}/type.d.ts +0 -0
- /package/src/components/form/{form-protocol/form-protocol.vue.d.ts → protocol/protocol.vue.d.ts} +0 -0
- /package/src/components/form/{form-radio/form-radio-group.vue.d.ts → radio/radio-group.vue.d.ts} +0 -0
- /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
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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;
|
|
@@ -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
|
|
|
@@ -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>;
|
|
@@ -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> =
|
|
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:
|
|
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
|
};
|
package/styles/animation.scss
CHANGED
package/styles/mixins.scss
CHANGED
|
@@ -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-
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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,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
|
-
};
|
|
File without changes
|
package/src/components/form/{form-checkbox/form-checkbox.vue.d.ts → checkbox/checkbox.vue.d.ts}
RENAMED
|
@@ -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
|
-
|
|
11
|
+
checked: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
12
12
|
default: boolean;
|
|
13
13
|
};
|
|
14
|
-
|
|
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
|
-
|
|
34
|
+
checked: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
35
35
|
default: boolean;
|
|
36
36
|
};
|
|
37
|
-
|
|
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>;
|
|
File without changes
|
/package/src/components/form/{form-protocol/form-protocol.vue.d.ts → protocol/protocol.vue.d.ts}
RENAMED
|
File without changes
|
/package/src/components/form/{form-radio/form-radio-group.vue.d.ts → radio/radio-group.vue.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|