@minilo/ui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/minilo/dist/index.css +1 -0
- package/minilo/dist/index.full.js +7054 -0
- package/minilo/dist/index.full.min.js +2 -0
- package/minilo/dist/index.full.min.js.map +1 -0
- package/minilo/dist/index.full.min.mjs +2 -0
- package/minilo/dist/index.full.min.mjs.map +1 -0
- package/minilo/dist/index.full.mjs +7041 -0
- package/minilo/es/components/button/index.d.ts +47 -0
- package/minilo/es/components/button/index.mjs +6 -0
- package/minilo/es/components/button/index.vue.d.ts +29 -0
- package/minilo/es/components/button/index.vue.mjs +5 -0
- package/minilo/es/components/button/index.vue2.mjs +67 -0
- package/minilo/es/components/button/type.d.ts +10 -0
- package/minilo/es/components/button/type.mjs +1 -0
- package/minilo/es/components/chart/index.d.ts +49 -0
- package/minilo/es/components/chart/index.mjs +6 -0
- package/minilo/es/components/chart/index.vue.d.ts +33 -0
- package/minilo/es/components/chart/index.vue.mjs +5 -0
- package/minilo/es/components/chart/index.vue2.mjs +124 -0
- package/minilo/es/components/chart/type.d.ts +7 -0
- package/minilo/es/components/chart/type.mjs +1 -0
- package/minilo/es/components/detail/index.d.ts +37 -0
- package/minilo/es/components/detail/index.mjs +6 -0
- package/minilo/es/components/detail/index.vue.d.ts +23 -0
- package/minilo/es/components/detail/index.vue.mjs +5 -0
- package/minilo/es/components/detail/index.vue2.mjs +194 -0
- package/minilo/es/components/detail/renderLabel.vue.d.ts +8 -0
- package/minilo/es/components/detail/renderLabel.vue.mjs +5 -0
- package/minilo/es/components/detail/renderLabel.vue2.mjs +23 -0
- package/minilo/es/components/detail/renderTooltip.vue.d.ts +8 -0
- package/minilo/es/components/detail/renderTooltip.vue.mjs +5 -0
- package/minilo/es/components/detail/renderTooltip.vue2.mjs +23 -0
- package/minilo/es/components/detail/type.d.ts +27 -0
- package/minilo/es/components/detail/type.mjs +1 -0
- package/minilo/es/components/index.d.ts +7 -0
- package/minilo/es/components/index.mjs +7 -0
- package/minilo/es/components/number-range-input/index.d.ts +41 -0
- package/minilo/es/components/number-range-input/index.mjs +6 -0
- package/minilo/es/components/number-range-input/index.vue.d.ts +33 -0
- package/minilo/es/components/number-range-input/index.vue.mjs +5 -0
- package/minilo/es/components/number-range-input/index.vue2.mjs +150 -0
- package/minilo/es/components/number-range-input/props.d.ts +10 -0
- package/minilo/es/components/number-range-input/props.mjs +1 -0
- package/minilo/es/components/search/index.d.ts +586 -0
- package/minilo/es/components/search/index.mjs +6 -0
- package/minilo/es/components/search/index.vue.d.ts +750 -0
- package/minilo/es/components/search/index.vue.mjs +5 -0
- package/minilo/es/components/search/index.vue2.mjs +298 -0
- package/minilo/es/components/search/props.d.ts +107 -0
- package/minilo/es/components/search/props.mjs +55 -0
- package/minilo/es/components/search-table/index.d.ts +274 -0
- package/minilo/es/components/search-table/index.mjs +6 -0
- package/minilo/es/components/search-table/index.vue.d.ts +173 -0
- package/minilo/es/components/search-table/index.vue.mjs +5 -0
- package/minilo/es/components/search-table/index.vue2.mjs +195 -0
- package/minilo/es/components/search-table/props.d.ts +69 -0
- package/minilo/es/components/search-table/props.mjs +69 -0
- package/minilo/es/components/search-table/render.d.ts +11 -0
- package/minilo/es/components/search-table/render.mjs +19 -0
- package/minilo/es/components/virtual-list/index.d.ts +59 -0
- package/minilo/es/components/virtual-list/index.mjs +6 -0
- package/minilo/es/components/virtual-list/index.vue.d.ts +39 -0
- package/minilo/es/components/virtual-list/index.vue.mjs +5 -0
- package/minilo/es/components/virtual-list/index.vue2.mjs +421 -0
- package/minilo/es/components/virtual-list/type.d.ts +20 -0
- package/minilo/es/components/virtual-list/type.mjs +1 -0
- package/minilo/es/index.d.ts +1087 -0
- package/minilo/es/node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.5.17_typescript@5.8.3_/node_modules/@element-plus/icons-vue/dist/index.mjs +25 -0
- package/minilo/es/node_modules/.pnpm/@vueuse_core@13.6.0_vue@3.5.17_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs +73 -0
- package/minilo/es/node_modules/.pnpm/@vueuse_shared@13.6.0_vue@3.5.17_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs +76 -0
- package/minilo/es/packages/utils/dist/func/common.mjs +14 -0
- package/minilo/es/packages/utils/dist/request/index.mjs +110 -0
- package/minilo/es/resolver/index.d.ts +8 -0
- package/minilo/es/resolver/index.mjs +26 -0
- package/minilo/es/utils/index.d.ts +28 -0
- package/minilo/es/utils/index.mjs +30 -0
- package/minilo/lib/components/button/index.d.ts +47 -0
- package/minilo/lib/components/button/index.js +11 -0
- package/minilo/lib/components/button/index.vue.d.ts +29 -0
- package/minilo/lib/components/button/index.vue.js +9 -0
- package/minilo/lib/components/button/index.vue2.js +71 -0
- package/minilo/lib/components/button/type.d.ts +10 -0
- package/minilo/lib/components/button/type.js +2 -0
- package/minilo/lib/components/chart/index.d.ts +49 -0
- package/minilo/lib/components/chart/index.js +11 -0
- package/minilo/lib/components/chart/index.vue.d.ts +33 -0
- package/minilo/lib/components/chart/index.vue.js +9 -0
- package/minilo/lib/components/chart/index.vue2.js +128 -0
- package/minilo/lib/components/chart/type.d.ts +7 -0
- package/minilo/lib/components/chart/type.js +2 -0
- package/minilo/lib/components/detail/index.d.ts +37 -0
- package/minilo/lib/components/detail/index.js +11 -0
- package/minilo/lib/components/detail/index.vue.d.ts +23 -0
- package/minilo/lib/components/detail/index.vue.js +9 -0
- package/minilo/lib/components/detail/index.vue2.js +198 -0
- package/minilo/lib/components/detail/renderLabel.vue.d.ts +8 -0
- package/minilo/lib/components/detail/renderLabel.vue.js +9 -0
- package/minilo/lib/components/detail/renderLabel.vue2.js +27 -0
- package/minilo/lib/components/detail/renderTooltip.vue.d.ts +8 -0
- package/minilo/lib/components/detail/renderTooltip.vue.js +9 -0
- package/minilo/lib/components/detail/renderTooltip.vue2.js +27 -0
- package/minilo/lib/components/detail/type.d.ts +27 -0
- package/minilo/lib/components/detail/type.js +2 -0
- package/minilo/lib/components/index.d.ts +7 -0
- package/minilo/lib/components/index.js +19 -0
- package/minilo/lib/components/number-range-input/index.d.ts +41 -0
- package/minilo/lib/components/number-range-input/index.js +11 -0
- package/minilo/lib/components/number-range-input/index.vue.d.ts +33 -0
- package/minilo/lib/components/number-range-input/index.vue.js +9 -0
- package/minilo/lib/components/number-range-input/index.vue2.js +154 -0
- package/minilo/lib/components/number-range-input/props.d.ts +10 -0
- package/minilo/lib/components/number-range-input/props.js +2 -0
- package/minilo/lib/components/search/index.d.ts +586 -0
- package/minilo/lib/components/search/index.js +11 -0
- package/minilo/lib/components/search/index.vue.d.ts +750 -0
- package/minilo/lib/components/search/index.vue.js +9 -0
- package/minilo/lib/components/search/index.vue2.js +302 -0
- package/minilo/lib/components/search/props.d.ts +107 -0
- package/minilo/lib/components/search/props.js +58 -0
- package/minilo/lib/components/search-table/index.d.ts +274 -0
- package/minilo/lib/components/search-table/index.js +11 -0
- package/minilo/lib/components/search-table/index.vue.d.ts +173 -0
- package/minilo/lib/components/search-table/index.vue.js +9 -0
- package/minilo/lib/components/search-table/index.vue2.js +199 -0
- package/minilo/lib/components/search-table/props.d.ts +69 -0
- package/minilo/lib/components/search-table/props.js +72 -0
- package/minilo/lib/components/search-table/render.d.ts +11 -0
- package/minilo/lib/components/search-table/render.js +23 -0
- package/minilo/lib/components/virtual-list/index.d.ts +59 -0
- package/minilo/lib/components/virtual-list/index.js +11 -0
- package/minilo/lib/components/virtual-list/index.vue.d.ts +39 -0
- package/minilo/lib/components/virtual-list/index.vue.js +9 -0
- package/minilo/lib/components/virtual-list/index.vue2.js +425 -0
- package/minilo/lib/components/virtual-list/type.d.ts +20 -0
- package/minilo/lib/components/virtual-list/type.js +2 -0
- package/minilo/lib/index.d.ts +1087 -0
- package/minilo/lib/node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.5.17_typescript@5.8.3_/node_modules/@element-plus/icons-vue/dist/index.js +27 -0
- package/minilo/lib/node_modules/.pnpm/@vueuse_core@13.6.0_vue@3.5.17_typescript@5.9.3_/node_modules/@vueuse/core/index.js +84 -0
- package/minilo/lib/node_modules/.pnpm/@vueuse_shared@13.6.0_vue@3.5.17_typescript@5.9.3_/node_modules/@vueuse/shared/index.js +83 -0
- package/minilo/lib/packages/utils/dist/func/common.js +16 -0
- package/minilo/lib/packages/utils/dist/request/index.js +120 -0
- package/minilo/lib/resolver/index.d.ts +8 -0
- package/minilo/lib/resolver/index.js +28 -0
- package/minilo/lib/utils/index.d.ts +28 -0
- package/minilo/lib/utils/index.js +34 -0
- package/minilo/theme-chalk/index.css +1 -0
- package/minilo/theme-chalk/ml-button.css +1 -0
- package/minilo/theme-chalk/ml-chart.css +1 -0
- package/minilo/theme-chalk/ml-detail.css +1 -0
- package/minilo/theme-chalk/ml-number-range-input.css +1 -0
- package/minilo/theme-chalk/ml-search-table.css +1 -0
- package/minilo/theme-chalk/ml-search.css +1 -0
- package/minilo/theme-chalk/ml-virtual-list.css +1 -0
- package/minilo/theme-chalk/src/button.scss +22 -0
- package/minilo/theme-chalk/src/chart.scss +11 -0
- package/minilo/theme-chalk/src/default/variable.scss +1 -0
- package/minilo/theme-chalk/src/detail.scss +9 -0
- package/minilo/theme-chalk/src/index.scss +12 -0
- package/minilo/theme-chalk/src/mixins/mixin.scss +273 -0
- package/minilo/theme-chalk/src/number-range-input.scss +9 -0
- package/minilo/theme-chalk/src/search-table.scss +47 -0
- package/minilo/theme-chalk/src/search.scss +20 -0
- package/minilo/theme-chalk/src/virtual-list.scss +49 -0
- package/package.json +107 -0
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,33 @@
|
|
|
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) | undefined;
|
|
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
|
+
};
|
|
@@ -0,0 +1,154 @@
|
|
|
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;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|