luyoumin-ui 0.0.52 → 0.0.54
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/dist/{charts-data-DDkCusl5.js → charts-data-BE5JYBqI.js} +1 -1
- package/dist/components/LymButton.vue.d.ts +3 -3
- package/dist/components/LymCheckBox.vue.d.ts +3 -3
- package/dist/components/LymDialog.vue.d.ts +2 -2
- package/dist/components/LymDrawer.vue.d.ts +2 -2
- package/dist/components/LymInput.vue.d.ts +3 -3
- package/dist/components/LymLink.vue.d.ts +1 -1
- package/dist/components/LymSelect.vue.d.ts +5 -5
- package/dist/components/cascader/LymCascader.vue.d.ts +1 -1
- package/dist/components/generic-img/GenericImg.vue.d.ts +2 -2
- package/dist/global.d.ts +39 -1
- package/dist/{index-DTKlH8EH.js → index-B4YjyIaT.js} +18 -1
- package/dist/luyoumin-ui.es.js +1 -1
- package/dist/luyoumin-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/global.d.ts +14 -13
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value2) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value2);
|
|
5
5
|
return value2;
|
|
6
6
|
};
|
|
7
|
-
import { e as each, f as formatTime, m as modifyHSL, p as parseDate, a as format, r as round, c as clipRectByRect, b as addCommas, l as lift, d as linearMap } from "./index-
|
|
7
|
+
import { e as each, f as formatTime, m as modifyHSL, p as parseDate, a as format, r as round, c as clipRectByRect, b as addCommas, l as lift, d as linearMap } from "./index-B4YjyIaT.js";
|
|
8
8
|
const rawData = [
|
|
9
9
|
["Income", "Life Expectancy", "Population", "Country", "Year"],
|
|
10
10
|
[815, 34.05, 351014, "Australia", 1800],
|
|
@@ -135,16 +135,16 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
135
135
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
136
136
|
onClick?: (() => any) | undefined;
|
|
137
137
|
}, {
|
|
138
|
+
disabled: boolean;
|
|
138
139
|
circle: boolean;
|
|
139
|
-
type: string;
|
|
140
140
|
fontSize: string;
|
|
141
|
-
fontWeight: string;
|
|
142
141
|
padding: string;
|
|
142
|
+
type: string;
|
|
143
|
+
fontWeight: string;
|
|
143
144
|
borderRadius: string;
|
|
144
145
|
round: boolean;
|
|
145
146
|
circlePadding: string;
|
|
146
147
|
plain: boolean;
|
|
147
|
-
disabled: boolean;
|
|
148
148
|
icon: string;
|
|
149
149
|
iconSize: string | number;
|
|
150
150
|
loading: boolean;
|
|
@@ -84,14 +84,14 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
84
84
|
onChange?: ((val: boolean) => any) | undefined;
|
|
85
85
|
"onUpdate:disabled"?: ((val: any) => any) | undefined;
|
|
86
86
|
}, {
|
|
87
|
-
label: string;
|
|
88
87
|
disabled: boolean;
|
|
89
|
-
|
|
88
|
+
label: string;
|
|
89
|
+
value: string;
|
|
90
90
|
modelValue: boolean;
|
|
91
|
+
size: number;
|
|
91
92
|
labelSpace: string;
|
|
92
93
|
labelFontSize: string;
|
|
93
94
|
isCircle: boolean;
|
|
94
|
-
value: string;
|
|
95
95
|
isIndeterminate: boolean;
|
|
96
96
|
}, {}>;
|
|
97
97
|
export default _default;
|
|
@@ -113,15 +113,15 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
113
113
|
onClose?: (() => any) | undefined;
|
|
114
114
|
}, {
|
|
115
115
|
title: string;
|
|
116
|
-
padding: string;
|
|
117
116
|
modelValue: boolean;
|
|
118
117
|
width: string;
|
|
118
|
+
padding: string;
|
|
119
|
+
showClose: boolean;
|
|
119
120
|
top: string;
|
|
120
121
|
zIndex: number;
|
|
121
122
|
isTitleCenter: boolean;
|
|
122
123
|
isFooterCenter: boolean;
|
|
123
124
|
canCloseByClickCover: boolean;
|
|
124
|
-
showClose: boolean;
|
|
125
125
|
bodyMaxH: string;
|
|
126
126
|
alignTop: boolean;
|
|
127
127
|
modal: boolean;
|
|
@@ -107,14 +107,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
107
107
|
onBeforeClose?: ((val: any) => any) | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
title: string;
|
|
110
|
+
modelValue: boolean;
|
|
110
111
|
padding: string;
|
|
112
|
+
showClose: boolean;
|
|
111
113
|
size: string;
|
|
112
|
-
modelValue: boolean;
|
|
113
114
|
zIndex: number;
|
|
114
115
|
isTitleCenter: boolean;
|
|
115
116
|
isFooterCenter: boolean;
|
|
116
117
|
canCloseByClickCover: boolean;
|
|
117
|
-
showClose: boolean;
|
|
118
118
|
modal: boolean;
|
|
119
119
|
direction: string;
|
|
120
120
|
beforeClose: Function;
|
|
@@ -157,15 +157,15 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
157
157
|
}>> & {
|
|
158
158
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
159
159
|
}, {
|
|
160
|
-
type: string;
|
|
161
160
|
disabled: boolean;
|
|
162
161
|
modelValue: string;
|
|
163
162
|
width: string | number;
|
|
163
|
+
clearable: boolean;
|
|
164
|
+
type: string;
|
|
165
|
+
placeholder: string;
|
|
164
166
|
max: number;
|
|
165
167
|
min: number;
|
|
166
|
-
placeholder: string;
|
|
167
168
|
maxlength: string;
|
|
168
|
-
clearable: boolean;
|
|
169
169
|
formatter: Function;
|
|
170
170
|
showPassword: boolean;
|
|
171
171
|
noSpaces: boolean;
|
|
@@ -85,8 +85,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
85
85
|
}>> & {
|
|
86
86
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
87
87
|
}, {
|
|
88
|
-
type: string;
|
|
89
88
|
disabled: boolean;
|
|
89
|
+
type: string;
|
|
90
90
|
iconSize: string | number;
|
|
91
91
|
iconSpace: string;
|
|
92
92
|
target: string;
|
|
@@ -243,21 +243,21 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
243
243
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
244
244
|
onSelectCompleted?: (() => any) | undefined;
|
|
245
245
|
}, {
|
|
246
|
-
fontSize: string | number;
|
|
247
|
-
padding: string;
|
|
248
246
|
disabled: boolean;
|
|
249
247
|
modelValue: string | any[];
|
|
250
|
-
width: string | number;
|
|
251
|
-
multiple: boolean;
|
|
252
|
-
clearable: boolean;
|
|
253
248
|
options: any[];
|
|
254
249
|
labelKey: string;
|
|
255
250
|
valueKey: string;
|
|
251
|
+
width: string | number;
|
|
256
252
|
ddbWidth: string | number;
|
|
253
|
+
fontSize: string | number;
|
|
254
|
+
padding: string;
|
|
257
255
|
scrollMaxH: string;
|
|
258
256
|
filterable: boolean;
|
|
259
257
|
remote: boolean;
|
|
260
258
|
remoteMethod: Function;
|
|
259
|
+
multiple: boolean;
|
|
260
|
+
clearable: boolean;
|
|
261
261
|
collapseTags: boolean;
|
|
262
262
|
collapseTagsTooltip: boolean;
|
|
263
263
|
isCascader: boolean;
|
|
@@ -142,10 +142,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
142
142
|
onCompleted?: (() => any) | undefined;
|
|
143
143
|
}, {
|
|
144
144
|
modelValue: any[];
|
|
145
|
-
multiple: boolean;
|
|
146
145
|
options: any[];
|
|
147
146
|
labelKey: string;
|
|
148
147
|
valueKey: string;
|
|
148
|
+
multiple: boolean;
|
|
149
149
|
levelW: string;
|
|
150
150
|
levelH: string;
|
|
151
151
|
expandTrigger: string;
|
|
@@ -8,7 +8,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
size: {
|
|
11
|
-
type: (StringConstructor |
|
|
11
|
+
type: (StringConstructor | ArrayConstructor | NumberConstructor)[];
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
14
|
fillColor: {
|
|
@@ -53,7 +53,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
53
53
|
default: string;
|
|
54
54
|
};
|
|
55
55
|
size: {
|
|
56
|
-
type: (StringConstructor |
|
|
56
|
+
type: (StringConstructor | ArrayConstructor | NumberConstructor)[];
|
|
57
57
|
default: string;
|
|
58
58
|
};
|
|
59
59
|
fillColor: {
|
package/dist/global.d.ts
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
export {}
|
|
2
2
|
|
|
3
|
+
// import GenericImg from './components/generic-img/GenericImg.vue';
|
|
4
|
+
// import LymButton from './components/LymButton.vue';
|
|
5
|
+
// import LymCheckBox from './components/LymCheckBox.vue';
|
|
6
|
+
// import LymCheckBoxGroup from './components/LymCheckBoxGroup.vue';
|
|
7
|
+
// import LymColorPicker from './components/LymColorPicker.vue';
|
|
8
|
+
// import LymDialog from './components/LymDialog.vue';
|
|
9
|
+
// import LymDrawer from './components/LymDrawer.vue';
|
|
10
|
+
// import LymInput from './components/LymInput.vue';
|
|
11
|
+
// import LymLink from './components/LymLink.vue';
|
|
12
|
+
// import LymEcharts from './components/echarts/LymEcharts.vue';
|
|
13
|
+
// import LymCountTo from './components/LymCountTo.vue';
|
|
14
|
+
// import LymSelect from './components/LymSelect.vue';
|
|
15
|
+
// import LymCascader from './components/cascader/LymCascader.vue';
|
|
3
16
|
import { GenericImg, LymButton, LymCheckBox, LymCheckBoxGroup, LymColorPicker, LymDialog, LymDrawer, LymInput, LymLink, LymEcharts, LymCountTo, LymSelect, LymCascader } from './index'
|
|
4
17
|
|
|
5
18
|
// 自动注册全局组件虽然很方便,但在使用时缺少了ts类型提示,下面介绍一下为全局组件添加类型提示
|
|
@@ -19,4 +32,29 @@ declare module 'vue' {
|
|
|
19
32
|
LymSelect: typeof LymSelect
|
|
20
33
|
LymCascader: typeof LymCascader
|
|
21
34
|
}
|
|
22
|
-
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
// 打包后插入dist目录的global.d.ts文件内容
|
|
39
|
+
// export {}
|
|
40
|
+
|
|
41
|
+
// import { GenericImg, LymButton, LymCheckBox, LymCheckBoxGroup, LymColorPicker, LymDialog, LymDrawer, LymInput, LymLink, LymEcharts, LymCountTo, LymSelect, LymCascader } from './index'
|
|
42
|
+
|
|
43
|
+
// // 自动注册全局组件虽然很方便,但在使用时缺少了ts类型提示,下面介绍一下为全局组件添加类型提示
|
|
44
|
+
// declare module 'vue' {
|
|
45
|
+
// export interface GlobalComponents {
|
|
46
|
+
// GenericImg: typeof GenericImg
|
|
47
|
+
// LymButton: typeof LymButton
|
|
48
|
+
// LymCheckBox: typeof LymCheckBox
|
|
49
|
+
// LymCheckBoxGroup: typeof LymCheckBoxGroup
|
|
50
|
+
// LymColorPicker: typeof LymColorPicker
|
|
51
|
+
// LymDialog: typeof LymDialog
|
|
52
|
+
// LymDrawer: typeof LymDrawer
|
|
53
|
+
// LymInput: typeof LymInput
|
|
54
|
+
// LymLink: typeof LymLink
|
|
55
|
+
// LymEcharts: typeof LymEcharts
|
|
56
|
+
// LymCountTo: typeof LymCountTo
|
|
57
|
+
// LymSelect: typeof LymSelect
|
|
58
|
+
// LymCascader: typeof LymCascader
|
|
59
|
+
// }
|
|
60
|
+
// }
|
|
@@ -80110,7 +80110,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80110
80110
|
}
|
|
80111
80111
|
});
|
|
80112
80112
|
async function getCahrtData() {
|
|
80113
|
-
const asd = await import("./charts-data-
|
|
80113
|
+
const asd = await import("./charts-data-BE5JYBqI.js");
|
|
80114
80114
|
chartSamples.value = asd.default.chartSamples;
|
|
80115
80115
|
}
|
|
80116
80116
|
function changeTheme(type) {
|
|
@@ -80217,9 +80217,26 @@ const __vite_glob_0_12 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
80217
80217
|
__proto__: null,
|
|
80218
80218
|
default: LymEcharts
|
|
80219
80219
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
80220
|
+
function registerDirectives(app) {
|
|
80221
|
+
app.directive("click-outside", clickOutside);
|
|
80222
|
+
}
|
|
80223
|
+
const clickOutside = {
|
|
80224
|
+
beforeMount(el, binding) {
|
|
80225
|
+
el.clickOutsideEvent = function(event) {
|
|
80226
|
+
if (!(el === event.target || el.contains(event.target))) {
|
|
80227
|
+
binding.value(event);
|
|
80228
|
+
}
|
|
80229
|
+
};
|
|
80230
|
+
document.addEventListener("click", el.clickOutsideEvent);
|
|
80231
|
+
},
|
|
80232
|
+
unmounted(el) {
|
|
80233
|
+
document.removeEventListener("click", el.clickOutsideEvent);
|
|
80234
|
+
}
|
|
80235
|
+
};
|
|
80220
80236
|
const install = {
|
|
80221
80237
|
install(app) {
|
|
80222
80238
|
var _a2;
|
|
80239
|
+
registerDirectives(app);
|
|
80223
80240
|
const components = /* @__PURE__ */ Object.assign({ "./components/JsonExportExcel.vue": __vite_glob_0_0, "./components/LymButton.vue": __vite_glob_0_1, "./components/LymCheckBox.vue": __vite_glob_0_2, "./components/LymCheckBoxGroup.vue": __vite_glob_0_3, "./components/LymColorPicker.vue": __vite_glob_0_4, "./components/LymCountTo.vue": __vite_glob_0_5, "./components/LymDialog.vue": __vite_glob_0_6, "./components/LymDrawer.vue": __vite_glob_0_7, "./components/LymInput.vue": __vite_glob_0_8, "./components/LymLink.vue": __vite_glob_0_9, "./components/LymSelect.vue": __vite_glob_0_10, "./components/cascader/LymCascader.vue": __vite_glob_0_11, "./components/echarts/LymEcharts.vue": __vite_glob_0_12, "./components/generic-img/GenericImg.vue": __vite_glob_0_13, "./components/generic-img/SvgIcons.vue": __vite_glob_0_14 });
|
|
80224
80241
|
for (const path in components) {
|
|
80225
80242
|
const component = components[path];
|
package/dist/luyoumin-ui.es.js
CHANGED