@gct-paas/v-ben 0.1.4-dev.10 → 0.1.4-dev.12

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 (59) hide show
  1. package/dist/index.esm.min.js +685 -0
  2. package/dist/index.min.css +2 -0
  3. package/es/_virtual/_plugin-vue_export-helper.mjs +8 -0
  4. package/es/components/index.d.ts +3 -0
  5. package/es/components/index.mjs +7 -0
  6. package/es/components/v-ben-button/index.d.ts +133 -0
  7. package/es/components/v-ben-button/index.mjs +8 -0
  8. package/es/components/v-ben-button/src/BasicButton.vue.d.ts +75 -0
  9. package/es/components/v-ben-button/src/BasicButton.vue.mjs +5 -0
  10. package/es/components/v-ben-button/src/BasicButton.vue_vue_type_script_setup_true_lang.mjs +37 -0
  11. package/es/components/v-ben-button/src/PopConfirmButton.vue.d.ts +24 -0
  12. package/es/components/v-ben-button/src/PopConfirmButton.vue.mjs +5 -0
  13. package/es/components/v-ben-button/src/PopConfirmButton.vue_vue_type_script_lang.mjs +36 -0
  14. package/es/components/v-ben-button/src/custom-button.vue.d.ts +27 -0
  15. package/es/components/v-ben-button/src/custom-button.vue.mjs +7 -0
  16. package/es/components/v-ben-button/src/custom-button.vue_vue_type_script_setup_true_name_custom-button_lang.mjs +22 -0
  17. package/es/components/v-ben-button/src/custom-button.vue_vue_type_style_index_0_scoped_305f4090_lang.css +64 -0
  18. package/es/components/v-ben-button/src/props.d.ts +38 -0
  19. package/es/components/v-ben-button/src/props.mjs +29 -0
  20. package/es/components/v-ben-dropdown/index.d.ts +85 -0
  21. package/es/components/v-ben-dropdown/index.mjs +5 -0
  22. package/es/components/v-ben-dropdown/src/Dropdown.vue.d.ts +66 -0
  23. package/es/components/v-ben-dropdown/src/Dropdown.vue.mjs +5 -0
  24. package/es/components/v-ben-dropdown/src/Dropdown.vue_vue_type_script_setup_true_lang.mjs +87 -0
  25. package/es/components/v-ben-dropdown/src/typing.d.ts +10 -0
  26. package/es/components/v-ben-table/index.d.ts +3 -0
  27. package/es/components/v-ben-table/index.mjs +3 -0
  28. package/es/components/v-ben-table/src/BasicTable.vue.d.ts +410 -0
  29. package/es/components/v-ben-table/src/BasicTable.vue.mjs +37 -0
  30. package/es/components/v-ben-table/src/BasicTable.vue_vue_type_script_lang.mjs +41 -0
  31. package/es/components/v-ben-table/src/components/HeaderCell.vue.d.ts +20 -0
  32. package/es/components/v-ben-table/src/components/HeaderCell.vue.mjs +10 -0
  33. package/es/components/v-ben-table/src/components/HeaderCell.vue_vue_type_script_lang.mjs +15 -0
  34. package/es/components/v-ben-table/src/components/TableAction.vue.d.ts +61 -0
  35. package/es/components/v-ben-table/src/components/TableAction.vue.mjs +6 -0
  36. package/es/components/v-ben-table/src/components/TableAction.vue_vue_type_script_setup_true_lang.mjs +145 -0
  37. package/es/components/v-ben-table/src/components/TableAction.vue_vue_type_style_index_0_lang.css +37 -0
  38. package/es/components/v-ben-table/src/components/TableActionAuto.vue.d.ts +61 -0
  39. package/es/components/v-ben-table/src/components/TableActionAuto.vue.mjs +6 -0
  40. package/es/components/v-ben-table/src/components/TableActionAuto.vue_vue_type_script_setup_true_lang.mjs +159 -0
  41. package/es/components/v-ben-table/src/components/TableActionAuto.vue_vue_type_style_index_0_lang.css +37 -0
  42. package/es/components/v-ben-table/src/props.d.ts +186 -0
  43. package/es/components/v-ben-table/src/props.mjs +157 -0
  44. package/es/components/v-ben-table/src/types/column.d.ts +164 -0
  45. package/es/components/v-ben-table/src/types/componentType.d.ts +1 -0
  46. package/es/components/v-ben-table/src/types/pagination.d.ts +93 -0
  47. package/es/components/v-ben-table/src/types/table.d.ts +356 -0
  48. package/es/components/v-ben-table/src/types/tableAction.d.ts +24 -0
  49. package/es/hooks/useDesign.d.ts +5 -0
  50. package/es/hooks/useDesign.mjs +10 -0
  51. package/es/index.d.ts +2 -0
  52. package/es/index.mjs +12 -4
  53. package/es/types/index.d.ts +18 -0
  54. package/es/utils/is.d.ts +23 -0
  55. package/es/utils/is.mjs +72 -0
  56. package/package.json +9 -6
  57. package/dist/index.esm.min.mjs +0 -5
  58. package/dist/index.min.cjs +0 -1
  59. package/dist/index.system.min.js +0 -1
