@didaoktv/didaoui-uniapp 2.13.0 → 2.15.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.
Files changed (69) hide show
  1. package/README.md +6 -6
  2. package/components/dd-album/dd-album.vue +280 -228
  3. package/components/dd-avatar/dd-avatar.vue +132 -75
  4. package/components/dd-avatar-group/dd-avatar-group.vue +52 -30
  5. package/components/dd-barcode/dd-barcode.vue +884 -947
  6. package/components/dd-button/dd-button.vue +47 -21
  7. package/components/dd-canvas/dd-canvas.vue +1156 -985
  8. package/components/dd-car-keyboard/dd-car-keyboard.vue +12 -12
  9. package/components/dd-champion-card/dd-champion-card.vue +49 -21
  10. package/components/dd-checkbox-group/dd-checkbox-group.vue +2 -0
  11. package/components/dd-copy/dd-copy.vue +51 -56
  12. package/components/dd-cropper/dd-cropper.vue +1224 -1135
  13. package/components/dd-divider/dd-divider.vue +9 -2
  14. package/components/dd-form/dd-form.vue +2 -0
  15. package/components/dd-goods-sku/dd-goods-sku.vue +6 -1
  16. package/components/dd-icon/dd-icon.vue +1 -1
  17. package/components/dd-keyboard/dd-keyboard.vue +95 -46
  18. package/components/dd-link/dd-link.vue +72 -49
  19. package/components/dd-markdown/dd-markdown.vue +154 -154
  20. package/components/dd-number-keyboard/dd-number-keyboard.vue +109 -94
  21. package/components/dd-package-sku/dd-package-sku.vue +24 -1
  22. package/components/dd-parse/dd-parse.vue +473 -442
  23. package/components/dd-poster/dd-poster.vue +579 -567
  24. package/components/dd-pull-refresh/dd-pull-refresh.vue +1 -9
  25. package/components/dd-qrcode/dd-qrcode.vue +431 -405
  26. package/components/dd-radio-group/dd-radio-group.vue +1 -1
  27. package/components/dd-segmented-tab/dd-segmented-tab.vue +61 -16
  28. package/components/dd-signature/dd-signature.vue +377 -357
  29. package/components/dd-step/dd-step.vue +1 -1
  30. package/components/dd-sticky/dd-sticky.vue +5 -10
  31. package/components/dd-swipe-action/dd-swipe-action.vue +1 -9
  32. package/components/dd-swipe-item/dd-swipe-item.vue +2 -0
  33. package/components/dd-swipeable-tab/dd-swipeable-tab.vue +1 -5
  34. package/components/dd-switch/dd-switch.vue +1 -1
  35. package/components/dd-text/dd-text.vue +304 -82
  36. package/components/dd-waterfall/dd-waterfall.vue +147 -0
  37. package/components/dd-waterfall/waterfall.ts +17 -0
  38. package/index.ts +4 -3
  39. package/libs/function/index.d.ts +88 -0
  40. package/libs/function/index.js +14 -0
  41. package/libs/function/test.d.ts +65 -0
  42. package/package.json +1 -1
  43. package/scss/_mixins.scss +8 -0
  44. package/scss/_theme-tokens.scss +7 -0
  45. package/scss/_variables.scss +283 -156
  46. package/components/dd-album/album.js +0 -19
  47. package/components/dd-album/props.js +0 -89
  48. package/components/dd-avatar/avatar.js +0 -19
  49. package/components/dd-avatar/props.js +0 -84
  50. package/components/dd-avatar-group/avatarGroup.js +0 -14
  51. package/components/dd-avatar-group/props.js +0 -57
  52. package/components/dd-keyboard/keyboard.js +0 -19
  53. package/components/dd-keyboard/props.js +0 -79
  54. package/components/dd-link/link.js +0 -17
  55. package/components/dd-link/props.js +0 -44
  56. package/components/dd-number-keyboard/numberKeyboard.js +0 -8
  57. package/components/dd-number-keyboard/props.js +0 -24
  58. package/components/dd-parse/props.js +0 -57
  59. package/components/dd-text/props.js +0 -120
  60. package/components/dd-text/text.js +0 -30
  61. package/components/dd-text/value.js +0 -87
  62. package/libs/config/color.js +0 -16
  63. package/libs/config/props.js +0 -184
  64. package/libs/mixin/button.js +0 -18
  65. package/libs/mixin/mixin.js +0 -44
  66. package/libs/mixin/mpMixin.js +0 -13
  67. package/libs/mixin/openType.js +0 -27
  68. package/libs/vue.js +0 -3
  69. package/scss/_dd-shared.scss +0 -40
