chain-saasui 1.0.6 → 1.0.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.
Files changed (46) hide show
  1. package/README.md +5 -5
  2. package/babel.config.js +13 -13
  3. package/build/version-alpha.js +51 -51
  4. package/build/version-patch.js +44 -44
  5. package/build/webpack.common.js +54 -54
  6. package/build/webpack.components.js +69 -69
  7. package/build/webpack.demo.js +40 -40
  8. package/components/css/card.scss +19 -19
  9. package/components/css/common.scss +10 -10
  10. package/components/css/container.scss +14 -14
  11. package/components/css/detail.scss +87 -87
  12. package/components/css/dialog.scss +83 -83
  13. package/components/css/group.scss +82 -82
  14. package/components/css/index.scss +11 -11
  15. package/components/css/messagebox.scss +59 -59
  16. package/components/css/pagetable.scss +89 -89
  17. package/components/css/tablebuttons.scss +15 -15
  18. package/components/css/unit.scss +25 -25
  19. package/components/src/SCard/index.vue +34 -34
  20. package/components/src/SContainer/index.vue +35 -35
  21. package/components/src/SDialog/index.vue +101 -101
  22. package/components/src/SDrawer/index.vue +97 -97
  23. package/components/src/SForm/SSelect/index.vue +108 -108
  24. package/components/src/SGroup/index.vue +81 -81
  25. package/components/src/SMessagebox/index.js +66 -66
  26. package/components/src/SMessagebox/messagebox.vue +83 -83
  27. package/components/src/SPage/Pagedetail.vue +112 -112
  28. package/components/src/SPage/Pagestep.vue +94 -94
  29. package/components/src/SPage/Pagetable.vue +112 -112
  30. package/components/src/STable/STablecolumn.vue +111 -111
  31. package/components/src/STable/index.vue +48 -48
  32. package/components/src/STableButtons/STableButtons.md +111 -111
  33. package/components/src/STableButtons/index.vue +96 -96
  34. package/components/src/SUnit/index.vue +74 -74
  35. package/components/src/index.js +48 -48
  36. package/gulpfile.js +20 -20
  37. package/jsconfig.json +25 -25
  38. package/lib/saasui.common.js +1 -1
  39. package/package.json +84 -84
  40. package/public/html/ie.html +45 -45
  41. package/public/index.html +273 -273
  42. package/public/robots.txt +1 -1
  43. package/src/App.vue +30 -30
  44. package/src/components/HelloWorld.vue +58 -58
  45. package/src/main.js +16 -16
  46. package/vue.config.js +40 -40
