cnhis-design-vue 0.3.8-beta → 3.0.0
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/CHANGELOG.md +59 -0
- package/README.md +22 -22
- package/env.d.ts +22 -22
- package/es/big-table/index.css +785 -7
- package/es/big-table/index.js +1862 -1450
- package/es/button-print/index.css +811 -9
- package/es/button-print/index.js +705 -774
- package/es/drag-layout/index.css +1044 -12
- package/es/drag-layout/index.js +705 -774
- package/es/grid/index.css +1045 -12
- package/es/grid/index.js +32 -40
- package/es/index.css +1044 -12
- package/es/index.js +1869 -1455
- package/package.json +8 -3
- package/packages/big-table/index.ts +8 -3
- package/packages/big-table/src/BigTable.vue +55 -312
- package/packages/big-table/src/FieldSet.vue +477 -0
- package/packages/big-table/src/assets/style/table-base.less +77 -81
- package/packages/big-table/src/assets/style/table-global.less +0 -8
- package/packages/big-table/src/components/TextOverTooltip.vue +1 -1
- package/packages/big-table/src/components/edit-form/edit-select-table.vue +13 -7
- package/packages/big-table/src/components/edit-form/edit-select.vue +24 -3
- package/packages/big-table/src/hooks/useEdit.ts +73 -0
- package/packages/big-table/src/hooks/useFormat.ts +1 -1
- package/packages/big-table/src/hooks/useNestTable.ts +1 -1
- package/packages/big-table/src/hooks/useTableParse.ts +3 -3
- package/packages/big-table/src/utils.ts +1 -1
- package/packages/button-print/index.ts +3 -3
- package/packages/button-print/src/ButtonPrint.vue +2 -2
- package/packages/button-print/src/components/IdentityVerification.vue +1 -1
- package/packages/drag-layout/index.ts +3 -3
- package/packages/drag-layout/src/DragLayout.vue +2 -2
- package/packages/grid/index.ts +3 -3
- package/packages/grid/src/Grid.tsx +1 -1
- package/src/core/{create.ts → create.js} +1 -1
- package/src/utils/{vexutils.ts → vexutils.js} +44 -44
- package/tsconfig.node.json +8 -8
- package/packages/big-table/src/components/SvgIcon.vue +0 -49
- package/packages/button-print/src/utils/crypto.js +0 -25
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg :class="svgClass" aria-hidden="true" v-bind="$attrs">
|
|
3
|
-
<title v-if="title">{{ title }}</title>
|
|
4
|
-
<use :xlink:href="iconName" />
|
|
5
|
-
</svg>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script lang="ts">
|
|
9
|
-
export default {
|
|
10
|
-
name: "SvgIcon"
|
|
11
|
-
}
|
|
12
|
-
</script>
|
|
13
|
-
<script lang="ts" setup>
|
|
14
|
-
import { ref, computed } from 'vue'
|
|
15
|
-
// svg图标组件 使用方式
|
|
16
|
-
// 将svg图片放入 /assets/icons/svg/图片名称.svg
|
|
17
|
-
// vue页面中 <svg-icon icon-class="图片名称"></svg-icon>
|
|
18
|
-
|
|
19
|
-
const props = withDefaults(defineProps<{
|
|
20
|
-
iconClass: string
|
|
21
|
-
title: string
|
|
22
|
-
className?: string
|
|
23
|
-
}>(), {
|
|
24
|
-
iconClass: '',
|
|
25
|
-
title: '',
|
|
26
|
-
default: ''
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
const iconName = computed(() => `#icon-${props.iconClass}`)
|
|
30
|
-
|
|
31
|
-
const svgClass = computed(() => {
|
|
32
|
-
if (props.className) {
|
|
33
|
-
return "svg-icon " + props.className;
|
|
34
|
-
} else {
|
|
35
|
-
return "svg-icon";
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
</script>
|
|
40
|
-
|
|
41
|
-
<style scoped>
|
|
42
|
-
.svg-icon {
|
|
43
|
-
width: 1em;
|
|
44
|
-
height: 1em;
|
|
45
|
-
vertical-align: -0.15em;
|
|
46
|
-
fill: currentColor;
|
|
47
|
-
overflow: hidden;
|
|
48
|
-
}
|
|
49
|
-
</style>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import CryptoJS from "crypto-js";
|
|
2
|
-
|
|
3
|
-
// 加密
|
|
4
|
-
function encrypt(word) {
|
|
5
|
-
const key = CryptoJS.enc.Utf8.parse("0D7FB71E8EC31E97");
|
|
6
|
-
const srcs = CryptoJS.enc.Utf8.parse(word);
|
|
7
|
-
const encrypted = CryptoJS.AES.encrypt(srcs, key, {
|
|
8
|
-
mode: CryptoJS.mode.ECB,
|
|
9
|
-
padding: CryptoJS.pad.Pkcs7
|
|
10
|
-
});
|
|
11
|
-
return encrypted.toString();
|
|
12
|
-
}
|
|
13
|
-
// 解密
|
|
14
|
-
function decrypt(word) {
|
|
15
|
-
const key = CryptoJS.enc.Utf8.parse("0D7FB71E8EC31E97");
|
|
16
|
-
const decrypt = CryptoJS.AES.decrypt(word, key, {
|
|
17
|
-
mode: CryptoJS.mode.ECB,
|
|
18
|
-
padding: CryptoJS.pad.Pkcs7
|
|
19
|
-
});
|
|
20
|
-
return CryptoJS.enc.Utf8.stringify(decrypt).toString();
|
|
21
|
-
}
|
|
22
|
-
export default {
|
|
23
|
-
encrypt,
|
|
24
|
-
decrypt
|
|
25
|
-
};
|