vue2-client 1.5.6 → 1.5.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.5.6 -2022-12-05 @江超**
4
+ **1.5.6 - 1.5.7 -2022-12-05 @江超**
5
5
  - 修复待办界面显示异常的问题
6
6
 
7
7
  **1.5.0 - 1.5.5 -2022-12-04 @江超**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,64 +1,64 @@
1
- <script>
2
- import Tooltip from 'ant-design-vue/es/tooltip'
3
- import { cutStrByFullLength, getStrFullLength } from '@vue2-client/components/_util/util'
4
- /*
5
- const isSupportLineClamp = document.body.style.webkitLineClamp !== undefined;
6
-
7
- const TooltipOverlayStyle = {
8
- overflowWrap: 'break-word',
9
- wordWrap: 'break-word',
10
- };
11
- */
12
-
13
- export default {
14
- name: 'Ellipsis',
15
- components: {
16
- Tooltip
17
- },
18
- props: {
19
- prefixCls: {
20
- type: String,
21
- default: 'ant-pro-ellipsis'
22
- },
23
- tooltip: {
24
- type: Boolean
25
- },
26
- length: {
27
- type: Number,
28
- required: true
29
- },
30
- lines: {
31
- type: Number,
32
- default: 1
33
- },
34
- fullWidthRecognition: {
35
- type: Boolean,
36
- default: false
37
- }
38
- },
39
- methods: {
40
- getStrDom (str, fullLength) {
41
- return (
42
- <span>{ cutStrByFullLength(str, this.length) + (fullLength > this.length ? '...' : '') }</span>
43
- )
44
- },
45
- getTooltip (fullStr, fullLength) {
46
- return (
47
- <Tooltip>
48
- <template slot="title">{ fullStr }</template>
49
- { this.getStrDom(fullStr, fullLength) }
50
- </Tooltip>
51
- )
52
- }
53
- },
54
- render () {
55
- const { tooltip, length } = this.$props
56
- const str = this.$slots.default.map(vNode => vNode.text).join('')
57
- const fullLength = getStrFullLength(str)
58
- const strDom = tooltip && fullLength > length ? this.getTooltip(str, fullLength) : this.getStrDom(str, fullLength)
59
- return (
60
- strDom
61
- )
62
- }
63
- }
64
- </script>
1
+ <script>
2
+ import Tooltip from 'ant-design-vue/es/tooltip'
3
+ import { cutStrByFullLength, getStrFullLength } from '@vue2-client/components/_util/util'
4
+ /*
5
+ const isSupportLineClamp = document.body.style.webkitLineClamp !== undefined;
6
+
7
+ const TooltipOverlayStyle = {
8
+ overflowWrap: 'break-word',
9
+ wordWrap: 'break-word',
10
+ };
11
+ */
12
+
13
+ export default {
14
+ name: 'Ellipsis',
15
+ components: {
16
+ Tooltip
17
+ },
18
+ props: {
19
+ prefixCls: {
20
+ type: String,
21
+ default: 'ant-pro-ellipsis'
22
+ },
23
+ tooltip: {
24
+ type: Boolean
25
+ },
26
+ length: {
27
+ type: [String, Number],
28
+ required: true
29
+ },
30
+ lines: {
31
+ type: Number,
32
+ default: 1
33
+ },
34
+ fullWidthRecognition: {
35
+ type: Boolean,
36
+ default: false
37
+ }
38
+ },
39
+ methods: {
40
+ getStrDom (str, fullLength) {
41
+ return (
42
+ <span>{ cutStrByFullLength(str, this.length) + (fullLength > this.length ? '...' : '') }</span>
43
+ )
44
+ },
45
+ getTooltip (fullStr, fullLength) {
46
+ return (
47
+ <Tooltip>
48
+ <template slot="title">{ fullStr }</template>
49
+ { this.getStrDom(fullStr, fullLength) }
50
+ </Tooltip>
51
+ )
52
+ }
53
+ },
54
+ render () {
55
+ const { tooltip, length } = this.$props
56
+ const str = this.$slots.default.map(vNode => vNode.text).join('')
57
+ const fullLength = getStrFullLength(str)
58
+ const strDom = tooltip && fullLength > length ? this.getTooltip(str, fullLength) : this.getStrDom(str, fullLength)
59
+ return (
60
+ strDom
61
+ )
62
+ }
63
+ }
64
+ </script>
@@ -50,6 +50,7 @@
50
50
  <script>
51
51
  import { post } from '@vue2-client/services/api'
52
52
  import InstitutionDetail from './InstitutionDetail'
53
+ import ellipsis from '@/components/Ellipsis'
53
54
 
54
55
  export default {
55
56
  name: 'HeaderNotice',
@@ -87,7 +88,7 @@ export default {
87
88
  key,
88
89
  message: `您有${this.backlog.length}条待办需要确认`,
89
90
  top: '50px',
90
- description: this.backlog.map((item, index) => index + 1 + '、' + item.title).join(';'),
91
+ description: <ellipsis length="200" tooltip>{ this.backlog.map((item, index) => index + 1 + '、' + item.title).join(';') }</ellipsis>,
91
92
  icon: <a-icon type="container" style="color: #f5222d"/>,
92
93
  btn: h => {
93
94
  return h(