Skip to content

Commit c3354e5

Browse files
committed
fix(load-list): avoid tinyList and tinyTimeLine regisiter twice
1 parent cda8521 commit c3354e5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

internals/cli/src/commands/build/build-entry-app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ const notSimpleComponents = [
112112
'QueryBuilder',
113113
'RichText',
114114
'RichTextEditor',
115+
'TimeLineNew',
115116
'River',
116117
'TextPopup',
117118
'ToggleMenu',

internals/cli/src/shared/module-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const moduleMap = require(pathFromWorkspaceRoot('packages/modules.json'))
1414
type mode = 'pc' | 'mobile' | 'mobile-first'
1515

1616
// 需要在入口文件中排除的组件,比如:富文本
17-
export const excludeComponents = ['RichText', 'RichTextEditor']
17+
export const excludeComponents = ['RichText', 'RichTextEditor', 'TimeLineNew']
1818

1919
export interface Module {
2020
/** 源码路径,如 vue/src/button/index.ts */

packages/vue/src/load-list/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import template from 'virtual-template?mobile-first'
44

55
export const loadListProps = {
66
...$props,
7-
direction: { type: String, default: 'down', validator: (value) => ['down', 'up'].indexOf(value) > -1 },
7+
direction: { type: String, default: 'down', validator: (value) => ['down', 'up'].includes(value) },
88
offset: { type: [String, Number], default: 300 },
99
disabled: Boolean,
1010
scroller: Object,
@@ -19,7 +19,7 @@ export const loadListProps = {
1919
}
2020

2121
export default defineComponent({
22-
name: $prefix + 'List',
22+
name: $prefix + 'LoadList',
2323
props: loadListProps,
2424
setup(props, context) {
2525
return $setup({ props, context, template })

0 commit comments

Comments
 (0)