@minilo/ui 0.0.7 → 0.0.8
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/package.json +2 -2
- package/minilo/dist/index.css +0 -1
- package/minilo/dist/index.full.js +0 -8393
- package/minilo/dist/index.full.min.js +0 -2
- package/minilo/dist/index.full.min.js.map +0 -1
- package/minilo/dist/index.full.min.mjs +0 -2
- package/minilo/dist/index.full.min.mjs.map +0 -1
- package/minilo/dist/index.full.mjs +0 -8373
- package/minilo/es/components/button/index.d.ts +0 -47
- package/minilo/es/components/button/index.mjs +0 -6
- package/minilo/es/components/button/index.vue.d.ts +0 -29
- package/minilo/es/components/button/index.vue.mjs +0 -5
- package/minilo/es/components/button/index.vue2.mjs +0 -67
- package/minilo/es/components/button/type.d.ts +0 -10
- package/minilo/es/components/chart/index.d.ts +0 -49
- package/minilo/es/components/chart/index.mjs +0 -6
- package/minilo/es/components/chart/index.vue.d.ts +0 -33
- package/minilo/es/components/chart/index.vue.mjs +0 -5
- package/minilo/es/components/chart/index.vue2.mjs +0 -124
- package/minilo/es/components/chart/type.d.ts +0 -7
- package/minilo/es/components/detail/index.d.ts +0 -37
- package/minilo/es/components/detail/index.mjs +0 -6
- package/minilo/es/components/detail/index.vue.d.ts +0 -23
- package/minilo/es/components/detail/index.vue.mjs +0 -5
- package/minilo/es/components/detail/index.vue2.mjs +0 -194
- package/minilo/es/components/detail/renderLabel.vue.d.ts +0 -8
- package/minilo/es/components/detail/renderLabel.vue.mjs +0 -5
- package/minilo/es/components/detail/renderLabel.vue2.mjs +0 -23
- package/minilo/es/components/detail/renderTooltip.vue.d.ts +0 -8
- package/minilo/es/components/detail/renderTooltip.vue.mjs +0 -5
- package/minilo/es/components/detail/renderTooltip.vue2.mjs +0 -23
- package/minilo/es/components/detail/type.d.ts +0 -27
- package/minilo/es/components/image-upload-pro/index.d.ts +0 -544
- package/minilo/es/components/image-upload-pro/index.mjs +0 -7
- package/minilo/es/components/image-upload-pro/index.vue.d.ts +0 -546
- package/minilo/es/components/image-upload-pro/index.vue.mjs +0 -5
- package/minilo/es/components/image-upload-pro/index.vue2.mjs +0 -657
- package/minilo/es/components/image-upload-pro/type.d.ts +0 -147
- package/minilo/es/components/image-upload-pro/type.mjs +0 -81
- package/minilo/es/components/index.d.ts +0 -11
- package/minilo/es/components/index.mjs +0 -14
- package/minilo/es/components/number-range-input/index.d.ts +0 -41
- package/minilo/es/components/number-range-input/index.mjs +0 -6
- package/minilo/es/components/number-range-input/index.vue.d.ts +0 -33
- package/minilo/es/components/number-range-input/index.vue.mjs +0 -5
- package/minilo/es/components/number-range-input/index.vue2.mjs +0 -150
- package/minilo/es/components/number-range-input/props.d.ts +0 -10
- package/minilo/es/components/search/index.d.ts +0 -488
- package/minilo/es/components/search/index.mjs +0 -6
- package/minilo/es/components/search/index.vue.d.ts +0 -554
- package/minilo/es/components/search/index.vue.mjs +0 -5
- package/minilo/es/components/search/index.vue2.mjs +0 -297
- package/minilo/es/components/search/props.d.ts +0 -107
- package/minilo/es/components/search/props.mjs +0 -55
- package/minilo/es/components/search-table/index.mjs +0 -6
- package/minilo/es/components/search-table/index.vue.d.ts +0 -189
- package/minilo/es/components/search-table/index.vue.mjs +0 -5
- package/minilo/es/components/search-table/index.vue2.mjs +0 -198
- package/minilo/es/components/search-table/props.d.ts +0 -69
- package/minilo/es/components/search-table/props.mjs +0 -69
- package/minilo/es/components/search-table/render.d.ts +0 -11
- package/minilo/es/components/search-table/render.mjs +0 -19
- package/minilo/es/components/tree-select/index.d.ts +0 -34
- package/minilo/es/components/tree-select/index.mjs +0 -6
- package/minilo/es/components/tree-select/index.vue.d.ts +0 -23
- package/minilo/es/components/tree-select/index.vue.mjs +0 -5
- package/minilo/es/components/tree-select/index.vue2.mjs +0 -229
- package/minilo/es/components/tree-select/type.d.ts +0 -34
- package/minilo/es/components/tree-select-dialog/index.d.ts +0 -64
- package/minilo/es/components/tree-select-dialog/index.mjs +0 -7
- package/minilo/es/components/tree-select-dialog/index.vue.d.ts +0 -26
- package/minilo/es/components/tree-select-dialog/index.vue.mjs +0 -5
- package/minilo/es/components/tree-select-dialog/index.vue2.mjs +0 -145
- package/minilo/es/components/tree-select-dialog/type.d.ts +0 -9
- package/minilo/es/components/tree-select-dialog/type.mjs +0 -24
- package/minilo/es/components/tree-select-drawer/index.d.ts +0 -69
- package/minilo/es/components/tree-select-drawer/index.mjs +0 -7
- package/minilo/es/components/tree-select-drawer/index.vue.d.ts +0 -26
- package/minilo/es/components/tree-select-drawer/index.vue.mjs +0 -5
- package/minilo/es/components/tree-select-drawer/index.vue2.mjs +0 -151
- package/minilo/es/components/tree-select-drawer/type.d.ts +0 -10
- package/minilo/es/components/tree-select-drawer/type.mjs +0 -20
- package/minilo/es/components/virtual-list/index.d.ts +0 -59
- package/minilo/es/components/virtual-list/index.mjs +0 -6
- package/minilo/es/components/virtual-list/index.vue.d.ts +0 -39
- package/minilo/es/components/virtual-list/index.vue.mjs +0 -5
- package/minilo/es/components/virtual-list/index.vue2.mjs +0 -423
- package/minilo/es/components/virtual-list/type.d.ts +0 -20
- package/minilo/es/node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.5.26_typescript@5.9.3_/node_modules/@element-plus/icons-vue/dist/index.mjs +0 -41
- package/minilo/es/node_modules/.pnpm/@vueuse_core@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs +0 -73
- package/minilo/es/node_modules/.pnpm/@vueuse_shared@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs +0 -76
- package/minilo/es/packages/utils/dist/func/common.mjs +0 -14
- package/minilo/es/packages/utils/dist/request/index.mjs +0 -105
- package/minilo/es/resolver/index.d.ts +0 -8
- package/minilo/es/resolver/index.mjs +0 -26
- package/minilo/es/utils/index.d.ts +0 -28
- package/minilo/es/utils/index.mjs +0 -30
- package/minilo/lib/components/button/index.d.ts +0 -47
- package/minilo/lib/components/button/index.js +0 -11
- package/minilo/lib/components/button/index.vue.d.ts +0 -29
- package/minilo/lib/components/button/index.vue.js +0 -9
- package/minilo/lib/components/button/index.vue2.js +0 -71
- package/minilo/lib/components/button/type.d.ts +0 -10
- package/minilo/lib/components/chart/index.d.ts +0 -49
- package/minilo/lib/components/chart/index.js +0 -11
- package/minilo/lib/components/chart/index.vue.d.ts +0 -33
- package/minilo/lib/components/chart/index.vue.js +0 -9
- package/minilo/lib/components/chart/index.vue2.js +0 -128
- package/minilo/lib/components/chart/type.d.ts +0 -7
- package/minilo/lib/components/detail/index.d.ts +0 -37
- package/minilo/lib/components/detail/index.js +0 -11
- package/minilo/lib/components/detail/index.vue.d.ts +0 -23
- package/minilo/lib/components/detail/index.vue.js +0 -9
- package/minilo/lib/components/detail/index.vue2.js +0 -198
- package/minilo/lib/components/detail/renderLabel.vue.d.ts +0 -8
- package/minilo/lib/components/detail/renderLabel.vue.js +0 -9
- package/minilo/lib/components/detail/renderLabel.vue2.js +0 -27
- package/minilo/lib/components/detail/renderTooltip.vue.d.ts +0 -8
- package/minilo/lib/components/detail/renderTooltip.vue.js +0 -9
- package/minilo/lib/components/detail/renderTooltip.vue2.js +0 -27
- package/minilo/lib/components/detail/type.d.ts +0 -27
- package/minilo/lib/components/image-upload-pro/index.d.ts +0 -544
- package/minilo/lib/components/image-upload-pro/index.js +0 -13
- package/minilo/lib/components/image-upload-pro/index.vue.d.ts +0 -546
- package/minilo/lib/components/image-upload-pro/index.vue.js +0 -9
- package/minilo/lib/components/image-upload-pro/index.vue2.js +0 -661
- package/minilo/lib/components/image-upload-pro/type.d.ts +0 -147
- package/minilo/lib/components/image-upload-pro/type.js +0 -83
- package/minilo/lib/components/index.d.ts +0 -11
- package/minilo/lib/components/index.js +0 -33
- package/minilo/lib/components/number-range-input/index.d.ts +0 -41
- package/minilo/lib/components/number-range-input/index.js +0 -11
- package/minilo/lib/components/number-range-input/index.vue.d.ts +0 -33
- package/minilo/lib/components/number-range-input/index.vue.js +0 -9
- package/minilo/lib/components/number-range-input/index.vue2.js +0 -154
- package/minilo/lib/components/number-range-input/props.d.ts +0 -10
- package/minilo/lib/components/search/index.d.ts +0 -488
- package/minilo/lib/components/search/index.js +0 -11
- package/minilo/lib/components/search/index.vue.d.ts +0 -554
- package/minilo/lib/components/search/index.vue.js +0 -9
- package/minilo/lib/components/search/index.vue2.js +0 -301
- package/minilo/lib/components/search/props.d.ts +0 -107
- package/minilo/lib/components/search/props.js +0 -58
- package/minilo/lib/components/search-table/index.js +0 -11
- package/minilo/lib/components/search-table/index.vue.d.ts +0 -189
- package/minilo/lib/components/search-table/index.vue.js +0 -9
- package/minilo/lib/components/search-table/index.vue2.js +0 -202
- package/minilo/lib/components/search-table/props.d.ts +0 -69
- package/minilo/lib/components/search-table/props.js +0 -72
- package/minilo/lib/components/search-table/render.d.ts +0 -11
- package/minilo/lib/components/search-table/render.js +0 -23
- package/minilo/lib/components/tree-select/index.d.ts +0 -34
- package/minilo/lib/components/tree-select/index.js +0 -11
- package/minilo/lib/components/tree-select/index.vue.d.ts +0 -23
- package/minilo/lib/components/tree-select/index.vue.js +0 -9
- package/minilo/lib/components/tree-select/index.vue2.js +0 -233
- package/minilo/lib/components/tree-select/type.d.ts +0 -34
- package/minilo/lib/components/tree-select-dialog/index.d.ts +0 -64
- package/minilo/lib/components/tree-select-dialog/index.js +0 -13
- package/minilo/lib/components/tree-select-dialog/index.vue.d.ts +0 -26
- package/minilo/lib/components/tree-select-dialog/index.vue.js +0 -9
- package/minilo/lib/components/tree-select-dialog/index.vue2.js +0 -149
- package/minilo/lib/components/tree-select-dialog/type.d.ts +0 -9
- package/minilo/lib/components/tree-select-dialog/type.js +0 -26
- package/minilo/lib/components/tree-select-drawer/index.d.ts +0 -69
- package/minilo/lib/components/tree-select-drawer/index.js +0 -13
- package/minilo/lib/components/tree-select-drawer/index.vue.d.ts +0 -26
- package/minilo/lib/components/tree-select-drawer/index.vue.js +0 -9
- package/minilo/lib/components/tree-select-drawer/index.vue2.js +0 -155
- package/minilo/lib/components/tree-select-drawer/type.d.ts +0 -10
- package/minilo/lib/components/tree-select-drawer/type.js +0 -22
- package/minilo/lib/components/virtual-list/index.d.ts +0 -59
- package/minilo/lib/components/virtual-list/index.js +0 -11
- package/minilo/lib/components/virtual-list/index.vue.d.ts +0 -39
- package/minilo/lib/components/virtual-list/index.vue.js +0 -9
- package/minilo/lib/components/virtual-list/index.vue2.js +0 -427
- package/minilo/lib/components/virtual-list/type.d.ts +0 -20
- package/minilo/lib/node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.5.26_typescript@5.9.3_/node_modules/@element-plus/icons-vue/dist/index.js +0 -44
- package/minilo/lib/node_modules/.pnpm/@vueuse_core@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/index.js +0 -84
- package/minilo/lib/node_modules/.pnpm/@vueuse_shared@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/index.js +0 -83
- package/minilo/lib/packages/utils/dist/func/common.js +0 -16
- package/minilo/lib/packages/utils/dist/request/index.js +0 -115
- package/minilo/lib/resolver/index.d.ts +0 -8
- package/minilo/lib/resolver/index.js +0 -28
- package/minilo/lib/utils/index.d.ts +0 -28
- package/minilo/lib/utils/index.js +0 -34
- package/minilo/theme-chalk/index.css +0 -1
- package/minilo/theme-chalk/ml-button.css +0 -1
- package/minilo/theme-chalk/ml-chart.css +0 -1
- package/minilo/theme-chalk/ml-detail.css +0 -1
- package/minilo/theme-chalk/ml-image-upload-pro.css +0 -1
- package/minilo/theme-chalk/ml-number-range-input.css +0 -1
- package/minilo/theme-chalk/ml-search-table.css +0 -1
- package/minilo/theme-chalk/ml-search.css +0 -1
- package/minilo/theme-chalk/ml-tree-select-dialog.css +0 -0
- package/minilo/theme-chalk/ml-tree-select-drawer.css +0 -0
- package/minilo/theme-chalk/ml-tree-select.css +0 -1
- package/minilo/theme-chalk/ml-virtual-list.css +0 -1
- package/minilo/theme-chalk/src/button.scss +0 -22
- package/minilo/theme-chalk/src/chart.scss +0 -11
- package/minilo/theme-chalk/src/default/variable.scss +0 -1
- package/minilo/theme-chalk/src/detail.scss +0 -9
- package/minilo/theme-chalk/src/image-upload-pro.scss +0 -70
- package/minilo/theme-chalk/src/index.scss +0 -14
- package/minilo/theme-chalk/src/mixins/mixin.scss +0 -273
- package/minilo/theme-chalk/src/number-range-input.scss +0 -9
- package/minilo/theme-chalk/src/search-table.scss +0 -47
- package/minilo/theme-chalk/src/search.scss +0 -20
- package/minilo/theme-chalk/src/tree-select-dialog.scss +0 -0
- package/minilo/theme-chalk/src/tree-select-drawer.scss +0 -0
- package/minilo/theme-chalk/src/tree-select.scss +0 -47
- package/minilo/theme-chalk/src/virtual-list.scss +0 -49
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { UploadFile } from 'element-plus';
|
|
3
|
-
/**
|
|
4
|
-
* 上传 API 配置(参考 search-table 的配置方式)
|
|
5
|
-
*/
|
|
6
|
-
export interface UploadApiConfig {
|
|
7
|
-
url: string;
|
|
8
|
-
method?: 'post' | 'put';
|
|
9
|
-
headers?: Record<string, string>;
|
|
10
|
-
fieldName?: string;
|
|
11
|
-
data?: Record<string, any>;
|
|
12
|
-
responseUrlField?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 尺寸限制配置
|
|
16
|
-
*/
|
|
17
|
-
export interface SizeLimit {
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
size: number;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 裁剪比例配置
|
|
24
|
-
*/
|
|
25
|
-
export interface AspectRatio {
|
|
26
|
-
fixed: boolean;
|
|
27
|
-
value: [number, number];
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* 预览项(增强版UploadFile)
|
|
31
|
-
*/
|
|
32
|
-
export interface PreviewItem extends UploadFile {
|
|
33
|
-
url: string;
|
|
34
|
-
isCover?: boolean;
|
|
35
|
-
rawFile?: File;
|
|
36
|
-
blobUrl?: string;
|
|
37
|
-
serverUrl?: string;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* 图片上传组件 Props
|
|
41
|
-
*/
|
|
42
|
-
export declare const imageUploadProProps: {
|
|
43
|
-
/**
|
|
44
|
-
* 已上传图片列表(用于回显)
|
|
45
|
-
* v-model 绑定的值
|
|
46
|
-
*/
|
|
47
|
-
modelValue: {
|
|
48
|
-
type: PropType<PreviewItem[]>;
|
|
49
|
-
default: () => any[];
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* 允许上传的图片格式
|
|
53
|
-
* 默认支持 jpg、png、webp
|
|
54
|
-
*/
|
|
55
|
-
acceptType: {
|
|
56
|
-
type: StringConstructor;
|
|
57
|
-
default: string;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* 尺寸限制配置
|
|
61
|
-
* width/height 为 0 表示不限制
|
|
62
|
-
* size 为最大文件大小(MB)
|
|
63
|
-
*/
|
|
64
|
-
sizeLimit: {
|
|
65
|
-
type: PropType<SizeLimit>;
|
|
66
|
-
default: () => {
|
|
67
|
-
width: number;
|
|
68
|
-
height: number;
|
|
69
|
-
size: number;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* 最大上传数量
|
|
74
|
-
* 默认 9 张
|
|
75
|
-
*/
|
|
76
|
-
maxCount: {
|
|
77
|
-
type: NumberConstructor;
|
|
78
|
-
default: number;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* 是否允许裁剪图片
|
|
82
|
-
* 启用后会在上传时弹出裁剪对话框
|
|
83
|
-
*/
|
|
84
|
-
allowCrop: {
|
|
85
|
-
type: BooleanConstructor;
|
|
86
|
-
default: boolean;
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* 是否支持封面标记
|
|
90
|
-
* 允许用户标记某张图片为封面
|
|
91
|
-
*/
|
|
92
|
-
allowCover: {
|
|
93
|
-
type: BooleanConstructor;
|
|
94
|
-
default: boolean;
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* 是否支持拖拽排序
|
|
98
|
-
* 启用后可以通过拖拽调整图片顺序
|
|
99
|
-
*/
|
|
100
|
-
allowSort: {
|
|
101
|
-
type: BooleanConstructor;
|
|
102
|
-
default: boolean;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* 上传 API 配置
|
|
106
|
-
* 配置后,每次选择或裁剪图片时会自动上传到服务器
|
|
107
|
-
*/
|
|
108
|
-
uploadApi: {
|
|
109
|
-
type: PropType<UploadApiConfig>;
|
|
110
|
-
default: any;
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* 是否自动上传
|
|
114
|
-
* 启用后,选择或裁剪图片时自动调用上传接口
|
|
115
|
-
*/
|
|
116
|
-
autoUpload: {
|
|
117
|
-
type: BooleanConstructor;
|
|
118
|
-
default: boolean;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* 组件 Props 类型(从 props 定义中推导)
|
|
123
|
-
*/
|
|
124
|
-
export type ImageUploadProProps = {
|
|
125
|
-
modelValue?: PreviewItem[];
|
|
126
|
-
accept?: string;
|
|
127
|
-
sizeLimit?: SizeLimit;
|
|
128
|
-
maxCount?: number;
|
|
129
|
-
allowCrop?: boolean;
|
|
130
|
-
allowCover?: boolean;
|
|
131
|
-
allowSort?: boolean;
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* 组件暴露的方法
|
|
135
|
-
*/
|
|
136
|
-
export interface ImageUploadProExpose {
|
|
137
|
-
/**
|
|
138
|
-
* 上传到服务器
|
|
139
|
-
* @param uploadApi 上传接口函数,接收 File 对象,返回图片 URL
|
|
140
|
-
* @returns 上传后的图片列表
|
|
141
|
-
*/
|
|
142
|
-
uploadToServer: (uploadApi: (file: File) => Promise<string>) => Promise<PreviewItem[]>;
|
|
143
|
-
/**
|
|
144
|
-
* 清空所有已上传的图片
|
|
145
|
-
*/
|
|
146
|
-
clear: () => void;
|
|
147
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const imageUploadProProps = {
|
|
4
|
-
/**
|
|
5
|
-
* 已上传图片列表(用于回显)
|
|
6
|
-
* v-model 绑定的值
|
|
7
|
-
*/
|
|
8
|
-
modelValue: {
|
|
9
|
-
type: Array,
|
|
10
|
-
default: () => []
|
|
11
|
-
},
|
|
12
|
-
/**
|
|
13
|
-
* 允许上传的图片格式
|
|
14
|
-
* 默认支持 jpg、png、webp
|
|
15
|
-
*/
|
|
16
|
-
acceptType: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: "image/jpeg,image/jpg,image/png,image/webp"
|
|
19
|
-
},
|
|
20
|
-
/**
|
|
21
|
-
* 尺寸限制配置
|
|
22
|
-
* width/height 为 0 表示不限制
|
|
23
|
-
* size 为最大文件大小(MB)
|
|
24
|
-
*/
|
|
25
|
-
sizeLimit: {
|
|
26
|
-
type: Object,
|
|
27
|
-
default: () => ({
|
|
28
|
-
width: 0,
|
|
29
|
-
height: 0,
|
|
30
|
-
size: 2
|
|
31
|
-
})
|
|
32
|
-
},
|
|
33
|
-
/**
|
|
34
|
-
* 最大上传数量
|
|
35
|
-
* 默认 9 张
|
|
36
|
-
*/
|
|
37
|
-
maxCount: {
|
|
38
|
-
type: Number,
|
|
39
|
-
default: 9
|
|
40
|
-
},
|
|
41
|
-
/**
|
|
42
|
-
* 是否允许裁剪图片
|
|
43
|
-
* 启用后会在上传时弹出裁剪对话框
|
|
44
|
-
*/
|
|
45
|
-
allowCrop: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: true
|
|
48
|
-
},
|
|
49
|
-
/**
|
|
50
|
-
* 是否支持封面标记
|
|
51
|
-
* 允许用户标记某张图片为封面
|
|
52
|
-
*/
|
|
53
|
-
allowCover: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: true
|
|
56
|
-
},
|
|
57
|
-
/**
|
|
58
|
-
* 是否支持拖拽排序
|
|
59
|
-
* 启用后可以通过拖拽调整图片顺序
|
|
60
|
-
*/
|
|
61
|
-
allowSort: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: true
|
|
64
|
-
},
|
|
65
|
-
/**
|
|
66
|
-
* 上传 API 配置
|
|
67
|
-
* 配置后,每次选择或裁剪图片时会自动上传到服务器
|
|
68
|
-
*/
|
|
69
|
-
uploadApi: {
|
|
70
|
-
type: Object,
|
|
71
|
-
default: null
|
|
72
|
-
},
|
|
73
|
-
/**
|
|
74
|
-
* 是否自动上传
|
|
75
|
-
* 启用后,选择或裁剪图片时自动调用上传接口
|
|
76
|
-
*/
|
|
77
|
-
autoUpload: {
|
|
78
|
-
type: Boolean,
|
|
79
|
-
default: false
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
exports.imageUploadProProps = imageUploadProProps;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './chart';
|
|
2
|
-
export * from './search-table';
|
|
3
|
-
export * from './search';
|
|
4
|
-
export * from './detail';
|
|
5
|
-
export * from './button';
|
|
6
|
-
export * from './virtual-list';
|
|
7
|
-
export * from './number-range-input';
|
|
8
|
-
export * from './tree-select';
|
|
9
|
-
export * from './tree-select-dialog';
|
|
10
|
-
export * from './tree-select-drawer';
|
|
11
|
-
export * from './image-upload-pro';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./chart/index.js');
|
|
4
|
-
var index$1 = require('./search-table/index.js');
|
|
5
|
-
var index$2 = require('./search/index.js');
|
|
6
|
-
var index$3 = require('./detail/index.js');
|
|
7
|
-
var index$4 = require('./button/index.js');
|
|
8
|
-
var index$5 = require('./virtual-list/index.js');
|
|
9
|
-
var index$6 = require('./number-range-input/index.js');
|
|
10
|
-
var index$7 = require('./tree-select/index.js');
|
|
11
|
-
var index$8 = require('./tree-select-dialog/index.js');
|
|
12
|
-
var index$9 = require('./tree-select-drawer/index.js');
|
|
13
|
-
var index$a = require('./image-upload-pro/index.js');
|
|
14
|
-
var type = require('./tree-select-dialog/type.js');
|
|
15
|
-
var type$1 = require('./tree-select-drawer/type.js');
|
|
16
|
-
var type$2 = require('./image-upload-pro/type.js');
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
exports.MlChart = index.MlChart;
|
|
21
|
-
exports.MlSearchTable = index$1.MlSearchTable;
|
|
22
|
-
exports.MlSearch = index$2.MlSearch;
|
|
23
|
-
exports.MlDetail = index$3.MlDetail;
|
|
24
|
-
exports.MlButton = index$4.MlButton;
|
|
25
|
-
exports.MlVirtualList = index$5.MlVirtualList;
|
|
26
|
-
exports.MlNumberRangeInput = index$6.MlNumberRangeInput;
|
|
27
|
-
exports.MlTreeSelect = index$7.MlTreeSelect;
|
|
28
|
-
exports.MlTreeSelectDialog = index$8.MlTreeSelectDialog;
|
|
29
|
-
exports.MlTreeSelectDrawer = index$9.MlTreeSelectDrawer;
|
|
30
|
-
exports.MlImageUploadPro = index$a.MlImageUploadPro;
|
|
31
|
-
exports.dialogPropKeys = type.dialogPropKeys;
|
|
32
|
-
exports.drawerPropKeys = type$1.drawerPropKeys;
|
|
33
|
-
exports.imageUploadProProps = type$2.imageUploadProProps;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export declare const MlNumberRangeInput: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
-
modelValue?: import('./props').NumberRangeValue;
|
|
4
|
-
} & import('./props').NumberRangeInputProps> & Readonly<{
|
|
5
|
-
"onUpdate:modelValue"?: (value: import('./props').NumberRangeValue) => any;
|
|
6
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (value: import('./props').NumberRangeValue) => any;
|
|
8
|
-
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
9
|
-
P: {};
|
|
10
|
-
B: {};
|
|
11
|
-
D: {};
|
|
12
|
-
C: {};
|
|
13
|
-
M: {};
|
|
14
|
-
Defaults: {};
|
|
15
|
-
}, Readonly<{
|
|
16
|
-
modelValue?: import('./props').NumberRangeValue;
|
|
17
|
-
} & import('./props').NumberRangeInputProps> & Readonly<{
|
|
18
|
-
"onUpdate:modelValue"?: (value: import('./props').NumberRangeValue) => any;
|
|
19
|
-
}>, {}, {}, {}, {}, {}>;
|
|
20
|
-
__isFragment?: never;
|
|
21
|
-
__isTeleport?: never;
|
|
22
|
-
__isSuspense?: never;
|
|
23
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
24
|
-
modelValue?: import('./props').NumberRangeValue;
|
|
25
|
-
} & import('./props').NumberRangeInputProps> & Readonly<{
|
|
26
|
-
"onUpdate:modelValue"?: (value: import('./props').NumberRangeValue) => any;
|
|
27
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
-
"update:modelValue": (value: import('./props').NumberRangeValue) => any;
|
|
29
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
30
|
-
$slots: {
|
|
31
|
-
'min-prefix'?(_: {}): any;
|
|
32
|
-
'min-suffix'?(_: {}): any;
|
|
33
|
-
'min-prepend'?(_: {}): any;
|
|
34
|
-
'min-append'?(_: {}): any;
|
|
35
|
-
'max-prefix'?(_: {}): any;
|
|
36
|
-
'max-suffix'?(_: {}): any;
|
|
37
|
-
'max-prepend'?(_: {}): any;
|
|
38
|
-
'max-append'?(_: {}): any;
|
|
39
|
-
};
|
|
40
|
-
});
|
|
41
|
-
export default MlNumberRangeInput;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var index = require('../../utils/index.js');
|
|
6
|
-
var index_vue_vue_type_script_setup_true_lang = require('./index.vue2.js');
|
|
7
|
-
|
|
8
|
-
const MlNumberRangeInput = index.withInstall(index_vue_vue_type_script_setup_true_lang.default);
|
|
9
|
-
|
|
10
|
-
exports.MlNumberRangeInput = MlNumberRangeInput;
|
|
11
|
-
exports.default = MlNumberRangeInput;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { NumberRangeInputProps, NumberRangeValue } from './props';
|
|
2
|
-
type __VLS_Props = NumberRangeInputProps;
|
|
3
|
-
type __VLS_PublicProps = {
|
|
4
|
-
modelValue?: NumberRangeValue;
|
|
5
|
-
} & __VLS_Props;
|
|
6
|
-
declare function __VLS_template(): {
|
|
7
|
-
attrs: Partial<{}>;
|
|
8
|
-
slots: {
|
|
9
|
-
'min-prefix'?(_: {}): any;
|
|
10
|
-
'min-suffix'?(_: {}): any;
|
|
11
|
-
'min-prepend'?(_: {}): any;
|
|
12
|
-
'min-append'?(_: {}): any;
|
|
13
|
-
'max-prefix'?(_: {}): any;
|
|
14
|
-
'max-suffix'?(_: {}): any;
|
|
15
|
-
'max-prepend'?(_: {}): any;
|
|
16
|
-
'max-append'?(_: {}): any;
|
|
17
|
-
};
|
|
18
|
-
refs: {};
|
|
19
|
-
rootEl: HTMLDivElement;
|
|
20
|
-
};
|
|
21
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
-
"update:modelValue": (value: NumberRangeValue) => any;
|
|
24
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
25
|
-
"onUpdate:modelValue"?: (value: NumberRangeValue) => any;
|
|
26
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
-
export default _default;
|
|
29
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
-
new (): {
|
|
31
|
-
$slots: S;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var elementPlus = require('element-plus');
|
|
7
|
-
var index = require('../../utils/index.js');
|
|
8
|
-
|
|
9
|
-
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
10
|
-
...{
|
|
11
|
-
name: "MlNumberRangeInput"
|
|
12
|
-
},
|
|
13
|
-
__name: "index",
|
|
14
|
-
props: /* @__PURE__ */ vue.mergeModels({
|
|
15
|
-
label: { type: String, required: true },
|
|
16
|
-
disabled: { type: Boolean, required: false },
|
|
17
|
-
separator: { type: String, required: false },
|
|
18
|
-
inputProps: { type: Object, required: false },
|
|
19
|
-
minInputProps: { type: Object, required: false },
|
|
20
|
-
maxInputProps: { type: Object, required: false }
|
|
21
|
-
}, {
|
|
22
|
-
"modelValue": { type: Array, ...{ default: () => [null, null] } },
|
|
23
|
-
"modelModifiers": {}
|
|
24
|
-
}),
|
|
25
|
-
emits: ["update:modelValue"],
|
|
26
|
-
setup(__props) {
|
|
27
|
-
const props = __props;
|
|
28
|
-
const slots = vue.useSlots();
|
|
29
|
-
const modelValue = vue.useModel(__props, "modelValue");
|
|
30
|
-
const minValue = vue.computed({
|
|
31
|
-
get: () => modelValue.value?.[0] ?? null,
|
|
32
|
-
set: (val) => {
|
|
33
|
-
modelValue.value = [val, modelValue.value?.[1] ?? null];
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
const maxValue = vue.computed({
|
|
37
|
-
get: () => modelValue.value?.[1] ?? null,
|
|
38
|
-
set: (val) => {
|
|
39
|
-
modelValue.value = [modelValue.value?.[0] ?? null, val];
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
const mergedMinInputProps = vue.computed(() => ({
|
|
43
|
-
type: "number",
|
|
44
|
-
placeholder: `\u8BF7\u8F93\u5165${props.label}\u6700\u5C0F\u503C`,
|
|
45
|
-
disabled: props.disabled,
|
|
46
|
-
...props.inputProps,
|
|
47
|
-
...props.minInputProps
|
|
48
|
-
}));
|
|
49
|
-
const mergedMaxInputProps = vue.computed(() => ({
|
|
50
|
-
type: "number",
|
|
51
|
-
placeholder: `\u8BF7\u8F93\u5165${props.label}\u6700\u5927\u503C`,
|
|
52
|
-
disabled: props.disabled,
|
|
53
|
-
...props.inputProps,
|
|
54
|
-
...props.maxInputProps
|
|
55
|
-
}));
|
|
56
|
-
return (_ctx, _cache) => {
|
|
57
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
58
|
-
"div",
|
|
59
|
-
{
|
|
60
|
-
class: vue.normalizeClass(vue.unref(index.bem)("number-range-input"))
|
|
61
|
-
},
|
|
62
|
-
[
|
|
63
|
-
vue.createVNode(vue.unref(elementPlus.ElInput), vue.mergeProps({
|
|
64
|
-
modelValue: minValue.value,
|
|
65
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => minValue.value = $event),
|
|
66
|
-
modelModifiers: { number: true }
|
|
67
|
-
}, mergedMinInputProps.value), vue.createSlots({
|
|
68
|
-
_: 2
|
|
69
|
-
/* DYNAMIC */
|
|
70
|
-
}, [
|
|
71
|
-
vue.unref(slots)["min-prefix"] ? {
|
|
72
|
-
name: "prefix",
|
|
73
|
-
fn: vue.withCtx(() => [
|
|
74
|
-
vue.renderSlot(_ctx.$slots, "min-prefix")
|
|
75
|
-
]),
|
|
76
|
-
key: "0"
|
|
77
|
-
} : void 0,
|
|
78
|
-
vue.unref(slots)["min-suffix"] ? {
|
|
79
|
-
name: "suffix",
|
|
80
|
-
fn: vue.withCtx(() => [
|
|
81
|
-
vue.renderSlot(_ctx.$slots, "min-suffix")
|
|
82
|
-
]),
|
|
83
|
-
key: "1"
|
|
84
|
-
} : void 0,
|
|
85
|
-
vue.unref(slots)["min-prepend"] ? {
|
|
86
|
-
name: "prepend",
|
|
87
|
-
fn: vue.withCtx(() => [
|
|
88
|
-
vue.renderSlot(_ctx.$slots, "min-prepend")
|
|
89
|
-
]),
|
|
90
|
-
key: "2"
|
|
91
|
-
} : void 0,
|
|
92
|
-
vue.unref(slots)["min-append"] ? {
|
|
93
|
-
name: "append",
|
|
94
|
-
fn: vue.withCtx(() => [
|
|
95
|
-
vue.renderSlot(_ctx.$slots, "min-append")
|
|
96
|
-
]),
|
|
97
|
-
key: "3"
|
|
98
|
-
} : void 0
|
|
99
|
-
]), 1040, ["modelValue"]),
|
|
100
|
-
vue.createElementVNode(
|
|
101
|
-
"span",
|
|
102
|
-
{
|
|
103
|
-
class: vue.normalizeClass(vue.unref(index.bem)("number-range-input", "separator"))
|
|
104
|
-
},
|
|
105
|
-
vue.toDisplayString(props.separator || "\u81F3"),
|
|
106
|
-
3
|
|
107
|
-
/* TEXT, CLASS */
|
|
108
|
-
),
|
|
109
|
-
vue.createVNode(vue.unref(elementPlus.ElInput), vue.mergeProps({
|
|
110
|
-
modelValue: maxValue.value,
|
|
111
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => maxValue.value = $event),
|
|
112
|
-
modelModifiers: { number: true }
|
|
113
|
-
}, mergedMaxInputProps.value), vue.createSlots({
|
|
114
|
-
_: 2
|
|
115
|
-
/* DYNAMIC */
|
|
116
|
-
}, [
|
|
117
|
-
vue.unref(slots)["max-prefix"] ? {
|
|
118
|
-
name: "prefix",
|
|
119
|
-
fn: vue.withCtx(() => [
|
|
120
|
-
vue.renderSlot(_ctx.$slots, "max-prefix")
|
|
121
|
-
]),
|
|
122
|
-
key: "0"
|
|
123
|
-
} : void 0,
|
|
124
|
-
vue.unref(slots)["max-suffix"] ? {
|
|
125
|
-
name: "suffix",
|
|
126
|
-
fn: vue.withCtx(() => [
|
|
127
|
-
vue.renderSlot(_ctx.$slots, "max-suffix")
|
|
128
|
-
]),
|
|
129
|
-
key: "1"
|
|
130
|
-
} : void 0,
|
|
131
|
-
vue.unref(slots)["max-prepend"] ? {
|
|
132
|
-
name: "prepend",
|
|
133
|
-
fn: vue.withCtx(() => [
|
|
134
|
-
vue.renderSlot(_ctx.$slots, "max-prepend")
|
|
135
|
-
]),
|
|
136
|
-
key: "2"
|
|
137
|
-
} : void 0,
|
|
138
|
-
vue.unref(slots)["max-append"] ? {
|
|
139
|
-
name: "append",
|
|
140
|
-
fn: vue.withCtx(() => [
|
|
141
|
-
vue.renderSlot(_ctx.$slots, "max-append")
|
|
142
|
-
]),
|
|
143
|
-
key: "3"
|
|
144
|
-
} : void 0
|
|
145
|
-
]), 1040, ["modelValue"])
|
|
146
|
-
],
|
|
147
|
-
2
|
|
148
|
-
/* CLASS */
|
|
149
|
-
);
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
exports.default = _sfc_main;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InputProps } from 'element-plus';
|
|
2
|
-
export type NumberRangeValue = [number | null, number | null];
|
|
3
|
-
export interface NumberRangeInputProps {
|
|
4
|
-
label: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
separator?: string;
|
|
7
|
-
inputProps?: Partial<InputProps>;
|
|
8
|
-
minInputProps?: Partial<InputProps>;
|
|
9
|
-
maxInputProps?: Partial<InputProps>;
|
|
10
|
-
}
|