@mc-markets/ui 1.0.86 → 1.0.90

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 (76) hide show
  1. package/README.md +40 -141
  2. package/dist/404.html +22 -22
  3. package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts +5 -13
  4. package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts.map +1 -1
  5. package/dist/components/Breadcrumb/BreadcrumbSeparator.vue.d.ts +3 -0
  6. package/dist/components/Breadcrumb/BreadcrumbSeparator.vue.d.ts.map +1 -0
  7. package/dist/components/DatePicker/DatePicker.vue.d.ts +1 -1
  8. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  9. package/dist/components/TabCard/TabCard.vue.d.ts.map +1 -1
  10. package/dist/components/Tag/Tag.vue.d.ts +2 -0
  11. package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
  12. package/dist/index.cjs +1 -5
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.ts +1 -2
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.mjs +605 -661
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/style.css +1 -1
  19. package/package.json +1 -1
  20. package/packages/components/Alert/Alert.vue +139 -139
  21. package/packages/components/Banner/Banner.vue +299 -299
  22. package/packages/components/Breadcrumb/Breadcrumb.vue +113 -77
  23. package/packages/components/Breadcrumb/BreadcrumbSeparator.vue +31 -0
  24. package/packages/components/Button/Button.vue +17 -17
  25. package/packages/components/DatePicker/DatePicker.vue +85 -86
  26. package/packages/components/Dialog/Dialog.vue +61 -61
  27. package/packages/components/Empty/Empty.vue +74 -74
  28. package/packages/components/Form/Form.vue +30 -30
  29. package/packages/components/FormItem/FormItem.vue +19 -19
  30. package/packages/components/Icon/Icon.vue +210 -210
  31. package/packages/components/Input/Input.vue +15 -15
  32. package/packages/components/Message/Message.vue +503 -503
  33. package/packages/components/NotifiMessage/NotifiMessage.vue +293 -293
  34. package/packages/components/Notification/Notification.vue +19 -19
  35. package/packages/components/Option/Option.vue +13 -13
  36. package/packages/components/OptionGroup/OptionGroup.vue +13 -13
  37. package/packages/components/Pagination/Pagination.vue +61 -61
  38. package/packages/components/Radio/Radio.vue +67 -67
  39. package/packages/components/RadioButton/RadioButton.vue +110 -110
  40. package/packages/components/RadioGroup/RadioGroup.vue +155 -155
  41. package/packages/components/Select/Select.vue +22 -22
  42. package/packages/components/Switch/Switch.vue +47 -47
  43. package/packages/components/TabCard/TabCard.vue +107 -177
  44. package/packages/components/TabCard/TabCardItem.vue +105 -102
  45. package/packages/components/Table/Table.vue +17 -17
  46. package/packages/components/Table/TableColumn.vue +20 -20
  47. package/packages/components/Tabs/TabPane.vue +79 -79
  48. package/packages/components/Tabs/Tabs.vue +267 -267
  49. package/packages/components/Tag/Tag.vue +211 -164
  50. package/packages/components/Tooltip/Tooltip.vue +58 -58
  51. package/packages/hooks/useClassName.js +23 -23
  52. package/packages/styles/README.md +129 -129
  53. package/packages/styles/components/button.scss +121 -121
  54. package/packages/styles/components/checkbox.scss +18 -18
  55. package/packages/styles/components/dialog.scss +47 -47
  56. package/packages/styles/components/form.scss +18 -18
  57. package/packages/styles/components/input.scss +14 -14
  58. package/packages/styles/components/select.scss +62 -60
  59. package/packages/styles/components/table.scss +37 -37
  60. package/packages/styles/components/tabs.scss +76 -76
  61. package/packages/styles/components/tag.scss +142 -142
  62. package/packages/styles/font/iconfont.scss +363 -363
  63. package/packages/styles/index.scss +94 -94
  64. package/packages/styles/variables/border-mode.css +6 -6
  65. package/packages/styles/variables/color-modes-dark.css +143 -143
  66. package/packages/styles/variables/index.scss +5 -5
  67. package/packages/styles/variables/primitives-style.css +112 -112
  68. package/packages/styles/variables/radius-mode.css +14 -14
  69. package/packages/styles/variables/spacing-mode.css +20 -20
  70. package/packages/styles/variables/typography-desktop.css +40 -40
  71. package/packages/styles/variables/typography-mobile.css +40 -40
  72. package/packages/utils/classNames.js +23 -23
  73. package/packages/utils/styleUtils.js +105 -105
  74. package/dist/components/Breadcrumb/BreadcrumbItem.vue.d.ts +0 -17
  75. package/dist/components/Breadcrumb/BreadcrumbItem.vue.d.ts.map +0 -1
  76. package/packages/components/Breadcrumb/BreadcrumbItem.vue +0 -142