@@ -1,89 +1,89 @@
1
- .saas-page-table {
2
- background: #fff;
3
- height: calc(100% - 16px);
4
- display: flex;
5
- flex-direction: column;
6
- position: relative;
7
- padding: 16px;
8
- border-radius: 8px;
9
- // overflow-y: inherit;
10
- }
11
- .saas-page-table-header {
12
- // margin-bottom: 16px;
13
- flex-shrink: 0;
14
- }
15
-
16
- .saas-page-table-menu {
17
- display: flex;
18
- align-items: center;
19
- font-size: 16px;
20
- font-weight: 600;
21
- color: #0e1822;
22
- margin-bottom: 16px;
23
- }
24
-
25
- .saas-page-table-menu.hasClose {
26
- font-weight: 400;
27
- }
28
- .saas-page-table-back_title {
29
- margin-right: 16px;
30
- }
31
- .saas-page-table-title_line {
32
- height: 14px;
33
- width: 1px;
34
- background: #dbdee7;
35
- margin-right: 16px;
36
- }
37
- .saas-page-table-sub {
38
- margin-top: 8px;
39
- }
40
- .saas-page-title-line {
41
- // display: none;
42
- display: inline-block;
43
- width: 4px;
44
- height: 16px;
45
- background: #1ed080;
46
- margin-right: 8px;
47
- vertical-align: middle;
48
- }
49
-
50
- .saas-page-table-backbox {
51
- display: flex;
52
- align-items: center;
53
- top: 24px;
54
- }
55
- .saas-page-table-back {
56
- display: flex;
57
- align-items: center;
58
- border-radius: 50%;
59
- border: 1px solid #dbdee7;
60
- width: 24px;
61
- height: 24px;
62
- justify-content: center;
63
- color: #a1a5b2;
64
- cursor: pointer;
65
- margin-right: 8px;
66
-
67
- &:hover {
68
- background: rgb(247, 249, 251);
69
- }
70
- }
71
- .saas-page-table-title {
72
- flex: 1;
73
- }
74
- .saas-page-table-form {
75
- // margin-bottom: 16px;
76
- }
77
-
78
- .saas-page-table-content {
79
- flex: 1;
80
- min-height: 300px;
81
- }
82
- .saas-page-table-footer {
83
- flex-shrink: 0;
84
- }
85
-
86
- .saas-steptop-btn {
87
- display: flex;
88
- align-items: center;
89
- }
1
+ .saas-page-table {
2
+ background: #fff;
3
+ height: calc(100% - 16px);
4
+ display: flex;
5
+ flex-direction: column;
6
+ position: relative;
7
+ padding: 16px;
8
+ border-radius: 8px;
9
+ // overflow-y: inherit;
10
+ }
11
+ .saas-page-table-header {
12
+ // margin-bottom: 16px;
13
+ flex-shrink: 0;
14
+ }
15
+
16
+ .saas-page-table-menu {
17
+ display: flex;
18
+ align-items: center;
19
+ font-size: 16px;
20
+ font-weight: 600;
21
+ color: #0e1822;
22
+ margin-bottom: 16px;
23
+ }
24
+
25
+ .saas-page-table-menu.hasClose {
26
+ font-weight: 400;
27
+ }
28
+ .saas-page-table-back_title {
29
+ margin-right: 16px;
30
+ }
31
+ .saas-page-table-title_line {
32
+ height: 14px;
33
+ width: 1px;
34
+ background: #dbdee7;
35
+ margin-right: 16px;
36
+ }
37
+ .saas-page-table-sub {
38
+ margin-top: 8px;
39
+ }
40
+ .saas-page-title-line {
41
+ // display: none;
42
+ display: inline-block;
43
+ width: 4px;
44
+ height: 16px;
45
+ background: #1ed080;
46
+ margin-right: 8px;
47
+ vertical-align: middle;
48
+ }
49
+
50
+ .saas-page-table-backbox {
51
+ display: flex;
52
+ align-items: center;
53
+ top: 24px;
54
+ }
55
+ .saas-page-table-back {
56
+ display: flex;
57
+ align-items: center;
58
+ border-radius: 50%;
59
+ border: 1px solid #dbdee7;
60
+ width: 24px;
61
+ height: 24px;
62
+ justify-content: center;
63
+ color: #a1a5b2;
64
+ cursor: pointer;
65
+ margin-right: 8px;
66
+
67
+ &:hover {
68
+ background: rgb(247, 249, 251);
69
+ }
70
+ }
71
+ .saas-page-table-title {
72
+ flex: 1;
73
+ }
74
+ .saas-page-table-form {
75
+ // margin-bottom: 16px;
76
+ }
77
+
78
+ .saas-page-table-content {
79
+ flex: 1;
80
+ min-height: 300px;
81
+ }
82
+ .saas-page-table-footer {
83
+ flex-shrink: 0;
84
+ }
85
+
86
+ .saas-steptop-btn {
87
+ display: flex;
88
+ align-items: center;
89
+ }
@@ -1,15 +1,15 @@
1
- .saas-table-buttons {
2
- display: flex;
3
- gap: 0 8px;
4
- flex-wrap: wrap;
5
- align-items: center;
6
- .el-button + .el-button {
7
- margin-left: 0;
8
- }
9
- .el-button--text:not(.is-disabled) {
10
- color: #2c68f8;
11
- }
12
- .smart-More {
13
- font-weight: bolder;
14
- }
15
- }
1
+ .saas-table-buttons {
2
+ display: flex;
3
+ gap: 0 8px;
4
+ flex-wrap: wrap;
5
+ align-items: center;
6
+ .el-button + .el-button {
7
+ margin-left: 0;
8
+ }
9
+ .el-button--text:not(.is-disabled) {
10
+ color: #2c68f8;
11
+ }
12
+ .smart-More {
13
+ font-weight: bolder;
14
+ }
15
+ }
@@ -1,25 +1,25 @@
1
- @import './common.scss';
2
-
3
- .saas-unit {
4
- display: flex;
5
- align-items: center;
6
- gap: 8px;
7
- white-space: nowrap;
8
- color: #0e1822;
9
- font-size: 14px;
10
- }
11
-
12
- @each $name, $color in $colors {
13
- .saas-unit-#{$name} {
14
- background-color: $color;
15
- width: 8px;
16
- height: 8px;
17
- border-radius: 2px;
18
- box-shadow: 0px 0px 0px 2px rgba($color, 0.2);
19
- }
20
- }
21
-
22
- .saas-unit-text {
23
- width: 0;
24
- flex: 1;
25
- }
1
+ @import './common.scss';
2
+
3
+ .saas-unit {
4
+ display: flex;
5
+ align-items: center;
6
+ gap: 8px;
7
+ white-space: nowrap;
8
+ color: #0e1822;
9
+ font-size: 14px;
10
+ }
11
+
12
+ @each $name, $color in $colors {
13
+ .saas-unit-#{$name} {
14
+ background-color: $color;
15
+ width: 8px;
16
+ height: 8px;
17
+ border-radius: 2px;
18
+ box-shadow: 0px 0px 0px 2px rgba($color, 0.2);
19
+ }
20
+ }
21
+
22
+ .saas-unit-text {
23
+ width: 0;
24
+ flex: 1;
25
+ }
@@ -1,34 +1,34 @@
1
- <template>
2
- <div class="saas-card">
3
- <div class="saas-card-header">
4
- <slot name="title">
5
- {{ title }}
6
- </slot>
7
- </div>
8
- <div class="saas-card-content">
9
- <slot></slot>
10
- </div>
11
- </div>
12
- </template>
13
- <script>
14
- export default {
15
- name: 'SCard',
16
- props: {
17
- title: {
18
- type: String,
19
- default: '',
20
- },
21
- titleSub: {
22
- type: String,
23
- default: '',
24
- },
25
- },
26
- data() {
27
- return {};
28
- },
29
- computed: {},
30
- deactivated() {},
31
- methods: {},
32
- };
33
- </script>
34
- <style lang="scss" scoped></style>
1
+ <template>
2
+ <div class="saas-card">
3
+ <div class="saas-card-header">
4
+ <slot name="title">
5
+ {{ title }}
6
+ </slot>
7
+ </div>
8
+ <div class="saas-card-content">
9
+ <slot></slot>
10
+ </div>
11
+ </div>
12
+ </template>
13
+ <script>
14
+ export default {
15
+ name: 'SCard',
16
+ props: {
17
+ title: {
18
+ type: String,
19
+ default: '',
20
+ },
21
+ titleSub: {
22
+ type: String,
23
+ default: '',
24
+ },
25
+ },
26
+ data() {
27
+ return {};
28
+ },
29
+ computed: {},
30
+ deactivated() {},
31
+ methods: {},
32
+ };
33
+ </script>
34
+ <style lang="scss" scoped></style>
@@ -1,35 +1,35 @@
1
- <template>
2
- <div class="saas-container">
3
- <div class="saas-container-header">
4
- <slot name="header"></slot>
5
- </div>
6
- <div class="saas-container-content">
7
- <slot></slot>
8
- </div>
9
- <div class="saas-container-footer">
10
- <slot name="footer"></slot>
11
- </div>
12
- </div>
13
- </template>
14
- <script>
15
- export default {
16
- name: 'SContainer',
17
- props: {
18
- title: {
19
- type: String,
20
- default: '',
21
- },
22
- titleSub: {
23
- type: String,
24
- default: '',
25
- },
26
- },
27
- data() {
28
- return {};
29
- },
30
- computed: {},
31
- deactivated() {},
32
- methods: {},
33
- };
34
- </script>
35
- <style lang="scss" scoped></style>
1
+ <template>
2
+ <div class="saas-container">
3
+ <div class="saas-container-header">
4
+ <slot name="header"></slot>
5
+ </div>
6
+ <div class="saas-container-content">
7
+ <slot></slot>
8
+ </div>
9
+ <div class="saas-container-footer">
10
+ <slot name="footer"></slot>
11
+ </div>
12
+ </div>
13
+ </template>
14
+ <script>
15
+ export default {
16
+ name: 'SContainer',
17
+ props: {
18
+ title: {
19
+ type: String,
20
+ default: '',
21
+ },
22
+ titleSub: {
23
+ type: String,
24
+ default: '',
25
+ },
26
+ },
27
+ data() {
28
+ return {};
29
+ },
30
+ computed: {},
31
+ deactivated() {},
32
+ methods: {},
33
+ };
34
+ </script>
35
+ <style lang="scss" scoped></style>
@@ -1,101 +1,101 @@
1
- <template>
2
- <el-dialog class="saas-dialog" v-bind="bindProps" :close-on-click-modal="false" v-on="$listeners" :visible.sync="show">
3
- <template v-if="$slots.title" slot="title">
4
- <slot name="title"></slot>
5
- </template>
6
- <div class="saas-dialog-content" :class="{ 'saas-dialog-auto': isAuto }">
7
- <slot></slot>
8
- </div>
9
- <template v-if="showFooter" slot="footer">
10
- <slot v-if="$slots.footer" name="footer"></slot>
11
- <div v-else>
12
- <el-button v-if="showCancelButton" @click="handleClose">{{ cancelText }}</el-button>
13
- <el-button v-if="showConfirmButton" :loading="loadingBtn" type="primary" @click="handleSubmit" v-preventReClick="5000">
14
- {{ confirmText }}
15
- </el-button>
16
- </div>
17
- </template>
18
- </el-dialog>
19
- </template>
20
- <script>
21
- import { Dialog } from 'element-ui';
22
- import { omit } from 'chain-lodash';
23
- export default {
24
- name: 'SDialog',
25
- props: {
26
- ...Dialog.props,
27
- showFooter: {
28
- type: Boolean,
29
- default: () => true,
30
- },
31
- width: {
32
- type: [String, Number],
33
- default: () => '600px',
34
- },
35
- // closeOnClickModal: {
36
- // type: Boolean,
37
- // default: () => false,
38
- // },
39
- loadingBtn: {
40
- type: Boolean,
41
- default: () => false,
42
- },
43
- visible: {
44
- type: Boolean,
45
- default: false,
46
- },
47
- showCancelButton: {
48
- type: Boolean,
49
- default: () => true,
50
- },
51
- showConfirmButton: {
52
- type: Boolean,
53
- default: () => true,
54
- },
55
- confirmText: {
56
- type: String,
57
- default() {
58
- return this.$t('buttonGroup.sure');
59
- },
60
- },
61
- cancelText: {
62
- type: String,
63
- default() {
64
- return this.$t('buttonGroup.cancel');
65
- },
66
- },
67
- isAuto: {
68
- type: Boolean,
69
- default: true,
70
- },
71
- },
72
- data() {
73
- return {};
74
- },
75
- computed: {
76
- show: {
77
- get() {
78
- return this.visible;
79
- },
80
- set(val) {
81
- this.$emit('update:visible', val);
82
- },
83
- },
84
- bindProps() {
85
- return omit(this.$props, ['visible']);
86
- },
87
- },
88
- deactivated() {
89
- this.handleClose(); // 在缓存组件时关闭弹窗
90
- },
91
- methods: {
92
- handleSubmit() {
93
- this.$emit('confirm');
94
- },
95
- handleClose() {
96
- this.$emit('update:visible', false);
97
- this.$emit('close');
98
- },
99
- },
100
- };
101
- </script>
1
+ <template>
2
+ <el-dialog class="saas-dialog" v-bind="bindProps" :close-on-click-modal="false" v-on="$listeners" :visible.sync="show">
3
+ <template v-if="$slots.title" slot="title">
4
+ <slot name="title"></slot>
5
+ </template>
6
+ <div class="saas-dialog-content" :class="{ 'saas-dialog-auto': isAuto }">
7
+ <slot></slot>
8
+ </div>
9
+ <template v-if="showFooter" slot="footer">
10
+ <slot v-if="$slots.footer" name="footer"></slot>
11
+ <div v-else>
12
+ <el-button v-if="showCancelButton" @click="handleClose">{{ cancelText }}</el-button>
13
+ <el-button v-if="showConfirmButton" :loading="loadingBtn" type="primary" @click="handleSubmit" v-preventReClick="5000">
14
+ {{ confirmText }}
15
+ </el-button>
16
+ </div>
17
+ </template>
18
+ </el-dialog>
19
+ </template>
20
+ <script>
21
+ import { Dialog } from 'element-ui';
22
+ import { omit } from 'chain-lodash';
23
+ export default {
24
+ name: 'SDialog',
25
+ props: {
26
+ ...Dialog.props,
27
+ showFooter: {
28
+ type: Boolean,
29
+ default: () => true,
30
+ },
31
+ width: {
32
+ type: [String, Number],
33
+ default: () => '600px',
34
+ },
35
+ // closeOnClickModal: {
36
+ // type: Boolean,
37
+ // default: () => false,
38
+ // },
39
+ loadingBtn: {
40
+ type: Boolean,
41
+ default: () => false,
42
+ },
43
+ visible: {
44
+ type: Boolean,
45
+ default: false,
46
+ },
47
+ showCancelButton: {
48
+ type: Boolean,
49
+ default: () => true,
50
+ },
51
+ showConfirmButton: {
52
+ type: Boolean,
53
+ default: () => true,
54
+ },
55
+ confirmText: {
56
+ type: String,
57
+ default() {
58
+ return this.$t('buttonGroup.sure');
59
+ },
60
+ },
61
+ cancelText: {
62
+ type: String,
63
+ default() {
64
+ return this.$t('buttonGroup.cancel');
65
+ },
66
+ },
67
+ isAuto: {
68
+ type: Boolean,
69
+ default: true,
70
+ },
71
+ },
72
+ data() {
73
+ return {};
74
+ },
75
+ computed: {
76
+ show: {
77
+ get() {
78
+ return this.visible;
79
+ },
80
+ set(val) {
81
+ this.$emit('update:visible', val);
82
+ },
83
+ },
84
+ bindProps() {
85
+ return omit(this.$props, ['visible']);
86
+ },
87
+ },
88
+ deactivated() {
89
+ this.handleClose(); // 在缓存组件时关闭弹窗
90
+ },
91
+ methods: {
92
+ handleSubmit() {
93
+ this.$emit('confirm');
94
+ },
95
+ handleClose() {
96
+ this.$emit('update:visible', false);
97
+ this.$emit('close');
98
+ },
99
+ },
100
+ };
101
+ </script>