vue2-client 1.18.55 → 1.18.57

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 (93) hide show
  1. package/.claude/settings.local.json +28 -28
  2. package/.eslintrc.js +74 -74
  3. package/Components.md +60 -60
  4. package/docs/index.md +30 -30
  5. package/index.js +31 -31
  6. package/jest-transform-stub.js +8 -8
  7. package/jest.setup.js +7 -7
  8. package/package.json +1 -1
  9. package/src/assets/img/querySlotDemo.svg +15 -15
  10. package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
  11. package/src/base-client/components/common/CitySelect/index.js +3 -3
  12. package/src/base-client/components/common/CitySelect/index.md +109 -109
  13. package/src/base-client/components/common/CreateQuery/CreateQuery.vue +669 -669
  14. package/src/base-client/components/common/CreateQuery/index.js +3 -3
  15. package/src/base-client/components/common/CreateQuery/index.md +42 -42
  16. package/src/base-client/components/common/CreateSimpleFormQuery/index.js +3 -3
  17. package/src/base-client/components/common/CreateSimpleFormQuery/index.md +42 -42
  18. package/src/base-client/components/common/FormGroupEdit/index.js +3 -3
  19. package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
  20. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +166 -166
  21. package/src/base-client/components/common/FormGroupQuery/index.js +3 -3
  22. package/src/base-client/components/common/FormGroupQuery/index.md +43 -43
  23. package/src/base-client/components/common/JSONToTree/jsontotree.vue +271 -271
  24. package/src/base-client/components/common/PersonSetting/PersonSetting.vue +208 -208
  25. package/src/base-client/components/common/PersonSetting/index.js +3 -3
  26. package/src/base-client/components/common/Tree/Tree.vue +149 -149
  27. package/src/base-client/components/common/Tree/index.js +2 -2
  28. package/src/base-client/components/common/Upload/Upload.vue +9 -3
  29. package/src/base-client/components/common/Upload/index.js +3 -3
  30. package/src/base-client/components/common/XAddNativeForm/index.md +146 -146
  31. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  32. package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -180
  33. package/src/base-client/components/common/XDataDrawer/index.js +3 -3
  34. package/src/base-client/components/common/XDataDrawer/index.md +41 -41
  35. package/src/base-client/components/common/XDescriptions/index.js +3 -3
  36. package/src/base-client/components/common/XDescriptions/index.md +322 -322
  37. package/src/base-client/components/common/XForm/index.md +178 -178
  38. package/src/base-client/components/common/XStepView/XStepView.vue +252 -252
  39. package/src/base-client/components/common/XStepView/index.js +3 -3
  40. package/src/base-client/components/common/XStepView/index.md +31 -31
  41. package/src/base-client/components/common/XTable/XTable.vue +1715 -1715
  42. package/src/base-client/components/common/XTable/XTableWrapper.vue +786 -786
  43. package/src/base-client/components/common/XTable/index.md +255 -255
  44. package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
  45. package/src/base-client/plugins/Config.js +19 -19
  46. package/src/base-client/plugins/tabs-page-plugin.js +39 -39
  47. package/src/components/Charts/Bar.vue +62 -62
  48. package/src/components/Charts/ChartCard.vue +134 -134
  49. package/src/components/Charts/Liquid.vue +67 -67
  50. package/src/components/Charts/MiniArea.vue +39 -39
  51. package/src/components/Charts/MiniBar.vue +39 -39
  52. package/src/components/Charts/MiniProgress.vue +75 -75
  53. package/src/components/Charts/MiniSmoothArea.vue +40 -40
  54. package/src/components/Charts/Radar.vue +68 -68
  55. package/src/components/Charts/RankList.vue +77 -77
  56. package/src/components/Charts/TagCloud.vue +113 -113
  57. package/src/components/Charts/TransferBar.vue +64 -64
  58. package/src/components/Charts/Trend.vue +82 -82
  59. package/src/components/Charts/chart.less +12 -12
  60. package/src/components/Charts/smooth.area.less +13 -13
  61. package/src/components/HeightScanner/index.vue +4 -4
  62. package/src/components/NumberInfo/NumberInfo.vue +54 -54
  63. package/src/components/NumberInfo/index.js +3 -3
  64. package/src/components/NumberInfo/index.less +54 -54
  65. package/src/components/NumberInfo/index.md +43 -43
  66. package/src/components/card/ChartCard.vue +79 -79
  67. package/src/components/chart/Bar.vue +60 -60
  68. package/src/components/chart/MiniArea.vue +67 -67
  69. package/src/components/chart/MiniBar.vue +59 -59
  70. package/src/components/chart/MiniProgress.vue +57 -57
  71. package/src/components/chart/Radar.vue +80 -80
  72. package/src/components/chart/RankingList.vue +60 -60
  73. package/src/components/chart/Trend.vue +79 -79
  74. package/src/components/chart/index.less +9 -9
  75. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  76. package/src/components/input/IInput.vue +66 -66
  77. package/src/components/menu/SideMenu.vue +75 -75
  78. package/src/components/menu/menu.js +273 -273
  79. package/src/components/tool/AStepItem.vue +60 -60
  80. package/src/layouts/CommonLayout.vue +56 -56
  81. package/src/layouts/header/HeaderNotice.vue +177 -177
  82. package/src/lib.js +1 -1
  83. package/src/mock/extend/index.js +84 -84
  84. package/src/mock/goods/index.js +108 -108
  85. package/src/pages/dashboard/workplace/WorkPlace.vue +141 -141
  86. package/src/pages/system/dictionary/index.vue +44 -44
  87. package/src/pages/system/monitor/loginInfor/index.vue +37 -37
  88. package/src/pages/system/monitor/operLog/index.vue +37 -37
  89. package/src/services/api/cas.js +79 -79
  90. package/src/store/modules/setting.js +119 -119
  91. package/src/utils/authority-utils.js +85 -85
  92. package/src/utils/errorCode.js +6 -6
  93. package//350/277/201/347/247/273/346/227/245/345/277/227.md +15 -15