@@ -1,155 +1,155 @@
1
- <template>
2
- <el-radio-group v-bind="mergedAttrs" :popper-class="computedPopperClass" class="m-radio-group">
3
- <template v-for="(_, name) in $slots" :key="name" #[name]>
4
- <slot :name="name" />
5
- </template>
6
- </el-radio-group>
7
- </template>
8
-
9
- <script setup>
10
- import { computed, useAttrs } from 'vue'
11
-
12
- defineOptions({
13
- name: 'MRadioGroup'
14
- })
15
-
16
- // 定义props
17
- const props = defineProps({
18
- popperClass: {
19
- type: String,
20
- default: ''
21
- }
22
- })
23
-
24
- // 获取attrs
25
- const attrs = useAttrs()
26
-
27
- // 计算popper-class,合并默认类名和外部传入的类名
28
- const computedPopperClass = computed(() => {
29
- const defaultPopperClass = 'mc-radio-group-popper'
30
-
31
- if (attrs.popperClass) {
32
- return `${defaultPopperClass} ${attrs.popperClass}`.trim()
33
- }
34
-
35
- return defaultPopperClass
36
- })
37
-
38
- // 合并其他属性(排除popperClass)
39
- const mergedAttrs = computed(() => {
40
- const { popperClass, ...otherAttrs } = attrs
41
- return otherAttrs
42
- })
43
- </script>
44
-
45
- <style lang="scss">
46
- // RadioGroup popper-class 样式
47
- .mc-radio-group-popper {
48
- // 自定义单选框组样式可以在这里添加
49
- }
50
-
51
- // 自定义主题示例
52
- .mc-radio-group-custom {
53
- .el-radio {
54
- .el-radio__input {
55
- .el-radio__inner {
56
- background: linear-gradient(45deg, #667eea, #764ba2);
57
- border-color: #667eea;
58
-
59
- &:hover {
60
- background: linear-gradient(45deg, #5a6fd8, #6a4190);
61
- border-color: #5a6fd8;
62
- }
63
- }
64
-
65
- &.is-checked .el-radio__inner {
66
- background: linear-gradient(45deg, #4c63d2, #5d3a7e);
67
- border-color: #4c63d2;
68
- }
69
- }
70
-
71
- .el-radio__label {
72
- color: #667eea;
73
- font-weight: 500;
74
- }
75
- }
76
- }
77
-
78
- .mc-radio-group-success {
79
- .el-radio {
80
- .el-radio__input {
81
- .el-radio__inner {
82
- background-color: #67c23a;
83
- border-color: #67c23a;
84
-
85
- &:hover {
86
- background-color: #5daf34;
87
- border-color: #5daf34;
88
- }
89
- }
90
-
91
- &.is-checked .el-radio__inner {
92
- background-color: #529b2e;
93
- border-color: #529b2e;
94
- }
95
- }
96
-
97
- .el-radio__label {
98
- color: #67c23a;
99
- font-weight: 500;
100
- }
101
- }
102
- }
103
-
104
- .mc-radio-group-warning {
105
- .el-radio {
106
- .el-radio__input {
107
- .el-radio__inner {
108
- background-color: #e6a23c;
109
- border-color: #e6a23c;
110
-
111
- &:hover {
112
- background-color: #d4922b;
113
- border-color: #d4922b;
114
- }
115
- }
116
-
117
- &.is-checked .el-radio__inner {
118
- background-color: #c8951f;
119
- border-color: #c8951f;
120
- }
121
- }
122
-
123
- .el-radio__label {
124
- color: #e6a23c;
125
- font-weight: 500;
126
- }
127
- }
128
- }
129
-
130
- .mc-radio-group-danger {
131
- .el-radio {
132
- .el-radio__input {
133
- .el-radio__inner {
134
- background-color: #f56c6c;
135
- border-color: #f56c6c;
136
-
137
- &:hover {
138
- background-color: #f45454;
139
- border-color: #f45454;
140
- }
141
- }
142
-
143
- &.is-checked .el-radio__inner {
144
- background-color: #f24545;
145
- border-color: #f24545;
146
- }
147
- }
148
-
149
- .el-radio__label {
150
- color: #f56c6c;
151
- font-weight: 500;
152
- }
153
- }
154
- }
155
- </style>
1
+ <template>
2
+ <el-radio-group v-bind="mergedAttrs" :popper-class="computedPopperClass" class="m-radio-group">
3
+ <template v-for="(_, name) in $slots" :key="name" #[name]>
4
+ <slot :name="name" />
5
+ </template>
6
+ </el-radio-group>
7
+ </template>
8
+
9
+ <script setup>
10
+ import { computed, useAttrs } from 'vue'
11
+
12
+ defineOptions({
13
+ name: 'MRadioGroup'
14
+ })
15
+
16
+ // 定义props
17
+ const props = defineProps({
18
+ popperClass: {
19
+ type: String,
20
+ default: ''
21
+ }
22
+ })
23
+
24
+ // 获取attrs
25
+ const attrs = useAttrs()
26
+
27
+ // 计算popper-class,合并默认类名和外部传入的类名
28
+ const computedPopperClass = computed(() => {
29
+ const defaultPopperClass = 'mc-radio-group-popper'
30
+
31
+ if (attrs.popperClass) {
32
+ return `${defaultPopperClass} ${attrs.popperClass}`.trim()
33
+ }
34
+
35
+ return defaultPopperClass
36
+ })
37
+
38
+ // 合并其他属性(排除popperClass)
39
+ const mergedAttrs = computed(() => {
40
+ const { popperClass, ...otherAttrs } = attrs
41
+ return otherAttrs
42
+ })
43
+ </script>
44
+
45
+ <style lang="scss">
46
+ // RadioGroup popper-class 样式
47
+ .mc-radio-group-popper {
48
+ // 自定义单选框组样式可以在这里添加
49
+ }
50
+
51
+ // 自定义主题示例
52
+ .mc-radio-group-custom {
53
+ .el-radio {
54
+ .el-radio__input {
55
+ .el-radio__inner {
56
+ background: linear-gradient(45deg, #667eea, #764ba2);
57
+ border-color: #667eea;
58
+
59
+ &:hover {
60
+ background: linear-gradient(45deg, #5a6fd8, #6a4190);
61
+ border-color: #5a6fd8;
62
+ }
63
+ }
64
+
65
+ &.is-checked .el-radio__inner {
66
+ background: linear-gradient(45deg, #4c63d2, #5d3a7e);
67
+ border-color: #4c63d2;
68
+ }
69
+ }
70
+
71
+ .el-radio__label {
72
+ color: #667eea;
73
+ font-weight: 500;
74
+ }
75
+ }
76
+ }
77
+
78
+ .mc-radio-group-success {
79
+ .el-radio {
80
+ .el-radio__input {
81
+ .el-radio__inner {
82
+ background-color: #67c23a;
83
+ border-color: #67c23a;
84
+
85
+ &:hover {
86
+ background-color: #5daf34;
87
+ border-color: #5daf34;
88
+ }
89
+ }
90
+
91
+ &.is-checked .el-radio__inner {
92
+ background-color: #529b2e;
93
+ border-color: #529b2e;
94
+ }
95
+ }
96
+
97
+ .el-radio__label {
98
+ color: #67c23a;
99
+ font-weight: 500;
100
+ }
101
+ }
102
+ }
103
+
104
+ .mc-radio-group-warning {
105
+ .el-radio {
106
+ .el-radio__input {
107
+ .el-radio__inner {
108
+ background-color: #e6a23c;
109
+ border-color: #e6a23c;
110
+
111
+ &:hover {
112
+ background-color: #d4922b;
113
+ border-color: #d4922b;
114
+ }
115
+ }
116
+
117
+ &.is-checked .el-radio__inner {
118
+ background-color: #c8951f;
119
+ border-color: #c8951f;
120
+ }
121
+ }
122
+
123
+ .el-radio__label {
124
+ color: #e6a23c;
125
+ font-weight: 500;
126
+ }
127
+ }
128
+ }
129
+
130
+ .mc-radio-group-danger {
131
+ .el-radio {
132
+ .el-radio__input {
133
+ .el-radio__inner {
134
+ background-color: #f56c6c;
135
+ border-color: #f56c6c;
136
+
137
+ &:hover {
138
+ background-color: #f45454;
139
+ border-color: #f45454;
140
+ }
141
+ }
142
+
143
+ &.is-checked .el-radio__inner {
144
+ background-color: #f24545;
145
+ border-color: #f24545;
146
+ }
147
+ }
148
+
149
+ .el-radio__label {
150
+ color: #f56c6c;
151
+ font-weight: 500;
152
+ }
153
+ }
154
+ }
155
+ </style>
@@ -1,22 +1,22 @@
1
- <template>
2
- <el-select
3
- class="m-select"
4
- :class="{ solid: $attrs.styleType === 'solid' }"
5
- :show-arrow="false"
6
- v-bind="$attrs"
7
- >
8
- <template v-for="(_, name) in $slots" :key="name" #[name]>
9
- <slot :name="name" />
10
- </template>
11
- </el-select>
12
- </template>
13
-
14
- <script setup>
15
- defineOptions({
16
- name: "MSelect",
17
- });
18
- </script>
19
-
20
- <style lang="scss" scoped>
21
-
22
- </style>
1
+ <template>
2
+ <el-select
3
+ class="m-select"
4
+ :class="{ solid: $attrs.styleType === 'solid' }"
5
+ :show-arrow="false"
6
+ v-bind="$attrs"
7
+ >
8
+ <template v-for="(_, name) in $slots" :key="name" #[name]>
9
+ <slot :name="name" />
10
+ </template>
11
+ </el-select>
12
+ </template>
13
+
14
+ <script setup>
15
+ defineOptions({
16
+ name: "MSelect",
17
+ });
18
+ </script>
19
+
20
+ <style lang="scss" scoped>
21
+
22
+ </style>
@@ -1,47 +1,47 @@
1
- <template>
2
- <el-switch v-bind="mergedAttrs" :popper-class="popperClass" class="m-switch">
3
- <template v-for="(_, name) in $slots" :key="name" #[name]>
4
- <slot :name="name" />
5
- </template>
6
- </el-switch>
7
- </template>
8
-
9
- <script setup>
10
- import { useClassName } from "@packages/hooks/useClassName.js";
11
-
12
- defineOptions({
13
- name: "MSwitch",
14
- });
15
-
16
- // 定义props
17
- const props = defineProps({
18
- popperClass: {
19
- type: String,
20
- default: "",
21
- },
22
- });
23
-
24
- // 使用类名 Hook
25
- const { mergedAttrs, className: popperClass } =
26
- useClassName("mc-switch-popper");
27
- </script>
28
-
29
- <style lang="scss">
30
- .m-switch {
31
- &.is-checked {
32
- .el-switch__action {
33
- background-color: var(--all-gray-10);
34
- }
35
- }
36
-
37
- &:not(.is-checked) {
38
- .el-switch__core {
39
- background-color: var(--all-gray-5);
40
- border-color: var(--all-gray-5);
41
- .el-switch__action {
42
- background-color: var(--all-gray-1);
43
- }
44
- }
45
- }
46
- }
47
- </style>
1
+ <template>
2
+ <el-switch v-bind="mergedAttrs" :popper-class="popperClass" class="m-switch">
3
+ <template v-for="(_, name) in $slots" :key="name" #[name]>
4
+ <slot :name="name" />
5
+ </template>
6
+ </el-switch>
7
+ </template>
8
+
9
+ <script setup>
10
+ import { useClassName } from "@packages/hooks/useClassName.js";
11
+
12
+ defineOptions({
13
+ name: "MSwitch",
14
+ });
15
+
16
+ // 定义props
17
+ const props = defineProps({
18
+ popperClass: {
19
+ type: String,
20
+ default: "",
21
+ },
22
+ });
23
+
24
+ // 使用类名 Hook
25
+ const { mergedAttrs, className: popperClass } =
26
+ useClassName("mc-switch-popper");
27
+ </script>
28
+
29
+ <style lang="scss">
30
+ .m-switch {
31
+ &.is-checked {
32
+ .el-switch__action {
33
+ background-color: var(--all-gray-10);
34
+ }
35
+ }
36
+
37
+ &:not(.is-checked) {
38
+ .el-switch__core {
39
+ background-color: var(--all-gray-5);
40
+ border-color: var(--all-gray-5);
41
+ .el-switch__action {
42
+ background-color: var(--all-gray-1);
43
+ }
44
+ }
45
+ }
46
+ }
47
+ </style>