ci-plus 1.8.6 → 1.8.8

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.
package/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  ## 历史更新
2
2
 
3
3
  ```js
4
+ 1.8.7
5
+ 1、删除旧标识卡用到的两个函数导出
6
+ 2、添加表头设置表单的翻译
4
7
  1.8.6
5
8
  1、修改 ciuploadV4 组件中的一个bug
6
9
  1.8.5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ci-plus",
3
- "version": "1.8.6",
3
+ "version": "1.8.8",
4
4
  "description": "ci组件库",
5
5
  "main": "./index.ts",
6
6
  "scripts": {
@@ -2,24 +2,22 @@
2
2
  <el-dialog v-model="state" v-bind="config" draggable>
3
3
  <div class="container">
4
4
  <b>
5
- 按住
5
+ {{t('sortableTable.sortableTableDialog.holdDown')}}
6
6
  <el-icon><Rank /></el-icon>
7
- 进行移动,点击表头名字进行隐藏, 点击确定进行保存,点击
8
- <!-- <Star style="width: 1em; height: 1em; margin-right: 8px" /> -->
7
+ {{t('sortableTable.sortableTableDialog.clickName')}}
9
8
  <svg-icon name="regular-center" size="14"></svg-icon>
10
- 固定,点击
11
- <!-- <StarFilled style="width: 1em; height: 1em; margin-right: 8px" /> -->
9
+ {{t('sortableTable.sortableTableDialog.fixed')}}
12
10
  <svg-icon name="regular-left" size="14" color="#2C93FF"></svg-icon>
13
-
11
+ {{t('sortableTable.sortableTableDialog.or')}}
14
12
  <svg-icon name="regular-right" size="14" color="#2C93FF"></svg-icon>
15
- 取消固定
13
+ {{t('sortableTable.sortableTableDialog.cancelTheFixation')}}
16
14
 
17
15
  <el-popover
18
16
  placement="bottom-start"
19
- title="提示"
17
+ :title="t('sortableTable.sortableTableDialog.prompt')"
20
18
  :width="200"
21
19
  trigger="hover"
22
- content="点击保存会将本表头的配置存储到数据库,下次登录还是你保存的配置,不保存的话,只在本次配置有效"
20
+ :content="t('sortableTable.sortableTableDialog.promptVal')"
23
21
  >
24
22
  <template #reference>
25
23
  <el-icon style="font-size: 14px"><QuestionFilled /></el-icon>
@@ -33,13 +31,13 @@
33
31
  show-pin
34
32
  />
35
33
 
36
- <el-tooltip content="将表头配置保存到数据库" placement="top-end">
34
+ <el-tooltip :content="t('sortableTable.sortableTableDialog.saveDatabase')" placement="top-end">
37
35
  <el-button
38
36
  type="primary"
39
37
  style="width: 100%; margin-top: 10px"
40
38
  @click="$emit('submit', modelValue)"
41
39
  >
42
- 保存
40
+ {{t('public.save')}}
43
41
  </el-button>
44
42
  </el-tooltip>
45
43
  </div>
@@ -53,7 +51,7 @@ import sortableTableDragItem from './utils/sortableTableDragItem.vue'
53
51
  import { Rank } from '@element-plus/icons-vue'
54
52
  import SvgIcon from '../svgIcon/svgicon.vue'
55
53
  import { ElDialog,ElButton,ElTooltip,ElIcon,ElPopover } from 'element-plus'
56
-
54
+ import t from '../utils/lang/index'
57
55
  const emits = defineEmits(['update:modelValue', 'update:data', 'submit'])
58
56
  const state = ref(false)
59
57
  const props = defineProps<SortableTableDialog>()
@@ -33,11 +33,15 @@
33
33
  </div>
34
34
  <div class="ifshow">
35
35
  <el-button :type="element.hide ? 'primary' : ''" @click="handleShow(element)" size="small">
36
- {{ element.hide ? '显示' : '隐藏' }}
36
+ {{
37
+ element.hide
38
+ ? t('sortableTable.sortableTableDialog.show')
39
+ : t('sortableTable.sortableTableDialog.hide')
40
+ }}
37
41
  </el-button>
38
42
  </div>
39
43
  <div class="widths">
40
- 宽度:
44
+ {{ t('sortableTable.sortableTableDialog.width') }}:
41
45
  <el-input class="w-50 m-2" v-model="element.col.width" size="small" width="50"></el-input>
42
46
  </div>
43
47
  <sortable-table-drag-item v-if="element.children" v-model="element.children" />
@@ -47,8 +51,8 @@
47
51
  <script setup lang="ts">
48
52
  import SvgIcon from '../../svgIcon/index'
49
53
  import { computed } from 'vue'
50
- import { ElInput, ElButton , ElIcon} from 'element-plus'
51
- // import draggable from 'vuedraggable'
54
+ import { ElInput, ElButton, ElIcon } from 'element-plus'
55
+ import t from '../../utils/lang/index'
52
56
  import { VueDraggable } from 'vue-draggable-plus'
53
57
  import { SortColumn, SortableTableIns } from './interface'
54
58
  import { Rank } from '@element-plus/icons-vue'
@@ -3,7 +3,7 @@ export { default as withInstall } from './withinstall/index'
3
3
  // export { default as setCardList } from './cardPrint'; // 导入默认的导出
4
4
  // export * from './cardPrint'; // 导入所有导出(不包含默认导出)
5
5
  import withInstall from './withinstall/index'
6
- import { cardPrint, setCardList } from './cardPrint'
6
+ // import { cardPrint, setCardList } from './cardPrint'
7
7
  import apis from './baseApi'
8
8
  import { dayjs, setDate, setDateTime } from './Dayjs'
9
9
  import ajaxBox from './ajaxBox' // 处理文件下载方法
@@ -17,8 +17,8 @@ import cardPrintAxios, {
17
17
  import { setId, getSend, sort } from '../sortableTable/utils/dataOpt'
18
18
 
19
19
  let func = {
20
- cardPrint,
21
- setCardList,
20
+ // cardPrint,
21
+ // setCardList,
22
22
  withInstall,
23
23
  setDate,
24
24
  setDateTime,
@@ -19,6 +19,19 @@ const en = {
19
19
  aweekAgo: 'A week ago', // 前一周
20
20
  lastMonth: 'Last Month', // 前一月,
21
21
  last3Month: 'Last 3 Month' // 最近3个月
22
+ },
23
+ sortableTableDialog:{
24
+ holdDown:'hold down',
25
+ clickName:'Move, click on the header name to hide, click OK to save, click',
26
+ fixed:'Fixed, click',
27
+ or:' Or ',
28
+ cancelTheFixation:'cancel the fixation',
29
+ prompt:'Prompt:',
30
+ promptVal:'Clicking "Save" will save the configuration of this header to the database. The configuration you saved will remain the same for the next login. If not saved, it will only be valid for this configuration',
31
+ saveDatabase:'Save header configuration to database',
32
+ show:'Show',
33
+ hide:'Hide',
34
+ width:'Width'
22
35
  }
23
36
  },
24
37
  fileRelated:{
@@ -19,6 +19,19 @@ const zh = {
19
19
  aweekAgo: '一周前',
20
20
  lastMonth: '前一月',
21
21
  last3Month: '最近3个月'
22
+ },
23
+ sortableTableDialog:{
24
+ holdDown:'按住',
25
+ clickName:'进行移动,点击表头名字进行隐藏, 点击确定进行保存,点击',
26
+ fixed:'固定,点击',
27
+ or:' 或 ',
28
+ cancelTheFixation:'取消固定',
29
+ prompt:'提示:',
30
+ promptVal:'点击保存会将本表头的配置存储到数据库,下次登录还是你保存的配置,不保存的话,只在本次配置有效',
31
+ saveDatabase:'将表头配置保存到数据库',
32
+ show:'显示',
33
+ hide:'隐藏',
34
+ width:'宽度'
22
35
  }
23
36
  },
24
37
  fileRelated:{