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..e39ddded --- /dev/null +++ b/src/packages/components/Tables/Tables/TableScrollBoard/config.ts @@ -0,0 +1,29 @@ +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'], + dataset: dataJson, + index: true, + columnWidth: [30, 100, 100], + align: ['center','right','right','right'], + rowNum: 5, + waitTime: 2, + headerHeight: 35, + carousel: 'single', + headerBGC: '#00BAFF', + oddRowBGC: '#003B51', + evenRowBGC: '#0A2732', +} + +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..9dd1e12d --- /dev/null +++ b/src/packages/components/Tables/Tables/TableScrollBoard/config.vue @@ -0,0 +1,121 @@ + + + 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..2508e6ff --- /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"] +] 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..0ceb94bb --- /dev/null +++ b/src/packages/components/Tables/Tables/TableScrollBoard/index.ts @@ -0,0 +1,14 @@ +import image from '@/assets/images/chart/tables/table_scrollboard.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..9792e796 --- /dev/null +++ b/src/packages/components/Tables/Tables/TableScrollBoard/index.vue @@ -0,0 +1,355 @@ + + + + + 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]