hzzt-plus 2.0.6 → 2.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/dist/index.full.js +74 -67
- package/dist/index.full.min.js +10 -10
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +10 -10
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +74 -67
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/es/components/collapse/index.d.ts +6 -0
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse.mjs +0 -88
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse.vue.d.ts +6 -0
- package/es/components/collapse/src/collapse2.mjs +88 -0
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/icon/index.d.ts +438 -3
- package/es/components/icon/index.mjs +12 -11
- package/es/components/icon/index.mjs.map +1 -1
- package/es/components/icon/src/index.mjs +13 -5
- package/es/components/icon/src/index.mjs.map +1 -1
- package/es/components/icon/src/index.vue.d.ts +6 -0
- package/es/components/index.mjs +3 -3
- package/es/components/lazy-list/index.mjs +2 -2
- package/es/components/lazy-list/src/lazy-list.mjs +80 -22
- package/es/components/lazy-list/src/lazy-list.mjs.map +1 -1
- package/es/components/lazy-list/src/lazy-list2.mjs +22 -80
- package/es/components/lazy-list/src/lazy-list2.mjs.map +1 -1
- package/es/components/page-size/index.d.ts +6 -0
- package/es/components/page-size/src/index.vue.d.ts +6 -0
- package/es/components/pagination/index.d.ts +6 -0
- package/es/components/pagination/src/index.vue.d.ts +6 -0
- package/es/components/quarter-picker/index.d.ts +6 -0
- package/es/components/quarter-picker/src/index.vue.d.ts +6 -0
- package/es/components/scroll/src/scroll.vue.d.ts +6 -0
- package/es/components/select/src/select.vue.d.ts +6 -0
- package/es/components/select-input/index.mjs +2 -2
- package/es/components/select-input/src/select-input.mjs +45 -124
- package/es/components/select-input/src/select-input.mjs.map +1 -1
- package/es/components/select-input/src/select-input2.mjs +124 -45
- package/es/components/select-input/src/select-input2.mjs.map +1 -1
- package/es/components/select-textarea/src/select-textarea2.mjs +1 -1
- package/es/components/tab/index.d.ts +6 -0
- package/es/components/tab/src/index.vue.d.ts +6 -0
- package/es/components/title/index.mjs +2 -2
- package/es/components/title/src/title.mjs +11 -54
- package/es/components/title/src/title.mjs.map +1 -1
- package/es/components/title/src/title2.mjs +54 -11
- package/es/components/title/src/title2.mjs.map +1 -1
- package/es/index.mjs +3 -3
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/collapse/index.d.ts +6 -0
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse.js +0 -91
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse.vue.d.ts +6 -0
- package/lib/components/collapse/src/collapse2.js +91 -0
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/icon/index.d.ts +438 -3
- package/lib/components/icon/index.js +14 -13
- package/lib/components/icon/index.js.map +1 -1
- package/lib/components/icon/src/index.js +12 -4
- package/lib/components/icon/src/index.js.map +1 -1
- package/lib/components/icon/src/index.vue.d.ts +6 -0
- package/lib/components/index.js +3 -3
- package/lib/components/lazy-list/index.js +2 -2
- package/lib/components/lazy-list/src/lazy-list.js +80 -23
- package/lib/components/lazy-list/src/lazy-list.js.map +1 -1
- package/lib/components/lazy-list/src/lazy-list2.js +23 -80
- package/lib/components/lazy-list/src/lazy-list2.js.map +1 -1
- package/lib/components/page-size/index.d.ts +6 -0
- package/lib/components/page-size/src/index.vue.d.ts +6 -0
- package/lib/components/pagination/index.d.ts +6 -0
- package/lib/components/pagination/src/index.vue.d.ts +6 -0
- package/lib/components/quarter-picker/index.d.ts +6 -0
- package/lib/components/quarter-picker/src/index.vue.d.ts +6 -0
- package/lib/components/scroll/src/scroll.vue.d.ts +6 -0
- package/lib/components/select/src/select.vue.d.ts +6 -0
- package/lib/components/select-input/index.js +2 -2
- package/lib/components/select-input/src/select-input.js +46 -124
- package/lib/components/select-input/src/select-input.js.map +1 -1
- package/lib/components/select-input/src/select-input2.js +124 -46
- package/lib/components/select-input/src/select-input2.js.map +1 -1
- package/lib/components/select-textarea/src/select-textarea2.js +1 -1
- package/lib/components/tab/index.d.ts +6 -0
- package/lib/components/tab/src/index.vue.d.ts +6 -0
- package/lib/components/title/index.js +2 -2
- package/lib/components/title/src/title.js +11 -54
- package/lib/components/title/src/title.js.map +1 -1
- package/lib/components/title/src/title2.js +54 -11
- package/lib/components/title/src/title2.js.map +1 -1
- package/lib/index.js +3 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
package/es/components/index.mjs
CHANGED
|
@@ -19,16 +19,16 @@ export { HzztSelect } from './select/index.mjs';
|
|
|
19
19
|
export { HzztClickInput } from './click-input/index.mjs';
|
|
20
20
|
export { HzztScroll } from './scroll/index.mjs';
|
|
21
21
|
export { HzztLazyList } from './lazy-list/index.mjs';
|
|
22
|
-
export { titleProps } from './title/src/
|
|
22
|
+
export { titleProps } from './title/src/title.mjs';
|
|
23
23
|
export { configProviderProps } from './config-provider/src/config-provider-props.mjs';
|
|
24
24
|
export { configProviderContextKey } from './config-provider/src/constants.mjs';
|
|
25
25
|
export { provideGlobalConfig, useGlobalConfig } from './config-provider/src/hooks/use-global-config.mjs';
|
|
26
26
|
export { scanEmits, scanProps } from './scan/src/scan.mjs';
|
|
27
|
-
export { selectInputEmits, selectInputProps } from './select-input/src/select-
|
|
27
|
+
export { selectInputEmits, selectInputProps } from './select-input/src/select-input.mjs';
|
|
28
28
|
export { selectTextareaEmits, selectTextareaProps } from './select-textarea/src/select-textarea.mjs';
|
|
29
29
|
export { inputRangeEmits, inputRangeProps } from './input-range/src/input-range.mjs';
|
|
30
30
|
export { cascaderEmits, cascaderProps } from './cascader/src/cascader.mjs';
|
|
31
31
|
export { selectEmits, selectProps } from './select/src/select.mjs';
|
|
32
32
|
export { clickInputEmits, clickInputProps } from './click-input/src/click-input.mjs';
|
|
33
|
-
export { lazyListEmits, lazyListProps } from './lazy-list/src/lazy-
|
|
33
|
+
export { lazyListEmits, lazyListProps } from './lazy-list/src/lazy-list2.mjs';
|
|
34
34
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
|
-
import LazyList from './src/lazy-
|
|
3
|
-
export { lazyListEmits, lazyListProps } from './src/lazy-
|
|
2
|
+
import LazyList from './src/lazy-list.mjs';
|
|
3
|
+
export { lazyListEmits, lazyListProps } from './src/lazy-list2.mjs';
|
|
4
4
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
5
5
|
|
|
6
6
|
const HzztLazyList = withInstall(LazyList);
|
|
@@ -1,27 +1,85 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, Fragment, renderList, renderSlot } from 'vue';
|
|
2
|
+
import { lazyListProps, lazyListEmits } from './lazy-list2.mjs';
|
|
3
|
+
import '../../../hooks/index.mjs';
|
|
4
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
5
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
3
6
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
const _hoisted_1 = ["onClick"];
|
|
8
|
+
const __default__ = defineComponent({
|
|
9
|
+
name: "HzztLazyList"
|
|
10
|
+
});
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
...__default__,
|
|
13
|
+
props: lazyListProps,
|
|
14
|
+
emits: lazyListEmits,
|
|
15
|
+
setup(__props, { emit }) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const totalHeight = ref("100%");
|
|
18
|
+
const marginTop = ref("0px");
|
|
19
|
+
const currentIndex = ref(1);
|
|
20
|
+
const current = ref(null);
|
|
21
|
+
const nsLazy = useNamespace("lazy-list");
|
|
22
|
+
const containerCls = computed(() => [
|
|
23
|
+
"overflow-y-auto",
|
|
24
|
+
nsLazy.b()
|
|
25
|
+
]);
|
|
26
|
+
watch(() => props.data, () => {
|
|
27
|
+
totalHeight.value = props.data.length * props.height + "px";
|
|
28
|
+
}, {
|
|
29
|
+
immediate: true
|
|
30
|
+
});
|
|
31
|
+
const calcList = computed(() => props.data.slice(currentIndex.value === 1 ? 0 : (currentIndex.value - 1) * props.size - props.size / 2, (currentIndex.value + 1) * props.size + props.size / 2));
|
|
32
|
+
function scrollList(e) {
|
|
33
|
+
const target = e.target;
|
|
34
|
+
const scrollTop = target.scrollTop;
|
|
35
|
+
if (scrollTop < props.size / 2 * props.height) {
|
|
36
|
+
currentIndex.value = 1;
|
|
37
|
+
} else {
|
|
38
|
+
currentIndex.value = Math.ceil((scrollTop - props.size / 2 * props.height) / props.size / props.height);
|
|
39
|
+
}
|
|
40
|
+
if (currentIndex.value === 1) {
|
|
41
|
+
marginTop.value = "0px";
|
|
42
|
+
} else {
|
|
43
|
+
marginTop.value = ((currentIndex.value - 1) * props.size - props.size / 2) * props.height + "px";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function rowClick(row) {
|
|
47
|
+
current.value = row;
|
|
48
|
+
emit("row-click", row);
|
|
49
|
+
}
|
|
50
|
+
return (_ctx, _cache) => {
|
|
51
|
+
return openBlock(), createElementBlock("div", {
|
|
52
|
+
class: normalizeClass(unref(containerCls)),
|
|
53
|
+
onScroll: scrollList
|
|
54
|
+
}, [
|
|
55
|
+
createElementVNode("div", {
|
|
56
|
+
style: normalizeStyle({
|
|
57
|
+
height: totalHeight.value,
|
|
58
|
+
width: 0,
|
|
59
|
+
float: "left"
|
|
60
|
+
})
|
|
61
|
+
}, null, 4),
|
|
62
|
+
createElementVNode("div", {
|
|
63
|
+
style: normalizeStyle({ marginTop: marginTop.value })
|
|
64
|
+
}, [
|
|
65
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(calcList), (item) => {
|
|
66
|
+
return openBlock(), createElementBlock("div", {
|
|
67
|
+
key: item[_ctx.rowKey],
|
|
68
|
+
style: normalizeStyle({
|
|
69
|
+
height: _ctx.height + "px"
|
|
70
|
+
}),
|
|
71
|
+
class: normalizeClass(["hzzt-lazy-list__item", current.value === item ? "is-active" : ""]),
|
|
72
|
+
onClick: ($event) => rowClick(item)
|
|
73
|
+
}, [
|
|
74
|
+
renderSlot(_ctx.$slots, "default", { data: item })
|
|
75
|
+
], 14, _hoisted_1);
|
|
76
|
+
}), 128))
|
|
77
|
+
], 4)
|
|
78
|
+
], 34);
|
|
79
|
+
};
|
|
20
80
|
}
|
|
21
81
|
});
|
|
22
|
-
|
|
23
|
-
"row-click": (row) => row
|
|
24
|
-
};
|
|
82
|
+
var LazyList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "lazy-list.vue"]]);
|
|
25
83
|
|
|
26
|
-
export {
|
|
84
|
+
export { LazyList as default };
|
|
27
85
|
//# sourceMappingURL=lazy-list.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy-list.mjs","sources":["../../../../../../packages/components/lazy-list/src/lazy-list.
|
|
1
|
+
{"version":3,"file":"lazy-list.mjs","sources":["../../../../../../packages/components/lazy-list/src/lazy-list.vue"],"sourcesContent":["<template>\n <div :class=\"containerCls\" @scroll=\"scrollList\">\n <div\n :style=\"{\n height: totalHeight,\n width: 0,\n float: 'left',\n }\"\n />\n <div :style=\"{marginTop: marginTop}\">\n <div\n v-for=\"item in calcList\"\n :key=\"item[rowKey]\"\n :style=\"{\n height: height+'px'\n }\"\n :class=\"['hzzt-lazy-list__item', current === item?'is-active':'']\"\n @click=\"rowClick(item)\"\n >\n <slot :data=\"item\" />\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import {lazyListEmits, lazyListProps} from './lazy-list'\n import {computed, ref, watch} from \"vue\";\n import {useNamespace} from \"@hzzt-plus/hooks\";\n\n defineOptions({\n name: 'HzztLazyList',\n })\n\n const props = defineProps(lazyListProps)\n const emit = defineEmits(lazyListEmits)\n\n const totalHeight = ref('100%');\n const marginTop = ref('0px');\n const currentIndex = ref(1);\n const current = ref(null);\n\n const nsLazy = useNamespace('lazy-list');\n\n const containerCls = computed(() => [\n 'overflow-y-auto',\n nsLazy.b(),\n ])\n\n watch(() => props.data, () => {\n totalHeight.value = props.data.length * props.height + 'px';\n }, {\n immediate: true,\n });\n\n const calcList = computed(\n () => props.data.slice(currentIndex.value === 1 ? 0 : ((currentIndex.value - 1) * props.size -\n props.size / 2), (currentIndex.value + 1) * props.size + props.size / 2));\n\n function scrollList(e: Event) {\n const target = e.target as HTMLElement;\n const scrollTop = target.scrollTop;\n if (scrollTop < props.size / 2 * props.height) {\n currentIndex.value = 1;\n } else {\n currentIndex.value = Math.ceil((scrollTop - props.size / 2 * props.height) / props.size / props.height);\n }\n if (currentIndex.value === 1) {\n marginTop.value = '0px';\n } else {\n marginTop.value = ((currentIndex.value - 1) * props.size - props.size / 2) * props.height + 'px';\n }\n }\n\n function rowClick(row: any) {\n current.value = row;\n emit('row-click', row);\n }\n\n\n</script>\n"],"names":["_openBlock","_createElementBlock"],"mappings":";;;;;;;mCA8BgB,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,WAAA,GAAc,IAAI,MAAM,CAAA,CAAA;AAC9B,IAAM,MAAA,SAAA,GAAY,IAAI,KAAK,CAAA,CAAA;AAC3B,IAAM,MAAA,YAAA,GAAe,IAAI,CAAC,CAAA,CAAA;AAC1B,IAAM,MAAA,OAAA,GAAU,IAAI,IAAI,CAAA,CAAA;AAExB,IAAM,MAAA,MAAA,GAAS,aAAa,WAAW,CAAA,CAAA;AAEvC,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAAA,MAClC,iBAAA;AAAA,MACA,OAAO,CAAE,EAAA;AAAA,KACV,CAAA,CAAA;AAED,IAAM,KAAA,CAAA,MAAM,KAAM,CAAA,IAAA,EAAM,MAAM;AAC5B,MAAA,WAAA,CAAY,KAAQ,GAAA,KAAA,CAAM,IAAK,CAAA,MAAA,GAAS,MAAM,MAAS,GAAA,IAAA,CAAA;AAAA,KACtD,EAAA;AAAA,MACD,SAAW,EAAA,IAAA;AAAA,KACZ,CAAA,CAAA;AAED,IAAA,MAAM,QAAW,GAAA,QAAA,CAAA,MAAA,KAAA,CAAA,IAAA,CAAA,KAAA,CAAA,YAAA,CAAA,KAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA,YAAA,CAAA,KAAA,GAAA,CAAA,IAAA,KAAA,CAAA,IAAA,GAAA,KAAA,CAAA,IAAA,GAAA,CAAA,EAAA,CAAA,YAAA,CAAA,KAAA,GAAA,CAAA,IAAA,KAAA,CAAA,IAAA,GAAA,KAAA,CAAA,IAAA,GAAA,CAAA,CAAA,CAAA,CAAA;AAAA,IACf,mBAAiB,CAAA,CAAA,EAAA;AACwD,MAAC,MAAA,MAAA,GAAA,CAAA,CAAA,MAAA,CAAA;AAE5E,MAAA,MAAA,YAAoB,MAAU,CAAA,SAAA,CAAA;AAC5B,MAAA,IAAA,YAAiB,KAAA,CAAA,IAAA,GAAA,CAAA,GAAA,KAAA,CAAA,MAAA,EAAA;AACjB,QAAA,kBAAyB,GAAA,CAAA,CAAA;AACzB,OAAA,MAAgB;AACd,QAAA,YAAA,CAAa,KAAQ,GAAA,IAAA,CAAA,IAAA,CAAA,CAAA,SAAA,GAAA,KAAA,CAAA,IAAA,GAAA,CAAA,GAAA,KAAA,CAAA,MAAA,IAAA,KAAA,CAAA,IAAA,GAAA,KAAA,CAAA,MAAA,CAAA,CAAA;AAAA,OAChB;AACL,MAAA,IAAA,YAAqB,CAAA,KAAA,KAAA,CAAK,EAAM;AAAsE,QACxG,SAAA,CAAA,KAAA,GAAA,KAAA,CAAA;AACA,OAAI,MAAA;AACF,QAAA,SAAA,CAAU,KAAQ,GAAA,CAAA,CAAA,YAAA,CAAA,KAAA,GAAA,CAAA,IAAA,KAAA,CAAA,IAAA,GAAA,KAAA,CAAA,IAAA,GAAA,CAAA,IAAA,KAAA,CAAA,MAAA,GAAA,IAAA,CAAA;AAAA,OACb;AACL,KAAU;AAAkF,IAC9F,SAAA,QAAA,CAAA,GAAA,EAAA;AAAA,MACF,OAAA,CAAA,KAAA,GAAA,GAAA,CAAA;AAEA,MAAA,IAAA,CAAA,WAAkB,EAAU,GAAA,CAAA,CAAA;AAC1B,KAAA;AACA,IAAA,OAAK,aAAa,KAAG;AAAA,MACvB,OAAAA,SAAA,EAAA,EAAAC,kBAAA,CAAA,KAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,85 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import '../../../hooks/index.mjs';
|
|
4
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
5
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
1
|
+
import '../../../utils/index.mjs';
|
|
2
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
6
3
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"overflow-y-auto",
|
|
24
|
-
nsLazy.b()
|
|
25
|
-
]);
|
|
26
|
-
watch(() => props.data, () => {
|
|
27
|
-
totalHeight.value = props.data.length * props.height + "px";
|
|
28
|
-
}, {
|
|
29
|
-
immediate: true
|
|
30
|
-
});
|
|
31
|
-
const calcList = computed(() => props.data.slice(currentIndex.value === 1 ? 0 : (currentIndex.value - 1) * props.size - props.size / 2, (currentIndex.value + 1) * props.size + props.size / 2));
|
|
32
|
-
function scrollList(e) {
|
|
33
|
-
const target = e.target;
|
|
34
|
-
const scrollTop = target.scrollTop;
|
|
35
|
-
if (scrollTop < props.size / 2 * props.height) {
|
|
36
|
-
currentIndex.value = 1;
|
|
37
|
-
} else {
|
|
38
|
-
currentIndex.value = Math.ceil((scrollTop - props.size / 2 * props.height) / props.size / props.height);
|
|
39
|
-
}
|
|
40
|
-
if (currentIndex.value === 1) {
|
|
41
|
-
marginTop.value = "0px";
|
|
42
|
-
} else {
|
|
43
|
-
marginTop.value = ((currentIndex.value - 1) * props.size - props.size / 2) * props.height + "px";
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
function rowClick(row) {
|
|
47
|
-
current.value = row;
|
|
48
|
-
emit("row-click", row);
|
|
49
|
-
}
|
|
50
|
-
return (_ctx, _cache) => {
|
|
51
|
-
return openBlock(), createElementBlock("div", {
|
|
52
|
-
class: normalizeClass(unref(containerCls)),
|
|
53
|
-
onScroll: scrollList
|
|
54
|
-
}, [
|
|
55
|
-
createElementVNode("div", {
|
|
56
|
-
style: normalizeStyle({
|
|
57
|
-
height: totalHeight.value,
|
|
58
|
-
width: 0,
|
|
59
|
-
float: "left"
|
|
60
|
-
})
|
|
61
|
-
}, null, 4),
|
|
62
|
-
createElementVNode("div", {
|
|
63
|
-
style: normalizeStyle({ marginTop: marginTop.value })
|
|
64
|
-
}, [
|
|
65
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(calcList), (item) => {
|
|
66
|
-
return openBlock(), createElementBlock("div", {
|
|
67
|
-
key: item[_ctx.rowKey],
|
|
68
|
-
style: normalizeStyle({
|
|
69
|
-
height: _ctx.height + "px"
|
|
70
|
-
}),
|
|
71
|
-
class: normalizeClass(["hzzt-lazy-list__item", current.value === item ? "is-active" : ""]),
|
|
72
|
-
onClick: ($event) => rowClick(item)
|
|
73
|
-
}, [
|
|
74
|
-
renderSlot(_ctx.$slots, "default", { data: item })
|
|
75
|
-
], 14, _hoisted_1);
|
|
76
|
-
}), 128))
|
|
77
|
-
], 4)
|
|
78
|
-
], 34);
|
|
79
|
-
};
|
|
4
|
+
const lazyListProps = buildProps({
|
|
5
|
+
size: {
|
|
6
|
+
type: Number,
|
|
7
|
+
default: 20
|
|
8
|
+
},
|
|
9
|
+
height: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: 30
|
|
12
|
+
},
|
|
13
|
+
data: {
|
|
14
|
+
type: definePropType(Array),
|
|
15
|
+
default: () => []
|
|
16
|
+
},
|
|
17
|
+
rowKey: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "id"
|
|
80
20
|
}
|
|
81
21
|
});
|
|
82
|
-
|
|
22
|
+
const lazyListEmits = {
|
|
23
|
+
"row-click": (row) => row
|
|
24
|
+
};
|
|
83
25
|
|
|
84
|
-
export {
|
|
26
|
+
export { lazyListEmits, lazyListProps };
|
|
85
27
|
//# sourceMappingURL=lazy-list2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy-list2.mjs","sources":["../../../../../../packages/components/lazy-list/src/lazy-list.
|
|
1
|
+
{"version":3,"file":"lazy-list2.mjs","sources":["../../../../../../packages/components/lazy-list/src/lazy-list.ts"],"sourcesContent":["import {buildProps, definePropType} from '@hzzt-plus/utils'\nimport type {ExtractPropTypes} from 'vue'\nimport type LazyList from './lazy-list.vue'\n\nexport const lazyListProps = buildProps({\n size: {\n type: Number,\n default: 20,\n },\n height: {\n type: Number,\n default: 30,\n },\n data: {\n type: definePropType<Record<string, any>[]>(Array),\n default: () => [],\n },\n rowKey: {\n type: String,\n default: 'id',\n },\n})\n\nexport type LazyListProps = ExtractPropTypes<typeof lazyListProps>\n\nexport const lazyListEmits = {\n 'row-click': (row: any) => row\n}\n\nexport type LazyListEmits = typeof lazyListEmits\n\n\nexport type LazyListInstance = InstanceType<typeof LazyList>\n"],"names":[],"mappings":";;;AACY,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,WAAW,EAAE,CAAC,GAAG,KAAK,GAAG;AAC3B;;;;"}
|
|
@@ -13093,6 +13093,8 @@ export declare const HzztPageSize: import("hzzt-plus/es/utils").SFCWithInstall<i
|
|
|
13093
13093
|
type: StringConstructor;
|
|
13094
13094
|
default: string;
|
|
13095
13095
|
};
|
|
13096
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
13097
|
+
color: StringConstructor;
|
|
13096
13098
|
}, {
|
|
13097
13099
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
13098
13100
|
name: {
|
|
@@ -13103,6 +13105,8 @@ export declare const HzztPageSize: import("hzzt-plus/es/utils").SFCWithInstall<i
|
|
|
13103
13105
|
type: StringConstructor;
|
|
13104
13106
|
default: string;
|
|
13105
13107
|
};
|
|
13108
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
13109
|
+
color: StringConstructor;
|
|
13106
13110
|
}>> & {
|
|
13107
13111
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
13108
13112
|
}>>;
|
|
@@ -13218,6 +13222,8 @@ export declare const HzztPageSize: import("hzzt-plus/es/utils").SFCWithInstall<i
|
|
|
13218
13222
|
type: StringConstructor;
|
|
13219
13223
|
default: string;
|
|
13220
13224
|
};
|
|
13225
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
13226
|
+
color: StringConstructor;
|
|
13221
13227
|
}>>, {
|
|
13222
13228
|
type: string;
|
|
13223
13229
|
}>;
|
|
@@ -13093,6 +13093,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13093
13093
|
type: StringConstructor;
|
|
13094
13094
|
default: string;
|
|
13095
13095
|
};
|
|
13096
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
13097
|
+
color: StringConstructor;
|
|
13096
13098
|
}, {
|
|
13097
13099
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
13098
13100
|
name: {
|
|
@@ -13103,6 +13105,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13103
13105
|
type: StringConstructor;
|
|
13104
13106
|
default: string;
|
|
13105
13107
|
};
|
|
13108
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
13109
|
+
color: StringConstructor;
|
|
13106
13110
|
}>> & {
|
|
13107
13111
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
13108
13112
|
}>>;
|
|
@@ -13218,6 +13222,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13218
13222
|
type: StringConstructor;
|
|
13219
13223
|
default: string;
|
|
13220
13224
|
};
|
|
13225
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
13226
|
+
color: StringConstructor;
|
|
13221
13227
|
}>>, {
|
|
13222
13228
|
type: string;
|
|
13223
13229
|
}>;
|
|
@@ -34,6 +34,8 @@ export declare const HzztPagination: import("hzzt-plus/es/utils").SFCWithInstall
|
|
|
34
34
|
type: StringConstructor;
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
38
|
+
color: StringConstructor;
|
|
37
39
|
}, {
|
|
38
40
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
39
41
|
name: {
|
|
@@ -44,6 +46,8 @@ export declare const HzztPagination: import("hzzt-plus/es/utils").SFCWithInstall
|
|
|
44
46
|
type: StringConstructor;
|
|
45
47
|
default: string;
|
|
46
48
|
};
|
|
49
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
50
|
+
color: StringConstructor;
|
|
47
51
|
}>> & {
|
|
48
52
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
49
53
|
}>>;
|
|
@@ -159,6 +163,8 @@ export declare const HzztPagination: import("hzzt-plus/es/utils").SFCWithInstall
|
|
|
159
163
|
type: StringConstructor;
|
|
160
164
|
default: string;
|
|
161
165
|
};
|
|
166
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
167
|
+
color: StringConstructor;
|
|
162
168
|
}>>, {
|
|
163
169
|
type: string;
|
|
164
170
|
}>;
|
|
@@ -34,6 +34,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
type: StringConstructor;
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
38
|
+
color: StringConstructor;
|
|
37
39
|
}, {
|
|
38
40
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
39
41
|
name: {
|
|
@@ -44,6 +46,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
46
|
type: StringConstructor;
|
|
45
47
|
default: string;
|
|
46
48
|
};
|
|
49
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
50
|
+
color: StringConstructor;
|
|
47
51
|
}>> & {
|
|
48
52
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
49
53
|
}>>;
|
|
@@ -159,6 +163,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
159
163
|
type: StringConstructor;
|
|
160
164
|
default: string;
|
|
161
165
|
};
|
|
166
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
167
|
+
color: StringConstructor;
|
|
162
168
|
}>>, {
|
|
163
169
|
type: string;
|
|
164
170
|
}>;
|
|
@@ -1615,6 +1615,8 @@ export declare const HzztQuarterPicker: import("hzzt-plus/es/utils").SFCWithInst
|
|
|
1615
1615
|
type: StringConstructor;
|
|
1616
1616
|
default: string;
|
|
1617
1617
|
};
|
|
1618
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
1619
|
+
color: StringConstructor;
|
|
1618
1620
|
}, {
|
|
1619
1621
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1620
1622
|
name: {
|
|
@@ -1625,6 +1627,8 @@ export declare const HzztQuarterPicker: import("hzzt-plus/es/utils").SFCWithInst
|
|
|
1625
1627
|
type: StringConstructor;
|
|
1626
1628
|
default: string;
|
|
1627
1629
|
};
|
|
1630
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
1631
|
+
color: StringConstructor;
|
|
1628
1632
|
}>> & {
|
|
1629
1633
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
1630
1634
|
}>>;
|
|
@@ -1740,6 +1744,8 @@ export declare const HzztQuarterPicker: import("hzzt-plus/es/utils").SFCWithInst
|
|
|
1740
1744
|
type: StringConstructor;
|
|
1741
1745
|
default: string;
|
|
1742
1746
|
};
|
|
1747
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
1748
|
+
color: StringConstructor;
|
|
1743
1749
|
}>>, {
|
|
1744
1750
|
type: string;
|
|
1745
1751
|
}>;
|
|
@@ -1616,6 +1616,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1616
1616
|
type: StringConstructor;
|
|
1617
1617
|
default: string;
|
|
1618
1618
|
};
|
|
1619
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
1620
|
+
color: StringConstructor;
|
|
1619
1621
|
}, {
|
|
1620
1622
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1621
1623
|
name: {
|
|
@@ -1626,6 +1628,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1626
1628
|
type: StringConstructor;
|
|
1627
1629
|
default: string;
|
|
1628
1630
|
};
|
|
1631
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
1632
|
+
color: StringConstructor;
|
|
1629
1633
|
}>> & {
|
|
1630
1634
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
1631
1635
|
}>>;
|
|
@@ -1741,6 +1745,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1741
1745
|
type: StringConstructor;
|
|
1742
1746
|
default: string;
|
|
1743
1747
|
};
|
|
1748
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
1749
|
+
color: StringConstructor;
|
|
1744
1750
|
}>>, {
|
|
1745
1751
|
type: string;
|
|
1746
1752
|
}>;
|
|
@@ -16,6 +16,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
16
16
|
type: StringConstructor;
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
20
|
+
color: StringConstructor;
|
|
19
21
|
}, {
|
|
20
22
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
21
23
|
name: {
|
|
@@ -26,6 +28,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
26
28
|
type: StringConstructor;
|
|
27
29
|
default: string;
|
|
28
30
|
};
|
|
31
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
32
|
+
color: StringConstructor;
|
|
29
33
|
}>> & {
|
|
30
34
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
31
35
|
}>>;
|
|
@@ -141,6 +145,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
141
145
|
type: StringConstructor;
|
|
142
146
|
default: string;
|
|
143
147
|
};
|
|
148
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
149
|
+
color: StringConstructor;
|
|
144
150
|
}>>, {
|
|
145
151
|
type: string;
|
|
146
152
|
}>;
|
|
@@ -13072,6 +13072,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13072
13072
|
type: StringConstructor;
|
|
13073
13073
|
default: string;
|
|
13074
13074
|
};
|
|
13075
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
13076
|
+
color: StringConstructor;
|
|
13075
13077
|
}, {
|
|
13076
13078
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
13077
13079
|
name: {
|
|
@@ -13082,6 +13084,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13082
13084
|
type: StringConstructor;
|
|
13083
13085
|
default: string;
|
|
13084
13086
|
};
|
|
13087
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
13088
|
+
color: StringConstructor;
|
|
13085
13089
|
}>> & {
|
|
13086
13090
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
13087
13091
|
}>>;
|
|
@@ -13197,6 +13201,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13197
13201
|
type: StringConstructor;
|
|
13198
13202
|
default: string;
|
|
13199
13203
|
};
|
|
13204
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
13205
|
+
color: StringConstructor;
|
|
13200
13206
|
}>>, {
|
|
13201
13207
|
type: string;
|
|
13202
13208
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
|
-
import SelectInput from './src/select-
|
|
3
|
-
export { selectInputEmits, selectInputProps } from './src/select-
|
|
2
|
+
import SelectInput from './src/select-input2.mjs';
|
|
3
|
+
export { selectInputEmits, selectInputProps } from './src/select-input.mjs';
|
|
4
4
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
5
5
|
|
|
6
6
|
const HzztSelectInput = withInstall(SelectInput);
|