orion-design 0.1.32 → 0.1.34
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Throne/hooks/use-throne-context.d.ts +5 -0
- package/dist/Throne/hooks/use-throne-context.js +15 -0
- package/dist/Throne/hooks/use-throne-context.js.map +1 -0
- package/dist/Throne/index.d.ts +1 -1
- package/dist/Throne/index.js +3 -3
- package/dist/Throne/index.js.map +1 -1
- package/dist/components/Button/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/dist/components/Button/index.js +19 -17
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +4 -4
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +894 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.d.ts +26 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.js +5 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.js.map +1 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.vue.d.ts +6249 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.d.ts +1 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js +9 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js.map +1 -0
- package/dist/components/Form/MultiTableSelect/index.d.ts +2 -0
- package/dist/components/Form/MultiTableSelect/index.js +7 -0
- package/dist/components/Form/MultiTableSelect/index.js.map +1 -0
- package/dist/components/Form/hooks/index.js +46 -45
- package/dist/components/Form/hooks/index.js.map +1 -1
- package/dist/components/Form/index.d.ts +3 -0
- package/dist/components/Form/index.js +542 -401
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +24 -6
- package/dist/components/LovTable/LovQuerytable.vue.d.ts +468 -4
- package/dist/components/LovTable/index.d.ts +246 -5
- package/dist/components/LovTable/index.js +11 -13
- package/dist/components/LovTable/index.js.map +1 -1
- package/dist/components/MultiTableSelectPagetable/MultiTableSelectPagetable.vue.d.ts +886 -0
- package/dist/components/MultiTableSelectPagetable/index.d.ts +465 -0
- package/dist/components/MultiTableSelectPagetable/index.js +164 -0
- package/dist/components/MultiTableSelectPagetable/index.js.map +1 -0
- package/dist/components/Pagetable/Pagetable.d.ts +5 -2
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +1 -1
- package/dist/components/Pagetable/hooks/useCode.d.ts +2 -0
- package/dist/components/Pagetable/hooks/useCode.js +24 -0
- package/dist/components/Pagetable/hooks/useCode.js.map +1 -0
- package/dist/components/Pagetable/index.d.ts +5 -2
- package/dist/components/Pagetable/index.js +347 -340
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Querytable/Querytable.d.ts +80 -2
- package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +1 -1
- package/dist/components/Querytable/columns/QuerytableColumnLink.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +14 -1
- package/dist/components/Querytable/hooks/useColumns.js +16 -11
- package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
- package/dist/components/Querytable/index.d.ts +147 -1
- package/dist/components/Querytable/index.js +404 -347
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Throne/ThroneContextProvider.d.ts +25 -0
- package/dist/components/_util/vue/icon.js +1 -1
- package/dist/components/components.d.ts +2 -0
- package/dist/components/components.js +22 -18
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.js +41 -33
- package/dist/components/index.js.map +1 -1
- package/dist/components-DP9bnDLm.js +48 -0
- package/dist/components-DP9bnDLm.js.map +1 -0
- package/dist/{index-C6P_0wAy.js → index-ChkLOmNK.js} +76 -46
- package/dist/{index-C6P_0wAy.js.map → index-ChkLOmNK.js.map} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +41 -31
- package/dist/index.js.map +1 -1
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
- package/dist/components-8oZ2kpUC.js +0 -27
- package/dist/components-8oZ2kpUC.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/Querytable/Querytable.tsx","../../../src/components/Querytable/columns/QuerytableColumnIndex.tsx","../../../src/components/Querytable/columns/QuerytableColumnString.tsx","../../../src/components/Querytable/columns/QuerytableColumnLink.tsx","../../../src/components/Querytable/columns/QuerytableColumnNumber.tsx","../../../src/components/Querytable/columns/QuerytableColumnDate.tsx","../../../src/components/Querytable/columns/QuerytableColumnSingleselect.tsx","../../../src/components/Querytable/columns/QuerytableColumnMultiselect.tsx","../../../src/components/Querytable/columns/QuerytableColumnButtongroup.tsx","../../../src/components/Querytable/columns/QuerytableCellButton.tsx","../../../src/components/Querytable/columns/QuerytableColumngroup.tsx","../../../src/components/Querytable/columns/QuerytableColumnDiy.tsx","../../../src/components/Querytable/index.ts"],"sourcesContent":["import { computed, defineComponent, ref } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../_util/classNames'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../_util/type'\r\nimport { ElTable, ElTableColumn } from 'element-plus'\r\n\r\nimport { formatDate, number2string, getSingleCodeContent, getMultiCodeContent } from './utils'\r\nimport dayjs from 'dayjs'\r\n\r\nimport Space from '../Space'\r\nimport OrionError from '../../error/OrionError'\r\n\r\nimport type { PageTableI } from './interface'\r\n\r\nimport useColumns from './hooks/useColumns'\r\n\r\nimport Throne from '../../Throne'\r\n\r\nexport const querytableProps = () => ({\r\n data: arrayType<PageTableI['data']>(),\r\n showRowNumber: booleanType(true),\r\n selectionMode: booleanType(false),\r\n currentRowMode: booleanType(false),\r\n size: stringType<'' | 'large' | 'default' | 'small'>(),\r\n})\r\n\r\nexport type QuerytableProps = Partial<ExtractPropTypes<ReturnType<typeof querytableProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytable',\r\n inheritAttrs: false,\r\n props: querytableProps(),\r\n emits: ['selectionChange', 'currentRowChange', 'rowClick', 'rowDblclick', 'cellClick', 'cellDblclick'],\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const elTableRef = ref()\r\n\r\n const style = computed(() => {\r\n const rowStyle: CSSProperties = {}\r\n\r\n return rowStyle\r\n })\r\n\r\n const columns = useColumns(slots)\r\n\r\n const clearSelection = () => {\r\n elTableRef.value.clearSelection()\r\n }\r\n\r\n const getSelectionRows = () => {\r\n return elTableRef.value.getSelectionRows()\r\n }\r\n\r\n const toggleRowSelection = (...args) => {\r\n return elTableRef.value.toggleRowSelection(...args)\r\n }\r\n\r\n const toggleAllSelection = () => {\r\n return elTableRef.value.toggleAllSelection()\r\n }\r\n\r\n const setCurrentRow = (...args) => {\r\n return elTableRef.value.setCurrentRow(...args)\r\n }\r\n\r\n const scrollTo = (...args) => {\r\n return elTableRef.value.scrollTo(...args)\r\n }\r\n\r\n expose({\r\n clearSelection,\r\n getSelectionRows,\r\n toggleRowSelection,\r\n toggleAllSelection,\r\n setCurrentRow,\r\n scrollTo,\r\n })\r\n\r\n return () => {\r\n const { data } = props\r\n const { selectionMode = false } = props\r\n const { showRowNumber = true } = props\r\n const { currentRowMode = false } = props\r\n const { size = 'default' } = props\r\n\r\n const cn = classNames('orion-querytable')\r\n\r\n const renderIndexColumn = () => {\r\n return (\r\n <ElTableColumn\r\n type={'index'}\r\n label=\"No\"\r\n width={56}\r\n fixed={'left'}\r\n showOverflowTooltip={true}\r\n index={(index: number) => {\r\n return index + 1\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderSelectionColumn = () => {\r\n return <ElTableColumn type={'selection'} width={40} fixed={'left'}></ElTableColumn>\r\n }\r\n\r\n const renderStringColumn = (column) => {\r\n const { name, head, headAlign, width, fixed } = column\r\n return <ElTableColumn label={head} headerAlign={headAlign} prop={name} width={width} fixed={fixed} showOverflowTooltip={true}></ElTableColumn>\r\n }\r\n\r\n const renderLinkColumn = (column) => {\r\n const { name, head, headAlign, width, fixed } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n v-slots={{\r\n default: (scope) => {\r\n const { row, column } = scope\r\n return <span class=\"cell-linkcolumn\">{row[column.property]}</span>\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderNumberColumn = (column) => {\r\n const { name, head, headAlign, width, fixed } = column\r\n const { thousandsSeparator = true, precision = -1, percentage = false } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n align={'right'}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n v-slots={{\r\n default: (scope) => {\r\n const { row, column } = scope\r\n return (\r\n <span class=\"cell-numbercolumn\">\r\n {number2string(row[column.property], thousandsSeparator, precision, percentage === true || percentage === '')}\r\n </span>\r\n )\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderDateColumn = (column) => {\r\n const { name, head, headAlign, width, fixed, sourceFormat, format = 'YYYYMMDDHHmmss' } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n v-slots={{\r\n default: (scope) => {\r\n const { row, column } = scope\r\n const cellValue = row[column.property]\r\n\r\n if (cellValue instanceof Date || dayjs.isDayjs(cellValue)) {\r\n return <div>{formatDate(cellValue, format)}</div>\r\n } else {\r\n if (sourceFormat && format) {\r\n return <div>{formatDate(cellValue, sourceFormat, format)}</div>\r\n } else {\r\n return <div>{cellValue}</div>\r\n }\r\n }\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderSingleSelectColumn = (column) => {\r\n const { name, head, headAlign, width, fixed } = column\r\n const { code } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n v-slots={{\r\n default: (scope) => {\r\n const { row, column } = scope\r\n const cellValue = row[column.property]\r\n\r\n let codeName, codeData, codeContent\r\n if (!code) {\r\n codeContent = null\r\n } else if (typeof code === 'string') {\r\n codeName = code\r\n codeData = Throne.getCode(codeName)\r\n codeContent = getSingleCodeContent(codeData.value, cellValue)\r\n } else {\r\n codeData = code\r\n codeContent = getSingleCodeContent(codeData, cellValue)\r\n }\r\n\r\n return <span class=\"cell-singleselect\">{codeContent}</span>\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderMultiSelectColumn = (column) => {\r\n const { name, head, headAlign, width, fixed } = column\r\n const { code } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n v-slots={{\r\n default: (scope) => {\r\n const { row, column } = scope\r\n const cellValue = row[column.property]\r\n\r\n let codeName, codeData, codeContent\r\n if (!code) {\r\n codeContent = null\r\n } else if (typeof code === 'string') {\r\n codeName = code\r\n codeData = Throne.getCode(codeName)\r\n codeContent = getMultiCodeContent(codeData.value, cellValue)\r\n } else {\r\n codeData = code\r\n codeContent = getMultiCodeContent(codeData, cellValue)\r\n }\r\n\r\n return <span class=\"cell-multiselect\">{codeContent}</span>\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderButtongroupColumn = (column) => {\r\n const { name, head, headAlign, width, fixed } = column\r\n\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n v-slots={{\r\n default: (scope) => {\r\n // { row: any, column: any, $index: number }\r\n const children = column.children?.default?.({\r\n rowData: scope.row,\r\n column,\r\n rowIndex: scope.$index,\r\n })\r\n\r\n return (\r\n <div class=\"cell-buttongroup\">\r\n <Space>{children}</Space>\r\n </div>\r\n )\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderColumngroupColumn = (column) => {\r\n const { head, headAlign } = column\r\n const { children } = column\r\n\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n v-slots={{\r\n default: (scope) => {\r\n return renderColumns(children)\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderDiyColumn = (column) => {\r\n const { name, head, headAlign, width, fixed } = column\r\n\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n v-slots={{\r\n default: (scope) => {\r\n // { row: any, column: any, $index: number }\r\n const children = column.children?.default?.({\r\n rowData: scope.row,\r\n column,\r\n rowIndex: scope.$index,\r\n })\r\n\r\n return <div class=\"cell-diy\">{children} </div>\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderColumns = (columns) => {\r\n return columns?.map((c) => {\r\n if (c.type === 'OQuerytableColumnString') {\r\n return renderStringColumn(c)\r\n } else if (c.type === 'OQuerytableColumnLink') {\r\n return renderLinkColumn(c)\r\n } else if (c.type === 'OQuerytableColumnNumber') {\r\n return renderNumberColumn(c)\r\n } else if (c.type === 'OQuerytableColumnDate') {\r\n return renderDateColumn(c)\r\n } else if (c.type === 'OQuerytableColumnSingleselect') {\r\n return renderSingleSelectColumn(c)\r\n } else if (c.type === 'OQuerytableColumnMultiselect') {\r\n return renderMultiSelectColumn(c)\r\n } else if (c.type === 'OQuerytableColumnButtongroup') {\r\n return renderButtongroupColumn(c)\r\n } else if (c.type === 'OQuerytableColumngroup') {\r\n return renderColumngroupColumn(c)\r\n } else if (c.type === 'OQuerytableColumnDiy') {\r\n return renderDiyColumn(c)\r\n } else {\r\n throw new OrionError(`OQuerytable不能正确渲染'${c.type}'子组件。`)\r\n }\r\n })\r\n }\r\n\r\n return (\r\n <div class={[cn, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n <ElTable\r\n ref={elTableRef}\r\n border\r\n data={data}\r\n height={'100%'}\r\n style={{ width: '100%' }}\r\n onSelection-change={(rows) => emit('selectionChange', rows)}\r\n highlight-current-row={currentRowMode}\r\n onCurrent-change={(currentRow, oldCurrentRow) => emit('currentRowChange', currentRow, oldCurrentRow)}\r\n onRow-click={(row: any, column: any, event: Event) => emit('rowClick', row, { name: column.property, head: column.label }, event)}\r\n onRow-dblclick={(row: any, column: any, event: Event) => emit('rowDblclick', row, { name: column.property, head: column.label }, event)}\r\n onCell-click={(row: any, column: any, cell: any, event: Event) =>\r\n emit('cellClick', row, { name: column.property, head: column.label }, cell, event)\r\n }\r\n onCell-dblclick={(row: any, column: any, cell: any, event: Event) =>\r\n emit('cellDblclick', row, { name: column.property, head: column.label }, cell, event)\r\n }\r\n size={size}\r\n >\r\n {showRowNumber && renderIndexColumn()}\r\n {selectionMode && renderSelectionColumn()}\r\n {renderColumns(columns.value)}\r\n </ElTable>\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnIndexProps = () => ({})\r\n\r\nexport type QuerytableColumnIndexProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnIndexProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnIndex',\r\n inheritAttrs: false,\r\n props: querytableColumnIndexProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnStringProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n})\r\n\r\nexport type QuerytableColumnStringProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnStringProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnString',\r\n inheritAttrs: false,\r\n props: querytableColumnStringProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnLinkProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n})\r\n\r\nexport type QuerytableColumnLinkProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnLinkProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnLink',\r\n inheritAttrs: false,\r\n props: querytableColumnLinkProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType, numberType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnNumberProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n\r\n thousandsSeparator: booleanType(true),\r\n precision: numberType(-1),\r\n percentage: booleanType(false),\r\n})\r\n\r\nexport type QuerytableColumnNumberProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnNumberProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnNumber',\r\n inheritAttrs: false,\r\n props: querytableColumnNumberProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnDateProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n\r\n // Date\r\n format: stringType(),\r\n sourceFormat: stringType(),\r\n})\r\n\r\nexport type QuerytableColumnDateProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnDateProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnDate',\r\n inheritAttrs: false,\r\n props: querytableColumnDateProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnSingleselectProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n\r\n code: someType<string | { value: string; content: string }[]>([String, Array]),\r\n})\r\n\r\nexport type QuerytableColumnSingleselectProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnSingleselectProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnSingleselect',\r\n inheritAttrs: false,\r\n props: querytableColumnSingleselectProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnMultiselectProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n\r\n code: someType<string | { value: string; content: string }[]>([String, Array]),\r\n})\r\n\r\nexport type QuerytableColumnMultiselectProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnMultiselectProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnMultiselect',\r\n inheritAttrs: false,\r\n props: querytableColumnMultiselectProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType, CustomSlotsType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnButtongroupProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n})\r\n\r\nexport type QuerytableColumnButtongroupProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnButtongroupProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnButtongroup',\r\n inheritAttrs: false,\r\n props: querytableColumnButtongroupProps(),\r\n slots: Object as CustomSlotsType<{\r\n default: any\r\n }>,\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElButton } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableCellButtonProps = () => ({\r\n type: stringType(),\r\n})\r\n\r\nexport type QuerytableCellButtonProps = Partial<ExtractPropTypes<ReturnType<typeof querytableCellButtonProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableCellButton',\r\n inheritAttrs: false,\r\n props: querytableCellButtonProps(),\r\n emits: ['click'],\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const handleClick = (event: Event) => {\r\n emit('click', event)\r\n }\r\n\r\n return () => {\r\n const { type } = props\r\n const children = slots.default?.()\r\n\r\n return (\r\n <ElButton link type={type} size=\"small\" onClick={handleClick}>\r\n {children}\r\n </ElButton>\r\n )\r\n }\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElButton } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumngroupProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n})\r\n\r\nexport type QuerytableColumngroupProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumngroupProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumngroup',\r\n inheritAttrs: false,\r\n props: querytableColumngroupProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType, CustomSlotsType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnDiyProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n})\r\n\r\nexport type QuerytableColumnDiyProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnDiyProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnDiy',\r\n inheritAttrs: false,\r\n props: querytableColumnDiyProps(),\r\n slots: Object as CustomSlotsType<{\r\n default: any\r\n }>,\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { withInstall } from '../_util'\r\n\r\nimport Querytable from './Querytable'\r\nimport QuerytableColumnIndex from './columns/QuerytableColumnIndex'\r\nimport QuerytableColumnString from './columns/QuerytableColumnString'\r\nimport QuerytableColumnLink from './columns/QuerytableColumnLink'\r\nimport QuerytableColumnNumber from './columns/QuerytableColumnNumber'\r\nimport QuerytableColumnDate from './columns/QuerytableColumnDate'\r\nimport QuerytableColumnSingleselect from './columns/QuerytableColumnSingleselect'\r\nimport QuerytableColumnMultiselect from './columns/QuerytableColumnMultiselect'\r\nimport QuerytableColumnButtongroup from './columns/QuerytableColumnButtongroup'\r\nimport QuerytableCellButton from './columns/QuerytableCellButton'\r\nimport QuerytableColumngroup from './columns/QuerytableColumngroup'\r\nimport QuerytableColumnDiy from './columns/QuerytableColumnDiy'\r\n\r\nexport type { QuerytableProps } from './Querytable'\r\n\r\nexport default withInstall<\r\n typeof Querytable,\r\n {\r\n QuerytableColumnIndex: typeof QuerytableColumnIndex\r\n QuerytableColumnString: typeof QuerytableColumnString\r\n QuerytableColumnLink: typeof QuerytableColumnLink\r\n QuerytableColumnNumber: typeof QuerytableColumnNumber\r\n QuerytableColumnDate: typeof QuerytableColumnDate\r\n QuerytableColumnSingleselect: typeof QuerytableColumnSingleselect\r\n QuerytableColumnMultiselect: typeof QuerytableColumnMultiselect\r\n QuerytableColumnButtongroup: typeof QuerytableColumnButtongroup\r\n QuerytableCellButton: typeof QuerytableCellButton\r\n QuerytableColumngroup: typeof QuerytableColumngroup\r\n QuerytableColumnDiy: typeof QuerytableColumnDiy\r\n }\r\n>(Querytable, {\r\n QuerytableColumnIndex,\r\n QuerytableColumnString,\r\n QuerytableColumnLink,\r\n QuerytableColumnNumber,\r\n QuerytableColumnDate,\r\n QuerytableColumnSingleselect,\r\n QuerytableColumnMultiselect,\r\n QuerytableColumnButtongroup,\r\n QuerytableCellButton,\r\n QuerytableColumngroup,\r\n QuerytableColumnDiy,\r\n})\r\n"],"names":["_isSlot","s","Object","prototype","toString","call","_isVNode","querytableProps","data","arrayType","showRowNumber","booleanType","selectionMode","currentRowMode","size","stringType","defineComponent","name","inheritAttrs","props","emits","setup","slots","attrs","emit","expose","elTableRef","ref","style","computed","columns","useColumns","clearSelection","value","getSelectionRows","toggleRowSelection","args","toggleAllSelection","setCurrentRow","scrollTo","cn","classNames","renderIndexColumn","_createVNode","ElTableColumn","index","renderSelectionColumn","renderStringColumn","column","head","headAlign","width","fixed","renderLinkColumn","default","scope","row","property","renderNumberColumn","thousandsSeparator","precision","percentage","number2string","renderDateColumn","sourceFormat","format","cellValue","Date","dayjs","isDayjs","formatDate","renderSingleSelectColumn","code","codeName","codeData","codeContent","Throne","getCode","getSingleCodeContent","renderMultiSelectColumn","getMultiCodeContent","renderButtongroupColumn","children","rowData","rowIndex","$index","Space","renderColumngroupColumn","renderColumns","renderDiyColumn","_createTextVNode","map","c","type","OrionError","class","ElTable","rows","onCurrent-change","currentRow","oldCurrentRow","onRow-click","event","label","onRow-dblclick","onCell-click","cell","onCell-dblclick","querytableColumnIndexProps","querytableColumnStringProps","someType","Boolean","String","querytableColumnLinkProps","querytableColumnNumberProps","numberType","querytableColumnDateProps","querytableColumnSingleselectProps","Array","querytableColumnMultiselectProps","querytableColumnButtongroupProps","querytableCellButtonProps","handleClick","ElButton","querytableColumngroupProps","querytableColumnDiyProps","Querytable","withInstall","QuerytableColumnIndex","QuerytableColumnString","QuerytableColumnLink","QuerytableColumnNumber","QuerytableColumnDate","QuerytableColumnSingleselect","QuerytableColumnMultiselect","QuerytableColumnButtongroup","QuerytableCellButton","QuerytableColumngroup","QuerytableColumnDiy"],"mappings":";;;;;;;;;;;;AAgBiC,SAAAA,GAAAC,GAAA;AAAA,SAAA,OAAAA,KAAA,cAAAC,OAAAC,UAAAC,SAAAC,KAAAJ,CAAA,MAAAK,qBAAAA,CAAAA,EAAAL,CAAA;AAAA;AAE1B,MAAMM,KAAkBA,OAAO;AAAA,EACpCC,MAAMC,GAA+B;AAAA,EACrCC,eAAeC,EAAY,EAAI;AAAA,EAC/BC,eAAeD,EAAY,EAAK;AAAA,EAChCE,gBAAgBF,EAAY,EAAK;AAAA,EACjCG,MAAMC,EAA+C;AACvD,IAIeC,uBAAgB;AAAA,EAC7BC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,OAAOZ,GAAiB;AAAA,EACxBa,OAAO,CAAC,mBAAmB,oBAAoB,YAAY,eAAe,aAAa,cAAc;AAAA,EACrGC,MAAMF,GAAO;AAAA,IAAEG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AA,EAAO,GAAG;AAC3C,WAAO,MAAM;AAAA,EACf;AACF,CAAC,GCZcqG,KAAAC,GAebD,IAAY;AAAA,EACZ,uBAAAE;AAAA,EACA,wBAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,wBAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,8BAAAC;AAAA,EACA,6BAAAC;AAAA,EACA,6BAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,qBAAAC;AACF,CAAC;"}
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Querytable/Querytable.tsx","../../../src/components/Querytable/columns/QuerytableColumnIndex.tsx","../../../src/components/Querytable/columns/QuerytableColumnString.tsx","../../../src/components/Querytable/columns/QuerytableColumnLink.tsx","../../../src/components/Querytable/columns/QuerytableColumnNumber.tsx","../../../src/components/Querytable/columns/QuerytableColumnDate.tsx","../../../src/components/Querytable/columns/QuerytableColumnSingleselect.tsx","../../../src/components/Querytable/columns/QuerytableColumnMultiselect.tsx","../../../src/components/Querytable/columns/QuerytableColumnButtongroup.tsx","../../../src/components/Querytable/columns/QuerytableCellButton.tsx","../../../src/components/Querytable/columns/QuerytableColumngroup.tsx","../../../src/components/Querytable/columns/QuerytableColumnDiy.tsx","../../../src/components/Querytable/index.ts"],"sourcesContent":["import { computed, defineComponent, ref } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../_util/classNames'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../_util/type'\r\nimport { ElTable, ElTableColumn } from 'element-plus'\r\n\r\nimport { formatDate, number2string, getSingleCodeContent, getMultiCodeContent } from './utils'\r\nimport dayjs from 'dayjs'\r\n\r\nimport Space from '../Space'\r\nimport OrionError from '../../error/OrionError'\r\n\r\nimport type { PageTableI } from './interface'\r\n\r\nimport useColumns from './hooks/useColumns'\r\nimport useCode from '../Pagetable/hooks/useCode'\r\n\r\ntype rowClassNameFn = (data: { rowData: any; rowIndex: number }) => string\r\ntype rowStyleFn = (data: { rowData: any; rowIndex: number }) => CSSProperties\r\ntype cellClassNameFn = (data: { rowData: any; column: { name: string; head: string }; rowIndex: number; columnIndex: number }) => string\r\ntype cellStyleFn = (data: { rowData: any; column: { name: string; head: string }; rowIndex: number; columnIndex: number }) => CSSProperties\r\n\r\nexport const querytableProps = () => ({\r\n data: arrayType<PageTableI['data']>(),\r\n showRowNumber: booleanType(true),\r\n selectionMode: booleanType(false),\r\n currentRowMode: booleanType(false),\r\n size: stringType<'' | 'large' | 'default' | 'small'>(),\r\n rowClassName: someType<string | rowClassNameFn>(),\r\n rowStyle: someType<CSSProperties | rowStyleFn>(),\r\n cellClassName: someType<string | cellClassNameFn>(),\r\n cellStyle: someType<CSSProperties | cellStyleFn>(),\r\n})\r\n\r\nexport type QuerytableProps = Partial<ExtractPropTypes<ReturnType<typeof querytableProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytable',\r\n inheritAttrs: false,\r\n props: querytableProps(),\r\n emits: ['selectionChange', 'currentRowChange', 'rowClick', 'rowDblclick', 'cellClick', 'cellDblclick'],\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const elTableRef = ref()\r\n\r\n const style = computed(() => {\r\n const rowStyle: CSSProperties = {}\r\n\r\n return rowStyle\r\n })\r\n\r\n const columns = useColumns(slots)\r\n\r\n const clearSelection = () => {\r\n elTableRef.value.clearSelection()\r\n }\r\n\r\n const getSelectionRows = () => {\r\n return elTableRef.value.getSelectionRows()\r\n }\r\n\r\n const toggleRowSelection = (...args) => {\r\n return elTableRef.value.toggleRowSelection(...args)\r\n }\r\n\r\n const toggleAllSelection = () => {\r\n return elTableRef.value.toggleAllSelection()\r\n }\r\n\r\n const setCurrentRow = (...args) => {\r\n return elTableRef.value.setCurrentRow(...args)\r\n }\r\n\r\n const scrollTo = (...args) => {\r\n return elTableRef.value.scrollTo(...args)\r\n }\r\n\r\n expose({\r\n clearSelection,\r\n getSelectionRows,\r\n toggleRowSelection,\r\n toggleAllSelection,\r\n setCurrentRow,\r\n scrollTo,\r\n })\r\n\r\n return () => {\r\n const { data } = props\r\n const { selectionMode = false } = props\r\n const { showRowNumber = true } = props\r\n const { currentRowMode = false } = props\r\n const { size = 'default' } = props\r\n const { rowClassName, rowStyle, cellClassName, cellStyle } = props\r\n\r\n const cn = classNames('orion-querytable')\r\n\r\n const renderIndexColumn = () => {\r\n return (\r\n <ElTableColumn\r\n type={'index'}\r\n label=\"No\"\r\n width={56}\r\n fixed={'left'}\r\n showOverflowTooltip={true}\r\n index={(index: number) => {\r\n return index + 1\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderSelectionColumn = () => {\r\n return <ElTableColumn type={'selection'} width={40} fixed={'left'}></ElTableColumn>\r\n }\r\n\r\n const renderStringColumn = (column) => {\r\n const { name, head, headAlign, bodyAlign, width, fixed } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n align={bodyAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderLinkColumn = (column) => {\r\n const { name, head, headAlign, bodyAlign, width, fixed } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n align={bodyAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n v-slots={{\r\n default: (scope) => {\r\n const { row, column } = scope\r\n return <span class=\"cell-linkcolumn\">{row[column.property]}</span>\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderNumberColumn = (column) => {\r\n const { name, head, headAlign, bodyAlign = 'right', width, fixed } = column\r\n const { thousandsSeparator = true, precision = -1, percentage = false } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n align={bodyAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n v-slots={{\r\n default: (scope) => {\r\n const { row, column } = scope\r\n return (\r\n <span class=\"cell-numbercolumn\">\r\n {number2string(row[column.property], thousandsSeparator, precision, percentage === true || percentage === '')}\r\n </span>\r\n )\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderDateColumn = (column) => {\r\n const { name, head, headAlign, bodyAlign, width, fixed, sourceFormat, format = 'YYYYMMDDHHmmss' } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n align={bodyAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n v-slots={{\r\n default: (scope) => {\r\n const { row, column } = scope\r\n const cellValue = row[column.property]\r\n\r\n if (cellValue instanceof Date || dayjs.isDayjs(cellValue)) {\r\n return <div>{formatDate(cellValue, format)}</div>\r\n } else {\r\n if (sourceFormat && format) {\r\n return <div>{formatDate(cellValue, sourceFormat, format)}</div>\r\n } else {\r\n return <div>{cellValue}</div>\r\n }\r\n }\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderSingleSelectColumn = (column) => {\r\n const { name, head, headAlign, bodyAlign, width, fixed } = column\r\n const { code } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n align={bodyAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n v-slots={{\r\n default: (scope) => {\r\n const { row, column } = scope\r\n const cellValue = row[column.property]\r\n\r\n let codeContent\r\n const codeData = useCode(code)\r\n if (!codeData.value) {\r\n codeContent = null\r\n } else {\r\n codeContent = getSingleCodeContent(codeData.value, cellValue)\r\n }\r\n\r\n return <span class=\"cell-singleselect\">{codeContent}</span>\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderMultiSelectColumn = (column) => {\r\n const { name, head, headAlign, bodyAlign, width, fixed } = column\r\n const { code } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n align={bodyAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n v-slots={{\r\n default: (scope) => {\r\n const { row, column } = scope\r\n const cellValue = row[column.property]\r\n\r\n let codeContent\r\n const codeData = useCode(code)\r\n if (!codeData.value) {\r\n codeContent = null\r\n } else {\r\n codeContent = getMultiCodeContent(codeData.value, cellValue)\r\n }\r\n\r\n return <span class=\"cell-multiselect\">{codeContent}</span>\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderButtongroupColumn = (column) => {\r\n const { name, head, headAlign, bodyAlign, width, fixed } = column\r\n\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n align={bodyAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n v-slots={{\r\n default: (scope) => {\r\n // { row: any, column: any, $index: number }\r\n const children = column.children?.default?.({\r\n rowData: scope.row,\r\n column,\r\n rowIndex: scope.$index,\r\n })\r\n\r\n return (\r\n <div class=\"cell-buttongroup\">\r\n <Space>{children}</Space>\r\n </div>\r\n )\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderColumngroupColumn = (column) => {\r\n const { head, headAlign } = column\r\n const { children } = column\r\n\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n v-slots={{\r\n default: (scope) => {\r\n return renderColumns(children)\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderDiyColumn = (column) => {\r\n const { name, head, headAlign, width, fixed } = column\r\n\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n v-slots={{\r\n default: (scope) => {\r\n // { row: any, column: any, $index: number }\r\n const children = column.children?.default?.({\r\n rowData: scope.row,\r\n column,\r\n rowIndex: scope.$index,\r\n })\r\n\r\n return <div class=\"cell-diy\">{children} </div>\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderColumns = (columns) => {\r\n return columns?.map((c) => {\r\n if (c.type === 'OQuerytableColumnString') {\r\n return renderStringColumn(c)\r\n } else if (c.type === 'OQuerytableColumnLink') {\r\n return renderLinkColumn(c)\r\n } else if (c.type === 'OQuerytableColumnNumber') {\r\n return renderNumberColumn(c)\r\n } else if (c.type === 'OQuerytableColumnDate') {\r\n return renderDateColumn(c)\r\n } else if (c.type === 'OQuerytableColumnSingleselect') {\r\n return renderSingleSelectColumn(c)\r\n } else if (c.type === 'OQuerytableColumnMultiselect') {\r\n return renderMultiSelectColumn(c)\r\n } else if (c.type === 'OQuerytableColumnButtongroup') {\r\n return renderButtongroupColumn(c)\r\n } else if (c.type === 'OQuerytableColumngroup') {\r\n return renderColumngroupColumn(c)\r\n } else if (c.type === 'OQuerytableColumnDiy') {\r\n return renderDiyColumn(c)\r\n } else {\r\n throw new OrionError(`OQuerytable不能正确渲染'${c.type}'子组件。`)\r\n }\r\n })\r\n }\r\n\r\n return (\r\n <div class={[cn, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n <ElTable\r\n ref={elTableRef}\r\n border\r\n data={data}\r\n height={'100%'}\r\n style={{ width: '100%' }}\r\n onSelection-change={(rows) => emit('selectionChange', rows)}\r\n highlight-current-row={currentRowMode}\r\n onCurrent-change={(currentRow, oldCurrentRow) => emit('currentRowChange', currentRow, oldCurrentRow)}\r\n onRow-click={(row: any, column: any, event: Event) => emit('rowClick', row, { name: column.property, head: column.label }, event)}\r\n onRow-dblclick={(row: any, column: any, event: Event) => emit('rowDblclick', row, { name: column.property, head: column.label }, event)}\r\n onCell-click={(row: any, column: any, cell: any, event: Event) =>\r\n emit('cellClick', row, { name: column.property, head: column.label }, cell, event)\r\n }\r\n onCell-dblclick={(row: any, column: any, cell: any, event: Event) =>\r\n emit('cellDblclick', row, { name: column.property, head: column.label }, cell, event)\r\n }\r\n size={size}\r\n rowClassName={(data: { row: any; rowIndex: number }) => {\r\n if (typeof rowClassName === 'string') {\r\n return rowClassName\r\n } else if (typeof rowClassName === 'function') {\r\n return rowClassName({ rowData: data.row, rowIndex: data.rowIndex })\r\n } else {\r\n return 'row-class-name_not_valid'\r\n }\r\n }}\r\n rowStyle={(data: { row: any; rowIndex: number }) => {\r\n if (typeof rowStyle === 'function') {\r\n return rowStyle({ rowData: data.row, rowIndex: data.rowIndex })\r\n } else if (typeof rowStyle === 'object') {\r\n return rowStyle\r\n } else {\r\n return {}\r\n }\r\n }}\r\n cellClassName={(data: { row: any; column: any; rowIndex: number; columnIndex: number }) => {\r\n if (typeof cellClassName === 'string') {\r\n return cellClassName\r\n } else if (typeof cellClassName === 'function') {\r\n return cellClassName({\r\n rowData: data.row,\r\n column: { name: data.column.property, head: data.column.label },\r\n rowIndex: data.rowIndex,\r\n columnIndex: data.columnIndex,\r\n })\r\n } else {\r\n return 'cell-class-name_not_valid'\r\n }\r\n }}\r\n cellStyle={(data: { row: any; column: any; rowIndex: number; columnIndex: number }) => {\r\n if (typeof cellStyle === 'function') {\r\n return cellStyle({\r\n rowData: data.row,\r\n column: { name: data.column.property, head: data.column.label },\r\n rowIndex: data.rowIndex,\r\n columnIndex: data.columnIndex,\r\n })\r\n } else if (typeof cellStyle === 'object') {\r\n return cellStyle\r\n } else {\r\n return {}\r\n }\r\n }}\r\n >\r\n {showRowNumber && renderIndexColumn()}\r\n {selectionMode && renderSelectionColumn()}\r\n {renderColumns(columns.value)}\r\n </ElTable>\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnIndexProps = () => ({})\r\n\r\nexport type QuerytableColumnIndexProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnIndexProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnIndex',\r\n inheritAttrs: false,\r\n props: querytableColumnIndexProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnStringProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n bodyAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n})\r\n\r\nexport type QuerytableColumnStringProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnStringProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnString',\r\n inheritAttrs: false,\r\n props: querytableColumnStringProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnLinkProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n bodyAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n})\r\n\r\nexport type QuerytableColumnLinkProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnLinkProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnLink',\r\n inheritAttrs: false,\r\n props: querytableColumnLinkProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType, numberType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnNumberProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n bodyAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n\r\n thousandsSeparator: booleanType(true),\r\n precision: numberType(-1),\r\n percentage: booleanType(false),\r\n})\r\n\r\nexport type QuerytableColumnNumberProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnNumberProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnNumber',\r\n inheritAttrs: false,\r\n props: querytableColumnNumberProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnDateProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n bodyAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n\r\n // Date\r\n format: stringType(),\r\n sourceFormat: stringType(),\r\n})\r\n\r\nexport type QuerytableColumnDateProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnDateProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnDate',\r\n inheritAttrs: false,\r\n props: querytableColumnDateProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnSingleselectProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n bodyAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n\r\n code: someType<string | { value: string; content: string }[]>([String, Array]),\r\n})\r\n\r\nexport type QuerytableColumnSingleselectProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnSingleselectProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnSingleselect',\r\n inheritAttrs: false,\r\n props: querytableColumnSingleselectProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnMultiselectProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n bodyAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n\r\n code: someType<string | { value: string; content: string }[]>([String, Array]),\r\n})\r\n\r\nexport type QuerytableColumnMultiselectProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnMultiselectProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnMultiselect',\r\n inheritAttrs: false,\r\n props: querytableColumnMultiselectProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType, CustomSlotsType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnButtongroupProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n bodyAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n})\r\n\r\nexport type QuerytableColumnButtongroupProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnButtongroupProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnButtongroup',\r\n inheritAttrs: false,\r\n props: querytableColumnButtongroupProps(),\r\n slots: Object as CustomSlotsType<{\r\n default: any\r\n }>,\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElButton } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableCellButtonProps = () => ({\r\n type: stringType(),\r\n})\r\n\r\nexport type QuerytableCellButtonProps = Partial<ExtractPropTypes<ReturnType<typeof querytableCellButtonProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableCellButton',\r\n inheritAttrs: false,\r\n props: querytableCellButtonProps(),\r\n emits: ['click'],\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const handleClick = (event: Event) => {\r\n emit('click', event)\r\n }\r\n\r\n return () => {\r\n const { type } = props\r\n const children = slots.default?.()\r\n\r\n return (\r\n <ElButton link type={type} size=\"small\" onClick={handleClick}>\r\n {children}\r\n </ElButton>\r\n )\r\n }\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElButton } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumngroupProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n})\r\n\r\nexport type QuerytableColumngroupProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumngroupProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumngroup',\r\n inheritAttrs: false,\r\n props: querytableColumngroupProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType, CustomSlotsType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const querytableColumnDiyProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n})\r\n\r\nexport type QuerytableColumnDiyProps = Partial<ExtractPropTypes<ReturnType<typeof querytableColumnDiyProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OQuerytableColumnDiy',\r\n inheritAttrs: false,\r\n props: querytableColumnDiyProps(),\r\n slots: Object as CustomSlotsType<{\r\n default: any\r\n }>,\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { withInstall } from '../_util'\r\n\r\nimport Querytable from './Querytable'\r\nimport QuerytableColumnIndex from './columns/QuerytableColumnIndex'\r\nimport QuerytableColumnString from './columns/QuerytableColumnString'\r\nimport QuerytableColumnLink from './columns/QuerytableColumnLink'\r\nimport QuerytableColumnNumber from './columns/QuerytableColumnNumber'\r\nimport QuerytableColumnDate from './columns/QuerytableColumnDate'\r\nimport QuerytableColumnSingleselect from './columns/QuerytableColumnSingleselect'\r\nimport QuerytableColumnMultiselect from './columns/QuerytableColumnMultiselect'\r\nimport QuerytableColumnButtongroup from './columns/QuerytableColumnButtongroup'\r\nimport QuerytableCellButton from './columns/QuerytableCellButton'\r\nimport QuerytableColumngroup from './columns/QuerytableColumngroup'\r\nimport QuerytableColumnDiy from './columns/QuerytableColumnDiy'\r\n\r\nexport type { QuerytableProps } from './Querytable'\r\n\r\nexport default withInstall<\r\n typeof Querytable,\r\n {\r\n QuerytableColumnIndex: typeof QuerytableColumnIndex\r\n QuerytableColumnString: typeof QuerytableColumnString\r\n QuerytableColumnLink: typeof QuerytableColumnLink\r\n QuerytableColumnNumber: typeof QuerytableColumnNumber\r\n QuerytableColumnDate: typeof QuerytableColumnDate\r\n QuerytableColumnSingleselect: typeof QuerytableColumnSingleselect\r\n QuerytableColumnMultiselect: typeof QuerytableColumnMultiselect\r\n QuerytableColumnButtongroup: typeof QuerytableColumnButtongroup\r\n QuerytableCellButton: typeof QuerytableCellButton\r\n QuerytableColumngroup: typeof QuerytableColumngroup\r\n QuerytableColumnDiy: typeof QuerytableColumnDiy\r\n }\r\n>(Querytable, {\r\n QuerytableColumnIndex,\r\n QuerytableColumnString,\r\n QuerytableColumnLink,\r\n QuerytableColumnNumber,\r\n QuerytableColumnDate,\r\n QuerytableColumnSingleselect,\r\n QuerytableColumnMultiselect,\r\n QuerytableColumnButtongroup,\r\n QuerytableCellButton,\r\n QuerytableColumngroup,\r\n QuerytableColumnDiy,\r\n})\r\n"],"names":["_isSlot","s","Object","prototype","toString","call","_isVNode","querytableProps","data","arrayType","showRowNumber","booleanType","selectionMode","currentRowMode","size","stringType","rowClassName","someType","rowStyle","cellClassName","cellStyle","defineComponent","name","inheritAttrs","props","emits","setup","slots","attrs","emit","expose","elTableRef","ref","style","computed","columns","useColumns","clearSelection","value","getSelectionRows","toggleRowSelection","args","toggleAllSelection","setCurrentRow","scrollTo","cn","classNames","renderIndexColumn","_createVNode","ElTableColumn","index","renderSelectionColumn","renderStringColumn","column","head","headAlign","bodyAlign","width","fixed","renderLinkColumn","default","scope","row","property","renderNumberColumn","thousandsSeparator","precision","percentage","number2string","renderDateColumn","sourceFormat","format","cellValue","Date","dayjs","isDayjs","formatDate","renderSingleSelectColumn","code","codeContent","codeData","useCode","getSingleCodeContent","renderMultiSelectColumn","getMultiCodeContent","renderButtongroupColumn","children","rowData","rowIndex","$index","Space","renderColumngroupColumn","renderColumns","renderDiyColumn","_createTextVNode","map","c","type","OrionError","class","ElTable","rows","onCurrent-change","currentRow","oldCurrentRow","onRow-click","event","label","onRow-dblclick","onCell-click","cell","onCell-dblclick","columnIndex","querytableColumnIndexProps","querytableColumnStringProps","Boolean","String","querytableColumnLinkProps","querytableColumnNumberProps","numberType","querytableColumnDateProps","querytableColumnSingleselectProps","Array","querytableColumnMultiselectProps","querytableColumnButtongroupProps","querytableCellButtonProps","handleClick","ElButton","querytableColumngroupProps","querytableColumnDiyProps","Querytable","withInstall","QuerytableColumnIndex","QuerytableColumnString","QuerytableColumnLink","QuerytableColumnNumber","QuerytableColumnDate","QuerytableColumnSingleselect","QuerytableColumnMultiselect","QuerytableColumnButtongroup","QuerytableCellButton","QuerytableColumngroup","QuerytableColumnDiy"],"mappings":";;;;;;;;;;;;AAegD,SAAAA,GAAAC,GAAA;AAAA,SAAA,OAAAA,KAAA,cAAAC,OAAAC,UAAAC,SAAAC,KAAAJ,CAAA,MAAAK,qBAAAA,CAAAA,EAAAL,CAAA;AAAA;AAOzC,MAAMM,KAAkBA,OAAO;AAAA,EACpCC,MAAMC,GAA+B;AAAA,EACrCC,eAAeC,EAAY,EAAI;AAAA,EAC/BC,eAAeD,EAAY,EAAK;AAAA,EAChCE,gBAAgBF,EAAY,EAAK;AAAA,EACjCG,MAAMC,EAAgD;AAAA,EACtDC,cAAcC,EAAmC;AAAA,EACjDC,UAAUD,EAAsC;AAAA,EAChDE,eAAeF,EAAoC;AAAA,EACnDG,WAAWH,EAAsC;AACnD,IAIeI,uBAAgB;AA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EAClB0C,OAAOxC,EAA2B,CAACkG,SAASC,MAAM,CAAC;AAAA,EACnD1D,OAAOzC,EAAoB,CAACkG,SAASC,MAAM,CAAC;AAC9C,IAIe/F,uBAAgB;AAAA,EAC7BC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,OAAOyG,GAA0B;AAAA,EACjCtG,OAAOzB;AAAAA,EAGPwB,MAAMF,GAAO;AAAA,IAAEG,OAAAA;AAAAA,IAAOC,OAAAA;AAAAA,IAAOC,MAAAA;AAAAA,IAAMC,QAAAA;AAAAA,EAAO,GAAG;AAC3C,WAAO,MAAM;AAAA,EACf;AACF,CAAC,GCZcoG,KAAAC,GAebD,IAAY;AAAA,EACZ,uBAAAE;AAAA,EACA,wBAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,wBAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,8BAAAC;AAAA,EACA,6BAAAC;AAAA,EACA,6BAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,qBAAAC;AACF,CAAC;"}
|
@@ -12,7 +12,7 @@ import { tabsRootContextKey as Q } from "./constants.js";
|
|
12
12
|
import { t as he, r as ye, i as Oe, b as Le, n as Fe, c as Me, d as Ve, e as Z } from "../../index-C9tCD90X.js";
|
13
13
|
import { capitalize as I } from "../_util/strings.js";
|
14
14
|
import { throwError as q } from "../_util/error.js";
|
15
|
-
import { e as Qe, f as Ue } from "../../index-
|
15
|
+
import { e as Qe, f as Ue } from "../../index-ChkLOmNK.js";
|
16
16
|
import { mutable as We } from "../_util/typescript.js";
|
17
17
|
import { EVENT_CODE as je } from "../_constants/aria.js";
|
18
18
|
import { tabBarProps as De } from "./tab-bar.js";
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
2
|
+
export declare const throneContextProviderProps: () => {
|
3
|
+
context: {
|
4
|
+
type: PropType<Record<string, any>>;
|
5
|
+
default: Record<string, any>;
|
6
|
+
};
|
7
|
+
};
|
8
|
+
export type ThroneContextProviderProps = Partial<ExtractPropTypes<ReturnType<typeof throneContextProviderProps>>>;
|
9
|
+
export type ThroneContextProviderContext = Partial<ThroneContextProviderProps>;
|
10
|
+
declare const _default: import('../_util').SFCWithInstall<import('vue').DefineComponent<ExtractPropTypes<{
|
11
|
+
context: {
|
12
|
+
type: PropType<Record<string, any>>;
|
13
|
+
default: Record<string, any>;
|
14
|
+
};
|
15
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
16
|
+
[key: string]: any;
|
17
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
18
|
+
context: {
|
19
|
+
type: PropType<Record<string, any>>;
|
20
|
+
default: Record<string, any>;
|
21
|
+
};
|
22
|
+
}>> & Readonly<{}>, {
|
23
|
+
context: Record<string, any>;
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & {};
|
25
|
+
export default _default;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { c as e, s as l, i as s, w as o, a as c, l as n, b as i, d as a } from "../../../index-
|
1
|
+
import { c as e, s as l, i as s, w as o, a as c, l as n, b as i, d as a } from "../../../index-ChkLOmNK.js";
|
2
2
|
import { definePropType as t } from "./props/runtime.js";
|
3
3
|
const f = t([
|
4
4
|
String,
|
@@ -1,4 +1,5 @@
|
|
1
1
|
export { default as Button } from './Button';
|
2
|
+
export { default as ThroneContextProvider } from './Throne/ThroneContextProvider';
|
2
3
|
export { default as Space } from './Space';
|
3
4
|
export type { SpaceProps } from './Space';
|
4
5
|
export { Rowflex, Colflex, Flexitem } from './Flex';
|
@@ -12,3 +13,4 @@ export type { QuerytableProps } from './Querytable';
|
|
12
13
|
export { default as Modal } from './Modal';
|
13
14
|
export { default as Form } from './Form';
|
14
15
|
export { default as LovTable } from './LovTable';
|
16
|
+
export { default as MultiTableSelectPagetable } from './MultiTableSelectPagetable';
|
@@ -1,23 +1,27 @@
|
|
1
|
-
import { default as
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import { default as d } from "./
|
6
|
-
import { default as
|
7
|
-
import { default as
|
1
|
+
import { default as t } from "./Button/index.js";
|
2
|
+
import { T as r } from "../components-DP9bnDLm.js";
|
3
|
+
import { S as l } from "../index-BbsXWo7C.js";
|
4
|
+
import { Colflex as m, Flexitem as p, Rowflex as s } from "./Flex/index.js";
|
5
|
+
import { default as d } from "./Tabs/index.js";
|
6
|
+
import { default as T } from "./Pagetable/index.js";
|
7
|
+
import { default as n } from "./Querytable/index.js";
|
8
|
+
import { default as S } from "./Modal/index.js";
|
8
9
|
import { default as g } from "./Form/index.js";
|
9
|
-
import { default as
|
10
|
+
import { default as C } from "./LovTable/index.js";
|
11
|
+
import { default as M } from "./MultiTableSelectPagetable/index.js";
|
10
12
|
export {
|
11
|
-
|
12
|
-
|
13
|
-
|
13
|
+
t as Button,
|
14
|
+
m as Colflex,
|
15
|
+
p as Flexitem,
|
14
16
|
g as Form,
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
C as LovTable,
|
18
|
+
S as Modal,
|
19
|
+
M as MultiTableSelectPagetable,
|
20
|
+
T as Pagetable,
|
21
|
+
n as Querytable,
|
22
|
+
s as Rowflex,
|
23
|
+
l as Space,
|
24
|
+
d as Tabs,
|
25
|
+
r as ThroneContextProvider
|
22
26
|
};
|
23
27
|
//# sourceMappingURL=components.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"components.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"components.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/components/index.js
CHANGED
@@ -1,39 +1,47 @@
|
|
1
|
-
import { c as t } from "../components-
|
2
|
-
import {
|
3
|
-
import { default as
|
4
|
-
import { default as n } from "./
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import { default as
|
9
|
-
import { default as
|
10
|
-
import { default as
|
11
|
-
import { default as
|
12
|
-
import {
|
13
|
-
import { default as
|
14
|
-
import {
|
15
|
-
|
1
|
+
import { c as t } from "../components-DP9bnDLm.js";
|
2
|
+
import { T as m } from "../components-DP9bnDLm.js";
|
3
|
+
import { default as u } from "./Modal/useModal.js";
|
4
|
+
import { default as n } from "./Form/index.js";
|
5
|
+
import { default as c } from "./Button/index.js";
|
6
|
+
import { S as i } from "../index-BbsXWo7C.js";
|
7
|
+
import { Colflex as C, Flexitem as v, Rowflex as y } from "./Flex/index.js";
|
8
|
+
import { default as M } from "./Tabs/index.js";
|
9
|
+
import { default as g } from "./Pagetable/index.js";
|
10
|
+
import { default as F } from "./Querytable/index.js";
|
11
|
+
import { default as L } from "./Modal/index.js";
|
12
|
+
import { default as j } from "./LovTable/index.js";
|
13
|
+
import { default as w } from "./MultiTableSelectPagetable/index.js";
|
14
|
+
import { formContextKey as E } from "./Form/Form.js";
|
15
|
+
import { default as R } from "./Form/LovInput/hooks/useLov.js";
|
16
|
+
import { lovContextKey as z } from "./Form/LovInput/LovInput.js";
|
17
|
+
import { default as D } from "./Form/MultiTableSelect/hooks/useMultiTableSelect.js";
|
18
|
+
import { multiTableSelectContext as H } from "./Form/MultiTableSelect/MultiTableSelect.js";
|
19
|
+
const f = function(e) {
|
16
20
|
return Object.keys(t).forEach((r) => {
|
17
|
-
const
|
18
|
-
|
19
|
-
}),
|
21
|
+
const o = t[r];
|
22
|
+
o.install && e.use(o);
|
23
|
+
}), e;
|
20
24
|
};
|
21
25
|
export {
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
26
|
+
c as Button,
|
27
|
+
C as Colflex,
|
28
|
+
v as Flexitem,
|
29
|
+
n as Form,
|
30
|
+
j as LovTable,
|
31
|
+
L as Modal,
|
32
|
+
w as MultiTableSelectPagetable,
|
33
|
+
g as Pagetable,
|
34
|
+
F as Querytable,
|
35
|
+
y as Rowflex,
|
36
|
+
i as Space,
|
37
|
+
M as Tabs,
|
38
|
+
m as ThroneContextProvider,
|
39
|
+
E as formContextKey,
|
34
40
|
f as install,
|
35
|
-
|
36
|
-
|
37
|
-
|
41
|
+
z as lovContextKey,
|
42
|
+
H as multiTableSelectContext,
|
43
|
+
R as useLov,
|
44
|
+
u as useOModal,
|
45
|
+
D as useTableselect
|
38
46
|
};
|
39
47
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/components/index.ts"],"sourcesContent":["import type { App } from 'vue'\r\n\r\nimport * as components from './components'\r\n\r\nexport * from './components'\r\n\r\nexport type * from './types'\r\n\r\nexport const install = function (app: App) {\r\n Object.keys(components).forEach((key) => {\r\n const component = components[key]\r\n if (component.install) {\r\n app.use(component)\r\n }\r\n })\r\n return app\r\n}\r\n\r\nexport { default as useOModal } from './Modal/useModal'\r\nexport * from './Form'\r\n"],"names":["install","app","components","key","component"],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/components/index.ts"],"sourcesContent":["import type { App } from 'vue'\r\n\r\nimport * as components from './components'\r\n\r\nexport * from './components'\r\n\r\nexport type * from './types'\r\n\r\nexport const install = function (app: App) {\r\n Object.keys(components).forEach((key) => {\r\n const component = components[key]\r\n if (component.install) {\r\n app.use(component)\r\n }\r\n })\r\n return app\r\n}\r\n\r\nexport { default as useOModal } from './Modal/useModal'\r\nexport * from './Form'\r\n"],"names":["install","app","components","key","component"],"mappings":";;;;;;;;;;;;;;;;;;AAQa,MAAAA,IAAU,SAAUC,GAAU;AACzC,gBAAO,KAAKC,CAAU,EAAE,QAAQ,CAACC,MAAQ;AACjC,UAAAC,IAAYF,EAAWC,CAAG;AAChC,IAAIC,EAAU,WACZH,EAAI,IAAIG,CAAS;AAAA,EACnB,CACD,GACMH;AACT;"}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import r from "./components/Button/index.js";
|
2
|
+
import { defineComponent as t, renderSlot as n } from "vue";
|
3
|
+
import { objectType as i } from "./components/_util/type.js";
|
4
|
+
import { provideThroneContext as m } from "./Throne/hooks/use-throne-context.js";
|
5
|
+
import "lodash-es";
|
6
|
+
import { withInstall as p } from "./components/_util/vue/install.js";
|
7
|
+
import "element-plus";
|
8
|
+
import { S as l } from "./index-BbsXWo7C.js";
|
9
|
+
import { Colflex as f, Flexitem as a, Rowflex as d } from "./components/Flex/index.js";
|
10
|
+
import x from "./components/Tabs/index.js";
|
11
|
+
import s from "./components/Pagetable/index.js";
|
12
|
+
import c from "./components/Querytable/index.js";
|
13
|
+
import T from "./components/Modal/index.js";
|
14
|
+
import b from "./components/Form/index.js";
|
15
|
+
import u from "./components/LovTable/index.js";
|
16
|
+
import P from "./components/MultiTableSelectPagetable/index.js";
|
17
|
+
const h = () => ({
|
18
|
+
context: i()
|
19
|
+
}), v = /* @__PURE__ */ t({
|
20
|
+
name: "OThroneContextProvider",
|
21
|
+
inheritAttrs: !1,
|
22
|
+
props: h(),
|
23
|
+
setup(o, {
|
24
|
+
slots: e
|
25
|
+
}) {
|
26
|
+
return m(o), () => n(e, "default");
|
27
|
+
}
|
28
|
+
}), C = p(v), R = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
29
|
+
__proto__: null,
|
30
|
+
Button: r,
|
31
|
+
Colflex: f,
|
32
|
+
Flexitem: a,
|
33
|
+
Form: b,
|
34
|
+
LovTable: u,
|
35
|
+
Modal: T,
|
36
|
+
MultiTableSelectPagetable: P,
|
37
|
+
Pagetable: s,
|
38
|
+
Querytable: c,
|
39
|
+
Rowflex: d,
|
40
|
+
Space: l,
|
41
|
+
Tabs: x,
|
42
|
+
ThroneContextProvider: C
|
43
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
44
|
+
export {
|
45
|
+
C as T,
|
46
|
+
R as c
|
47
|
+
};
|
48
|
+
//# sourceMappingURL=components-DP9bnDLm.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"components-DP9bnDLm.js","sources":["../src/components/Throne/ThroneContextProvider.tsx"],"sourcesContent":["import { defineComponent, renderSlot, watch, provide, computed } from 'vue'\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\n\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../_util/type'\n\nimport { provideThroneContext } from '../../Throne/hooks/use-throne-context'\n\nimport { withInstall } from '../_util'\n\nexport const throneContextProviderProps = () => ({\n context: objectType<Record<string, any>>(),\n})\n\nexport type ThroneContextProviderProps = Partial<ExtractPropTypes<ReturnType<typeof throneContextProviderProps>>>\n\nexport type ThroneContextProviderContext = Partial<ThroneContextProviderProps>\n\nconst ThroneContextProvider = defineComponent({\n name: 'OThroneContextProvider',\n inheritAttrs: false,\n props: throneContextProviderProps(),\n setup(props, { slots }) {\n provideThroneContext(props)\n return () => {\n return renderSlot(slots, 'default')\n }\n },\n})\n\nexport default withInstall<typeof ThroneContextProvider, {}>(ThroneContextProvider)\n"],"names":["throneContextProviderProps","context","objectType","ThroneContextProvider","defineComponent","name","inheritAttrs","props","setup","slots","provideThroneContext","renderSlot","withInstall"],"mappings":";;;;;;;;;;;;;;;;AASO,MAAMA,IAA6BA,OAAO;AAAA,EAC/CC,SAASC,EAAgC;AAC3C,IAMMC,IAAwBC,gBAAAA,EAAgB;AAAA,EAC5CC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,OAAOP,EAA4B;AAAA,EACnCQ,MAAMD,GAAO;AAAA,IAAEE,OAAAA;AAAAA,EAAM,GAAG;AACtBC,WAAAA,EAAqBH,CAAK,GACnB,MACEI,EAAWF,GAAO,SAAS;AAAA,EAEtC;AACF,CAAC,GAEcG,IAAAA,EAA8CT,CAAqB;;;;;;;;;;;;;;;;"}
|