el-plus-crud 0.0.77 → 0.0.78

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.
@@ -162,7 +162,7 @@ const props = withDefaults(
162
162
  const elPlusTableRef = ref()
163
163
 
164
164
  // 顶部Tab数据
165
- const tableTabVal = ref(props.tableConfig?.tabConf?.tabs[0].value ?? '')
165
+ const tableTabVal = ref(props.tableConfig?.tabConf?.tabs[props.tableConfig?.tabConf?.default || 0].value ?? '')
166
166
  const tabStatic = ref({} as any)
167
167
  const getTabLabel = computed(() => (item: ITableTabItem) => {
168
168
  if (item.key) {
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "el-plus-crud",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "el-plus-crud",
9
- "version": "0.0.77",
9
+ "version": "0.0.78",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@element-plus/icons-vue": "^2.1.0",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "el-plus-crud",
3
3
  "description": "采用Vue3 + TS,封装的element-plus数据驱动表单、列表组件",
4
4
  "author": "K.D.Jack",
5
- "version": "0.0.77",
5
+ "version": "0.0.78",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "main": "dist/el-plus-crud.mjs",
package/types/index.d.ts CHANGED
@@ -278,6 +278,8 @@ export interface ITableTabConf {
278
278
  fetch?: IFetch<any>
279
279
  // 查询条件
280
280
  queryMap?: any
281
+ // 默认选中的下标
282
+ default?: number
281
283
  }
282
284
 
283
285
  /**