@@ -1,19 +0,0 @@
1
- export default {
2
- // avatar 组件
3
- avatar: {
4
- src: '',
5
- shape: 'circle',
6
- size: 40,
7
- mode: 'scaleToFill',
8
- text: '',
9
- bgColor: '#c0c4cc',
10
- color: '#ffffff',
11
- fontSize: 18,
12
- icon: '',
13
- mpAvatar: false,
14
- randomBgColor: false,
15
- defaultUrl: '',
16
- colorIndex: '',
17
- name: ''
18
- }
19
- }
@@ -1,84 +0,0 @@
1
- import { defineMixin } from '../../libs/vue'
2
- import AvatarDefaultProps from './avatar'
3
- import { registerComponentProps } from '../../libs/config/props.js'
4
-
5
- const defProps = registerComponentProps(AvatarDefaultProps)
6
- import test from '../../libs/function/test';
7
- export const props = defineMixin({
8
- props: {
9
- // 头像图片路径(不能为相对路径)
10
- src: {
11
- type: String,
12
- default: () => defProps.avatar.src
13
- },
14
- // 头像形状,circle-圆形,square-方形
15
- shape: {
16
- type: String,
17
- default: () => defProps.avatar.shape
18
- },
19
- // 头像尺寸
20
- size: {
21
- type: [String, Number],
22
- default: () => defProps.avatar.size
23
- },
24
- // 裁剪模式
25
- mode: {
26
- type: String,
27
- default: () => defProps.avatar.mode
28
- },
29
- // 显示的文字
30
- text: {
31
- type: String,
32
- default: () => defProps.avatar.text
33
- },
34
- // 背景色
35
- bgColor: {
36
- type: String,
37
- default: () => defProps.avatar.bgColor
38
- },
39
- // 文字颜色
40
- color: {
41
- type: String,
42
- default: () => defProps.avatar.color
43
- },
44
- // 文字大小
45
- fontSize: {
46
- type: [String, Number],
47
- default: () => defProps.avatar.fontSize
48
- },
49
- // 显示的图标
50
- icon: {
51
- type: String,
52
- default: () => defProps.avatar.icon
53
- },
54
- // 显示小程序头像,只对百度,微信,QQ小程序有效
55
- mpAvatar: {
56
- type: Boolean,
57
- default: () => defProps.avatar.mpAvatar
58
- },
59
- // 是否使用随机背景色
60
- randomBgColor: {
61
- type: Boolean,
62
- default: () => defProps.avatar.randomBgColor
63
- },
64
- // 加载失败的默认头像(组件有内置默认图片)
65
- defaultUrl: {
66
- type: String,
67
- default: () => defProps.avatar.defaultUrl
68
- },
69
- // 如果配置了randomBgColor为true,且配置了此值,则从默认的背景色数组中取出对应索引的颜色值,取值0-19之间
70
- colorIndex: {
71
- type: [String, Number],
72
- // 校验参数规则,索引在0-19之间
73
- validator(n) {
74
- return test.range(n, [0, 19]) || n === ''
75
- },
76
- default: () => defProps.avatar.colorIndex
77
- },
78
- // 组件标识符
79
- name: {
80
- type: String,
81
- default: () => defProps.avatar.name
82
- }
83
- }
84
- })
@@ -1,14 +0,0 @@
1
- export default {
2
- // avatarGroup 组件
3
- avatarGroup: {
4
- urls: [],
5
- maxCount: 5,
6
- shape: 'circle',
7
- mode: 'scaleToFill',
8
- showMore: true,
9
- size: 40,
10
- keyName: '',
11
- gap: 0.5,
12
- extraValue: 0
13
- }
14
- }
@@ -1,57 +0,0 @@
1
- import { defineMixin } from '../../libs/vue'
2
- import AvatarGroupDefaultProps from './avatarGroup'
3
- import { registerComponentProps } from '../../libs/config/props.js'
4
-
5
- const defProps = registerComponentProps(AvatarGroupDefaultProps)
6
- export const props = defineMixin({
7
- props: {
8
- // 头像图片组
9
- urls: {
10
- type: Array,
11
- default: () => defProps.avatarGroup.urls
12
- },
13
- // 最多展示的头像数量
14
- maxCount: {
15
- type: [String, Number],
16
- default: () => defProps.avatarGroup.maxCount
17
- },
18
- // 头像形状
19
- shape: {
20
- type: String,
21
- default: () => defProps.avatarGroup.shape
22
- },
23
- // 图片裁剪模式
24
- mode: {
25
- type: String,
26
- default: () => defProps.avatarGroup.mode
27
- },
28
- // 超出maxCount时是否显示查看更多的提示
29
- showMore: {
30
- type: Boolean,
31
- default: () => defProps.avatarGroup.showMore
32
- },
33
- // 头像大小
34
- size: {
35
- type: [String, Number],
36
- default: () => defProps.avatarGroup.size
37
- },
38
- // 指定从数组的对象元素中读取哪个属性作为图片地址
39
- keyName: {
40
- type: String,
41
- default: () => defProps.avatarGroup.keyName
42
- },
43
- // 头像之间的遮挡比例
44
- gap: {
45
- type: [String, Number],
46
- validator(value) {
47
- return value >= 0 && value <= 1
48
- },
49
- default: () => defProps.avatarGroup.gap
50
- },
51
- // 需额外显示的值
52
- extraValue: {
53
- type: [Number, String],
54
- default: () => defProps.avatarGroup.extraValue
55
- }
56
- }
57
- })
@@ -1,19 +0,0 @@
1
- export default {
2
- // 键盘组件
3
- keyboard: {
4
- mode: 'number',
5
- dotDisabled: false,
6
- tooltip: true,
7
- showTips: true,
8
- tips: '',
9
- showCancel: true,
10
- showConfirm: true,
11
- random: false,
12
- safeAreaInsetBottom: true,
13
- closeOnClickOverlay: true,
14
- show: false,
15
- overlay: true,
16
- cancelText: '取消',
17
- confirmText: '确定'
18
- }
19
- }
@@ -1,79 +0,0 @@
1
- import { defineMixin } from '../../libs/vue'
2
- import KeyboardDefaultProps from './keyboard'
3
- import { registerComponentProps } from '../../libs/config/props.js'
4
-
5
- const defProps = registerComponentProps(KeyboardDefaultProps)
6
- export const props = defineMixin({
7
- props: {
8
- // 键盘的类型,number-数字键盘,card-身份证键盘,car-车牌号键盘
9
- mode: {
10
- type: String,
11
- default: () => defProps.keyboard.mode
12
- },
13
- // 是否显示键盘的"."符号
14
- dotDisabled: {
15
- type: Boolean,
16
- default: () => defProps.keyboard.dotDisabled
17
- },
18
- // 是否显示顶部工具条
19
- tooltip: {
20
- type: Boolean,
21
- default: () => defProps.keyboard.tooltip
22
- },
23
- // 是否显示工具条中间的提示
24
- showTips: {
25
- type: Boolean,
26
- default: () => defProps.keyboard.showTips
27
- },
28
- // 工具条中间的提示文字
29
- tips: {
30
- type: String,
31
- default: () => defProps.keyboard.tips
32
- },
33
- // 是否显示工具条左边的"取消"按钮
34
- showCancel: {
35
- type: Boolean,
36
- default: () => defProps.keyboard.showCancel
37
- },
38
- // 是否显示工具条右边的"完成"按钮
39
- showConfirm: {
40
- type: Boolean,
41
- default: () => defProps.keyboard.showConfirm
42
- },
43
- // 是否打乱键盘按键的顺序
44
- random: {
45
- type: Boolean,
46
- default: () => defProps.keyboard.random
47
- },
48
- // 是否开启底部安全区适配,开启的话,会在iPhoneX机型底部添加一定的内边距
49
- safeAreaInsetBottom: {
50
- type: Boolean,
51
- default: () => defProps.keyboard.safeAreaInsetBottom
52
- },
53
- // 是否允许通过点击遮罩关闭键盘
54
- closeOnClickOverlay: {
55
- type: Boolean,
56
- default: () => defProps.keyboard.closeOnClickOverlay
57
- },
58
- // 控制键盘的弹出与收起
59
- show: {
60
- type: Boolean,
61
- default: () => defProps.keyboard.show
62
- },
63
- // 是否显示遮罩,某些时候数字键盘时,用户希望看到自己的数值,所以可能不想要遮罩
64
- overlay: {
65
- type: Boolean,
66
- default: () => defProps.keyboard.overlay
67
- },
68
- // 取消按钮的文字
69
- cancelText: {
70
- type: String,
71
- default: () => defProps.keyboard.cancelText
72
- },
73
- // 确认按钮的文字
74
- confirmText: {
75
- type: String,
76
- default: () => defProps.keyboard.confirmText
77
- }
78
- }
79
- })
@@ -1,17 +0,0 @@
1
- import config from '../../libs/config/config'
2
-
3
- const {
4
- color
5
- } = config
6
- export default {
7
- // link超链接组件props参数
8
- link: {
9
- color: color['primary'],
10
- fontSize: 15,
11
- underLine: false,
12
- href: '',
13
- mpTips: '链接已复制,请在浏览器打开',
14
- lineColor: '',
15
- text: ''
16
- }
17
- }
@@ -1,44 +0,0 @@
1
- import { defineMixin } from '../../libs/vue'
2
- import LinkDefaultProps from './link'
3
- import { registerComponentProps } from '../../libs/config/props.js'
4
-
5
- const defProps = registerComponentProps(LinkDefaultProps)
6
- export const props = defineMixin({
7
- props: {
8
- // 文字颜色
9
- color: {
10
- type: String,
11
- default: () => defProps.link.color
12
- },
13
- // 字体大小,单位px
14
- fontSize: {
15
- type: [String, Number],
16
- default: () => defProps.link.fontSize
17
- },
18
- // 是否显示下划线
19
- underLine: {
20
- type: Boolean,
21
- default: () => defProps.link.underLine
22
- },
23
- // 要跳转的链接
24
- href: {
25
- type: String,
26
- default: () => defProps.link.href
27
- },
28
- // 小程序中复制到粘贴板的提示语
29
- mpTips: {
30
- type: String,
31
- default: () => defProps.link.mpTips
32
- },
33
- // 下划线颜色
34
- lineColor: {
35
- type: String,
36
- default: () => defProps.link.lineColor
37
- },
38
- // 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
39
- text: {
40
- type: String,
41
- default: () => defProps.link.text
42
- }
43
- }
44
- })
@@ -1,8 +0,0 @@
1
- export default {
2
- // 数字键盘
3
- numberKeyboard: {
4
- mode: 'number',
5
- dotDisabled: false,
6
- random: false
7
- }
8
- }
@@ -1,24 +0,0 @@
1
- import { defineMixin } from '../../libs/vue'
2
- import NumberKeyboardDefaultProps from './numberKeyboard'
3
- import { registerComponentProps } from '../../libs/config/props.js'
4
-
5
- const defProps = registerComponentProps(NumberKeyboardDefaultProps)
6
- export const props = defineMixin({
7
- props: {
8
- // 键盘的类型,number-数字键盘,card-身份证键盘
9
- mode: {
10
- type: String,
11
- default: () => defProps.numberKeyboard.value
12
- },
13
- // 是否显示键盘的"."符号
14
- dotDisabled: {
15
- type: Boolean,
16
- default: () => defProps.numberKeyboard.dotDisabled
17
- },
18
- // 是否打乱键盘按键的顺序
19
- random: {
20
- type: Boolean,
21
- default: () => defProps.numberKeyboard.random
22
- }
23
- }
24
- })
@@ -1,57 +0,0 @@
1
- import { defineMixin } from '../../libs/vue'
2
- import ParseDefaultProps from './parse'
3
- import { registerComponentProps } from '../../libs/config/props.js'
4
-
5
- const defProps = registerComponentProps(ParseDefaultProps)
6
- export const props = defineMixin({
7
- props: {
8
- containerStyle: {
9
- type: String,
10
- default: null
11
- },
12
- content: String,
13
- copyLink: {
14
- type: Boolean,
15
- default: () => defProps.parse.copyLink
16
- },
17
- domain: String,
18
- errorImg: {
19
- type: String,
20
- default: () => defProps.parse.errorImg
21
- },
22
- lazyLoad: {
23
- type: Boolean,
24
- default: () => defProps.parse.lazyLoad
25
- },
26
- loadingImg: {
27
- type: String,
28
- default: () => defProps.parse.loadingImg
29
- },
30
- pauseVideo: {
31
- type: Boolean,
32
- default: () => defProps.parse.pauseVideo
33
- },
34
- previewImg: {
35
- type: Boolean,
36
- default: () => defProps.parse.previewImg
37
- },
38
- scrollTable: Boolean,
39
- selectable: Boolean,
40
- setTitle: {
41
- type: Boolean,
42
- default: () => defProps.parse.setTitle
43
- },
44
- showImgMenu: {
45
- type: Boolean,
46
- default: () => defProps.parse.showImgMenu
47
- },
48
- tagStyle: {
49
- type: Object,
50
- default: () => {}
51
- },
52
- useAnchor: {
53
- type: Boolean,
54
- default: null
55
- }
56
- }
57
- })
@@ -1,120 +0,0 @@
1
- import { defineMixin } from '../../libs/vue'
2
- import TextDefaultProps from './text'
3
- import { registerComponentProps } from '../../libs/config/props.js'
4
-
5
- const defProps = registerComponentProps(TextDefaultProps)
6
- export const props = defineMixin({
7
- props: {
8
- // 主题颜色
9
- type: {
10
- type: String,
11
- default: () => defProps.text.type
12
- },
13
- // 是否显示
14
- show: {
15
- type: Boolean,
16
- default: () => defProps.text.show
17
- },
18
- // 显示的值
19
- text: {
20
- type: [String, Number],
21
- default: () => defProps.text.text
22
- },
23
- // 前置图标
24
- prefixIcon: {
25
- type: String,
26
- default: () => defProps.text.prefixIcon
27
- },
28
- // 后置图标
29
- suffixIcon: {
30
- type: String,
31
- default: () => defProps.text.suffixIcon
32
- },
33
- // 文本处理的匹配模式
34
- // text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
35
- mode: {
36
- type: String,
37
- default: () => defProps.text.mode
38
- },
39
- // mode=link下,配置的链接
40
- href: {
41
- type: String,
42
- default: () => defProps.text.href
43
- },
44
- // 格式化规则
45
- format: {
46
- type: [String, Function],
47
- default: () => defProps.text.format
48
- },
49
- // mode=phone时,点击文本是否拨打电话
50
- call: {
51
- type: Boolean,
52
- default: () => defProps.text.call
53
- },
54
- // 小程序的打开方式
55
- openType: {
56
- type: String,
57
- default: () => defProps.text.openType
58
- },
59
- // 是否粗体,默认normal
60
- bold: {
61
- type: Boolean,
62
- default: () => defProps.text.bold
63
- },
64
- // 是否块状
65
- block: {
66
- type: Boolean,
67
- default: () => defProps.text.block
68
- },
69
- // 文本显示的行数,如果设置,超出此行数,将会显示省略号
70
- lines: {
71
- type: [String, Number],
72
- default: () => defProps.text.lines
73
- },
74
- // 文本颜色
75
- color: {
76
- type: String,
77
- default: () => defProps.text.color
78
- },
79
- // 字体大小
80
- size: {
81
- type: [String, Number],
82
- default: () => defProps.text.size
83
- },
84
- // 图标的样式
85
- iconStyle: {
86
- type: [Object, String],
87
- default: () => defProps.text.iconStyle
88
- },
89
- // 文字装饰,下划线,中划线等,可选值 none|underline|line-through
90
- decoration: {
91
- tepe: String,
92
- default: () => defProps.text.decoration
93
- },
94
- // 外边距,对象、字符串,数值形式均可
95
- margin: {
96
- type: [Object, String, Number],
97
- default: () => defProps.text.margin
98
- },
99
- // 文本行高
100
- lineHeight: {
101
- type: [String, Number],
102
- default: () => defProps.text.lineHeight
103
- },
104
- // 文本对齐方式,可选值left|center|right
105
- align: {
106
- type: String,
107
- default: () => defProps.text.align
108
- },
109
- // 文字换行,可选值break-word|normal|anywhere
110
- wordWrap: {
111
- type: String,
112
- default: () => defProps.text.wordWrap
113
- },
114
- // 占满剩余空间
115
- flex1: {
116
- type: Boolean,
117
- default: () => defProps.text.flex1
118
- }
119
- }
120
- })
@@ -1,30 +0,0 @@
1
- export default {
2
- // text 组件
3
- text: {
4
- type: '',
5
- show: true,
6
- text: '',
7
- prefixIcon: '',
8
- suffixIcon: '',
9
- mode: '',
10
- href: '',
11
- format: '',
12
- call: false,
13
- openType: '',
14
- bold: false,
15
- block: false,
16
- lines: '',
17
- color: '',
18
- size: 15,
19
- iconStyle: {
20
- fontSize: '15px'
21
- },
22
- decoration: 'none',
23
- margin: 0,
24
- lineHeight: '',
25
- align: 'left',
26
- wordWrap: 'normal',
27
- flex1: false
28
- }
29
-
30
- }
@@ -1,87 +0,0 @@
1
- import { error, priceFormat, timeFormat } from '../../libs/function/index';
2
- import test from '../../libs/function/test';
3
- export default {
4
- computed: {
5
- // 经处理后需要显示的值
6
- value() {
7
- const {
8
- text,
9
- mode,
10
- format,
11
- href
12
- } = this
13
- // 价格类型
14
- if (mode === 'price') {
15
- // 如果text不为金额进行提示
16
- if (!/^\d+(\.\d+)?$/.test(text)) {
17
- error('金额模式下,text参数需要为金额格式');
18
- }
19
- // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的金额格式化处理
20
- if (test.func(format)) {
21
- // 如果用户传入的是函数,使用函数格式化
22
- return format(text)
23
- }
24
- // 如果format非正则,非函数,则使用默认的金额格式化方法进行操作
25
- return priceFormat(text, 2)
26
- } if (mode === 'date') {
27
- // 判断是否合法的日期或者时间戳
28
- !test.date(text) && error('日期模式下,text参数需要为日期或时间戳格式')
29
- // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的格式化处理
30
- if (test.func(format)) {
31
- // 如果用户传入的是函数,使用函数格式化
32
- return format(text)
33
- } if (format) {
34
- // 如果format非正则,非函数,则使用默认的时间格式化方法进行操作
35
- return timeFormat(text, format)
36
- }
37
- // 如果没有设置format,则设置为默认的时间格式化形式
38
- return timeFormat(text, 'yyyy-mm-dd')
39
- } if (mode === 'phone') {
40
- // 判断是否合法的手机号
41
- // !test.mobile(text) && error('手机号模式下,text参数需要为手机号码格式')
42
- if (test.func(format)) {
43
- // 如果用户传入的是函数,使用函数格式化
44
- return format(text)
45
- } if (format === 'encrypt') {
46
- // 如果format为encrypt,则将手机号进行星号加密处理
47
- return `${text.substr(0, 3)}****${text.substr(7)}`
48
- }
49
- return text
50
- } if (mode === 'name') {
51
- // 判断是否合法的字符粗
52
- !(typeof (text) === 'string') && error('姓名模式下,text参数需要为字符串格式')
53
- if (test.func(format)) {
54
- // 如果用户传入的是函数,使用函数格式化
55
- return format(text)
56
- } if (format === 'encrypt') {
57
- // 如果format为encrypt,则将姓名进行星号加密处理
58
- return this.formatName(text)
59
- }
60
- return text
61
- } if (mode === 'link') {
62
- // 判断是否合法的字符粗
63
- !test.url(href) && error('超链接模式下,href参数需要为URL格式')
64
- return text
65
- }
66
- return text
67
- }
68
- },
69
- methods: {
70
- // 默认的姓名脱敏规则
71
- formatName(name) {
72
- let value = ''
73
- if (name.length === 2) {
74
- value = name.substr(0, 1) + '*'
75
- } else if (name.length > 2) {
76
- let char = ''
77
- for (let i = 0, len = name.length - 2; i < len; i++) {
78
- char += '*'
79
- }
80
- value = name.substr(0, 1) + char + name.substr(-1, 1)
81
- } else {
82
- value = name
83
- }
84
- return value
85
- }
86
- }
87
- }
@@ -1,16 +0,0 @@
1
- // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
2
- const color = {
3
- primary: '#3c9cff',
4
- info: '#909399',
5
- default: '#909399',
6
- warning: '#f9ae3d',
7
- error: '#f56c6c',
8
- success: '#5ac725',
9
- mainColor: '#303133',
10
- contentColor: '#606266',
11
- tipsColor: '#909399',
12
- lightColor: '#c0c4cc',
13
- borderColor: '#e4e7ed'
14
- }
15
-
16
- export default color