@@ -1,54 +1,54 @@
1
- <template>
2
- <div :class="[prefixCls]">
3
- <slot name="subtitle">
4
- <div :class="[`${prefixCls}-subtitle`]">{{ typeof subTitle === 'string' ? subTitle : subTitle() }}</div>
5
- </slot>
6
- <div class="number-info-value">
7
- <span>{{ total }}</span>
8
- <span class="sub-total">
9
- {{ subTotal }}
10
- <icon :type="`caret-${status}`" />
11
- </span>
12
- </div>
13
- </div>
14
- </template>
15
-
16
- <script>
17
- import Icon from 'ant-design-vue/es/icon'
18
-
19
- export default {
20
- name: 'NumberInfo',
21
- props: {
22
- prefixCls: {
23
- type: String,
24
- default: 'ant-pro-number-info'
25
- },
26
- total: {
27
- type: Number,
28
- required: true
29
- },
30
- subTotal: {
31
- type: Number,
32
- required: true
33
- },
34
- subTitle: {
35
- type: [String, Function],
36
- default: ''
37
- },
38
- status: {
39
- type: String,
40
- default: 'up'
41
- }
42
- },
43
- components: {
44
- Icon
45
- },
46
- data () {
47
- return {}
48
- }
49
- }
50
- </script>
51
-
52
- <style lang="less" scoped>
53
- //@import "index";
54
- </style>
1
+ <template>
2
+ <div :class="[prefixCls]">
3
+ <slot name="subtitle">
4
+ <div :class="[`${prefixCls}-subtitle`]">{{ typeof subTitle === 'string' ? subTitle : subTitle() }}</div>
5
+ </slot>
6
+ <div class="number-info-value">
7
+ <span>{{ total }}</span>
8
+ <span class="sub-total">
9
+ {{ subTotal }}
10
+ <icon :type="`caret-${status}`" />
11
+ </span>
12
+ </div>
13
+ </div>
14
+ </template>
15
+
16
+ <script>
17
+ import Icon from 'ant-design-vue/es/icon'
18
+
19
+ export default {
20
+ name: 'NumberInfo',
21
+ props: {
22
+ prefixCls: {
23
+ type: String,
24
+ default: 'ant-pro-number-info'
25
+ },
26
+ total: {
27
+ type: Number,
28
+ required: true
29
+ },
30
+ subTotal: {
31
+ type: Number,
32
+ required: true
33
+ },
34
+ subTitle: {
35
+ type: [String, Function],
36
+ default: ''
37
+ },
38
+ status: {
39
+ type: String,
40
+ default: 'up'
41
+ }
42
+ },
43
+ components: {
44
+ Icon
45
+ },
46
+ data () {
47
+ return {}
48
+ }
49
+ }
50
+ </script>
51
+
52
+ <style lang="less" scoped>
53
+ //@import "index";
54
+ </style>
@@ -1,3 +1,3 @@
1
- import NumberInfo from './NumberInfo'
2
-
3
- export default NumberInfo
1
+ import NumberInfo from './NumberInfo'
2
+
3
+ export default NumberInfo
@@ -1,55 +1,55 @@
1
- @import "../index";
2
-
3
- @numberInfo-prefix-cls: ~"@{ant-pro-prefix}-number-info";
4
-
5
- .@{numberInfo-prefix-cls} {
6
-
7
- .ant-pro-number-info-subtitle {
8
- color: @text-color-secondary;
9
- font-size: @font-size-base;
10
- height: 22px;
11
- line-height: 22px;
12
- overflow: hidden;
13
- text-overflow: ellipsis;
14
- word-break: break-all;
15
- white-space: nowrap;
16
- }
17
-
18
- .number-info-value {
19
- margin-top: 4px;
20
- font-size: 0;
21
- overflow: hidden;
22
- text-overflow: ellipsis;
23
- word-break: break-all;
24
- white-space: nowrap;
25
-
26
- & > span {
27
- color: @heading-color;
28
- display: inline-block;
29
- line-height: 32px;
30
- height: 32px;
31
- font-size: 24px;
32
- margin-right: 32px;
33
- }
34
-
35
- .sub-total {
36
- color: @text-color-secondary;
37
- font-size: @font-size-lg;
38
- vertical-align: top;
39
- margin-right: 0;
40
- i {
41
- font-size: 12px;
42
- transform: scale(0.82);
43
- margin-left: 4px;
44
- }
45
- :global {
46
- .anticon-caret-up {
47
- color: @red-6;
48
- }
49
- .anticon-caret-down {
50
- color: @green-6;
51
- }
52
- }
53
- }
54
- }
1
+ @import "../index";
2
+
3
+ @numberInfo-prefix-cls: ~"@{ant-pro-prefix}-number-info";
4
+
5
+ .@{numberInfo-prefix-cls} {
6
+
7
+ .ant-pro-number-info-subtitle {
8
+ color: @text-color-secondary;
9
+ font-size: @font-size-base;
10
+ height: 22px;
11
+ line-height: 22px;
12
+ overflow: hidden;
13
+ text-overflow: ellipsis;
14
+ word-break: break-all;
15
+ white-space: nowrap;
16
+ }
17
+
18
+ .number-info-value {
19
+ margin-top: 4px;
20
+ font-size: 0;
21
+ overflow: hidden;
22
+ text-overflow: ellipsis;
23
+ word-break: break-all;
24
+ white-space: nowrap;
25
+
26
+ & > span {
27
+ color: @heading-color;
28
+ display: inline-block;
29
+ line-height: 32px;
30
+ height: 32px;
31
+ font-size: 24px;
32
+ margin-right: 32px;
33
+ }
34
+
35
+ .sub-total {
36
+ color: @text-color-secondary;
37
+ font-size: @font-size-lg;
38
+ vertical-align: top;
39
+ margin-right: 0;
40
+ i {
41
+ font-size: 12px;
42
+ transform: scale(0.82);
43
+ margin-left: 4px;
44
+ }
45
+ :global {
46
+ .anticon-caret-up {
47
+ color: @red-6;
48
+ }
49
+ .anticon-caret-down {
50
+ color: @green-6;
51
+ }
52
+ }
53
+ }
54
+ }
55
55
  }
@@ -1,43 +1,43 @@
1
- # NumberInfo 数据文本
2
-
3
- 常用在数据卡片中,用于突出展示某个业务数据。
4
-
5
-
6
-
7
- 引用方式:
8
-
9
- ```javascript
10
- import NumberInfo from '@vue2-client/components/NumberInfo'
11
-
12
- export default {
13
- components: {
14
- NumberInfo
15
- }
16
- }
17
- ```
18
-
19
-
20
-
21
- ## 代码演示 [demo](https://pro.loacg.com/test/home)
22
-
23
- ```html
24
- <number-info
25
- :sub-title="() => { return 'Visits this week' }"
26
- :total="12321"
27
- status="up"
28
- :sub-total="17.1"></number-info>
29
- ```
30
-
31
-
32
-
33
- ## API
34
-
35
- | 参数 | 说明 | 类型 | 默认值 |
36
- |----------|------------------|------------|---------|
37
- | title | 标题 | ReactNode\ | string | -
38
- | subTitle | 子标题 | ReactNode\ | string | -
39
- | total | 总量 | ReactNode\ | string | -
40
- | subTotal | 子总量 | ReactNode\ | string | -
41
- | status | 增加状态 | 'up \ | down' | -
42
- | theme | 状态样式 | string | 'light' |
43
- | gap | 设置数字和描述之间的间距(像素) | number | 8 |
1
+ # NumberInfo 数据文本
2
+
3
+ 常用在数据卡片中,用于突出展示某个业务数据。
4
+
5
+
6
+
7
+ 引用方式:
8
+
9
+ ```javascript
10
+ import NumberInfo from '@vue2-client/components/NumberInfo'
11
+
12
+ export default {
13
+ components: {
14
+ NumberInfo
15
+ }
16
+ }
17
+ ```
18
+
19
+
20
+
21
+ ## 代码演示 [demo](https://pro.loacg.com/test/home)
22
+
23
+ ```html
24
+ <number-info
25
+ :sub-title="() => { return 'Visits this week' }"
26
+ :total="12321"
27
+ status="up"
28
+ :sub-total="17.1"></number-info>
29
+ ```
30
+
31
+
32
+
33
+ ## API
34
+
35
+ | 参数 | 说明 | 类型 | 默认值 |
36
+ |----------|------------------|------------|---------|
37
+ | title | 标题 | ReactNode\ | string | -
38
+ | subTitle | 子标题 | ReactNode\ | string | -
39
+ | total | 总量 | ReactNode\ | string | -
40
+ | subTotal | 子总量 | ReactNode\ | string | -
41
+ | status | 增加状态 | 'up \ | down' | -
42
+ | theme | 状态样式 | string | 'light' |
43
+ | gap | 设置数字和描述之间的间距(像素) | number | 8 |
@@ -1,79 +1,79 @@
1
- <template>
2
- <a-card :loading="loading" :body-style="{padding: '20px 24px 8px'}" :bordered="false">
3
- <div class="chart-card-header">
4
- <div class="meta">
5
- <span class="chart-card-title">{{ title }}</span>
6
- <span class="chart-card-action">
7
- <slot name="action"></slot>
8
- </span>
9
- </div>
10
- <div class="total"><span>{{ total }}</span></div>
11
- </div>
12
- <div class="chart-card-content">
13
- <div class="content-fix">
14
- <slot></slot>
15
- </div>
16
- </div>
17
- <div class="chart-card-footer">
18
- <slot name="footer"></slot>
19
- </div>
20
- </a-card>
21
- </template>
22
-
23
- <script>
24
- export default {
25
- name: 'ChartCard',
26
- // eslint-disable-next-line vue/require-prop-types
27
- props: ['title', 'total', 'loading']
28
- }
29
- </script>
30
-
31
- <style scoped lang="less">
32
- .chart-card-header{
33
- position: relative;
34
- overflow: hidden;
35
- width: 100%;
36
- }
37
- .chart-card-header .meta{
38
- position: relative;
39
- overflow: hidden;
40
- width: 100%;
41
- color: @text-color-second;
42
- font-size: 14px;
43
- line-height: 22px;
44
- }
45
- .chart-card-action{
46
- cursor: pointer;
47
- position: absolute;
48
- top: 0;
49
- right: 0;
50
- }
51
- .total {
52
- overflow: hidden;
53
- text-overflow: ellipsis;
54
- word-break: break-all;
55
- white-space: nowrap;
56
- margin-top: 4px;
57
- margin-bottom: 0;
58
- font-size: 30px;
59
- line-height: 38px;
60
- height: 38px;
61
- }
62
- .chart-card-footer{
63
- border-top: 1px solid @border-color-base;
64
- padding-top: 9px;
65
- margin-top: 8px;
66
- }
67
- .chart-card-content{
68
- margin-bottom: 12px;
69
- position: relative;
70
- height: 46px;
71
- width: 100%;
72
- }
73
- .chart-card-content .content-fix{
74
- position: absolute;
75
- left: 0;
76
- bottom: 0;
77
- width: 100%;
78
- }
79
- </style>
1
+ <template>
2
+ <a-card :loading="loading" :body-style="{padding: '20px 24px 8px'}" :bordered="false">
3
+ <div class="chart-card-header">
4
+ <div class="meta">
5
+ <span class="chart-card-title">{{ title }}</span>
6
+ <span class="chart-card-action">
7
+ <slot name="action"></slot>
8
+ </span>
9
+ </div>
10
+ <div class="total"><span>{{ total }}</span></div>
11
+ </div>
12
+ <div class="chart-card-content">
13
+ <div class="content-fix">
14
+ <slot></slot>
15
+ </div>
16
+ </div>
17
+ <div class="chart-card-footer">
18
+ <slot name="footer"></slot>
19
+ </div>
20
+ </a-card>
21
+ </template>
22
+
23
+ <script>
24
+ export default {
25
+ name: 'ChartCard',
26
+ // eslint-disable-next-line vue/require-prop-types
27
+ props: ['title', 'total', 'loading']
28
+ }
29
+ </script>
30
+
31
+ <style scoped lang="less">
32
+ .chart-card-header{
33
+ position: relative;
34
+ overflow: hidden;
35
+ width: 100%;
36
+ }
37
+ .chart-card-header .meta{
38
+ position: relative;
39
+ overflow: hidden;
40
+ width: 100%;
41
+ color: @text-color-second;
42
+ font-size: 14px;
43
+ line-height: 22px;
44
+ }
45
+ .chart-card-action{
46
+ cursor: pointer;
47
+ position: absolute;
48
+ top: 0;
49
+ right: 0;
50
+ }
51
+ .total {
52
+ overflow: hidden;
53
+ text-overflow: ellipsis;
54
+ word-break: break-all;
55
+ white-space: nowrap;
56
+ margin-top: 4px;
57
+ margin-bottom: 0;
58
+ font-size: 30px;
59
+ line-height: 38px;
60
+ height: 38px;
61
+ }
62
+ .chart-card-footer{
63
+ border-top: 1px solid @border-color-base;
64
+ padding-top: 9px;
65
+ margin-top: 8px;
66
+ }
67
+ .chart-card-content{
68
+ margin-bottom: 12px;
69
+ position: relative;
70
+ height: 46px;
71
+ width: 100%;
72
+ }
73
+ .chart-card-content .content-fix{
74
+ position: absolute;
75
+ left: 0;
76
+ bottom: 0;
77
+ width: 100%;
78
+ }
79
+ </style>
@@ -1,60 +1,60 @@
1
- <template>
2
- <div class="bar">
3
- <h4>{{ title }}</h4>
4
- <div class="chart">
5
- <v-chart :force-fit="true" height="312" :data="data" :padding="[24, 0, 0, 0]">
6
- <v-tooltip />
7
- <v-axis />
8
- <v-bar position="x*y"/>
9
- </v-chart>
10
- </div>
11
- </div>
12
- </template>
13
-
14
- <script>
15
-
16
- const data = []
17
- for (let i = 0; i < 12; i += 1) {
18
- data.push({
19
- x: `${i + 1}月`,
20
- y: Math.floor(Math.random() * 1000) + 200
21
- })
22
- }
23
- const tooltip = [
24
- 'x*y',
25
- (x, y) => ({
26
- name: x,
27
- value: y
28
- })
29
- ]
30
-
31
- const scale = [{
32
- dataKey: 'x',
33
- min: 2
34
- }, {
35
- dataKey: 'y',
36
- title: '时间',
37
- min: 1,
38
- max: 22
39
- }]
40
- export default {
41
- name: 'Bar',
42
- // eslint-disable-next-line vue/require-prop-types
43
- props: ['title'],
44
- data () {
45
- return {
46
- data,
47
- scale,
48
- tooltip
49
- }
50
- }
51
- }
52
- </script>
53
-
54
- <style scoped lang="less">
55
- .bar{
56
- position: relative;
57
- .chart{
58
- }
59
- }
60
- </style>
1
+ <template>
2
+ <div class="bar">
3
+ <h4>{{ title }}</h4>
4
+ <div class="chart">
5
+ <v-chart :force-fit="true" height="312" :data="data" :padding="[24, 0, 0, 0]">
6
+ <v-tooltip />
7
+ <v-axis />
8
+ <v-bar position="x*y"/>
9
+ </v-chart>
10
+ </div>
11
+ </div>
12
+ </template>
13
+
14
+ <script>
15
+
16
+ const data = []
17
+ for (let i = 0; i < 12; i += 1) {
18
+ data.push({
19
+ x: `${i + 1}月`,
20
+ y: Math.floor(Math.random() * 1000) + 200
21
+ })
22
+ }
23
+ const tooltip = [
24
+ 'x*y',
25
+ (x, y) => ({
26
+ name: x,
27
+ value: y
28
+ })
29
+ ]
30
+
31
+ const scale = [{
32
+ dataKey: 'x',
33
+ min: 2
34
+ }, {
35
+ dataKey: 'y',
36
+ title: '时间',
37
+ min: 1,
38
+ max: 22
39
+ }]
40
+ export default {
41
+ name: 'Bar',
42
+ // eslint-disable-next-line vue/require-prop-types
43
+ props: ['title'],
44
+ data () {
45
+ return {
46
+ data,
47
+ scale,
48
+ tooltip
49
+ }
50
+ }
51
+ }
52
+ </script>
53
+
54
+ <style scoped lang="less">
55
+ .bar{
56
+ position: relative;
57
+ .chart{
58
+ }
59
+ }
60
+ </style>