@oinone/kunlun-vue-ui-antd 6.2.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.
- package/README.md +1 -0
- package/dist/oinone-kunlun-vue-ui-antd.css +1 -0
- package/dist/oinone-kunlun-vue-ui-antd.esm.js +16 -0
- package/dist/oinone-kunlun-vue-ui-antd.scss +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/src/component/index.d.ts +31 -0
- package/dist/types/src/component/oio-block/index.d.ts +3 -0
- package/dist/types/src/component/oio-block/oio-block.vue.d.ts +39 -0
- package/dist/types/src/component/oio-block/oio-col.vue.d.ts +86 -0
- package/dist/types/src/component/oio-block/oio-row.vue.d.ts +34 -0
- package/dist/types/src/component/oio-breadcrumb/index.d.ts +2 -0
- package/dist/types/src/component/oio-breadcrumb/oio-breadcrumb-item.vue.d.ts +14 -0
- package/dist/types/src/component/oio-breadcrumb/oio-breadcrumb.vue.d.ts +14 -0
- package/dist/types/src/component/oio-button/index.d.ts +1 -0
- package/dist/types/src/component/oio-button/oio-button.vue.d.ts +136 -0
- package/dist/types/src/component/oio-cascader/index.d.ts +1 -0
- package/dist/types/src/component/oio-cascader/oio-cascader.vue.d.ts +236 -0
- package/dist/types/src/component/oio-checkbox/index.d.ts +1 -0
- package/dist/types/src/component/oio-checkbox/oio-checkbox.vue.d.ts +56 -0
- package/dist/types/src/component/oio-collapse/index.d.ts +2 -0
- package/dist/types/src/component/oio-collapse/oio-collapse-panel.vue.d.ts +86 -0
- package/dist/types/src/component/oio-collapse/oio-collapse.vue.d.ts +103 -0
- package/dist/types/src/component/oio-date-time-picker/index.d.ts +5 -0
- package/dist/types/src/component/oio-date-time-picker/oio-date-picker.vue.d.ts +182 -0
- package/dist/types/src/component/oio-date-time-picker/oio-date-time-picker.vue.d.ts +240 -0
- package/dist/types/src/component/oio-date-time-picker/oio-time-picker.vue.d.ts +176 -0
- package/dist/types/src/component/oio-date-time-picker/oio-year-picker.vue.d.ts +139 -0
- package/dist/types/src/component/oio-date-time-picker/use-date-time-picker-props.d.ts +15 -0
- package/dist/types/src/component/oio-date-time-range-picker/index.d.ts +5 -0
- package/dist/types/src/component/oio-date-time-range-picker/oio-date-range-picker.vue.d.ts +139 -0
- package/dist/types/src/component/oio-date-time-range-picker/oio-date-time-range-picker.vue.d.ts +195 -0
- package/dist/types/src/component/oio-date-time-range-picker/oio-time-range-picker.vue.d.ts +139 -0
- package/dist/types/src/component/oio-date-time-range-picker/oio-year-range-picker.vue.d.ts +124 -0
- package/dist/types/src/component/oio-date-time-range-picker/use-date-time-range-picker-props.d.ts +12 -0
- package/dist/types/src/component/oio-divider/index.d.ts +2 -0
- package/dist/types/src/component/oio-divider/oio-divider.vue.d.ts +38 -0
- package/dist/types/src/component/oio-drawer/index.d.ts +1 -0
- package/dist/types/src/component/oio-drawer/oio-drawer.vue.d.ts +227 -0
- package/dist/types/src/component/oio-dropdown/index.d.ts +1 -0
- package/dist/types/src/component/oio-dropdown/oio-dropdown.vue.d.ts +78 -0
- package/dist/types/src/component/oio-empty/index.d.ts +1 -0
- package/dist/types/src/component/oio-empty/oio-empty-data.vue.d.ts +42 -0
- package/dist/types/src/component/oio-form/index.d.ts +2 -0
- package/dist/types/src/component/oio-form/oio-form-item.vue.d.ts +126 -0
- package/dist/types/src/component/oio-form/oio-form.vue.d.ts +100 -0
- package/dist/types/src/component/oio-gallery/index.d.ts +1 -0
- package/dist/types/src/component/oio-gallery/oio-gallery.vue.d.ts +98 -0
- package/dist/types/src/component/oio-group/index.d.ts +2 -0
- package/dist/types/src/component/oio-group/oio-group-help.vue.d.ts +65 -0
- package/dist/types/src/component/oio-group/oio-group.vue.d.ts +113 -0
- package/dist/types/src/component/oio-inner-popup/index.d.ts +1 -0
- package/dist/types/src/component/oio-inner-popup/oio-inner-popup.vue.d.ts +195 -0
- package/dist/types/src/component/oio-input/index.d.ts +5 -0
- package/dist/types/src/component/oio-input/oio-input-group.vue.d.ts +16 -0
- package/dist/types/src/component/oio-input/oio-input-number.vue.d.ts +167 -0
- package/dist/types/src/component/oio-input/oio-input-password.vue.d.ts +111 -0
- package/dist/types/src/component/oio-input/oio-input-search.vue.d.ts +106 -0
- package/dist/types/src/component/oio-input/oio-input.vue.d.ts +107 -0
- package/dist/types/src/component/oio-modal/index.d.ts +1 -0
- package/dist/types/src/component/oio-modal/oio-modal.vue.d.ts +230 -0
- package/dist/types/src/component/oio-notification/index.d.ts +116 -0
- package/dist/types/src/component/oio-pagination/index.d.ts +1 -0
- package/dist/types/src/component/oio-pagination/oio-pagination.vue.d.ts +107 -0
- package/dist/types/src/component/oio-popconfirm/index.d.ts +1 -0
- package/dist/types/src/component/oio-popconfirm/oio-popconfirm.vue.d.ts +119 -0
- package/dist/types/src/component/oio-select/index.d.ts +1 -0
- package/dist/types/src/component/oio-select/oio-select.vue.d.ts +153 -0
- package/dist/types/src/component/oio-slider/index.d.ts +1 -0
- package/dist/types/src/component/oio-slider/oio-slider.vue.d.ts +155 -0
- package/dist/types/src/component/oio-spin/index.d.ts +1 -0
- package/dist/types/src/component/oio-spin/oio-spin.vue.d.ts +54 -0
- package/dist/types/src/component/oio-switch/index.d.ts +1 -0
- package/dist/types/src/component/oio-switch/oio-switch.vue.d.ts +92 -0
- package/dist/types/src/component/oio-tabs/index.d.ts +3 -0
- package/dist/types/src/component/oio-tabs/oio-tab.vue.d.ts +67 -0
- package/dist/types/src/component/oio-tabs/oio-tabs.vue.d.ts +93 -0
- package/dist/types/src/component/oio-tabs/use-tab-bar.d.ts +5 -0
- package/dist/types/src/component/oio-textarea/index.d.ts +1 -0
- package/dist/types/src/component/oio-textarea/oio-textarea.vue.d.ts +100 -0
- package/dist/types/src/component/oio-tooltip/index.d.ts +2 -0
- package/dist/types/src/component/oio-tooltip/oio-tooltip-help.vue.d.ts +12 -0
- package/dist/types/src/component/oio-tooltip/oio-tooltip.vue.d.ts +76 -0
- package/dist/types/src/component/oio-tree/index.d.ts +1 -0
- package/dist/types/src/component/oio-tree/oio-tree.vue.d.ts +171 -0
- package/dist/types/src/component/oio-tree-select/index.d.ts +1 -0
- package/dist/types/src/component/oio-tree-select/oio-tree-select.vue.d.ts +226 -0
- package/dist/types/src/component/oio-upload/index.d.ts +1 -0
- package/dist/types/src/component/oio-upload/oio-upload.vue.d.ts +187 -0
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/theme/index.d.ts +1 -0
- package/dist/types/src/vc-component/index.d.ts +1 -0
- package/dist/types/src/vc-component/use-max-tag-placeholder.d.ts +7 -0
- package/index.ts +3 -0
- package/package.json +36 -0
- package/rollup.config.js +15 -0
- package/src/component/index.ts +32 -0
- package/src/component/oio-block/index.ts +3 -0
- package/src/component/oio-block/oio-block.vue +77 -0
- package/src/component/oio-block/oio-col.vue +32 -0
- package/src/component/oio-block/oio-row.vue +42 -0
- package/src/component/oio-block/style/a-col.scss +18 -0
- package/src/component/oio-block/style/index.scss +42 -0
- package/src/component/oio-block/style/parameters.scss +13 -0
- package/src/component/oio-breadcrumb/index.ts +2 -0
- package/src/component/oio-breadcrumb/oio-breadcrumb-item.vue +30 -0
- package/src/component/oio-breadcrumb/oio-breadcrumb.vue +30 -0
- package/src/component/oio-button/index.ts +1 -0
- package/src/component/oio-button/oio-button.vue +154 -0
- package/src/component/oio-button/style/a-button.scss +210 -0
- package/src/component/oio-button/style/index.scss +21 -0
- package/src/component/oio-button/style/parameters.scss +5 -0
- package/src/component/oio-cascader/index.ts +1 -0
- package/src/component/oio-cascader/oio-cascader.vue +171 -0
- package/src/component/oio-cascader/style/index.scss +59 -0
- package/src/component/oio-cascader/style/parameters.scss +5 -0
- package/src/component/oio-checkbox/index.ts +1 -0
- package/src/component/oio-checkbox/oio-checkbox.vue +69 -0
- package/src/component/oio-checkbox/style/index.scss +8 -0
- package/src/component/oio-checkbox/style/parameters.scss +5 -0
- package/src/component/oio-collapse/index.ts +2 -0
- package/src/component/oio-collapse/oio-collapse-panel.vue +92 -0
- package/src/component/oio-collapse/oio-collapse.vue +138 -0
- package/src/component/oio-collapse/style/index.scss +59 -0
- package/src/component/oio-collapse/style/parameters.scss +5 -0
- package/src/component/oio-date-time-picker/index.ts +5 -0
- package/src/component/oio-date-time-picker/oio-date-picker.vue +34 -0
- package/src/component/oio-date-time-picker/oio-date-time-picker.vue +91 -0
- package/src/component/oio-date-time-picker/oio-time-picker.vue +34 -0
- package/src/component/oio-date-time-picker/oio-year-picker.vue +34 -0
- package/src/component/oio-date-time-picker/style/index.scss +348 -0
- package/src/component/oio-date-time-picker/style/mixin.scss +16 -0
- package/src/component/oio-date-time-picker/style/parameters.scss +5 -0
- package/src/component/oio-date-time-picker/use-date-time-picker-props.ts +151 -0
- package/src/component/oio-date-time-range-picker/index.ts +5 -0
- package/src/component/oio-date-time-range-picker/oio-date-range-picker.vue +29 -0
- package/src/component/oio-date-time-range-picker/oio-date-time-range-picker.vue +82 -0
- package/src/component/oio-date-time-range-picker/oio-time-range-picker.vue +29 -0
- package/src/component/oio-date-time-range-picker/oio-year-range-picker.vue +29 -0
- package/src/component/oio-date-time-range-picker/style/index.scss +227 -0
- package/src/component/oio-date-time-range-picker/style/parameters.scss +5 -0
- package/src/component/oio-date-time-range-picker/use-date-time-range-picker-props.ts +138 -0
- package/src/component/oio-divider/index.ts +3 -0
- package/src/component/oio-divider/oio-divider.vue +31 -0
- package/src/component/oio-divider/style/index.scss +7 -0
- package/src/component/oio-divider/style/parameters.scss +5 -0
- package/src/component/oio-drawer/index.ts +1 -0
- package/src/component/oio-drawer/oio-drawer.vue +120 -0
- package/src/component/oio-drawer/style/index.scss +93 -0
- package/src/component/oio-drawer/style/parameters.scss +5 -0
- package/src/component/oio-dropdown/index.ts +1 -0
- package/src/component/oio-dropdown/oio-dropdown.vue +81 -0
- package/src/component/oio-dropdown/style/index.scss +30 -0
- package/src/component/oio-dropdown/style/parameters.scss +5 -0
- package/src/component/oio-empty/index.ts +1 -0
- package/src/component/oio-empty/oio-empty-data.vue +47 -0
- package/src/component/oio-empty/style/index.scss +6 -0
- package/src/component/oio-form/index.ts +2 -0
- package/src/component/oio-form/oio-form-item.vue +81 -0
- package/src/component/oio-form/oio-form.vue +102 -0
- package/src/component/oio-form/style/animation.scss +17 -0
- package/src/component/oio-form/style/index.scss +135 -0
- package/src/component/oio-form/style/parameters.scss +9 -0
- package/src/component/oio-gallery/index.ts +1 -0
- package/src/component/oio-gallery/oio-gallery.vue +158 -0
- package/src/component/oio-group/index.ts +2 -0
- package/src/component/oio-group/oio-group-help.vue +28 -0
- package/src/component/oio-group/oio-group.vue +140 -0
- package/src/component/oio-group/style/index.scss +98 -0
- package/src/component/oio-group/style/parameters.scss +5 -0
- package/src/component/oio-inner-popup/index.ts +1 -0
- package/src/component/oio-inner-popup/oio-inner-popup.vue +230 -0
- package/src/component/oio-inner-popup/style/index.scss +147 -0
- package/src/component/oio-inner-popup/style/parameters.scss +5 -0
- package/src/component/oio-input/index.ts +5 -0
- package/src/component/oio-input/oio-input-group.vue +40 -0
- package/src/component/oio-input/oio-input-number.vue +374 -0
- package/src/component/oio-input/oio-input-password.vue +67 -0
- package/src/component/oio-input/oio-input-search.vue +107 -0
- package/src/component/oio-input/oio-input.vue +124 -0
- package/src/component/oio-input/style/a-input.scss +103 -0
- package/src/component/oio-input/style/index.scss +198 -0
- package/src/component/oio-input/style/mixin.scss +50 -0
- package/src/component/oio-input/style/oio-input-group.scss +31 -0
- package/src/component/oio-input/style/oio-input-number.scss +13 -0
- package/src/component/oio-input/style/oio-input-search.scss +94 -0
- package/src/component/oio-input/style/parameters.scss +21 -0
- package/src/component/oio-modal/index.ts +1 -0
- package/src/component/oio-modal/index.zh-CN.md +167 -0
- package/src/component/oio-modal/oio-modal.vue +184 -0
- package/src/component/oio-modal/style/index.scss +167 -0
- package/src/component/oio-modal/style/parameters.scss +5 -0
- package/src/component/oio-notification/index.ts +197 -0
- package/src/component/oio-notification/style/index.scss +67 -0
- package/src/component/oio-notification/style/parameters.scss +5 -0
- package/src/component/oio-pagination/index.ts +1 -0
- package/src/component/oio-pagination/oio-pagination.vue +105 -0
- package/src/component/oio-pagination/style/index.scss +181 -0
- package/src/component/oio-pagination/style/parameters.scss +5 -0
- package/src/component/oio-popconfirm/index.ts +1 -0
- package/src/component/oio-popconfirm/oio-popconfirm.vue +192 -0
- package/src/component/oio-popconfirm/style/index.scss +54 -0
- package/src/component/oio-popconfirm/style/parameters.scss +5 -0
- package/src/component/oio-popover/style/index.scss +16 -0
- package/src/component/oio-popover/style/parameters.scss +5 -0
- package/src/component/oio-radio/style/index.scss +24 -0
- package/src/component/oio-radio/style/parameters.scss +5 -0
- package/src/component/oio-select/index.ts +1 -0
- package/src/component/oio-select/oio-select.vue +104 -0
- package/src/component/oio-select/style/a-select.scss +102 -0
- package/src/component/oio-select/style/index.scss +129 -0
- package/src/component/oio-select/style/mixin.scss +18 -0
- package/src/component/oio-select/style/parameters.scss +5 -0
- package/src/component/oio-slider/index.ts +1 -0
- package/src/component/oio-slider/oio-slider.vue +81 -0
- package/src/component/oio-slider/style/index.scss +100 -0
- package/src/component/oio-slider/style/parameters.scss +5 -0
- package/src/component/oio-spin/index.ts +1 -0
- package/src/component/oio-spin/oio-spin.vue +87 -0
- package/src/component/oio-spin/style/index.scss +48 -0
- package/src/component/oio-spin/style/parameters.scss +5 -0
- package/src/component/oio-switch/index.ts +1 -0
- package/src/component/oio-switch/oio-switch.vue +42 -0
- package/src/component/oio-switch/style/index.scss +36 -0
- package/src/component/oio-switch/style/parameters.scss +5 -0
- package/src/component/oio-tabs/index.ts +3 -0
- package/src/component/oio-tabs/oio-tab.vue +99 -0
- package/src/component/oio-tabs/oio-tabs.vue +188 -0
- package/src/component/oio-tabs/style/index.scss +274 -0
- package/src/component/oio-tabs/style/parameters.scss +9 -0
- package/src/component/oio-tabs/use-tab-bar.ts +69 -0
- package/src/component/oio-textarea/index.ts +1 -0
- package/src/component/oio-textarea/oio-textarea.vue +76 -0
- package/src/component/oio-textarea/style/index.scss +108 -0
- package/src/component/oio-textarea/style/parameters.scss +5 -0
- package/src/component/oio-tooltip/index.ts +2 -0
- package/src/component/oio-tooltip/oio-tooltip-help.vue +40 -0
- package/src/component/oio-tooltip/oio-tooltip.vue +59 -0
- package/src/component/oio-tooltip/style/index.scss +8 -0
- package/src/component/oio-tooltip/style/parameters.scss +9 -0
- package/src/component/oio-tree/index.ts +1 -0
- package/src/component/oio-tree/oio-tree.vue +181 -0
- package/src/component/oio-tree/style/index.scss +51 -0
- package/src/component/oio-tree/style/parameters.scss +5 -0
- package/src/component/oio-tree-select/index.ts +1 -0
- package/src/component/oio-tree-select/oio-tree-select.vue +180 -0
- package/src/component/oio-tree-select/style/index.scss +92 -0
- package/src/component/oio-tree-select/style/parameters.scss +5 -0
- package/src/component/oio-upload/index.ts +1 -0
- package/src/component/oio-upload/oio-upload.vue +232 -0
- package/src/component/oio-upload/style/index.scss +66 -0
- package/src/component/oio-upload/style/parameters.scss +5 -0
- package/src/index.ts +3 -0
- package/src/shim-translate.d.ts +7 -0
- package/src/shim-vue.d.ts +6 -0
- package/src/style/global-parameters.scss +9 -0
- package/src/style/index.scss +31 -0
- package/src/style/mixin.scss +135 -0
- package/src/theme/index.ts +1 -0
- package/src/vc-component/index.ts +1 -0
- package/src/vc-component/use-max-tag-placeholder.ts +38 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { ReturnPromise, ReturnVoid } from '@oinone/kunlun-shared';
|
|
2
|
+
import { FileModel } from '@oinone/kunlun-vue-ui-common';
|
|
3
|
+
interface FileItem {
|
|
4
|
+
uid: string;
|
|
5
|
+
size: number;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("vue").DefineComponent<{
|
|
8
|
+
readonly: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
partSize: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
};
|
|
15
|
+
chunkUploadThreshold: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
};
|
|
18
|
+
parallel: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
};
|
|
21
|
+
accept: {
|
|
22
|
+
type: import("vue").PropType<string | string[]>;
|
|
23
|
+
};
|
|
24
|
+
uploadList: {
|
|
25
|
+
type: import("vue").PropType<FileModel[]>;
|
|
26
|
+
};
|
|
27
|
+
managed: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
manual: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
cdnKey: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
};
|
|
38
|
+
contentType: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
removeCallback: {
|
|
43
|
+
type: import("vue").PropType<(file: any) => ReturnPromise<boolean | ReturnVoid, boolean | ReturnVoid>>;
|
|
44
|
+
};
|
|
45
|
+
multiple: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
limit: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
default: number;
|
|
52
|
+
};
|
|
53
|
+
limitSize: {
|
|
54
|
+
type: NumberConstructor;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
57
|
+
listType: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
};
|
|
60
|
+
showUploadList: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
disabled: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
beforeUpload: {
|
|
69
|
+
type: FunctionConstructor;
|
|
70
|
+
};
|
|
71
|
+
progress: {
|
|
72
|
+
type: import("vue").PropType<Record<string, unknown>>;
|
|
73
|
+
};
|
|
74
|
+
onReject: {
|
|
75
|
+
type: FunctionConstructor;
|
|
76
|
+
};
|
|
77
|
+
onDrop: {
|
|
78
|
+
type: FunctionConstructor;
|
|
79
|
+
};
|
|
80
|
+
customRequest: {
|
|
81
|
+
type: FunctionConstructor;
|
|
82
|
+
};
|
|
83
|
+
}, {
|
|
84
|
+
uploadList: import("vue").Ref<{
|
|
85
|
+
uid: string;
|
|
86
|
+
id: string;
|
|
87
|
+
name: string;
|
|
88
|
+
url: string;
|
|
89
|
+
size?: number | undefined;
|
|
90
|
+
}[]>;
|
|
91
|
+
refreshKey: import("vue").Ref<number>;
|
|
92
|
+
realAccept: import("vue").ComputedRef<string>;
|
|
93
|
+
beforeUpload: (file: FileItem, fileList: FileItem[]) => boolean;
|
|
94
|
+
customRequest: Function;
|
|
95
|
+
remove: (file: any) => ReturnPromise<boolean | ReturnVoid>;
|
|
96
|
+
continuedUpload: import("vue").Ref<() => void>;
|
|
97
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "failure")[], "success" | "failure", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
98
|
+
readonly: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
partSize: {
|
|
103
|
+
type: NumberConstructor;
|
|
104
|
+
};
|
|
105
|
+
chunkUploadThreshold: {
|
|
106
|
+
type: NumberConstructor;
|
|
107
|
+
};
|
|
108
|
+
parallel: {
|
|
109
|
+
type: NumberConstructor;
|
|
110
|
+
};
|
|
111
|
+
accept: {
|
|
112
|
+
type: import("vue").PropType<string | string[]>;
|
|
113
|
+
};
|
|
114
|
+
uploadList: {
|
|
115
|
+
type: import("vue").PropType<FileModel[]>;
|
|
116
|
+
};
|
|
117
|
+
managed: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
manual: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
cdnKey: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
};
|
|
128
|
+
contentType: {
|
|
129
|
+
type: StringConstructor;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
removeCallback: {
|
|
133
|
+
type: import("vue").PropType<(file: any) => ReturnPromise<boolean | ReturnVoid, boolean | ReturnVoid>>;
|
|
134
|
+
};
|
|
135
|
+
multiple: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
limit: {
|
|
140
|
+
type: NumberConstructor;
|
|
141
|
+
default: number;
|
|
142
|
+
};
|
|
143
|
+
limitSize: {
|
|
144
|
+
type: NumberConstructor;
|
|
145
|
+
default: number;
|
|
146
|
+
};
|
|
147
|
+
listType: {
|
|
148
|
+
type: StringConstructor;
|
|
149
|
+
};
|
|
150
|
+
showUploadList: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: undefined;
|
|
153
|
+
};
|
|
154
|
+
disabled: {
|
|
155
|
+
type: BooleanConstructor;
|
|
156
|
+
default: boolean;
|
|
157
|
+
};
|
|
158
|
+
beforeUpload: {
|
|
159
|
+
type: FunctionConstructor;
|
|
160
|
+
};
|
|
161
|
+
progress: {
|
|
162
|
+
type: import("vue").PropType<Record<string, unknown>>;
|
|
163
|
+
};
|
|
164
|
+
onReject: {
|
|
165
|
+
type: FunctionConstructor;
|
|
166
|
+
};
|
|
167
|
+
onDrop: {
|
|
168
|
+
type: FunctionConstructor;
|
|
169
|
+
};
|
|
170
|
+
customRequest: {
|
|
171
|
+
type: FunctionConstructor;
|
|
172
|
+
};
|
|
173
|
+
}>> & {
|
|
174
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
175
|
+
onFailure?: ((...args: any[]) => any) | undefined;
|
|
176
|
+
}, {
|
|
177
|
+
showUploadList: boolean;
|
|
178
|
+
multiple: boolean;
|
|
179
|
+
disabled: boolean;
|
|
180
|
+
readonly: boolean;
|
|
181
|
+
managed: boolean;
|
|
182
|
+
manual: boolean;
|
|
183
|
+
contentType: string;
|
|
184
|
+
limit: number;
|
|
185
|
+
limitSize: number;
|
|
186
|
+
}>;
|
|
187
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_PREFIX = "oio";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-max-tag-placeholder';
|
package/index.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@oinone/kunlun-vue-ui-antd",
|
|
3
|
+
"version": "6.2.0",
|
|
4
|
+
"main": "index.ts",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"prebuild": "rimraf dist",
|
|
7
|
+
"build": "rollup -c && npm run build-css",
|
|
8
|
+
"build-css": "sass --style compressed --no-source-map ./dist/oinone-kunlun-vue-ui-antd.scss ./dist/oinone-kunlun-vue-ui-antd.css",
|
|
9
|
+
"dist": "npm run prepublishOnly",
|
|
10
|
+
"index": "npm run postpublish",
|
|
11
|
+
"x-prepublishOnly": "node ../../scripts/prepublish-only.js",
|
|
12
|
+
"x-postpublish": "node ../../scripts/postpublish.js",
|
|
13
|
+
"doc": "typedoc --out docs src/index.ts"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@oinone/kunlun-vue-ui-common": "6.2.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@oinone/kunlun-shared": "~6.2.0",
|
|
20
|
+
"@types/lodash": "4.14.182",
|
|
21
|
+
"@types/lodash-es": "4.17.6",
|
|
22
|
+
"ant-design-vue": "3.2.14",
|
|
23
|
+
"lodash": "4.17.21",
|
|
24
|
+
"lodash-es": "4.17.21",
|
|
25
|
+
"moment": "2.29.3",
|
|
26
|
+
"sass": "1.44.0",
|
|
27
|
+
"sass-loader": "10.1.1",
|
|
28
|
+
"vue": "3.2.40"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"ant-design-vue": ">=3.2.14",
|
|
32
|
+
"moment": ">=2.29.3",
|
|
33
|
+
"vue": ">=3.2.40"
|
|
34
|
+
},
|
|
35
|
+
"gitHead": "b65bbf1d649da1017810c5608473d5daa1a41f94"
|
|
36
|
+
}
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import pkg from './package.json';
|
|
2
|
+
import rollupConfig from '../../scripts/build.config.js';
|
|
3
|
+
|
|
4
|
+
export default rollupConfig(pkg.name, [
|
|
5
|
+
'@ant-design/icons-vue',
|
|
6
|
+
'@oinone/kunlun-shared',
|
|
7
|
+
'@oinone/kunlun-vue-ui-common',
|
|
8
|
+
'ant-design-vue',
|
|
9
|
+
'ant-design-vue/lib/_util/hooks/useConfigInject.js',
|
|
10
|
+
'ant-design-vue/lib/tabs/src/TabContext.js',
|
|
11
|
+
'lodash',
|
|
12
|
+
'lodash-es',
|
|
13
|
+
'moment',
|
|
14
|
+
'vue'
|
|
15
|
+
]);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export * from './oio-spin';
|
|
2
|
+
|
|
3
|
+
export * from './oio-block';
|
|
4
|
+
export * from './oio-breadcrumb';
|
|
5
|
+
export * from './oio-button';
|
|
6
|
+
export * from './oio-cascader';
|
|
7
|
+
export * from './oio-checkbox';
|
|
8
|
+
export * from './oio-collapse';
|
|
9
|
+
export * from './oio-date-time-picker';
|
|
10
|
+
export * from './oio-date-time-range-picker';
|
|
11
|
+
export * from './oio-divider';
|
|
12
|
+
export * from './oio-drawer';
|
|
13
|
+
export * from './oio-dropdown';
|
|
14
|
+
export * from './oio-empty';
|
|
15
|
+
export * from './oio-form';
|
|
16
|
+
export * from './oio-gallery';
|
|
17
|
+
export * from './oio-group';
|
|
18
|
+
export * from './oio-inner-popup';
|
|
19
|
+
export * from './oio-input';
|
|
20
|
+
export * from './oio-modal';
|
|
21
|
+
export * from './oio-notification';
|
|
22
|
+
export * from './oio-pagination';
|
|
23
|
+
export * from './oio-popconfirm';
|
|
24
|
+
export * from './oio-select';
|
|
25
|
+
export * from './oio-slider';
|
|
26
|
+
export * from './oio-switch';
|
|
27
|
+
export * from './oio-tabs';
|
|
28
|
+
export * from './oio-textarea';
|
|
29
|
+
export * from './oio-tooltip';
|
|
30
|
+
export * from './oio-tree';
|
|
31
|
+
export * from './oio-tree-select';
|
|
32
|
+
export * from './oio-upload';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { CastHelper, StringHelper } from '@oinone/kunlun-shared';
|
|
3
|
+
import {
|
|
4
|
+
FlexDirection,
|
|
5
|
+
LayoutHelper,
|
|
6
|
+
OioBlockProps,
|
|
7
|
+
PropRecordHelper,
|
|
8
|
+
StandardGutterType
|
|
9
|
+
} from '@oinone/kunlun-vue-ui-common';
|
|
10
|
+
import { isNil, isNumber, isString, toString } from 'lodash-es';
|
|
11
|
+
import { createVNode, defineComponent } from 'vue';
|
|
12
|
+
import { DEFAULT_PREFIX } from '../../theme';
|
|
13
|
+
|
|
14
|
+
export default defineComponent({
|
|
15
|
+
name: 'OioBlock',
|
|
16
|
+
inheritAttrs: false,
|
|
17
|
+
props: {
|
|
18
|
+
...OioBlockProps
|
|
19
|
+
},
|
|
20
|
+
render() {
|
|
21
|
+
const blockClassList: string[] = [`${DEFAULT_PREFIX}-block`];
|
|
22
|
+
let style = this.$attrs.style as CSSStyleDeclaration;
|
|
23
|
+
if (!style) {
|
|
24
|
+
style = {} as CSSStyleDeclaration;
|
|
25
|
+
}
|
|
26
|
+
if (this.flex) {
|
|
27
|
+
blockClassList.push(`${DEFAULT_PREFIX}-block-flex`);
|
|
28
|
+
if (this.inline) {
|
|
29
|
+
blockClassList.push(`${DEFAULT_PREFIX}-block-inline-flex`);
|
|
30
|
+
}
|
|
31
|
+
if (this.flexDirection === FlexDirection.Column) {
|
|
32
|
+
blockClassList.push(`${DEFAULT_PREFIX}-block-flex-direction-column`);
|
|
33
|
+
}
|
|
34
|
+
let { gutter } = this;
|
|
35
|
+
let standardGutter: StandardGutterType;
|
|
36
|
+
if (gutter) {
|
|
37
|
+
if (isNumber(gutter)) {
|
|
38
|
+
gutter = toString(gutter);
|
|
39
|
+
}
|
|
40
|
+
if (isString(gutter)) {
|
|
41
|
+
standardGutter = LayoutHelper.convertGutter(gutter);
|
|
42
|
+
} else {
|
|
43
|
+
standardGutter = gutter;
|
|
44
|
+
}
|
|
45
|
+
let needSetRowGap = false;
|
|
46
|
+
let needSetColumnGap = false;
|
|
47
|
+
if (isNil(style.rowGap)) {
|
|
48
|
+
needSetRowGap = true;
|
|
49
|
+
}
|
|
50
|
+
if (isNil(style.columnGap)) {
|
|
51
|
+
needSetColumnGap = true;
|
|
52
|
+
}
|
|
53
|
+
if (isNil(style.gap) && needSetRowGap && needSetColumnGap) {
|
|
54
|
+
style.gap = `${standardGutter[0]}px ${standardGutter[1]}px`;
|
|
55
|
+
} else {
|
|
56
|
+
if (needSetRowGap) {
|
|
57
|
+
style.rowGap = `${standardGutter[0]}px`;
|
|
58
|
+
}
|
|
59
|
+
if (needSetColumnGap) {
|
|
60
|
+
style.columnGap = `${standardGutter[1]}px`;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
} else if (this.inline) {
|
|
65
|
+
blockClassList.push(`${DEFAULT_PREFIX}-block-inline`);
|
|
66
|
+
}
|
|
67
|
+
return createVNode(
|
|
68
|
+
'div',
|
|
69
|
+
{
|
|
70
|
+
class: StringHelper.append(blockClassList, CastHelper.cast(this.$attrs.class)),
|
|
71
|
+
style
|
|
72
|
+
},
|
|
73
|
+
PropRecordHelper.collectionSlots(this.$slots, [{ origin: 'default', isNotNull: true }])
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
</script>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { CSSStyle, CastHelper } from '@oinone/kunlun-shared';
|
|
3
|
+
import { ColProps, OioColProps, PropRecordHelper } from '@oinone/kunlun-vue-ui-common';
|
|
4
|
+
import { Col as ACol } from 'ant-design-vue';
|
|
5
|
+
import { createVNode, defineComponent } from 'vue';
|
|
6
|
+
import { DEFAULT_PREFIX } from '../../theme';
|
|
7
|
+
|
|
8
|
+
export default defineComponent({
|
|
9
|
+
name: 'OioCol',
|
|
10
|
+
components: {
|
|
11
|
+
ACol
|
|
12
|
+
},
|
|
13
|
+
inheritAttrs: false,
|
|
14
|
+
props: {
|
|
15
|
+
...OioColProps
|
|
16
|
+
},
|
|
17
|
+
render() {
|
|
18
|
+
const classList = [`${DEFAULT_PREFIX}-col`];
|
|
19
|
+
if (this.fixed) {
|
|
20
|
+
classList.push(`${DEFAULT_PREFIX}-col-fixed`);
|
|
21
|
+
}
|
|
22
|
+
return createVNode(
|
|
23
|
+
ACol,
|
|
24
|
+
{
|
|
25
|
+
...PropRecordHelper.convert(ColProps, CastHelper.cast(this)),
|
|
26
|
+
...PropRecordHelper.collectionBasicProps(this.$attrs, classList)
|
|
27
|
+
},
|
|
28
|
+
PropRecordHelper.collectionSlots(this.$slots, [{ origin: 'default', isNotNull: true }])
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
</script>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { CastHelper, StringHelper } from '@oinone/kunlun-shared';
|
|
3
|
+
import { FlexHelper, OioRowProps, PropRecordHelper, RowProps } from '@oinone/kunlun-vue-ui-common';
|
|
4
|
+
import { Row as ARow } from 'ant-design-vue';
|
|
5
|
+
import { computed, createVNode, defineComponent } from 'vue';
|
|
6
|
+
import { DEFAULT_PREFIX } from '../../theme';
|
|
7
|
+
|
|
8
|
+
export default defineComponent({
|
|
9
|
+
name: 'OioRow',
|
|
10
|
+
components: {
|
|
11
|
+
ARow
|
|
12
|
+
},
|
|
13
|
+
inheritAttrs: false,
|
|
14
|
+
props: {
|
|
15
|
+
...OioRowProps
|
|
16
|
+
},
|
|
17
|
+
setup(props) {
|
|
18
|
+
const gutter = computed(() => {
|
|
19
|
+
const val = props.gutter;
|
|
20
|
+
if (typeof val === 'string') {
|
|
21
|
+
return FlexHelper.convertGutter(val);
|
|
22
|
+
}
|
|
23
|
+
return val;
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
return {
|
|
27
|
+
gutter
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
render() {
|
|
31
|
+
return createVNode(
|
|
32
|
+
ARow,
|
|
33
|
+
{
|
|
34
|
+
...PropRecordHelper.convert(RowProps, CastHelper.cast(this)),
|
|
35
|
+
...this.$attrs,
|
|
36
|
+
class: StringHelper.append([`${DEFAULT_PREFIX}-row`], CastHelper.cast(this.$attrs.class))
|
|
37
|
+
},
|
|
38
|
+
PropRecordHelper.collectionSlots(this.$slots, [{ origin: 'default', isNotNull: true }])
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
</script>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@import './parameters.scss';
|
|
3
|
+
|
|
4
|
+
$ant-prefix: ant;
|
|
5
|
+
|
|
6
|
+
// Grid system
|
|
7
|
+
$grid-columns: 24;
|
|
8
|
+
|
|
9
|
+
@mixin loop-grid-columns($index, $class: '') {
|
|
10
|
+
@while ($index > 0) {
|
|
11
|
+
.#{$ant-prefix}-col#{$class}-#{$index}.#{$prefix}-col-fixed {
|
|
12
|
+
min-width: percentage(math.div($index, $grid-columns));
|
|
13
|
+
}
|
|
14
|
+
$index: $index - 1;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@include loop-grid-columns($grid-columns);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@import './parameters.scss';
|
|
2
|
+
@import './a-col.scss';
|
|
3
|
+
|
|
4
|
+
.#{$blockClassPrefix} {
|
|
5
|
+
display: block;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.#{$blockClassPrefix}-inline {
|
|
9
|
+
display: inline-block;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.#{$blockClassPrefix}-flex {
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: flex-start;
|
|
15
|
+
align-content: flex-start;
|
|
16
|
+
align-items: center;
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.#{$blockClassPrefix}-flex-direction-column {
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: flex-start;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.#{$blockClassPrefix}-inline-flex {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.#{$rowClassPrefix} {
|
|
31
|
+
&.ant-row-top {
|
|
32
|
+
align-content: flex-start;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.ant-row-middle {
|
|
36
|
+
align-content: center;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.ant-row-bottom {
|
|
40
|
+
align-content: flex-end;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@import '../../../style/global-parameters.scss';
|
|
2
|
+
|
|
3
|
+
$blockPrefix: $prefix + -block;
|
|
4
|
+
$blockParameterPrefix: $parameterPrefix + -block;
|
|
5
|
+
$blockClassPrefix: $blockPrefix;
|
|
6
|
+
|
|
7
|
+
$rowPrefix: $prefix + -row;
|
|
8
|
+
$rowParameterPrefix: $parameterPrefix + -row;
|
|
9
|
+
$rowClassPrefix: $rowPrefix;
|
|
10
|
+
|
|
11
|
+
$colPrefix: $prefix + -col;
|
|
12
|
+
$colParameterPrefix: $parameterPrefix + -col;
|
|
13
|
+
$colClassPrefix: $colPrefix;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { CastHelper, StringHelper } from '@oinone/kunlun-shared';
|
|
3
|
+
import { OioBreadcrumbItemProps, PropRecordHelper } from '@oinone/kunlun-vue-ui-common';
|
|
4
|
+
import { BreadcrumbItem as ABreadcrumbItem } from 'ant-design-vue';
|
|
5
|
+
import { createVNode, defineComponent } from 'vue';
|
|
6
|
+
import { DEFAULT_PREFIX } from '../../theme';
|
|
7
|
+
|
|
8
|
+
export default defineComponent({
|
|
9
|
+
name: 'OioBreadcrumbItem',
|
|
10
|
+
components: {
|
|
11
|
+
ABreadcrumbItem
|
|
12
|
+
},
|
|
13
|
+
inheritAttrs: false,
|
|
14
|
+
props: {
|
|
15
|
+
...OioBreadcrumbItemProps
|
|
16
|
+
},
|
|
17
|
+
slots: ['default', 'separator', 'overlay'],
|
|
18
|
+
render() {
|
|
19
|
+
return createVNode(
|
|
20
|
+
ABreadcrumbItem,
|
|
21
|
+
{
|
|
22
|
+
...PropRecordHelper.convert(OioBreadcrumbItemProps, CastHelper.cast(this)),
|
|
23
|
+
...this.$attrs,
|
|
24
|
+
class: StringHelper.append([`${DEFAULT_PREFIX}-breadcrumb-item`], CastHelper.cast(this.$attrs.class))
|
|
25
|
+
},
|
|
26
|
+
PropRecordHelper.collectionSlots(this.$slots, ['default', 'separator', 'overlay'])
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
</script>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { CastHelper, StringHelper } from '@oinone/kunlun-shared';
|
|
3
|
+
import { OioBreadcrumbProps, PropRecordHelper } from '@oinone/kunlun-vue-ui-common';
|
|
4
|
+
import { Breadcrumb as ABreadcrumb } from 'ant-design-vue';
|
|
5
|
+
import { createVNode, defineComponent } from 'vue';
|
|
6
|
+
import { DEFAULT_PREFIX } from '../../theme';
|
|
7
|
+
|
|
8
|
+
export default defineComponent({
|
|
9
|
+
name: 'OioBreadcrumb',
|
|
10
|
+
components: {
|
|
11
|
+
ABreadcrumb
|
|
12
|
+
},
|
|
13
|
+
inheritAttrs: false,
|
|
14
|
+
props: {
|
|
15
|
+
...OioBreadcrumbProps
|
|
16
|
+
},
|
|
17
|
+
slots: ['default', 'separator', 'itemRender'],
|
|
18
|
+
render() {
|
|
19
|
+
return createVNode(
|
|
20
|
+
ABreadcrumb,
|
|
21
|
+
{
|
|
22
|
+
...PropRecordHelper.convert(OioBreadcrumbProps, CastHelper.cast(this)),
|
|
23
|
+
...this.$attrs,
|
|
24
|
+
class: StringHelper.append([`${DEFAULT_PREFIX}-breadcrumb`], CastHelper.cast(this.$attrs.class))
|
|
25
|
+
},
|
|
26
|
+
PropRecordHelper.collectionSlots(this.$slots, ['default', 'separator', 'itemRender'])
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
</script>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OioButton } from './oio-button.vue';
|