diff --git a/src/packages/components/Tables/Tables/TableScrollBoard/config.ts b/src/packages/components/Tables/Tables/TableScrollBoard/config.ts new file mode 100644 index 00000000..ab9f01b2 --- /dev/null +++ b/src/packages/components/Tables/Tables/TableScrollBoard/config.ts @@ -0,0 +1,30 @@ +import { publicConfig } from '@/packages/public' +import { CreateComponentType } from '@/packages/index.d' +import { TableScrollBoardConfig } from './index' +import cloneDeep from 'lodash/cloneDeep' +import dataJson from './data.json' + +export const option = { + header: ['列1', '列2', '列3'], + data: [ + ['行1列1', '行1列2', '行1列3'], + ['行2列1', '行2列2', '行2列3'], + ['行3列1', '行3列2', '行3列3'], + ['行4列1', '行4列2', '行4列3'], + ['行5列1', '行5列2', '行5列3'], + ['行6列1', '行6列2', '行6列3'], + ['行7列1', '行7列2', '行7列3'], + ['行8列1', '行8列2', '行8列3'], + ['行9列1', '行9列2', '行9列3'], + ['行10列1', '行10列2', '行10列3'] + ], + index: true, + columnWidth: [30,100,100], + align: ['center'] +} + +export default class Config extends publicConfig implements CreateComponentType { + public key = TableScrollBoardConfig.key + public chartConfig = cloneDeep(TableScrollBoardConfig) + public option = cloneDeep(option) +} diff --git a/src/packages/components/Tables/Tables/TableScrollBoard/config.vue b/src/packages/components/Tables/Tables/TableScrollBoard/config.vue new file mode 100644 index 00000000..bd7c34c5 --- /dev/null +++ b/src/packages/components/Tables/Tables/TableScrollBoard/config.vue @@ -0,0 +1,70 @@ + + + diff --git a/src/packages/components/Tables/Tables/TableScrollBoard/data.json b/src/packages/components/Tables/Tables/TableScrollBoard/data.json new file mode 100644 index 00000000..f9ffeab3 --- /dev/null +++ b/src/packages/components/Tables/Tables/TableScrollBoard/data.json @@ -0,0 +1,12 @@ +[ + ['行1列1', '行1列2', '行1列3'], + ['行2列1', '行2列2', '行2列3'], + ['行3列1', '行3列2', '行3列3'], + ['行4列1', '行4列2', '行4列3'], + ['行5列1', '行5列2', '行5列3'], + ['行6列1', '行6列2', '行6列3'], + ['行7列1', '行7列2', '行7列3'], + ['行8列1', '行8列2', '行8列3'], + ['行9列1', '行9列2', '行9列3'], + ['行10列1', '行10列2', '行10列3'] +] \ No newline at end of file diff --git a/src/packages/components/Tables/Tables/TableScrollBoard/index.ts b/src/packages/components/Tables/Tables/TableScrollBoard/index.ts new file mode 100644 index 00000000..e2070edf --- /dev/null +++ b/src/packages/components/Tables/Tables/TableScrollBoard/index.ts @@ -0,0 +1,14 @@ +import image from '@/assets/images/chart/tables/tables_list.png' +import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d' +import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d' + +export const TableScrollBoardConfig: ConfigType = { + key: 'TableScrollBoard', + chartKey: 'VTableScrollBoard', + conKey: 'VCTableScrollBoard', + title: '轮播列表', + category: ChatCategoryEnum.TABLE, + categoryName: ChatCategoryEnumName.TABLE, + package: PackagesCategoryEnum.TABLES, + image +} diff --git a/src/packages/components/Tables/Tables/TableScrollBoard/index.vue b/src/packages/components/Tables/Tables/TableScrollBoard/index.vue new file mode 100644 index 00000000..93f5e1bb --- /dev/null +++ b/src/packages/components/Tables/Tables/TableScrollBoard/index.vue @@ -0,0 +1,376 @@ + + + + + diff --git a/src/packages/components/Tables/Tables/index.ts b/src/packages/components/Tables/Tables/index.ts index a2443e35..388951a9 100644 --- a/src/packages/components/Tables/Tables/index.ts +++ b/src/packages/components/Tables/Tables/index.ts @@ -1,5 +1,6 @@ import { TableListConfig } from './TableList' import { TableCommonConfig } from './TableCommon' import { TableCategoryConfig } from './TableCategory' +import { TableScrollBoardConfig } from './TableScrollBoard' -export default [TableListConfig, TableCommonConfig, TableCategoryConfig] +export default [TableListConfig, TableScrollBoardConfig, TableCommonConfig, TableCategoryConfig]