@@ -0,0 +1,133 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { buttonProps } from './src/props';
3
+ import { default as CustomButton } from './src/custom-button.vue';
4
+ export declare const Button: {
5
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<{
6
+ color: {
7
+ type: import('vue').PropType<string>;
8
+ validator: (v: string) => boolean;
9
+ default: string;
10
+ };
11
+ loading: {
12
+ type: BooleanConstructor;
13
+ };
14
+ disabled: {
15
+ type: BooleanConstructor;
16
+ };
17
+ preIcon: {
18
+ type: StringConstructor;
19
+ };
20
+ postIcon: {
21
+ type: StringConstructor;
22
+ };
23
+ iconSize: {
24
+ type: NumberConstructor;
25
+ default: number;
26
+ };
27
+ onClick: {
28
+ type: import('vue').PropType<Fn>;
29
+ default: null;
30
+ };
31
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
32
+ disabled: boolean;
33
+ onClick: Fn<any, any>;
34
+ loading: boolean;
35
+ color: string;
36
+ iconSize: number;
37
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
38
+ P: {};
39
+ B: {};
40
+ D: {};
41
+ C: {};
42
+ M: {};
43
+ Defaults: {};
44
+ }, Readonly<ExtractPropTypes<{
45
+ color: {
46
+ type: import('vue').PropType<string>;
47
+ validator: (v: string) => boolean;
48
+ default: string;
49
+ };
50
+ loading: {
51
+ type: BooleanConstructor;
52
+ };
53
+ disabled: {
54
+ type: BooleanConstructor;
55
+ };
56
+ preIcon: {
57
+ type: StringConstructor;
58
+ };
59
+ postIcon: {
60
+ type: StringConstructor;
61
+ };
62
+ iconSize: {
63
+ type: NumberConstructor;
64
+ default: number;
65
+ };
66
+ onClick: {
67
+ type: import('vue').PropType<Fn>;
68
+ default: null;
69
+ };
70
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
71
+ disabled: boolean;
72
+ onClick: Fn<any, any>;
73
+ loading: boolean;
74
+ color: string;
75
+ iconSize: number;
76
+ }>;
77
+ __isFragment?: never;
78
+ __isTeleport?: never;
79
+ __isSuspense?: never;
80
+ } & import('vue').ComponentOptionsBase<Readonly<ExtractPropTypes<{
81
+ color: {
82
+ type: import('vue').PropType<string>;
83
+ validator: (v: string) => boolean;
84
+ default: string;
85
+ };
86
+ loading: {
87
+ type: BooleanConstructor;
88
+ };
89
+ disabled: {
90
+ type: BooleanConstructor;
91
+ };
92
+ preIcon: {
93
+ type: StringConstructor;
94
+ };
95
+ postIcon: {
96
+ type: StringConstructor;
97
+ };
98
+ iconSize: {
99
+ type: NumberConstructor;
100
+ default: number;
101
+ };
102
+ onClick: {
103
+ type: import('vue').PropType<Fn>;
104
+ default: null;
105
+ };
106
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
107
+ disabled: boolean;
108
+ onClick: Fn<any, any>;
109
+ loading: boolean;
110
+ color: string;
111
+ iconSize: number;
112
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
113
+ $slots: {
114
+ default?(_: any): any;
115
+ };
116
+ });
117
+ export declare const PopConfirmButton: import('vue').DefineComponent<ExtractPropTypes<{
118
+ enable: {
119
+ type: BooleanConstructor;
120
+ default: boolean;
121
+ };
122
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
123
+ [key: string]: any;
124
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
125
+ enable: {
126
+ type: BooleanConstructor;
127
+ default: boolean;
128
+ };
129
+ }>> & Readonly<{}>, {
130
+ enable: boolean;
131
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
132
+ export { CustomButton };
133
+ export declare type ButtonProps = Partial<ExtractPropTypes<typeof buttonProps>>;
@@ -0,0 +1,8 @@
1
+ import BasicButton_default from "./src/BasicButton.vue.mjs";
2
+ import PopConfirmButton_default from "./src/PopConfirmButton.vue.mjs";
3
+ import "./src/custom-button.vue.mjs";
4
+ //#region src/components/v-ben-button/index.ts
5
+ var Button = BasicButton_default;
6
+ var PopConfirmButton = PopConfirmButton_default;
7
+ //#endregion
8
+ export { Button, PopConfirmButton };
@@ -0,0 +1,75 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: any): any;
5
+ };
6
+ refs: {};
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
+ color: {
12
+ type: import('vue').PropType<string>;
13
+ validator: (v: string) => boolean;
14
+ default: string;
15
+ };
16
+ loading: {
17
+ type: BooleanConstructor;
18
+ };
19
+ disabled: {
20
+ type: BooleanConstructor;
21
+ };
22
+ preIcon: {
23
+ type: StringConstructor;
24
+ };
25
+ postIcon: {
26
+ type: StringConstructor;
27
+ };
28
+ iconSize: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ onClick: {
33
+ type: import('vue').PropType<Fn>;
34
+ default: null;
35
+ };
36
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
37
+ color: {
38
+ type: import('vue').PropType<string>;
39
+ validator: (v: string) => boolean;
40
+ default: string;
41
+ };
42
+ loading: {
43
+ type: BooleanConstructor;
44
+ };
45
+ disabled: {
46
+ type: BooleanConstructor;
47
+ };
48
+ preIcon: {
49
+ type: StringConstructor;
50
+ };
51
+ postIcon: {
52
+ type: StringConstructor;
53
+ };
54
+ iconSize: {
55
+ type: NumberConstructor;
56
+ default: number;
57
+ };
58
+ onClick: {
59
+ type: import('vue').PropType<Fn>;
60
+ default: null;
61
+ };
62
+ }>> & Readonly<{}>, {
63
+ disabled: boolean;
64
+ onClick: Fn<any, any>;
65
+ loading: boolean;
66
+ color: string;
67
+ iconSize: number;
68
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
69
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
70
+ export default _default;
71
+ type __VLS_WithTemplateSlots<T, S> = T & {
72
+ new (): {
73
+ $slots: S;
74
+ };
75
+ };
@@ -0,0 +1,5 @@
1
+ import BasicButton_vue_vue_type_script_setup_true_lang_default from "./BasicButton.vue_vue_type_script_setup_true_lang.mjs";
2
+ //#region src/components/v-ben-button/src/BasicButton.vue
3
+ var BasicButton_default = BasicButton_vue_vue_type_script_setup_true_lang_default;
4
+ //#endregion
5
+ export { BasicButton_default as default };
@@ -0,0 +1,37 @@
1
+ import { buttonProps } from "./props.mjs";
2
+ import { computed, createBlock, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, unref, useAttrs, withCtx } from "vue";
3
+ import { Button } from "ant-design-vue";
4
+ //#region src/components/v-ben-button/src/BasicButton.vue?vue&type=script&setup=true&lang.ts
5
+ var BasicButton_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
6
+ name: "AButton",
7
+ extends: Button,
8
+ inheritAttrs: false,
9
+ __name: "BasicButton",
10
+ props: buttonProps,
11
+ setup(__props) {
12
+ const props = __props;
13
+ const attrs = useAttrs();
14
+ const getButtonClass = computed(() => {
15
+ const { color, disabled } = props;
16
+ return [{
17
+ [`ant-btn-${color}`]: !!color,
18
+ [`is-disabled`]: disabled
19
+ }];
20
+ });
21
+ const getBindValue = computed(() => ({
22
+ ...unref(attrs),
23
+ ...props
24
+ }));
25
+ return (_ctx, _cache) => {
26
+ return openBlock(), createBlock(unref(Button), mergeProps(getBindValue.value, {
27
+ class: getButtonClass.value,
28
+ onClick: _ctx.onClick
29
+ }), {
30
+ default: withCtx((data) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(data || {})))]),
31
+ _: 3
32
+ }, 16, ["class", "onClick"]);
33
+ };
34
+ }
35
+ });
36
+ //#endregion
37
+ export { BasicButton_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,24 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ /**
3
+ * Whether to enable the drop-down menu
4
+ * @default: true
5
+ */
6
+ enable: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
11
+ [key: string]: any;
12
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
+ /**
14
+ * Whether to enable the drop-down menu
15
+ * @default: true
16
+ */
17
+ enable: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ }>> & Readonly<{}>, {
22
+ enable: boolean;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import PopConfirmButton_vue_vue_type_script_lang_default from "./PopConfirmButton.vue_vue_type_script_lang.mjs";
2
+ //#region src/components/v-ben-button/src/PopConfirmButton.vue
3
+ var PopConfirmButton_default = PopConfirmButton_vue_vue_type_script_lang_default;
4
+ //#endregion
5
+ export { PopConfirmButton_default as default };
@@ -0,0 +1,36 @@
1
+ import BasicButton_default from "./BasicButton.vue.mjs";
2
+ import { computed, defineComponent, h, unref, useAttrs } from "vue";
3
+ import { omit } from "lodash-es";
4
+ import { Popconfirm } from "ant-design-vue";
5
+ import { t } from "@gct-paas/core";
6
+ var PopConfirmButton_vue_vue_type_script_lang_default = defineComponent({
7
+ name: "PopButton",
8
+ inheritAttrs: false,
9
+ props: { enable: {
10
+ type: Boolean,
11
+ default: true
12
+ } },
13
+ setup(props, { slots }) {
14
+ const attrs = useAttrs();
15
+ const getBindValues = computed(() => {
16
+ return Object.assign({
17
+ okText: t("sys.okText"),
18
+ cancelText: t("sys.cancelText"),
19
+ overlayStyle: {}
20
+ }, {
21
+ ...props,
22
+ ...unref(attrs)
23
+ });
24
+ });
25
+ return () => {
26
+ const bindValues = omit(unref(getBindValues), "icon");
27
+ const btnBind = omit(bindValues, "title");
28
+ if (btnBind.disabled) btnBind.color = "";
29
+ const Button = h(BasicButton_default, btnBind, slots);
30
+ if (!props.enable) return Button;
31
+ return h(Popconfirm, bindValues, { default: () => Button });
32
+ };
33
+ }
34
+ });
35
+ //#endregion
36
+ export { PopConfirmButton_vue_vue_type_script_lang_default as default };
@@ -0,0 +1,27 @@
1
+ interface Props {
2
+ title?: string;
3
+ }
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ 'left-icon'?(_: {}): any;
8
+ 'right-icon'?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLDivElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ "btn-left-click": (...args: any[]) => void;
16
+ "btn-right-click": (...args: any[]) => void;
17
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
18
+ "onBtn-left-click"?: ((...args: any[]) => any) | undefined;
19
+ "onBtn-right-click"?: ((...args: any[]) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,7 @@
1
+ import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
2
+ import custom_button_vue_vue_type_script_setup_true_name_custom_button_lang_default from "./custom-button.vue_vue_type_script_setup_true_name_custom-button_lang.mjs";
3
+ import './custom-button.vue_vue_type_style_index_0_scoped_305f4090_lang.css';/* empty css */
4
+ //#region src/components/v-ben-button/src/custom-button.vue
5
+ var custom_button_default = /* @__PURE__ */ _plugin_vue_export_helper_default(custom_button_vue_vue_type_script_setup_true_name_custom_button_lang_default, [["__scopeId", "data-v-305f4090"]]);
6
+ //#endregion
7
+ export { custom_button_default as default };
@@ -0,0 +1,22 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, openBlock, renderSlot, toDisplayString, withModifiers } from "vue";
2
+ //#region src/components/v-ben-button/src/custom-button.vue?vue&type=script&setup=true&name=custom-button&lang.ts
3
+ var _hoisted_1 = { class: "custom-btn-container" };
4
+ var _hoisted_2 = { class: "btn-left-title" };
5
+ var custom_button_vue_vue_type_script_setup_true_name_custom_button_lang_default = /* @__PURE__ */ defineComponent({
6
+ __name: "custom-button",
7
+ props: { title: {} },
8
+ emits: ["btn-left-click", "btn-right-click"],
9
+ setup(__props) {
10
+ return (_ctx, _cache) => {
11
+ return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", {
12
+ class: "btn-left",
13
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.$emit("btn-left-click"), ["stop"]))
14
+ }, [renderSlot(_ctx.$slots, "left-icon", {}, void 0, true), createElementVNode("div", _hoisted_2, toDisplayString(__props.title), 1)]), createElementVNode("div", {
15
+ class: "btn-right",
16
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$emit("btn-right-click"), ["stop"]))
17
+ }, [renderSlot(_ctx.$slots, "right-icon", {}, void 0, true)])]);
18
+ };
19
+ }
20
+ });
21
+ //#endregion
22
+ export { custom_button_vue_vue_type_script_setup_true_name_custom_button_lang_default as default };
@@ -0,0 +1,64 @@
1
+ .custom-btn-container[data-v-305f4090] {
2
+ display: inline-flex;
3
+ justify-content: center;
4
+ align-items: center;
5
+ line-height: 1.5715;
6
+ position: relative;
7
+ font-weight: 400;
8
+ white-space: nowrap;
9
+ text-align: center;
10
+ background-image: none;
11
+ border: 1px solid transparent;
12
+ cursor: pointer;
13
+ transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
14
+ user-select: none;
15
+ touch-action: manipulation;
16
+ height: 32px;
17
+ font-size: 14px;
18
+ border-radius: 4px;
19
+ color: #fff;
20
+ border-color: var(--ant-primary-color);
21
+ background: var(--ant-primary-color);
22
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
23
+ box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
24
+ vertical-align: top;
25
+ }
26
+ .custom-btn-container .btn-left[data-v-305f4090] {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ height: 32px;
31
+ padding: 4px 12px;
32
+ margin-right: 1px;
33
+ }
34
+ .custom-btn-container .btn-left-title[data-v-305f4090] {
35
+ margin-left: 4px;
36
+ line-height: 22px;
37
+ }
38
+ .custom-btn-container .btn-left[data-v-305f4090]:hover {
39
+ color: #fff;
40
+ border-color: var(--ant-primary-color-hover);
41
+ background: var(--ant-primary-color-hover);
42
+ }
43
+ .custom-btn-container .btn-right[data-v-305f4090] {
44
+ display: flex;
45
+ align-items: center;
46
+ justify-content: center;
47
+ position: relative;
48
+ height: 32px;
49
+ padding: 4px 12px;
50
+ margin-left: 2px;
51
+ }
52
+ .custom-btn-container .btn-right[data-v-305f4090]::before {
53
+ content: '';
54
+ position: absolute;
55
+ width: 1px;
56
+ height: 14px;
57
+ background-color: #fff;
58
+ left: -2px;
59
+ }
60
+ .custom-btn-container .btn-right[data-v-305f4090]:hover {
61
+ color: #fff;
62
+ border-color: var(--ant-primary-color-hover);
63
+ background: var(--ant-primary-color-hover);
64
+ }
@@ -0,0 +1,38 @@
1
+ import { PropType } from 'vue';
2
+ export declare const buttonProps: {
3
+ color: {
4
+ type: PropType<string>;
5
+ validator: (v: string) => boolean;
6
+ default: string;
7
+ };
8
+ loading: {
9
+ type: BooleanConstructor;
10
+ };
11
+ disabled: {
12
+ type: BooleanConstructor;
13
+ };
14
+ /**
15
+ * Text before icon.
16
+ */
17
+ preIcon: {
18
+ type: StringConstructor;
19
+ };
20
+ /**
21
+ * Text after icon.
22
+ */
23
+ postIcon: {
24
+ type: StringConstructor;
25
+ };
26
+ /**
27
+ * preIcon and postIcon icon size.
28
+ * @default: 14
29
+ */
30
+ iconSize: {
31
+ type: NumberConstructor;
32
+ default: number;
33
+ };
34
+ onClick: {
35
+ type: PropType<Fn>;
36
+ default: null;
37
+ };
38
+ };
@@ -0,0 +1,29 @@
1
+ //#region src/components/v-ben-button/src/props.ts
2
+ var validColors = [
3
+ "primary",
4
+ "error",
5
+ "warning",
6
+ "success",
7
+ ""
8
+ ];
9
+ var buttonProps = {
10
+ color: {
11
+ type: String,
12
+ validator: (v) => validColors.includes(v),
13
+ default: ""
14
+ },
15
+ loading: { type: Boolean },
16
+ disabled: { type: Boolean },
17
+ preIcon: { type: String },
18
+ postIcon: { type: String },
19
+ iconSize: {
20
+ type: Number,
21
+ default: 14
22
+ },
23
+ onClick: {
24
+ type: Function,
25
+ default: null
26
+ }
27
+ };
28
+ //#endregion
29
+ export { buttonProps };
@@ -0,0 +1,85 @@
1
+ export * from './src/typing';
2
+ export declare const Dropdown: {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
4
+ popconfirm: BooleanConstructor;
5
+ trigger: {
6
+ type: import('vue').PropType<("contextmenu" | "click" | "hover")[]>;
7
+ default: () => string[];
8
+ };
9
+ dropMenuList: {
10
+ type: import('vue').PropType<(import('.').DropMenu & IObject)[]>;
11
+ default: () => never[];
12
+ };
13
+ selectedKeys: {
14
+ type: import('vue').PropType<string[]>;
15
+ default: () => never[];
16
+ };
17
+ }>> & Readonly<{
18
+ onMenuEvent?: ((...args: any[]) => any) | undefined;
19
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ menuEvent: (...args: any[]) => void;
21
+ }, import('vue').PublicProps, {
22
+ trigger: ("hover" | "click" | "contextmenu")[];
23
+ popconfirm: boolean;
24
+ dropMenuList: (import('.').DropMenu & IObject)[];
25
+ selectedKeys: string[];
26
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
27
+ P: {};
28
+ B: {};
29
+ D: {};
30
+ C: {};
31
+ M: {};
32
+ Defaults: {};
33
+ }, Readonly<import('vue').ExtractPropTypes<{
34
+ popconfirm: BooleanConstructor;
35
+ trigger: {
36
+ type: import('vue').PropType<("contextmenu" | "click" | "hover")[]>;
37
+ default: () => string[];
38
+ };
39
+ dropMenuList: {
40
+ type: import('vue').PropType<(import('.').DropMenu & IObject)[]>;
41
+ default: () => never[];
42
+ };
43
+ selectedKeys: {
44
+ type: import('vue').PropType<string[]>;
45
+ default: () => never[];
46
+ };
47
+ }>> & Readonly<{
48
+ onMenuEvent?: ((...args: any[]) => any) | undefined;
49
+ }>, {}, {}, {}, {}, {
50
+ trigger: ("hover" | "click" | "contextmenu")[];
51
+ popconfirm: boolean;
52
+ dropMenuList: (import('.').DropMenu & IObject)[];
53
+ selectedKeys: string[];
54
+ }>;
55
+ __isFragment?: never;
56
+ __isTeleport?: never;
57
+ __isSuspense?: never;
58
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
59
+ popconfirm: BooleanConstructor;
60
+ trigger: {
61
+ type: import('vue').PropType<("contextmenu" | "click" | "hover")[]>;
62
+ default: () => string[];
63
+ };
64
+ dropMenuList: {
65
+ type: import('vue').PropType<(import('.').DropMenu & IObject)[]>;
66
+ default: () => never[];
67
+ };
68
+ selectedKeys: {
69
+ type: import('vue').PropType<string[]>;
70
+ default: () => never[];
71
+ };
72
+ }>> & Readonly<{
73
+ onMenuEvent?: ((...args: any[]) => any) | undefined;
74
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
75
+ menuEvent: (...args: any[]) => void;
76
+ }, string, {
77
+ trigger: ("hover" | "click" | "contextmenu")[];
78
+ popconfirm: boolean;
79
+ dropMenuList: (import('.').DropMenu & IObject)[];
80
+ selectedKeys: string[];
81
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
82
+ $slots: {
83
+ default?(_: {}): any;
84
+ };
85
+ });
@@ -0,0 +1,5 @@
1
+ import Dropdown_default from "./src/Dropdown.vue.mjs";
2
+ //#region src/components/v-ben-dropdown/index.ts
3
+ var Dropdown = Dropdown_default;
4
+ //#endregion
5
+ export { Dropdown };