hzzt-plus 2.0.1 → 2.0.3
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +355 -236
- package/dist/index.full.min.js +12 -12
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +15 -15
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +353 -237
- 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/component.mjs +3 -1
- package/es/component.mjs.map +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +4 -2
- package/es/components/index.mjs.map +1 -1
- package/es/components/input-range/index.mjs +2 -2
- package/es/components/input-range/src/input-range.mjs +26 -76
- package/es/components/input-range/src/input-range.mjs.map +1 -1
- package/es/components/input-range/src/input-range2.mjs +76 -26
- package/es/components/input-range/src/input-range2.mjs.map +1 -1
- package/es/components/lazy-list/index.d.ts +5 -0
- package/es/components/lazy-list/index.mjs +9 -0
- package/es/components/lazy-list/index.mjs.map +1 -0
- package/es/components/lazy-list/src/lazy-list.d.ts +14 -0
- package/es/components/lazy-list/src/lazy-list.mjs +27 -0
- package/es/components/lazy-list/src/lazy-list.mjs.map +1 -0
- package/es/components/lazy-list/src/lazy-list.vue.d.ts +57 -0
- package/es/components/lazy-list/src/lazy-list2.mjs +85 -0
- package/es/components/lazy-list/src/lazy-list2.mjs.map +1 -0
- package/es/components/lazy-list/style/css.d.ts +2 -0
- package/es/components/lazy-list/style/css.mjs +3 -0
- package/es/components/lazy-list/style/css.mjs.map +1 -0
- package/es/components/lazy-list/style/index.d.ts +2 -0
- package/es/components/lazy-list/style/index.mjs +3 -0
- package/es/components/lazy-list/style/index.mjs.map +1 -0
- package/es/components/scroll/src/scroll.mjs +4 -0
- package/es/components/scroll/src/scroll.mjs.map +1 -1
- package/es/components/scroll/src/scroll.vue.d.ts +1 -0
- package/es/components/select/src/select.vue.d.ts +1 -0
- package/es/components/select/src/select2.mjs +11 -1
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/select-input/index.mjs +2 -2
- package/es/components/select-input/src/select-input.mjs +124 -45
- package/es/components/select-input/src/select-input.mjs.map +1 -1
- package/es/components/select-input/src/select-input2.mjs +45 -124
- package/es/components/select-input/src/select-input2.mjs.map +1 -1
- package/es/index.mjs +4 -2
- package/es/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/global.d.ts +1 -0
- package/lib/component.js +3 -1
- package/lib/component.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +7 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/input-range/index.js +2 -2
- package/lib/components/input-range/src/input-range.js +27 -76
- package/lib/components/input-range/src/input-range.js.map +1 -1
- package/lib/components/input-range/src/input-range2.js +76 -27
- package/lib/components/input-range/src/input-range2.js.map +1 -1
- package/lib/components/lazy-list/index.d.ts +5 -0
- package/lib/components/lazy-list/index.js +16 -0
- package/lib/components/lazy-list/index.js.map +1 -0
- package/lib/components/lazy-list/src/lazy-list.d.ts +14 -0
- package/lib/components/lazy-list/src/lazy-list.js +32 -0
- package/lib/components/lazy-list/src/lazy-list.js.map +1 -0
- package/lib/components/lazy-list/src/lazy-list.vue.d.ts +57 -0
- package/lib/components/lazy-list/src/lazy-list2.js +89 -0
- package/lib/components/lazy-list/src/lazy-list2.js.map +1 -0
- package/lib/components/lazy-list/style/css.d.ts +2 -0
- package/lib/components/lazy-list/style/css.js +6 -0
- package/lib/components/lazy-list/style/css.js.map +1 -0
- package/lib/components/lazy-list/style/index.d.ts +2 -0
- package/lib/components/lazy-list/style/index.js +6 -0
- package/lib/components/lazy-list/style/index.js.map +1 -0
- package/lib/components/scroll/src/scroll.js +4 -0
- package/lib/components/scroll/src/scroll.js.map +1 -1
- package/lib/components/scroll/src/scroll.vue.d.ts +1 -0
- package/lib/components/select/src/select.vue.d.ts +1 -0
- package/lib/components/select/src/select2.js +11 -1
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/select-input/index.js +2 -2
- package/lib/components/select-input/src/select-input.js +124 -46
- package/lib/components/select-input/src/select-input.js.map +1 -1
- package/lib/components/select-input/src/select-input2.js +46 -124
- package/lib/components/select-input/src/select-input2.js.map +1 -1
- package/lib/index.js +37 -32
- package/lib/index.js.map +1 -1
- 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/tags.json +1 -1
- package/theme/hzzt-lazy-list.css +1 -0
- package/theme/index.css +1 -1
- package/theme/src/index.scss +1 -0
- package/theme/src/lazy-list.scss +21 -0
- package/web-types.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -23,11 +23,11 @@ export { HzztCheckButton } from './components/check-button/index.mjs';
|
|
|
23
23
|
export { HzztQuarterPicker } from './components/quarter-picker/index.mjs';
|
|
24
24
|
export { scanEmits, scanProps } from './components/scan/src/scan.mjs';
|
|
25
25
|
export { HzztScan } from './components/scan/index.mjs';
|
|
26
|
-
export { selectInputEmits, selectInputProps } from './components/select-input/src/select-
|
|
26
|
+
export { selectInputEmits, selectInputProps } from './components/select-input/src/select-input2.mjs';
|
|
27
27
|
export { HzztSelectInput } from './components/select-input/index.mjs';
|
|
28
28
|
export { selectTextareaEmits, selectTextareaProps } from './components/select-textarea/src/select-textarea.mjs';
|
|
29
29
|
export { HzztSelectTextarea } from './components/select-textarea/index.mjs';
|
|
30
|
-
export { inputRangeEmits, inputRangeProps } from './components/input-range/src/input-
|
|
30
|
+
export { inputRangeEmits, inputRangeProps } from './components/input-range/src/input-range.mjs';
|
|
31
31
|
export { HzztInputRange } from './components/input-range/index.mjs';
|
|
32
32
|
export { cascaderEmits, cascaderProps } from './components/cascader/src/cascader.mjs';
|
|
33
33
|
export { HzztCascader } from './components/cascader/index.mjs';
|
|
@@ -36,6 +36,8 @@ export { HzztSelect } from './components/select/index.mjs';
|
|
|
36
36
|
export { clickInputEmits, clickInputProps } from './components/click-input/src/click-input.mjs';
|
|
37
37
|
export { HzztClickInput } from './components/click-input/index.mjs';
|
|
38
38
|
export { HzztScroll } from './components/scroll/index.mjs';
|
|
39
|
+
export { lazyListEmits, lazyListProps } from './components/lazy-list/src/lazy-list.mjs';
|
|
40
|
+
export { HzztLazyList } from './components/lazy-list/index.mjs';
|
|
39
41
|
export { INSTALLED_KEY } from './constants/key.mjs';
|
|
40
42
|
export { componentSizeMap, componentSizes } from './constants/size.mjs';
|
|
41
43
|
export { WEEK_DAYS, datePickTypes } from './constants/date.mjs';
|
package/es/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../packages/hzzt-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@hzzt-plus/components'\nexport * from '@hzzt-plus/constants'\nexport * from '@hzzt-plus/directives'\nexport * from '@hzzt-plus/hooks'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../packages/hzzt-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@hzzt-plus/components'\nexport * from '@hzzt-plus/constants'\nexport * from '@hzzt-plus/directives'\nexport * from '@hzzt-plus/hooks'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMY,MAAC,OAAO,GAAG,SAAS,CAAC,QAAQ;AAC7B,MAAC,OAAO,GAAG,SAAS,CAAC;;;;"}
|
package/es/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "2.0.
|
|
1
|
+
export declare const version = "2.0.3";
|
package/es/version.mjs
CHANGED
package/es/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../packages/hzzt-plus/version.ts"],"sourcesContent":["export const version = '2.0.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../packages/hzzt-plus/version.ts"],"sourcesContent":["export const version = '2.0.3'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
|
package/global.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare module 'vue' {
|
|
|
21
21
|
HzztSelect: typeof import('hzzt-plus')['HzztSelect']
|
|
22
22
|
HzztClickInput: typeof import('hzzt-plus')['HzztClickInput']
|
|
23
23
|
HzztScroll: typeof import('hzzt-plus')['HzztScroll']
|
|
24
|
+
HzztLazyList: typeof import('hzzt-plus')['HzztLazyList']
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
|
package/lib/component.js
CHANGED
|
@@ -22,6 +22,7 @@ var index$g = require('./components/cascader/index.js');
|
|
|
22
22
|
var index$h = require('./components/select/index.js');
|
|
23
23
|
var index$i = require('./components/click-input/index.js');
|
|
24
24
|
var index$j = require('./components/scroll/index.js');
|
|
25
|
+
var index$k = require('./components/lazy-list/index.js');
|
|
25
26
|
|
|
26
27
|
var Components = [
|
|
27
28
|
index.HzztConfigProvider,
|
|
@@ -43,7 +44,8 @@ var Components = [
|
|
|
43
44
|
index$g.HzztCascader,
|
|
44
45
|
index$h.HzztSelect,
|
|
45
46
|
index$i.HzztClickInput,
|
|
46
|
-
index$j.HzztScroll
|
|
47
|
+
index$j.HzztScroll,
|
|
48
|
+
index$k.HzztLazyList
|
|
47
49
|
];
|
|
48
50
|
|
|
49
51
|
exports["default"] = Components;
|
package/lib/component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../../../packages/hzzt-plus/component.ts"],"sourcesContent":["import { HzztTitle } from '@hzzt-plus/components/title'\nimport { HzztDropdown } from '@hzzt-plus/components/dropdown'\nimport { HzztCollapse } from '@hzzt-plus/components/collapse'\nimport { HzztConfigProvider } from '@hzzt-plus/components/config-provider'\nimport { HzztTab } from '@hzzt-plus/components/tab'\nimport { HzztIcon } from '@hzzt-plus/components/icon'\nimport { HzztPagination } from '@hzzt-plus/components/pagination'\nimport { HzztTooltip } from '@hzzt-plus/components/tooltip'\nimport { HzztPageSize } from '@hzzt-plus/components/page-size'\nimport { HzztConfirmPassword } from '@hzzt-plus/components/confirm-password'\nimport { HzztCheckButton } from '@hzzt-plus/components/check-button'\nimport { HzztQuarterPicker } from '@hzzt-plus/components/quarter-picker'\nimport { HzztScan } from '@hzzt-plus/components/scan'\nimport { HzztSelectInput } from '@hzzt-plus/components/select-input'\nimport { HzztSelectTextarea } from '@hzzt-plus/components/select-textarea'\nimport { HzztInputRange } from '@hzzt-plus/components/input-range'\nimport { HzztCascader } from '@hzzt-plus/components/cascader'\nimport { HzztSelect } from '@hzzt-plus/components/select'\nimport { HzztClickInput } from '@hzzt-plus/components/click-input'\nimport { HzztScroll } from '@hzzt-plus/components/scroll'\n\nimport type { Plugin } from 'vue'\n\nexport default [\n HzztConfigProvider,\n HzztTitle,\n HzztDropdown,\n HzztCollapse,\n HzztTab,\n HzztIcon,\n HzztPagination,\n HzztTooltip,\n HzztPageSize,\n HzztConfirmPassword,\n HzztCheckButton,\n HzztQuarterPicker,\n HzztScan,\n HzztSelectInput,\n HzztSelectTextarea,\n HzztInputRange,\n HzztCascader,\n HzztSelect,\n HzztClickInput,\n HzztScroll,\n] as Plugin[]\n"],"names":["HzztConfigProvider","HzztTitle","HzztDropdown","HzztCollapse","HzztTab","HzztIcon","HzztPagination","HzztTooltip","HzztPageSize","HzztConfirmPassword","HzztCheckButton","HzztQuarterPicker","HzztScan","HzztSelectInput","HzztSelectTextarea","HzztInputRange","HzztCascader","HzztSelect","HzztClickInput","HzztScroll"],"mappings":"
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../../../packages/hzzt-plus/component.ts"],"sourcesContent":["import { HzztTitle } from '@hzzt-plus/components/title'\nimport { HzztDropdown } from '@hzzt-plus/components/dropdown'\nimport { HzztCollapse } from '@hzzt-plus/components/collapse'\nimport { HzztConfigProvider } from '@hzzt-plus/components/config-provider'\nimport { HzztTab } from '@hzzt-plus/components/tab'\nimport { HzztIcon } from '@hzzt-plus/components/icon'\nimport { HzztPagination } from '@hzzt-plus/components/pagination'\nimport { HzztTooltip } from '@hzzt-plus/components/tooltip'\nimport { HzztPageSize } from '@hzzt-plus/components/page-size'\nimport { HzztConfirmPassword } from '@hzzt-plus/components/confirm-password'\nimport { HzztCheckButton } from '@hzzt-plus/components/check-button'\nimport { HzztQuarterPicker } from '@hzzt-plus/components/quarter-picker'\nimport { HzztScan } from '@hzzt-plus/components/scan'\nimport { HzztSelectInput } from '@hzzt-plus/components/select-input'\nimport { HzztSelectTextarea } from '@hzzt-plus/components/select-textarea'\nimport { HzztInputRange } from '@hzzt-plus/components/input-range'\nimport { HzztCascader } from '@hzzt-plus/components/cascader'\nimport { HzztSelect } from '@hzzt-plus/components/select'\nimport { HzztClickInput } from '@hzzt-plus/components/click-input'\nimport { HzztScroll } from '@hzzt-plus/components/scroll'\nimport { HzztLazyList } from '@hzzt-plus/components/lazy-list'\n\nimport type { Plugin } from 'vue'\n\nexport default [\n HzztConfigProvider,\n HzztTitle,\n HzztDropdown,\n HzztCollapse,\n HzztTab,\n HzztIcon,\n HzztPagination,\n HzztTooltip,\n HzztPageSize,\n HzztConfirmPassword,\n HzztCheckButton,\n HzztQuarterPicker,\n HzztScan,\n HzztSelectInput,\n HzztSelectTextarea,\n HzztInputRange,\n HzztCascader,\n HzztSelect,\n HzztClickInput,\n HzztScroll,\n HzztLazyList,\n] as Plugin[]\n"],"names":["HzztConfigProvider","HzztTitle","HzztDropdown","HzztCollapse","HzztTab","HzztIcon","HzztPagination","HzztTooltip","HzztPageSize","HzztConfirmPassword","HzztCheckButton","HzztQuarterPicker","HzztScan","HzztSelectInput","HzztSelectTextarea","HzztInputRange","HzztCascader","HzztSelect","HzztClickInput","HzztScroll","HzztLazyList"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,iBAAe;AACf,EAAEA,wBAAkB;AACpB,EAAEC,iBAAS;AACX,EAAEC,oBAAY;AACd,EAAEC,oBAAY;AACd,EAAEC,eAAO;AACT,EAAEC,gBAAQ;AACV,EAAEC,sBAAc;AAChB,EAAEC,mBAAW;AACb,EAAEC,oBAAY;AACd,EAAEC,2BAAmB;AACrB,EAAEC,uBAAe;AACjB,EAAEC,yBAAiB;AACnB,EAAEC,gBAAQ;AACV,EAAEC,uBAAe;AACjB,EAAEC,0BAAkB;AACpB,EAAEC,sBAAc;AAChB,EAAEC,oBAAY;AACd,EAAEC,kBAAU;AACZ,EAAEC,sBAAc;AAChB,EAAEC,kBAAU;AACZ,EAAEC,oBAAY;AACd,CAAC;;;;"}
|
package/lib/components/index.js
CHANGED
|
@@ -22,17 +22,19 @@ var index$g = require('./cascader/index.js');
|
|
|
22
22
|
var index$h = require('./select/index.js');
|
|
23
23
|
var index$i = require('./click-input/index.js');
|
|
24
24
|
var index$j = require('./scroll/index.js');
|
|
25
|
+
var index$k = require('./lazy-list/index.js');
|
|
25
26
|
var title = require('./title/src/title.js');
|
|
26
27
|
var configProviderProps = require('./config-provider/src/config-provider-props.js');
|
|
27
28
|
var constants = require('./config-provider/src/constants.js');
|
|
28
29
|
var useGlobalConfig = require('./config-provider/src/hooks/use-global-config.js');
|
|
29
30
|
var scan = require('./scan/src/scan.js');
|
|
30
|
-
var selectInput = require('./select-input/src/select-
|
|
31
|
+
var selectInput = require('./select-input/src/select-input2.js');
|
|
31
32
|
var selectTextarea = require('./select-textarea/src/select-textarea.js');
|
|
32
|
-
var inputRange = require('./input-range/src/input-
|
|
33
|
+
var inputRange = require('./input-range/src/input-range.js');
|
|
33
34
|
var cascader = require('./cascader/src/cascader.js');
|
|
34
35
|
var select = require('./select/src/select.js');
|
|
35
36
|
var clickInput = require('./click-input/src/click-input.js');
|
|
37
|
+
var lazyList = require('./lazy-list/src/lazy-list.js');
|
|
36
38
|
|
|
37
39
|
|
|
38
40
|
|
|
@@ -56,6 +58,7 @@ exports.HzztCascader = index$g.HzztCascader;
|
|
|
56
58
|
exports.HzztSelect = index$h.HzztSelect;
|
|
57
59
|
exports.HzztClickInput = index$i.HzztClickInput;
|
|
58
60
|
exports.HzztScroll = index$j.HzztScroll;
|
|
61
|
+
exports.HzztLazyList = index$k.HzztLazyList;
|
|
59
62
|
exports.titleProps = title.titleProps;
|
|
60
63
|
exports.configProviderProps = configProviderProps.configProviderProps;
|
|
61
64
|
exports.configProviderContextKey = constants.configProviderContextKey;
|
|
@@ -75,4 +78,6 @@ exports.selectEmits = select.selectEmits;
|
|
|
75
78
|
exports.selectProps = select.selectProps;
|
|
76
79
|
exports.clickInputEmits = clickInput.clickInputEmits;
|
|
77
80
|
exports.clickInputProps = clickInput.clickInputProps;
|
|
81
|
+
exports.lazyListEmits = lazyList.lazyListEmits;
|
|
82
|
+
exports.lazyListProps = lazyList.lazyListProps;
|
|
78
83
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var inputRange$1 = require('./src/input-
|
|
7
|
-
var inputRange = require('./src/input-
|
|
6
|
+
var inputRange$1 = require('./src/input-range2.js');
|
|
7
|
+
var inputRange = require('./src/input-range.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const HzztInputRange = install.withInstall(inputRange$1["default"]);
|
|
@@ -2,84 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var inputRange = require('./input-range2.js');
|
|
7
|
-
var elementPlus = require('element-plus');
|
|
5
|
+
require('../../../utils/index.js');
|
|
8
6
|
require('../../../hooks/index.js');
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
var index
|
|
7
|
+
require('../../../constants/index.js');
|
|
8
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
9
|
+
var index = require('../../../hooks/use-size/index.js');
|
|
10
|
+
var event = require('../../../constants/event.js');
|
|
11
|
+
var shared = require('@vue/shared');
|
|
12
12
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
const inputRangeProps = runtime.buildProps({
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: () => []
|
|
17
|
+
},
|
|
18
|
+
size: index.useSizeProp,
|
|
19
|
+
disabled: Boolean,
|
|
20
|
+
clearable: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
},
|
|
24
|
+
startPlaceholder: String,
|
|
25
|
+
endPlaceholder: String,
|
|
26
|
+
startProps: Object,
|
|
27
|
+
endProps: Object
|
|
16
28
|
});
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
setup(__props, { emit }) {
|
|
22
|
-
const props = __props;
|
|
23
|
-
const startValue = vue.ref(props.modelValue[0]);
|
|
24
|
-
const endValue = vue.ref(props.modelValue[1]);
|
|
25
|
-
const nsInput = index.useNamespace("input-range");
|
|
26
|
-
const formSize = elementPlus.useFormSize();
|
|
27
|
-
const formDisabled = elementPlus.useFormDisabled();
|
|
28
|
-
const trueSize = vue.computed(() => props.size || formSize.value || index$1.useGlobalSize().value);
|
|
29
|
-
const trueDisabled = vue.computed(() => props.disabled || formDisabled.value);
|
|
30
|
-
const containerCls = vue.computed(() => [
|
|
31
|
-
nsInput.b(),
|
|
32
|
-
nsInput.m(trueSize.value)
|
|
33
|
-
]);
|
|
34
|
-
vue.watch(() => props.modelValue, (v) => {
|
|
35
|
-
startValue.value = v[0];
|
|
36
|
-
endValue.value = v[1];
|
|
37
|
-
}, {
|
|
38
|
-
deep: true
|
|
39
|
-
});
|
|
40
|
-
function change() {
|
|
41
|
-
if (startValue.value || endValue.value) {
|
|
42
|
-
const modelValue = [startValue.value, endValue.value];
|
|
43
|
-
emit("update:modelValue", modelValue);
|
|
44
|
-
emit("change", modelValue);
|
|
45
|
-
} else if (!startValue.value && !endValue.value) {
|
|
46
|
-
emit("update:modelValue", []);
|
|
47
|
-
emit("change", []);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return (_ctx, _cache) => {
|
|
51
|
-
const _component_el_input = vue.resolveComponent("el-input");
|
|
52
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
53
|
-
class: vue.normalizeClass(["flex align-items-center", vue.unref(containerCls)])
|
|
54
|
-
}, [
|
|
55
|
-
vue.createVNode(_component_el_input, vue.mergeProps({
|
|
56
|
-
modelValue: startValue.value,
|
|
57
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => startValue.value = $event)
|
|
58
|
-
}, _ctx.startProps, {
|
|
59
|
-
clearable: _ctx.clearable,
|
|
60
|
-
placeholder: _ctx.startPlaceholder,
|
|
61
|
-
size: vue.unref(trueSize),
|
|
62
|
-
disabled: vue.unref(trueDisabled),
|
|
63
|
-
class: "flex-1",
|
|
64
|
-
onChange: change
|
|
65
|
-
}), null, 16, ["modelValue", "clearable", "placeholder", "size", "disabled"]),
|
|
66
|
-
_hoisted_1,
|
|
67
|
-
vue.createVNode(_component_el_input, vue.mergeProps({
|
|
68
|
-
modelValue: endValue.value,
|
|
69
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => endValue.value = $event)
|
|
70
|
-
}, _ctx.endProps, {
|
|
71
|
-
clearable: _ctx.clearable,
|
|
72
|
-
placeholder: _ctx.endPlaceholder,
|
|
73
|
-
size: vue.unref(trueSize),
|
|
74
|
-
disabled: vue.unref(trueDisabled),
|
|
75
|
-
class: "flex-1",
|
|
76
|
-
onChange: change
|
|
77
|
-
}), null, 16, ["modelValue", "clearable", "placeholder", "size", "disabled"])
|
|
78
|
-
], 2);
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
var InputRange = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "input-range.vue"]]);
|
|
29
|
+
const inputRangeEmits = {
|
|
30
|
+
[event.UPDATE_MODEL_EVENT]: (val) => shared.isArray(val),
|
|
31
|
+
[event.CHANGE_EVENT]: (val) => shared.isArray(val)
|
|
32
|
+
};
|
|
83
33
|
|
|
84
|
-
exports
|
|
34
|
+
exports.inputRangeEmits = inputRangeEmits;
|
|
35
|
+
exports.inputRangeProps = inputRangeProps;
|
|
85
36
|
//# sourceMappingURL=input-range.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-range.js","sources":["../../../../../../packages/components/input-range/src/input-range.
|
|
1
|
+
{"version":3,"file":"input-range.js","sources":["../../../../../../packages/components/input-range/src/input-range.ts"],"sourcesContent":["import {buildProps, isArray} from '@hzzt-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type InputRange from './input-range.vue'\nimport {useSizeProp} from \"@hzzt-plus/hooks\";\nimport {CHANGE_EVENT, UPDATE_MODEL_EVENT} from \"@hzzt-plus/constants\";\n\nexport const inputRangeProps = buildProps({\n modelValue: {\n type: Array,\n default: () => [],\n },\n size: useSizeProp,\n disabled: Boolean,\n clearable: {\n type: Boolean,\n default: false,\n },\n startPlaceholder: String,\n endPlaceholder: String,\n startProps: Object,\n endProps: Object,\n})\n\nexport type InputRangeProps = ExtractPropTypes<typeof inputRangeProps>\n\nexport const inputRangeEmits = {\n [UPDATE_MODEL_EVENT]: (val: Array<string>) => isArray(val),\n [CHANGE_EVENT]: (val: Array<string>) => isArray(val),\n}\nexport type InputRangeEmits = typeof inputRangeEmits\n\nexport type InputRangeInstance = InstanceType<typeof InputRange>\n"],"names":["buildProps","useSizeProp","UPDATE_MODEL_EVENT","isArray","CHANGE_EVENT"],"mappings":";;;;;;;;;;;;AAGY,MAAC,eAAe,GAAGA,kBAAU,CAAC;AAC1C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,gBAAgB,EAAE,MAAM;AAC1B,EAAE,cAAc,EAAE,MAAM;AACxB,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,QAAQ,EAAE,MAAM;AAClB,CAAC,EAAE;AACS,MAAC,eAAe,GAAG;AAC/B,EAAE,CAACC,wBAAkB,GAAG,CAAC,GAAG,KAAKC,cAAO,CAAC,GAAG,CAAC;AAC7C,EAAE,CAACC,kBAAY,GAAG,CAAC,GAAG,KAAKD,cAAO,CAAC,GAAG,CAAC;AACvC;;;;;"}
|
|
@@ -2,35 +2,84 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var inputRange = require('./input-range.js');
|
|
7
|
+
var elementPlus = require('element-plus');
|
|
6
8
|
require('../../../hooks/index.js');
|
|
7
|
-
require('../../../
|
|
8
|
-
var
|
|
9
|
-
var index = require('../../../hooks/use-size/index.js');
|
|
10
|
-
var event = require('../../../constants/event.js');
|
|
11
|
-
var shared = require('@vue/shared');
|
|
9
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
11
|
+
var index$1 = require('../../../hooks/use-size/index.js');
|
|
12
12
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
default: () => []
|
|
17
|
-
},
|
|
18
|
-
size: index.useSizeProp,
|
|
19
|
-
disabled: Boolean,
|
|
20
|
-
clearable: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: false
|
|
23
|
-
},
|
|
24
|
-
startPlaceholder: String,
|
|
25
|
-
endPlaceholder: String,
|
|
26
|
-
startProps: Object,
|
|
27
|
-
endProps: Object
|
|
13
|
+
const _hoisted_1 = /* @__PURE__ */ vue.createElementVNode("span", { class: "margin-h-1" }, "\u2014\u2014", -1);
|
|
14
|
+
const __default__ = vue.defineComponent({
|
|
15
|
+
name: "HzztInputRange"
|
|
28
16
|
});
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
18
|
+
...__default__,
|
|
19
|
+
props: inputRange.inputRangeProps,
|
|
20
|
+
emits: inputRange.inputRangeEmits,
|
|
21
|
+
setup(__props, { emit }) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const startValue = vue.ref(props.modelValue[0]);
|
|
24
|
+
const endValue = vue.ref(props.modelValue[1]);
|
|
25
|
+
const nsInput = index.useNamespace("input-range");
|
|
26
|
+
const formSize = elementPlus.useFormSize();
|
|
27
|
+
const formDisabled = elementPlus.useFormDisabled();
|
|
28
|
+
const trueSize = vue.computed(() => props.size || formSize.value || index$1.useGlobalSize().value);
|
|
29
|
+
const trueDisabled = vue.computed(() => props.disabled || formDisabled.value);
|
|
30
|
+
const containerCls = vue.computed(() => [
|
|
31
|
+
nsInput.b(),
|
|
32
|
+
nsInput.m(trueSize.value)
|
|
33
|
+
]);
|
|
34
|
+
vue.watch(() => props.modelValue, (v) => {
|
|
35
|
+
startValue.value = v[0];
|
|
36
|
+
endValue.value = v[1];
|
|
37
|
+
}, {
|
|
38
|
+
deep: true
|
|
39
|
+
});
|
|
40
|
+
function change() {
|
|
41
|
+
if (startValue.value || endValue.value) {
|
|
42
|
+
const modelValue = [startValue.value, endValue.value];
|
|
43
|
+
emit("update:modelValue", modelValue);
|
|
44
|
+
emit("change", modelValue);
|
|
45
|
+
} else if (!startValue.value && !endValue.value) {
|
|
46
|
+
emit("update:modelValue", []);
|
|
47
|
+
emit("change", []);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return (_ctx, _cache) => {
|
|
51
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
|
52
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
53
|
+
class: vue.normalizeClass(["flex align-items-center", vue.unref(containerCls)])
|
|
54
|
+
}, [
|
|
55
|
+
vue.createVNode(_component_el_input, vue.mergeProps({
|
|
56
|
+
modelValue: startValue.value,
|
|
57
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => startValue.value = $event)
|
|
58
|
+
}, _ctx.startProps, {
|
|
59
|
+
clearable: _ctx.clearable,
|
|
60
|
+
placeholder: _ctx.startPlaceholder,
|
|
61
|
+
size: vue.unref(trueSize),
|
|
62
|
+
disabled: vue.unref(trueDisabled),
|
|
63
|
+
class: "flex-1",
|
|
64
|
+
onChange: change
|
|
65
|
+
}), null, 16, ["modelValue", "clearable", "placeholder", "size", "disabled"]),
|
|
66
|
+
_hoisted_1,
|
|
67
|
+
vue.createVNode(_component_el_input, vue.mergeProps({
|
|
68
|
+
modelValue: endValue.value,
|
|
69
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => endValue.value = $event)
|
|
70
|
+
}, _ctx.endProps, {
|
|
71
|
+
clearable: _ctx.clearable,
|
|
72
|
+
placeholder: _ctx.endPlaceholder,
|
|
73
|
+
size: vue.unref(trueSize),
|
|
74
|
+
disabled: vue.unref(trueDisabled),
|
|
75
|
+
class: "flex-1",
|
|
76
|
+
onChange: change
|
|
77
|
+
}), null, 16, ["modelValue", "clearable", "placeholder", "size", "disabled"])
|
|
78
|
+
], 2);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
var InputRange = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "input-range.vue"]]);
|
|
33
83
|
|
|
34
|
-
exports
|
|
35
|
-
exports.inputRangeProps = inputRangeProps;
|
|
84
|
+
exports["default"] = InputRange;
|
|
36
85
|
//# sourceMappingURL=input-range2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-range2.js","sources":["../../../../../../packages/components/input-range/src/input-range.
|
|
1
|
+
{"version":3,"file":"input-range2.js","sources":["../../../../../../packages/components/input-range/src/input-range.vue"],"sourcesContent":["<template>\n <div class=\"flex align-items-center\" :class=\"containerCls\">\n <el-input\n v-model=\"startValue\"\n v-bind=\"startProps\"\n :clearable=\"clearable\"\n :placeholder=\"startPlaceholder\"\n :size=\"trueSize\"\n :disabled=\"trueDisabled\"\n class=\"flex-1\"\n @change=\"change\"\n />\n <span class=\"margin-h-1\">——</span>\n <el-input\n v-model=\"endValue\"\n v-bind=\"endProps\"\n :clearable=\"clearable\"\n :placeholder=\"endPlaceholder\"\n :size=\"trueSize\"\n :disabled=\"trueDisabled\"\n class=\"flex-1\"\n @change=\"change\"\n />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import {inputRangeEmits, inputRangeProps} from './input-range'\n import {useFormDisabled, useFormSize} from \"element-plus\";\n import {computed, ref, watch} from \"vue\";\n import {useGlobalSize, useNamespace} from \"@hzzt-plus/hooks\";\n\n defineOptions({\n name: 'HzztInputRange',\n })\n\n const props = defineProps(inputRangeProps)\n const emit = defineEmits(inputRangeEmits)\n\n const startValue = ref(props.modelValue[0])\n const endValue = ref(props.modelValue[1])\n\n const nsInput = useNamespace('input-range')\n\n const formSize = useFormSize()\n const formDisabled = useFormDisabled()\n\n const trueSize = computed(\n () => props.size || formSize.value || useGlobalSize().value\n )\n\n const trueDisabled = computed(() => props.disabled || formDisabled.value)\n\n const containerCls = computed(() => [\n nsInput.b(),\n nsInput.m(trueSize.value),\n ])\n\n watch(() => props.modelValue, (v) => {\n startValue.value = v[0];\n endValue.value = v[1];\n }, {\n deep: true,\n })\n\n function change() {\n if (startValue.value || endValue.value) {\n const modelValue = [startValue.value, endValue.value] as Array<string>;\n emit('update:modelValue', modelValue);\n emit('change', modelValue);\n } else if (!startValue.value && !endValue.value) {\n emit('update:modelValue', []);\n emit('change', []);\n }\n }\n\n</script>\n"],"names":["_defineComponent","computed","watch","_resolveComponent","_openBlock","_createElementBlock","_unref","_createVNode","_mergeProps"],"mappings":";;;;;;;;;;;;;;AA2BE,EAAA,IAAA,EAAA;AACA,CAAA,CAAA,CAAA;AACA,MAAQ,SAAA,mBAA2BA,mBAAA,CAAA;AACnC,EAAA,GAAA;;mCAEc;AAAA,EACZ,KAAM,CAAA,OAAA,EAAA,EAAA,IAAA,EAAA,EAAA;AACR,IAAA,MAAA,KAAA,GAAA,OAAA,CAAA;;;;;;;AAKA,IAAA,MAAM,YAAa,GAAAC,YAAU,CAAA,MAAA,KAAY,CAAC,QAAA,IAAA,YAAA,CAAA,KAAA,CAAA,CAAA;AAC1C,IAAA,MAAM,YAAW,GAAIA,YAAM,CAAA,MAAA;AAE3B,MAAM,OAAA,CAAA,CAAA,EAAA;AAEN,MAAA,kBAA6B,CAAA,KAAA,CAAA;AAC7B,KAAA,CAAA,CAAA;AAEA,IAAAC,SAAA,CAAM,MAAW,KAAA,CAAA,UAAA,EAAA,CAAA,CAAA,KAAA;AAAA,MACf,UAAY,CAAA,KAAA,GAAA,CAAQ,CAAS,CAAA,CAAA,CAAA;AAAyB,MACxD,QAAA,CAAA,KAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAEA,KAAA,EAAA;AAEA,MAAM,IAAA,EAAA,IAAA;AAA8B,KAAA,CAClC;AAAU,IACV,SAAA,MAAU,GAAA;AAAc,MACzB,IAAA,UAAA,CAAA,KAAA,IAAA,QAAA,CAAA,KAAA,EAAA;AAED,QAAA,MAAY,UAAkB,GAAA,CAAA,UAAO,CAAA,KAAA,EAAA,QAAA,CAAA,KAAA,CAAA,CAAA;AACnC,QAAW,IAAA,CAAA,mBAAW,EAAA,UAAA,CAAA,CAAA;AACtB,QAAS,IAAA,CAAA,QAAA,EAAQ,UAAG,CAAA,CAAA;AAAA,OACnB,MAAA,IAAA,CAAA,UAAA,CAAA,KAAA,IAAA,CAAA,QAAA,CAAA,KAAA,EAAA;AAAA,QACK,IAAA,CAAA,mBAAA,EAAA,EAAA,CAAA,CAAA;AAAA,QACP,IAAA,CAAA,QAAA,EAAA,EAAA,CAAA,CAAA;AAED,OAAA;AACE,KAAI;AACF,IAAA,OAAA,CAAA,IAAmB,EAAA,MAAA,KAAY;AAC/B,MAAA,MAAA,sBAA0BC,oBAAU,CAAA,UAAA,CAAA,CAAA;AACpC,MAAA,OAAKC,aAAU,EAAU,EAAAC,sBAAA,CAAA,KAAA,EAAA;AAAA,iCACK,CAAA,CAAA,yBAAiB,EAAAC,SAAA,CAAA,YAAA,CAAA,CAAA,CAAA;AAC/C,OAAK,EAAA;AACL,QAAKC,eAAA,CAAA,mBAAY,EAAAC,cAAA,CAAA;AAAA,UACnB,UAAA,EAAA,UAAA,CAAA,KAAA;AAAA,UACF,qBAAA,EAAA,MAAA,CAAA,CAAA,CAAA,KAAA,MAAA,CAAA,CAAA,CAAA,GAAA,CAAA,MAAA,KAAA,UAAA,CAAA,KAAA,GAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../utils/index.js');
|
|
6
|
+
var lazyList$1 = require('./src/lazy-list2.js');
|
|
7
|
+
var lazyList = require('./src/lazy-list.js');
|
|
8
|
+
var install = require('../../utils/vue/install.js');
|
|
9
|
+
|
|
10
|
+
const HzztLazyList = install.withInstall(lazyList$1["default"]);
|
|
11
|
+
|
|
12
|
+
exports.lazyListEmits = lazyList.lazyListEmits;
|
|
13
|
+
exports.lazyListProps = lazyList.lazyListProps;
|
|
14
|
+
exports.HzztLazyList = HzztLazyList;
|
|
15
|
+
exports["default"] = HzztLazyList;
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../packages/components/lazy-list/index.ts"],"sourcesContent":["import {withInstall} from '@hzzt-plus/utils'\nimport LazyList from './src/lazy-list.vue'\nimport type {SFCWithInstall} from '@hzzt-plus/utils'\n\nexport const HzztLazyList: SFCWithInstall<typeof LazyList> = withInstall(LazyList)\nexport default HzztLazyList\n\nexport * from './src/lazy-list'\n"],"names":["withInstall","LazyList"],"mappings":";;;;;;;;;AAEY,MAAC,YAAY,GAAGA,mBAAW,CAACC,qBAAQ;;;;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import type LazyList from './lazy-list.vue';
|
|
3
|
+
export declare const lazyListProps: {
|
|
4
|
+
size: import("hzzt-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
5
|
+
height: import("hzzt-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
6
|
+
data: import("hzzt-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Record<string, any>[]) | (() => Record<string, any>[]) | ((new (...args: any[]) => Record<string, any>[]) | (() => Record<string, any>[]))[], unknown, unknown, () => never[], boolean>;
|
|
7
|
+
rowKey: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
8
|
+
};
|
|
9
|
+
export declare type LazyListProps = ExtractPropTypes<typeof lazyListProps>;
|
|
10
|
+
export declare const lazyListEmits: {
|
|
11
|
+
'row-click': (row: any) => any;
|
|
12
|
+
};
|
|
13
|
+
export declare type LazyListEmits = typeof lazyListEmits;
|
|
14
|
+
export declare type LazyListInstance = InstanceType<typeof LazyList>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
7
|
+
|
|
8
|
+
const lazyListProps = runtime.buildProps({
|
|
9
|
+
size: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: 20
|
|
12
|
+
},
|
|
13
|
+
height: {
|
|
14
|
+
type: Number,
|
|
15
|
+
default: 30
|
|
16
|
+
},
|
|
17
|
+
data: {
|
|
18
|
+
type: runtime.definePropType(Array),
|
|
19
|
+
default: () => []
|
|
20
|
+
},
|
|
21
|
+
rowKey: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "id"
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
const lazyListEmits = {
|
|
27
|
+
"row-click": (row) => row
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
exports.lazyListEmits = lazyListEmits;
|
|
31
|
+
exports.lazyListProps = lazyListProps;
|
|
32
|
+
//# sourceMappingURL=lazy-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lazy-list.js","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":["buildProps","definePropType"],"mappings":";;;;;;;AACY,MAAC,aAAa,GAAGA,kBAAU,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,EAAEC,sBAAc,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;;;;;"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
size: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
3
|
+
height: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
4
|
+
data: import("../../../utils").EpPropFinalized<(new (...args: any[]) => Record<string, any>[]) | (() => Record<string, any>[]) | ((new (...args: any[]) => Record<string, any>[]) | (() => Record<string, any>[]))[], unknown, unknown, () => never[], boolean>;
|
|
5
|
+
rowKey: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
6
|
+
}, {
|
|
7
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
size: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
9
|
+
height: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
10
|
+
data: import("../../../utils").EpPropFinalized<(new (...args: any[]) => Record<string, any>[]) | (() => Record<string, any>[]) | ((new (...args: any[]) => Record<string, any>[]) | (() => Record<string, any>[]))[], unknown, unknown, () => never[], boolean>;
|
|
11
|
+
rowKey: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
12
|
+
}>> & {
|
|
13
|
+
"onRow-click"?: ((row: any) => any) | undefined;
|
|
14
|
+
}>>;
|
|
15
|
+
emit: (event: "row-click", row: any) => void;
|
|
16
|
+
totalHeight: import("vue").Ref<string>;
|
|
17
|
+
marginTop: import("vue").Ref<string>;
|
|
18
|
+
currentIndex: import("vue").Ref<number>;
|
|
19
|
+
current: import("vue").Ref<null>;
|
|
20
|
+
nsLazy: {
|
|
21
|
+
namespace: import("vue").ComputedRef<string>;
|
|
22
|
+
b: (blockSuffix?: string) => string;
|
|
23
|
+
e: (element?: string | undefined) => string;
|
|
24
|
+
m: (modifier?: string | undefined) => string;
|
|
25
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
26
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
27
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
28
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
29
|
+
is: {
|
|
30
|
+
(name: string, state: boolean | undefined): string;
|
|
31
|
+
(name: string): string;
|
|
32
|
+
};
|
|
33
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
34
|
+
cssVarName: (name: string) => string;
|
|
35
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
36
|
+
cssVarBlockName: (name: string) => string;
|
|
37
|
+
};
|
|
38
|
+
containerCls: import("vue").ComputedRef<string[]>;
|
|
39
|
+
calcList: import("vue").ComputedRef<Record<string, any>[]>;
|
|
40
|
+
scrollList: (e: Event) => void;
|
|
41
|
+
rowClick: (row: any) => void;
|
|
42
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
|
+
'row-click': (row: any) => any;
|
|
44
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
+
size: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
46
|
+
height: import("../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
47
|
+
data: import("../../../utils").EpPropFinalized<(new (...args: any[]) => Record<string, any>[]) | (() => Record<string, any>[]) | ((new (...args: any[]) => Record<string, any>[]) | (() => Record<string, any>[]))[], unknown, unknown, () => never[], boolean>;
|
|
48
|
+
rowKey: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
49
|
+
}>> & {
|
|
50
|
+
"onRow-click"?: ((row: any) => any) | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
size: number;
|
|
53
|
+
data: Record<string, any>[];
|
|
54
|
+
height: number;
|
|
55
|
+
rowKey: string;
|
|
56
|
+
}>;
|
|
57
|
+
export default _default;
|