51 | * ```
52 | */
53 | export default {
54 | beforeMount(el, binding, vnode) {
55 | // console.log(binding)
56 | nodeList.push(el);
57 | const id = seed++;
58 | el[ctx] = {
59 | id,
60 | documentHandler: createDocumentHandler(el, binding, vnode),
61 | methodName: binding.value.name,
62 | bindingFn: binding.value
63 | };
64 | console.log('v-clickout:', el[ctx])
65 | },
66 |
67 | updated(el, binding, vnode) {
68 | el[ctx].documentHandler = createDocumentHandler(el, binding, vnode);
69 | el[ctx].methodName = binding.value.name;
70 | el[ctx].bindingFn = binding.value;
71 | },
72 |
73 | unmounted(el) {
74 | let len = nodeList.length;
75 |
76 | for (let i = 0; i < len; i++) {
77 | if (nodeList[i][ctx].id === el[ctx].id) {
78 | nodeList.splice(i, 1);
79 | break;
80 | }
81 | }
82 | delete el[ctx];
83 | }
84 | };
85 |
--------------------------------------------------------------------------------
/src/theme-chalk/src/mixins/_button.scss:
--------------------------------------------------------------------------------
1 | @import "../common/var";
2 | @mixin button-plain($color) {
3 | color: $color;
4 | background: mix($--color-white, $color, 90%);
5 | border-color: mix($--color-white, $color, 60%);
6 |
7 | &:hover,
8 | &:focus {
9 | background: $color;
10 | border-color: $color;
11 | color: $--color-white;
12 | }
13 |
14 | &:active {
15 | background: mix($--color-black, $color, $--button-active-shade-percent);
16 | border-color: mix($--color-black, $color, $--button-active-shade-percent);
17 | color: $--color-white;
18 | outline: none;
19 | }
20 |
21 | &.is-disabled {
22 | &,
23 | &:hover,
24 | &:focus,
25 | &:active {
26 | color: mix($--color-white, $color, 40%);
27 | background-color: mix($--color-white, $color, 90%);
28 | border-color: mix($--color-white, $color, 80%);
29 | }
30 | }
31 | }
32 |
33 | @mixin button-variant($color, $background-color, $border-color) {
34 | color: $color;
35 | background-color: $background-color;
36 | border-color: $border-color;
37 |
38 | &:hover,
39 | &:focus {
40 | background: mix($--color-white, $background-color, $--button-hover-tint-percent);
41 | border-color: mix($--color-white, $border-color, $--button-hover-tint-percent);
42 | color: $color;
43 | }
44 |
45 | &:active {
46 | background: mix($--color-black, $background-color, $--button-active-shade-percent);
47 | border-color: mix($--color-black, $border-color, $--button-active-shade-percent);
48 | color: $color;
49 | outline: none;
50 | }
51 |
52 | &.is-active {
53 | background: mix($--color-black, $background-color, $--button-active-shade-percent);
54 | border-color: mix($--color-black, $border-color, $--button-active-shade-percent);
55 | color: $color;
56 | }
57 |
58 | &.is-disabled {
59 | &,
60 | &:hover,
61 | &:focus,
62 | &:active {
63 | color: $--color-white;
64 | background-color: mix($background-color, $--color-white);
65 | border-color: mix($border-color, $--color-white);
66 | }
67 | }
68 |
69 | &.is-plain {
70 | @include button-plain($background-color);
71 | }
72 | }
73 |
74 | @mixin button-size($padding-vertical, $padding-horizontal, $font-size, $border-radius) {
75 | padding: $padding-vertical $padding-horizontal;
76 | font-size: $font-size;
77 | border-radius: $border-radius;
78 | &.is-round {
79 | padding: $padding-vertical $padding-horizontal;
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/src/theme-chalk/src/index.scss:
--------------------------------------------------------------------------------
1 | @import "./base.scss";
2 | @import "./pagination.scss";
3 | @import "./dialog.scss";
4 | @import "./autocomplete.scss";
5 | @import "./dropdown.scss";
6 | @import "./dropdown-menu.scss";
7 | @import "./dropdown-item.scss";
8 | @import "./menu.scss";
9 | @import "./submenu.scss";
10 | @import "./menu-item.scss";
11 | @import "./menu-item-group.scss";
12 | @import "./input.scss";
13 | @import "./input-number.scss";
14 | @import "./radio.scss";
15 | @import "./radio-group.scss";
16 | @import "./radio-button.scss";
17 | @import "./checkbox.scss";
18 | @import "./checkbox-button.scss";
19 | @import "./checkbox-group.scss";
20 | @import "./switch.scss";
21 | @import "./select.scss";
22 | @import "./button.scss";
23 | @import "./button-group.scss";
24 | @import "./table.scss";
25 | @import "./table-column.scss";
26 | @import "./date-picker.scss";
27 | @import "./time-select.scss";
28 | @import "./time-picker.scss";
29 | @import "./popover.scss";
30 | @import "./tooltip.scss";
31 | @import "./message-box.scss";
32 | @import "./breadcrumb.scss";
33 | @import "./breadcrumb-item.scss";
34 | @import "./form.scss";
35 | @import "./form-item.scss";
36 | @import "./tabs.scss";
37 | @import "./tab-pane.scss";
38 | @import "./tag.scss";
39 | @import "./tree.scss";
40 | @import "./alert.scss";
41 | @import "./notification.scss";
42 | @import "./slider.scss";
43 | @import "./loading.scss";
44 | @import "./row.scss";
45 | @import "./col.scss";
46 | @import "./upload.scss";
47 | @import "./progress.scss";
48 | @import "./spinner.scss";
49 | @import "./message.scss";
50 | @import "./badge.scss";
51 | @import "./card.scss";
52 | @import "./rate.scss";
53 | @import "./steps.scss";
54 | @import "./step.scss";
55 | @import "./carousel.scss";
56 | @import "./scrollbar.scss";
57 | @import "./carousel-item.scss";
58 | @import "./collapse.scss";
59 | @import "./collapse-item.scss";
60 | @import "./cascader.scss";
61 | @import "./color-picker.scss";
62 | @import "./transfer.scss";
63 | @import "./container.scss";
64 | @import "./header.scss";
65 | @import "./aside.scss";
66 | @import "./main.scss";
67 | @import "./footer.scss";
68 | @import "./timeline.scss";
69 | @import "./timeline-item.scss";
70 | @import "./link.scss";
71 | @import "./divider.scss";
72 | @import "./image.scss";
73 | @import "./calendar.scss";
74 | @import "./backtop.scss";
75 | @import "./infinite-scroll.scss";
76 | @import "./page-header.scss";
77 | @import "./cascader-panel.scss";
78 | @import "./avatar.scss";
79 | @import "./drawer.scss";
80 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "scripts": {
4 | "dev": "cross-env NODE_ENV=development webpack-dev-server --config build/webpack.config.dev.js",
5 | "build": "cross-env NODE_ENV=production webpack --config build/webpack.config.prd.js",
6 | "test:jest": "jest --config test/jest.config.js",
7 | "org_dev": "webpack-dev-server --env.prod"
8 | },
9 | "dependencies": {
10 | "@popperjs/core": "^2.4.3",
11 | "async-validator": "^3.3.0",
12 | "core-js": "^3.6.5",
13 | "deepmerge": "^4.2.2",
14 | "lodash": "^4.17.15",
15 | "resize-observer-polyfill": "^1.5.1",
16 | "vue": "^3.0.0-rc.5",
17 | "vue-router": "^4.0.0-beta.2",
18 | "vuex": "^4.0.0-beta.4"
19 | },
20 | "devDependencies": {
21 | "@ant-design-vue/babel-helper-vue-transform-on": "^1.0.1",
22 | "@ant-design-vue/babel-plugin-jsx": "^1.0.0-rc.1",
23 | "@babel/core": "^7.10.2",
24 | "@babel/preset-env": "^7.11.0",
25 | "@babel/preset-react": "^7.10.1",
26 | "@babel/preset-typescript": "^7.10.1",
27 | "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
28 | "@vue/babel-preset-app": "^4.4.4",
29 | "@vue/compiler-sfc": "^3.0.0-rc.5",
30 | "@vue/test-utils": "^2.0.0-beta.2",
31 | "babel-eslint": "^10.1.0",
32 | "babel-jest": "26.2.2",
33 | "babel-loader": "^8.1.0",
34 | "case-sensitive-paths-webpack-plugin": "^2.3.0",
35 | "chai": "^4.2.0",
36 | "clean-webpack-plugin": "^3.0.0",
37 | "copy-webpack-plugin": "^5.1.1",
38 | "cross-env": "^7.0.2",
39 | "css-loader": "^3.4.2",
40 | "eslint": "^7.3.1",
41 | "eslint-loader": "^4.0.2",
42 | "eslint-plugin-vue": "^7.0.0-beta.1",
43 | "file-loader": "^6.0.0",
44 | "fork-ts-checker-webpack-plugin": "^4.1.3",
45 | "friendly-errors-webpack-plugin": "^1.7.0",
46 | "html-webpack-plugin": "^4.2.1",
47 | "jest": "^26.2.2",
48 | "jest-transform-stub": "^2.0.0",
49 | "jsdom": "^16.3.0",
50 | "mini-css-extract-plugin": "^0.9.0",
51 | "mocha": "^8.0.1",
52 | "sass": "^1.26.5",
53 | "sass-loader": "^8.0.2",
54 | "terser-webpack-plugin": "^3.0.1",
55 | "ts-loader": "^7.0.4",
56 | "typescript": "~3.7.5",
57 | "url-loader": "^4.0.0",
58 | "vue-jest": "^5.0.0-alpha.2",
59 | "vue-loader": "^16.0.0-beta.4",
60 | "vue-style-loader": "^4.1.2",
61 | "webpack": "^4.43.0",
62 | "webpack-bundle-analyzer": "^3.8.0",
63 | "webpack-cli": "^3.3.11",
64 | "webpack-dev-server": "^3.10.3",
65 | "webpack-merge": "^4.2.2"
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/src/theme-chalk/src/notification.scss:
--------------------------------------------------------------------------------
1 | @import "mixins/mixins";
2 | @import "common/var";
3 |
4 | @include b(notification) {
5 | display: flex;
6 | width: $--notification-width;
7 | padding: $--notification-padding;
8 | border-radius: $--notification-radius;
9 | box-sizing: border-box;
10 | border: 1px solid $--notification-border-color;
11 | position: fixed;
12 | background-color: $--color-white;
13 | box-shadow: $--notification-shadow;
14 | transition: opacity .3s, transform .3s, left .3s, right .3s, top 0.4s, bottom .3s;
15 | overflow: hidden;
16 |
17 | &.right {
18 | right: 16px;
19 | }
20 |
21 | &.left {
22 | left: 16px;
23 | }
24 |
25 | @include e(group) {
26 | margin-left: $--notification-group-margin-left;
27 | margin-right: $--notification-group-margin-right;
28 | }
29 |
30 | @include e(title) {
31 | font-weight: bold;
32 | font-size: $--notification-title-font-size;
33 | color: $--notification-title-color;
34 | margin: 0;
35 | }
36 |
37 | @include e(content) {
38 | font-size: $--notification-content-font-size;
39 | line-height: 21px;
40 | margin: 6px 0 0 0;
41 | color: $--notification-content-color;
42 | text-align: justify;
43 |
44 | p {
45 | margin: 0;
46 | }
47 | }
48 |
49 | @include e(icon) {
50 | height: $--notification-icon-size;
51 | width: $--notification-icon-size;
52 | font-size: $--notification-icon-size;
53 | }
54 |
55 | @include e(closeBtn) {
56 | position: absolute;
57 | top: 18px;
58 | right: 15px;
59 | cursor: pointer;
60 | color: $--notification-close-color;
61 | font-size: $--notification-close-font-size;
62 |
63 | &:hover {
64 | color: $--notification-close-hover-color;
65 | }
66 | }
67 |
68 | .el-icon-success {
69 | color: $--notification-success-icon-color;
70 | }
71 |
72 | .el-icon-error {
73 | color: $--notification-danger-icon-color;
74 | }
75 |
76 | .el-icon-info {
77 | color: $--notification-info-icon-color;
78 | }
79 |
80 | .el-icon-warning {
81 | color: $--notification-warning-icon-color;
82 | }
83 | }
84 |
85 | .el-notification-fade-enter {
86 | &.right {
87 | right: 0;
88 | transform: translateX(100%);
89 | }
90 |
91 | &.left {
92 | left: 0;
93 | transform: translateX(-100%);
94 | }
95 | }
96 |
97 | .el-notification-fade-leave-active {
98 | opacity: 0;
99 | }
100 |
--------------------------------------------------------------------------------
/example/views/Layout.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Layout
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
92 |
--------------------------------------------------------------------------------
/src/theme-chalk/src/date-picker/time-spinner.scss:
--------------------------------------------------------------------------------
1 | @import "../common/var";
2 |
3 | @include b(time-spinner) {
4 | &.has-seconds {
5 | .el-time-spinner__wrapper {
6 | width: 33.3%;
7 | }
8 | }
9 |
10 | @include e(wrapper) {
11 | max-height: 190px;
12 | overflow: auto;
13 | display: inline-block;
14 | width: 50%;
15 | vertical-align: top;
16 | position: relative;
17 |
18 | & .el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default) {
19 | padding-bottom: 15px;
20 | }
21 |
22 | @include when(arrow) {
23 | box-sizing: border-box;
24 | text-align: center;
25 | overflow: hidden;
26 |
27 | .el-time-spinner__list {
28 | transform: translateY(-32px);
29 | }
30 |
31 | .el-time-spinner__item:hover:not(.disabled):not(.active) {
32 | background: $--color-white;
33 | cursor: default;
34 | }
35 | }
36 | }
37 |
38 | @include e(arrow) {
39 | font-size: 12px;
40 | color: $--color-text-secondary;
41 | position: absolute;
42 | left: 0;
43 | width: 100%;
44 | z-index: $--index-normal;
45 | text-align: center;
46 | height: 30px;
47 | line-height: 30px;
48 | cursor: pointer;
49 |
50 | &:hover {
51 | color: $--color-primary;
52 | }
53 |
54 | &.el-icon-arrow-up {
55 | top: 10px;
56 | }
57 |
58 | &.el-icon-arrow-down {
59 | bottom: 10px;
60 | }
61 | }
62 |
63 | @include e(input) {
64 | &.el-input {
65 | width: 70%;
66 |
67 | .el-input__inner {
68 | padding: 0;
69 | text-align: center;
70 | }
71 | }
72 | }
73 |
74 | @include e(list) {
75 | padding: 0;
76 | margin: 0;
77 | list-style: none;
78 | text-align: center;
79 |
80 | &::after,
81 | &::before {
82 | content: '';
83 | display: block;
84 | width: 100%;
85 | height: 80px;
86 | }
87 | }
88 |
89 | @include e(item) {
90 | height: 32px;
91 | line-height: 32px;
92 | font-size: 12px;
93 | color: $--color-text-regular;
94 |
95 | &:hover:not(.disabled):not(.active) {
96 | background: $--background-color-base;
97 | cursor: pointer;
98 | }
99 |
100 | &.active:not(.disabled) {
101 | color: $--color-text-primary;
102 | font-weight: bold;
103 | }
104 |
105 | &.disabled {
106 | color: $--color-text-placeholder;
107 | cursor: not-allowed;
108 | }
109 | }
110 | }
111 |
--------------------------------------------------------------------------------
/example/views/Container.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Container
4 |
5 | Header
6 | Main
7 |
8 |
9 |
10 | Header
11 | Main
12 | Footer
13 |
14 |
15 |
16 | Aside
17 | Main
18 |
19 |
20 |
21 | Header
22 |
23 | Aside
24 | Main
25 |
26 |
27 |
28 |
29 | Header
30 |
31 | Aside
32 |
33 | Main
34 | Footer
35 |
36 |
37 |
38 |
39 |
40 |
41 | Aside
42 |
43 | Header
44 | Main
45 |
46 |
47 |
48 |
49 |
50 | Aside
51 |
52 | Header
53 | Main
54 | Footer
55 |
56 |
57 |
58 |
59 |
60 |
67 |
68 |
103 |
--------------------------------------------------------------------------------
/src/theme-chalk/src/cascader-panel.scss:
--------------------------------------------------------------------------------
1 | @import "mixins/mixins";
2 | @import "common/var";
3 | @import "./checkbox";
4 | @import "./radio";
5 | @import "./scrollbar";
6 |
7 | @include b(cascader-panel) {
8 | display: flex;
9 | border-radius: $--cascader-menu-radius;
10 | font-size: $--cascader-menu-font-size;
11 |
12 | @include when(bordered) {
13 | border: $--cascader-menu-border;
14 | border-radius: $--cascader-menu-radius;
15 | }
16 | }
17 |
18 | @include b(cascader-menu) {
19 | min-width: 180px;
20 | box-sizing: border-box;
21 | color: $--cascader-menu-font-color;
22 | border-right: $--cascader-menu-border;
23 |
24 | &:last-child {
25 | border-right: none;
26 | .el-cascader-node {
27 | padding-right: 20px;
28 | }
29 | }
30 |
31 | @include e(wrap) {
32 | height: 204px;
33 | }
34 |
35 | @include e(list) {
36 | position: relative;
37 | min-height: 100%;
38 | margin: 0;
39 | padding: 6px 0;
40 | list-style: none;
41 | box-sizing: border-box;
42 | }
43 |
44 | @include e(hover-zone) {
45 | position: absolute;
46 | top: 0;
47 | left: 0;
48 | width: 100%;
49 | height: 100%;
50 | pointer-events: none;
51 | }
52 |
53 | @include e(empty-text) {
54 | position: absolute;
55 | top: 50%;
56 | left: 50%;
57 | transform: translate(-50%, -50%);
58 | text-align: center;
59 | color: $--cascader-color-empty;
60 | }
61 | }
62 |
63 | @include b(cascader-node) {
64 | position: relative;
65 | display: flex;
66 | align-items: center;
67 | padding: 0 30px 0 20px;
68 | height: 34px;
69 | line-height: 34px;
70 | outline: none;
71 |
72 | &.is-selectable.in-active-path {
73 | color: $--cascader-menu-font-color;
74 | }
75 |
76 | &.in-active-path,
77 | &.is-selectable.in-checked-path,
78 | &.is-active {
79 | color: $--cascader-menu-selected-font-color;
80 | font-weight: bold;
81 | }
82 |
83 | &:not(.is-disabled) {
84 | cursor: pointer;
85 | &:hover, &:focus {
86 | background: $--cascader-node-background-hover;
87 | }
88 | }
89 |
90 | @include when(disabled) {
91 | color: $--cascader-node-color-disabled;
92 | cursor: not-allowed;
93 | }
94 |
95 | @include e(prefix) {
96 | position: absolute;
97 | left: 10px;
98 | }
99 |
100 | @include e(postfix) {
101 | position: absolute;
102 | right: 10px;
103 | }
104 |
105 | @include e(label) {
106 | flex: 1;
107 | padding: 0 10px;
108 | white-space: nowrap;
109 | overflow: hidden;
110 | text-overflow: ellipsis;
111 | }
112 |
113 | > .el-checkbox {
114 | margin-right: 0;
115 | }
116 |
117 | > .el-radio {
118 | margin-right: 0;
119 |
120 | .el-radio__label {
121 | padding-left: 0;
122 | }
123 | }
124 | }
125 |
--------------------------------------------------------------------------------
/src/theme-chalk/src/popper.scss:
--------------------------------------------------------------------------------
1 | @import "mixins/mixins";
2 | @import "common/var";
3 |
4 | @include b(popper) {
5 | .popper__arrow,
6 | .popper__arrow::after {
7 | position: absolute;
8 | display: block;
9 | width: 0;
10 | height: 0;
11 | border-color: transparent;
12 | border-style: solid;
13 | }
14 |
15 | .popper__arrow {
16 | border-width: $--popover-arrow-size;
17 | filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03))
18 | }
19 |
20 | .popper__arrow::after {
21 | content: " ";
22 | border-width: $--popover-arrow-size;
23 | }
24 |
25 | &[x-placement^="top"] {
26 | margin-bottom: #{$--popover-arrow-size + 6};
27 | }
28 |
29 | &[x-placement^="top"] .popper__arrow {
30 | bottom: -$--popover-arrow-size;
31 | left: 50%;
32 | margin-right: #{$--tooltip-arrow-size / 2};
33 | border-top-color: $--popover-border-color;
34 | border-bottom-width: 0;
35 |
36 | &::after {
37 | bottom: 1px;
38 | margin-left: -$--popover-arrow-size;
39 | border-top-color: $--popover-background-color;
40 | border-bottom-width: 0;
41 | }
42 | }
43 |
44 | &[x-placement^="bottom"] {
45 | margin-top: #{$--popover-arrow-size + 6};
46 | }
47 |
48 | &[x-placement^="bottom"] .popper__arrow {
49 | top: -$--popover-arrow-size;
50 | left: 50%;
51 | margin-right: #{$--tooltip-arrow-size / 2};
52 | border-top-width: 0;
53 | border-bottom-color: $--popover-border-color;
54 |
55 | &::after {
56 | top: 1px;
57 | margin-left: -$--popover-arrow-size;
58 | border-top-width: 0;
59 | border-bottom-color: $--popover-background-color;
60 | }
61 | }
62 |
63 | &[x-placement^="right"] {
64 | margin-left: #{$--popover-arrow-size + 6};
65 | }
66 |
67 | &[x-placement^="right"] .popper__arrow {
68 | top: 50%;
69 | left: -$--popover-arrow-size;
70 | margin-bottom: #{$--tooltip-arrow-size / 2};
71 | border-right-color: $--popover-border-color;
72 | border-left-width: 0;
73 |
74 | &::after {
75 | bottom: -$--popover-arrow-size;
76 | left: 1px;
77 | border-right-color: $--popover-background-color;
78 | border-left-width: 0;
79 | }
80 | }
81 |
82 | &[x-placement^="left"] {
83 | margin-right: #{$--popover-arrow-size + 6};
84 | }
85 |
86 | &[x-placement^="left"] .popper__arrow {
87 | top: 50%;
88 | right: -$--popover-arrow-size;
89 | margin-bottom: #{$--tooltip-arrow-size / 2};
90 | border-right-width: 0;
91 | border-left-color: $--popover-border-color;
92 |
93 | &::after {
94 | right: 1px;
95 | bottom: -$--popover-arrow-size;
96 | margin-left: -$--popover-arrow-size;
97 | border-right-width: 0;
98 | border-left-color: $--popover-background-color;
99 | }
100 | }
101 | }
--------------------------------------------------------------------------------
/src/theme-chalk/src/dialog.scss:
--------------------------------------------------------------------------------
1 | @import "mixins/mixins";
2 | @import "mixins/utils";
3 | @import "common/var";
4 | @import "common/popup";
5 |
6 | @include b(dialog) {
7 | position: relative;
8 | margin: 0 auto 50px;
9 | background: $--dialog-background-color;
10 | border-radius: $--border-radius-small;
11 | box-shadow: $--dialog-box-shadow;
12 | box-sizing: border-box;
13 | width: 50%;
14 |
15 | @include when(fullscreen) {
16 | width: 100%;
17 | margin-top: 0;
18 | margin-bottom: 0;
19 | height: 100%;
20 | overflow: auto;
21 | }
22 |
23 | @include e(wrapper) {
24 | position: fixed;
25 | top: 0;
26 | right: 0;
27 | bottom: 0;
28 | left: 0;
29 | overflow: auto;
30 | margin: 0;
31 | }
32 |
33 | @include e(header) {
34 | padding: $--dialog-padding-primary;
35 | padding-bottom: 10px;
36 | }
37 |
38 | @include e(headerbtn) {
39 | position: absolute;
40 | top: $--dialog-padding-primary;
41 | right: $--dialog-padding-primary;
42 | padding: 0;
43 | background: transparent;
44 | border: none;
45 | outline: none;
46 | cursor: pointer;
47 | font-size: $--message-close-size;
48 |
49 | .el-dialog__close {
50 | color: $--color-info;
51 | }
52 |
53 | &:focus, &:hover {
54 | .el-dialog__close {
55 | color: $--color-primary;
56 | }
57 | }
58 | }
59 |
60 | @include e(title) {
61 | line-height: $--dialog-font-line-height;
62 | font-size: $--dialog-title-font-size;
63 | color: $--color-text-primary;
64 | }
65 |
66 | @include e(body) {
67 | padding: 30px 20px;
68 | color: $--color-text-regular;
69 | font-size: $--dialog-content-font-size;
70 | word-break: break-all;
71 | }
72 |
73 | @include e(footer) {
74 | padding: $--dialog-padding-primary;
75 | padding-top: 10px;
76 | text-align: right;
77 | box-sizing: border-box;
78 | }
79 |
80 | // 内容居中布局
81 | @include m(center) {
82 | text-align: center;
83 |
84 | @include e(body) {
85 | text-align: initial;
86 | padding: 25px ($--dialog-padding-primary + 5px) 30px;
87 | }
88 |
89 | @include e(footer) {
90 | text-align: inherit;
91 | }
92 | }
93 | }
94 |
95 | .dialog-fade-enter-active {
96 | animation: dialog-fade-in .3s;
97 | }
98 |
99 | .dialog-fade-leave-active {
100 | animation: dialog-fade-out .3s;
101 | }
102 |
103 | @keyframes dialog-fade-in {
104 | 0% {
105 | transform: translate3d(0, -20px, 0);
106 | opacity: 0;
107 | }
108 | 100% {
109 | transform: translate3d(0, 0, 0);
110 | opacity: 1;
111 | }
112 | }
113 |
114 | @keyframes dialog-fade-out {
115 | 0% {
116 | transform: translate3d(0, 0, 0);
117 | opacity: 1;
118 | }
119 | 100% {
120 | transform: translate3d(0, -20px, 0);
121 | opacity: 0;
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/src/locale/lang/zh-CN.js:
--------------------------------------------------------------------------------
1 | export default {
2 | el: {
3 | colorpicker: {
4 | confirm: '确定',
5 | clear: '清空'
6 | },
7 | datepicker: {
8 | now: '此刻',
9 | today: '今天',
10 | cancel: '取消',
11 | clear: '清空',
12 | confirm: '确定',
13 | selectDate: '选择日期',
14 | selectTime: '选择时间',
15 | startDate: '开始日期',
16 | startTime: '开始时间',
17 | endDate: '结束日期',
18 | endTime: '结束时间',
19 | prevYear: '前一年',
20 | nextYear: '后一年',
21 | prevMonth: '上个月',
22 | nextMonth: '下个月',
23 | year: '年',
24 | month1: '1 月',
25 | month2: '2 月',
26 | month3: '3 月',
27 | month4: '4 月',
28 | month5: '5 月',
29 | month6: '6 月',
30 | month7: '7 月',
31 | month8: '8 月',
32 | month9: '9 月',
33 | month10: '10 月',
34 | month11: '11 月',
35 | month12: '12 月',
36 | // week: '周次',
37 | weeks: {
38 | sun: '日',
39 | mon: '一',
40 | tue: '二',
41 | wed: '三',
42 | thu: '四',
43 | fri: '五',
44 | sat: '六'
45 | },
46 | months: {
47 | jan: '一月',
48 | feb: '二月',
49 | mar: '三月',
50 | apr: '四月',
51 | may: '五月',
52 | jun: '六月',
53 | jul: '七月',
54 | aug: '八月',
55 | sep: '九月',
56 | oct: '十月',
57 | nov: '十一月',
58 | dec: '十二月'
59 | }
60 | },
61 | select: {
62 | loading: '加载中',
63 | noMatch: '无匹配数据',
64 | noData: '无数据',
65 | placeholder: '请选择'
66 | },
67 | cascader: {
68 | noMatch: '无匹配数据',
69 | loading: '加载中',
70 | placeholder: '请选择',
71 | noData: '暂无数据'
72 | },
73 | pagination: {
74 | goto: '前往',
75 | pagesize: '条/页',
76 | total: '共 {total} 条',
77 | pageClassifier: '页'
78 | },
79 | messagebox: {
80 | title: '提示',
81 | confirm: '确定',
82 | cancel: '取消',
83 | error: '输入的数据不合法!'
84 | },
85 | upload: {
86 | deleteTip: '按 delete 键可删除',
87 | delete: '删除',
88 | preview: '查看图片',
89 | continue: '继续上传'
90 | },
91 | table: {
92 | emptyText: '暂无数据',
93 | confirmFilter: '筛选',
94 | resetFilter: '重置',
95 | clearFilter: '全部',
96 | sumText: '合计'
97 | },
98 | tree: {
99 | emptyText: '暂无数据'
100 | },
101 | transfer: {
102 | noMatch: '无匹配数据',
103 | noData: '无数据',
104 | titles: ['列表 1', '列表 2'],
105 | filterPlaceholder: '请输入搜索内容',
106 | noCheckedFormat: '共 {total} 项',
107 | hasCheckedFormat: '已选 {checked}/{total} 项'
108 | },
109 | image: {
110 | error: '加载失败'
111 | },
112 | pageHeader: {
113 | title: '返回'
114 | },
115 | popconfirm: {
116 | confirmButtonText: '确定',
117 | cancelButtonText: '取消'
118 | }
119 | }
120 | };
121 |
--------------------------------------------------------------------------------
/src/theme-chalk/src/switch.scss:
--------------------------------------------------------------------------------
1 | @import "mixins/mixins";
2 | @import "common/var";
3 |
4 | @include b(switch) {
5 | display: inline-flex;
6 | align-items: center;
7 | position: relative;
8 | font-size: $--switch-font-size;
9 | line-height: $--switch-height;
10 | height: $--switch-height;
11 | vertical-align: middle;
12 | @include when(disabled) {
13 | & .el-switch__core,
14 | & .el-switch__label {
15 | cursor: not-allowed;
16 | }
17 | }
18 |
19 | @include e(label) {
20 | transition: .2s;
21 | height: $--switch-height;
22 | display: inline-block;
23 | font-size: $--switch-font-size;
24 | font-weight: 500;
25 | cursor: pointer;
26 | vertical-align: middle;
27 | color: $--color-text-primary;
28 |
29 | @include when(active) {
30 | color: $--color-primary;
31 | }
32 |
33 | @include m(left) {
34 | margin-right: 10px;
35 | }
36 | @include m(right) {
37 | margin-left: 10px;
38 | }
39 | & * {
40 | line-height: 1;
41 | font-size: $--switch-font-size;
42 | display: inline-block;
43 | }
44 | }
45 |
46 | @include e(input) {
47 | position: absolute;
48 | width: 0;
49 | height: 0;
50 | opacity: 0;
51 | margin: 0;
52 | }
53 |
54 | @include e(core) {
55 | margin: 0;
56 | display: inline-block;
57 | position: relative;
58 | width: $--switch-width;
59 | height: $--switch-height;
60 | border: 1px solid $--switch-off-color;
61 | outline: none;
62 | border-radius: $--switch-core-border-radius;
63 | box-sizing: border-box;
64 | background: $--switch-off-color;
65 | cursor: pointer;
66 | transition: border-color .3s, background-color .3s;
67 | vertical-align: middle;
68 |
69 | &:after {
70 | content: "";
71 | position: absolute;
72 | top: 1px;
73 | left: 1px;
74 | border-radius: $--border-radius-circle;
75 | transition: all .3s;
76 | width: $--switch-button-size;
77 | height: $--switch-button-size;
78 | background-color: $--color-white;
79 | }
80 | }
81 |
82 | @include when(checked) {
83 | .el-switch__core {
84 | border-color: $--switch-on-color;
85 | background-color: $--switch-on-color;
86 | &::after {
87 | left: 100%;
88 | margin-left: -$--switch-button-size - 1px;
89 | }
90 | }
91 | }
92 |
93 | @include when(disabled) {
94 | opacity: 0.6;
95 | }
96 |
97 | @include m(wide) {
98 | .el-switch__label {
99 | &.el-switch__label--left {
100 | span {
101 | left: 10px;
102 | }
103 | }
104 | &.el-switch__label--right {
105 | span {
106 | right: 10px;
107 | }
108 | }
109 | }
110 | }
111 |
112 | & .label-fade-enter,
113 | & .label-fade-leave-active {
114 | opacity: 0;
115 | }
116 | }
117 |
--------------------------------------------------------------------------------
/packages/button/src/button.vue:
--------------------------------------------------------------------------------
1 |
2 |
30 |
31 |
115 |
--------------------------------------------------------------------------------
/src/theme-chalk/src/date-picker/picker-panel.scss:
--------------------------------------------------------------------------------
1 | @import "../common/var";
2 |
3 | @include b(picker-panel) {
4 | color: $--color-text-regular;
5 | border: 1px solid $--datepicker-border-color;
6 | box-shadow: $--box-shadow-light;
7 | background: $--color-white;
8 | border-radius: $--border-radius-base;
9 | line-height: 30px;
10 | margin: 5px 0;
11 |
12 | @include e((body, body-wrapper)) {
13 | &::after {
14 | content: "";
15 | display: table;
16 | clear: both;
17 | }
18 | }
19 |
20 | @include e(content) {
21 | position: relative;
22 | margin: 15px;
23 | }
24 |
25 | @include e(footer) {
26 | border-top: 1px solid $--datepicker-inner-border-color;
27 | padding: 4px;
28 | text-align: right;
29 | background-color: $--color-white;
30 | position: relative;
31 | font-size: 0;
32 | }
33 |
34 | @include e(shortcut) {
35 | display: block;
36 | width: 100%;
37 | border: 0;
38 | background-color: transparent;
39 | line-height: 28px;
40 | font-size: 14px;
41 | color: $--datepicker-font-color;
42 | padding-left: 12px;
43 | text-align: left;
44 | outline: none;
45 | cursor: pointer;
46 |
47 | &:hover {
48 | color: $--datepicker-hover-font-color;
49 | }
50 |
51 | &.active {
52 | background-color: #e6f1fe;
53 | color: $--datepicker-active-color;
54 | }
55 | }
56 |
57 | @include e(btn) {
58 | border: 1px solid #dcdcdc;
59 | color: #333;
60 | line-height: 24px;
61 | border-radius: 2px;
62 | padding: 0 20px;
63 | cursor: pointer;
64 | background-color: transparent;
65 | outline: none;
66 | font-size: 12px;
67 |
68 | &[disabled] {
69 | color: #cccccc;
70 | cursor: not-allowed;
71 | }
72 | }
73 |
74 | @include e(icon-btn) {
75 | font-size: 12px;
76 | color: $--datepicker-icon-color;
77 | border: 0;
78 | background: transparent;
79 | cursor: pointer;
80 | outline: none;
81 | margin-top: 8px;
82 |
83 | &:hover {
84 | color: $--datepicker-hover-font-color;
85 | }
86 |
87 | @include when(disabled) {
88 | color: $--font-color-disabled-base;
89 |
90 | &:hover {
91 | cursor: not-allowed;
92 | }
93 | }
94 | }
95 |
96 | @include e(link-btn) {
97 | vertical-align: middle;
98 | }
99 | }
100 |
101 | .el-picker-panel *[slot=sidebar],
102 | .el-picker-panel__sidebar {
103 | position: absolute;
104 | top: 0;
105 | bottom: 0;
106 | width: 110px;
107 | border-right: 1px solid $--datepicker-inner-border-color;
108 | box-sizing: border-box;
109 | padding-top: 6px;
110 | background-color: $--color-white;
111 | overflow: auto;
112 | }
113 |
114 | .el-picker-panel *[slot=sidebar] + .el-picker-panel__body,
115 | .el-picker-panel__sidebar + .el-picker-panel__body {
116 | margin-left: 110px;
117 | }
118 |
--------------------------------------------------------------------------------
/src/theme-chalk/src/message.scss:
--------------------------------------------------------------------------------
1 | @import "mixins/mixins";
2 | @import "common/var";
3 |
4 | @include b(message) {
5 | min-width: $--message-min-width;
6 | box-sizing: border-box;
7 | border-radius: $--border-radius-base;
8 | border-width: $--border-width-base;
9 | border-style: $--border-style-base;
10 | border-color: $--border-color-lighter;
11 | position: fixed;
12 | left: 50%;
13 | top: 20px;
14 | transform: translateX(-50%);
15 | background-color: $--message-background-color;
16 | transition: opacity 0.3s, transform .4s, top 0.4s;
17 | overflow: hidden;
18 | padding: $--message-padding;
19 | display: flex;
20 | align-items: center;
21 |
22 | @include when(center) {
23 | justify-content: center;
24 | }
25 |
26 | @include when(closable) {
27 | .el-message__content {
28 | padding-right: 16px;
29 | }
30 | }
31 |
32 | p {
33 | margin: 0;
34 | }
35 |
36 | @include m(info) {
37 | .el-message__content {
38 | color: $--message-info-font-color;
39 | }
40 | }
41 |
42 | @include m(success) {
43 | background-color: $--color-success-lighter;
44 | border-color: $--color-success-light;
45 |
46 | .el-message__content {
47 | color: $--message-success-font-color;
48 | }
49 | }
50 |
51 | @include m(warning) {
52 | background-color: $--color-warning-lighter;
53 | border-color: $--color-warning-light;
54 |
55 | .el-message__content {
56 | color: $--message-warning-font-color;
57 | }
58 | }
59 |
60 | @include m(error) {
61 | background-color: $--color-danger-lighter;
62 | border-color: $--color-danger-light;
63 |
64 | .el-message__content {
65 | color: $--message-danger-font-color;
66 | }
67 | }
68 |
69 | @include e(icon) {
70 | margin-right: 10px;
71 | }
72 |
73 | @include e(content) {
74 | padding: 0;
75 | font-size: 14px;
76 | line-height: 1;
77 | &:focus {
78 | outline-width: 0;
79 | }
80 | }
81 |
82 | @include e(closeBtn) {
83 | position: absolute;
84 | top: 50%;
85 | right: 15px;
86 | transform: translateY(-50%);
87 | cursor: pointer;
88 | color: $--message-close-icon-color;
89 | font-size: $--message-close-size;
90 |
91 | &:focus {
92 | outline-width: 0;
93 | }
94 | &:hover {
95 | color: $--message-close-hover-color;
96 | }
97 | }
98 |
99 | & .el-icon-success {
100 | color: $--message-success-font-color;
101 | }
102 |
103 | & .el-icon-error {
104 | color: $--message-danger-font-color;
105 | }
106 |
107 | & .el-icon-info {
108 | color: $--message-info-font-color;
109 | }
110 |
111 | & .el-icon-warning {
112 | color: $--message-warning-font-color;
113 | }
114 | }
115 |
116 | .el-message-fade-enter,
117 | .el-message-fade-leave-active {
118 | opacity: 0;
119 | transform: translate(-50%, -100%);
120 | }
121 |
--------------------------------------------------------------------------------
/src/utils/aria-dialog.js:
--------------------------------------------------------------------------------
1 | import Utils from './aria-utils';
2 |
3 | /**
4 | * @constructor
5 | * @desc Dialog object providing modal focus management.
6 | *
7 | * Assumptions: The element serving as the dialog container is present in the
8 | * DOM and hidden. The dialog container has role='dialog'.
9 | *
10 | * @param dialogId
11 | * The ID of the element serving as the dialog container.
12 | * @param focusAfterClosed
13 | * Either the DOM node or the ID of the DOM node to focus when the
14 | * dialog closes.
15 | * @param focusFirst
16 | * Optional parameter containing either the DOM node or the ID of the
17 | * DOM node to focus when the dialog opens. If not specified, the
18 | * first focusable element in the dialog will receive focus.
19 | */
20 | var aria = aria || {};
21 | var tabEvent;
22 |
23 | aria.Dialog = function(dialog, focusAfterClosed, focusFirst) {
24 | this.dialogNode = dialog;
25 | if (this.dialogNode === null || this.dialogNode.getAttribute('role') !== 'dialog') {
26 | throw new Error('Dialog() requires a DOM element with ARIA role of dialog.');
27 | }
28 |
29 | if (typeof focusAfterClosed === 'string') {
30 | this.focusAfterClosed = document.getElementById(focusAfterClosed);
31 | } else if (typeof focusAfterClosed === 'object') {
32 | this.focusAfterClosed = focusAfterClosed;
33 | } else {
34 | this.focusAfterClosed = null;
35 | }
36 |
37 | if (typeof focusFirst === 'string') {
38 | this.focusFirst = document.getElementById(focusFirst);
39 | } else if (typeof focusFirst === 'object') {
40 | this.focusFirst = focusFirst;
41 | } else {
42 | this.focusFirst = null;
43 | }
44 |
45 | if (this.focusFirst) {
46 | this.focusFirst.focus();
47 | } else {
48 | Utils.focusFirstDescendant(this.dialogNode);
49 | }
50 |
51 | this.lastFocus = document.activeElement;
52 | tabEvent = (e) => {
53 | this.trapFocus(e);
54 | };
55 | this.addListeners();
56 | };
57 |
58 | aria.Dialog.prototype.addListeners = function() {
59 | document.addEventListener('focus', tabEvent, true);
60 | };
61 |
62 | aria.Dialog.prototype.removeListeners = function() {
63 | document.removeEventListener('focus', tabEvent, true);
64 | };
65 |
66 | aria.Dialog.prototype.closeDialog = function() {
67 | this.removeListeners();
68 | if (this.focusAfterClosed) {
69 | setTimeout(() => {
70 | this.focusAfterClosed.focus();
71 | });
72 | }
73 | };
74 |
75 | aria.Dialog.prototype.trapFocus = function(event) {
76 | if (Utils.IgnoreUtilFocusChanges) {
77 | return;
78 | }
79 | if (this.dialogNode.contains(event.target)) {
80 | this.lastFocus = event.target;
81 | } else {
82 | Utils.focusFirstDescendant(this.dialogNode);
83 | if (this.lastFocus === document.activeElement) {
84 | Utils.focusLastDescendant(this.dialogNode);
85 | }
86 | this.lastFocus = document.activeElement;
87 | }
88 | };
89 |
90 | export default aria.Dialog;
91 |
--------------------------------------------------------------------------------
/src/theme-chalk/src/tree.scss:
--------------------------------------------------------------------------------
1 | @import "mixins/mixins";
2 | @import "common/var";
3 | @import "common/transition";
4 | @import "checkbox";
5 |
6 | @include b(tree) {
7 | position: relative;
8 | cursor: default;
9 | background: $--color-white;
10 | color: $--tree-font-color;
11 |
12 | @include e(empty-block) {
13 | position: relative;
14 | min-height: 60px;
15 | text-align: center;
16 | width: 100%;
17 | height: 100%;
18 | }
19 |
20 | @include e(empty-text) {
21 | position: absolute;
22 | left: 50%;
23 | top: 50%;
24 | transform: translate(-50%, -50%);
25 | color: $--color-text-secondary;
26 | }
27 |
28 | @include e(drop-indicator) {
29 | position: absolute;
30 | left: 0;
31 | right: 0;
32 | height: 1px;
33 | background-color: $--color-primary;
34 | }
35 | }
36 |
37 | @include b(tree-node) {
38 | white-space: nowrap;
39 | outline: none;
40 | &:focus { /* focus */
41 | > .el-tree-node__content {
42 | background-color: $--tree-node-hover-background-color;
43 | }
44 | }
45 |
46 | @include when(drop-inner) {
47 | > .el-tree-node__content .el-tree-node__label {
48 | background-color: $--color-primary;
49 | color: #fff;
50 | }
51 | }
52 |
53 | @include e(content) {
54 | display: flex;
55 | align-items: center;
56 | height: 26px;
57 | cursor: pointer;
58 |
59 | & > .el-tree-node__expand-icon {
60 | padding: 6px;
61 | }
62 | & > .el-checkbox {
63 | margin-right: 8px;
64 | }
65 | &:hover {
66 | background-color: $--tree-node-hover-background-color;
67 | }
68 |
69 | .el-tree.is-dragging & {
70 | cursor: move;
71 |
72 | & * {
73 | pointer-events: none;
74 | }
75 | }
76 |
77 | .el-tree.is-dragging.is-drop-not-allow & {
78 | cursor: not-allowed;
79 | }
80 | }
81 |
82 | @include e(expand-icon) {
83 | cursor: pointer;
84 | color: $--tree-expand-icon-color;
85 | font-size: 12px;
86 |
87 | transform: rotate(0deg);
88 | transition: transform 0.3s ease-in-out;
89 |
90 | &.expanded {
91 | transform: rotate(90deg);
92 | }
93 |
94 | &.is-leaf {
95 | color: transparent;
96 | cursor: default;
97 | }
98 | }
99 |
100 | @include e(label) {
101 | font-size: $--font-size-base;
102 | }
103 |
104 | @include e(loading-icon) {
105 | margin-right: 8px;
106 | font-size: $--font-size-base;
107 | color: $--tree-expand-icon-color;
108 | }
109 |
110 | & > .el-tree-node__children {
111 | overflow: hidden;
112 | background-color: transparent;
113 | }
114 |
115 | &.is-expanded > .el-tree-node__children {
116 | display: block;
117 | }
118 | }
119 |
120 | .el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
121 | background-color: mix($--color-white, $--color-primary, 92%);
122 | }
123 |
--------------------------------------------------------------------------------
/example/views/Button.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Button
4 |
5 | 默认按钮
6 | 主要按钮
7 | 成功按钮
8 | 信息按钮
9 | 警告按钮
10 | 危险按钮
11 |
12 |
13 | 朴素按钮
14 | 主要按钮
15 | 成功按钮
16 | 信息按钮
17 | 警告按钮
18 | 危险按钮
19 |
20 |
21 | 圆角按钮
22 | 主要按钮
23 | 成功按钮
24 | 信息按钮
25 | 警告按钮
26 | 危险按钮
27 |
28 |
29 | 禁用默认按钮
30 | 主要按钮
31 | 成功按钮
32 | 信息按钮
33 | 警告按钮
34 | 危险按钮
35 |
36 |
37 |
38 | 禁用朴素按钮
39 | 主要按钮
40 | 成功按钮
41 | 信息按钮
42 | 警告按钮
43 | 危险按钮
44 |
45 |
46 |
47 | 加载中
48 |
49 |
50 |
51 | 默认按钮
52 | 中等按钮
53 | 小型按钮
54 | 超小按钮
55 |
56 |
57 |
58 | 默认按钮
59 | 中等按钮
60 | 小型按钮
61 | 超小按钮
62 |
63 |
64 |
65 |
66 |
80 |
--------------------------------------------------------------------------------
/src/locale/lang/ja.js:
--------------------------------------------------------------------------------
1 | export default {
2 | el: {
3 | colorpicker: {
4 | confirm: 'OK',
5 | clear: 'クリア'
6 | },
7 | datepicker: {
8 | now: '現在',
9 | today: '今日',
10 | cancel: 'キャンセル',
11 | clear: 'クリア',
12 | confirm: 'OK',
13 | selectDate: '日付を選択',
14 | selectTime: '時間を選択',
15 | startDate: '開始日',
16 | startTime: '開始時間',
17 | endDate: '終了日',
18 | endTime: '終了時間',
19 | prevYear: '前年',
20 | nextYear: '翌年',
21 | prevMonth: '前月',
22 | nextMonth: '翌月',
23 | year: '年',
24 | month1: '1月',
25 | month2: '2月',
26 | month3: '3月',
27 | month4: '4月',
28 | month5: '5月',
29 | month6: '6月',
30 | month7: '7月',
31 | month8: '8月',
32 | month9: '9月',
33 | month10: '10月',
34 | month11: '11月',
35 | month12: '12月',
36 | // week: '週次',
37 | weeks: {
38 | sun: '日',
39 | mon: '月',
40 | tue: '火',
41 | wed: '水',
42 | thu: '木',
43 | fri: '金',
44 | sat: '土'
45 | },
46 | months: {
47 | jan: '1月',
48 | feb: '2月',
49 | mar: '3月',
50 | apr: '4月',
51 | may: '5月',
52 | jun: '6月',
53 | jul: '7月',
54 | aug: '8月',
55 | sep: '9月',
56 | oct: '10月',
57 | nov: '11月',
58 | dec: '12月'
59 | }
60 | },
61 | select: {
62 | loading: 'ロード中',
63 | noMatch: 'データなし',
64 | noData: 'データなし',
65 | placeholder: '選択してください'
66 | },
67 | cascader: {
68 | noMatch: 'データなし',
69 | loading: 'ロード中',
70 | placeholder: '選択してください',
71 | noData: 'データなし'
72 | },
73 | pagination: {
74 | goto: '',
75 | pagesize: '件/ページ',
76 | total: '総計 {total} 件',
77 | pageClassifier: 'ページ目へ'
78 | },
79 | messagebox: {
80 | title: 'メッセージ',
81 | confirm: 'OK',
82 | cancel: 'キャンセル',
83 | error: '正しくない入力'
84 | },
85 | upload: {
86 | deleteTip: 'Delキーを押して削除する',
87 | delete: '削除する',
88 | preview: 'プレビュー',
89 | continue: '続行する'
90 | },
91 | table: {
92 | emptyText: 'データなし',
93 | confirmFilter: '確認',
94 | resetFilter: '初期化',
95 | clearFilter: 'すべて',
96 | sumText: '合計'
97 | },
98 | tree: {
99 | emptyText: 'データなし'
100 | },
101 | transfer: {
102 | noMatch: 'データなし',
103 | noData: 'データなし',
104 | titles: ['リスト 1', 'リスト 2'],
105 | filterPlaceholder: 'キーワードを入力',
106 | noCheckedFormat: '総計 {total} 件',
107 | hasCheckedFormat: '{checked}/{total} を選択した'
108 | },
109 | image: {
110 | error: 'FAILED' // to be translated
111 | },
112 | pageHeader: {
113 | title: 'Back' // to be translated
114 | },
115 | popconfirm: {
116 | confirmButtonText: 'Yes', // to be translated
117 | cancelButtonText: 'No' // to be translated
118 | }
119 | }
120 | };
121 |
--------------------------------------------------------------------------------
/src/locale/lang/ko.js:
--------------------------------------------------------------------------------
1 | export default {
2 | el: {
3 | colorpicker: {
4 | confirm: '확인',
5 | clear: '초기화'
6 | },
7 | datepicker: {
8 | now: '지금',
9 | today: '오늘',
10 | cancel: '취소',
11 | clear: '초기화',
12 | confirm: '확인',
13 | selectDate: '날짜 선택',
14 | selectTime: '시간 선택',
15 | startDate: '시작 날짜',
16 | startTime: '시작 시간',
17 | endDate: '종료 날짜',
18 | endTime: '종료 시간',
19 | prevYear: '지난해',
20 | nextYear: '다음해',
21 | prevMonth: '지난달',
22 | nextMonth: '다음달',
23 | year: '년',
24 | month1: '1월',
25 | month2: '2월',
26 | month3: '3월',
27 | month4: '4월',
28 | month5: '5월',
29 | month6: '6월',
30 | month7: '7월',
31 | month8: '8월',
32 | month9: '9월',
33 | month10: '10월',
34 | month11: '11월',
35 | month12: '12월',
36 | // week: 'week',
37 | weeks: {
38 | sun: '일',
39 | mon: '월',
40 | tue: '화',
41 | wed: '수',
42 | thu: '목',
43 | fri: '금',
44 | sat: '토'
45 | },
46 | months: {
47 | jan: '1월',
48 | feb: '2월',
49 | mar: '3월',
50 | apr: '4월',
51 | may: '5월',
52 | jun: '6월',
53 | jul: '7월',
54 | aug: '8월',
55 | sep: '9월',
56 | oct: '10월',
57 | nov: '11월',
58 | dec: '12월'
59 | }
60 | },
61 | select: {
62 | loading: '불러오는 중',
63 | noMatch: '맞는 데이터가 없습니다',
64 | noData: '데이터 없음',
65 | placeholder: '선택'
66 | },
67 | cascader: {
68 | noMatch: '맞는 데이터가 없습니다',
69 | loading: '불러오는 중',
70 | placeholder: '선택',
71 | noData: '데이터 없음'
72 | },
73 | pagination: {
74 | goto: '이동',
75 | pagesize: '/page',
76 | total: '총 {total}',
77 | pageClassifier: ''
78 | },
79 | messagebox: {
80 | title: '메시지',
81 | confirm: '확인',
82 | cancel: '취소',
83 | error: '올바르지 않은 입력'
84 | },
85 | upload: {
86 | deleteTip: '클릭시 삭제됩니다',
87 | delete: '삭제',
88 | preview: '미리보기',
89 | continue: '계속하기'
90 | },
91 | table: {
92 | emptyText: '데이터 없음',
93 | confirmFilter: '확인',
94 | resetFilter: '초기화',
95 | clearFilter: '전체',
96 | sumText: '합'
97 | },
98 | tree: {
99 | emptyText: '데이터 없음'
100 | },
101 | transfer: {
102 | noMatch: '맞는 데이터가 없습니다',
103 | noData: '데이터 없음',
104 | titles: ['리스트 1', '리스트 2'],
105 | filterPlaceholder: ' 입력하세요',
106 | noCheckedFormat: '{total} 항목',
107 | hasCheckedFormat: '{checked}/{total} 선택됨'
108 | },
109 | image: {
110 | error: 'FAILED' // to be translated
111 | },
112 | pageHeader: {
113 | title: 'Back' // to be translated
114 | },
115 | popconfirm: {
116 | confirmButtonText: 'Yes', // to be translated
117 | cancelButtonText: 'No' // to be translated
118 | }
119 | }
120 | };
121 |
--------------------------------------------------------------------------------
/src/locale/lang/zh-TW.js:
--------------------------------------------------------------------------------
1 | export default {
2 | el: {
3 | colorpicker: {
4 | confirm: '確認',
5 | clear: '清空'
6 | },
7 | datepicker: {
8 | now: '現在',
9 | today: '今天',
10 | cancel: '取消',
11 | clear: '清空',
12 | confirm: '確認',
13 | selectDate: '選擇日期',
14 | selectTime: '選擇時間',
15 | startDate: '開始日期',
16 | startTime: '開始時間',
17 | endDate: '結束日期',
18 | endTime: '結束時間',
19 | prevYear: '前一年',
20 | nextYear: '後一年',
21 | prevMonth: '上個月',
22 | nextMonth: '下個月',
23 | year: '年',
24 | month1: '1 月',
25 | month2: '2 月',
26 | month3: '3 月',
27 | month4: '4 月',
28 | month5: '5 月',
29 | month6: '6 月',
30 | month7: '7 月',
31 | month8: '8 月',
32 | month9: '9 月',
33 | month10: '10 月',
34 | month11: '11 月',
35 | month12: '12 月',
36 | // week: '周次',
37 | weeks: {
38 | sun: '日',
39 | mon: '一',
40 | tue: '二',
41 | wed: '三',
42 | thu: '四',
43 | fri: '五',
44 | sat: '六'
45 | },
46 | months: {
47 | jan: '一月',
48 | feb: '二月',
49 | mar: '三月',
50 | apr: '四月',
51 | may: '五月',
52 | jun: '六月',
53 | jul: '七月',
54 | aug: '八月',
55 | sep: '九月',
56 | oct: '十月',
57 | nov: '十一月',
58 | dec: '十二月'
59 | }
60 | },
61 | select: {
62 | loading: '加載中',
63 | noMatch: '無匹配資料',
64 | noData: '無資料',
65 | placeholder: '請選擇'
66 | },
67 | cascader: {
68 | noMatch: '無匹配資料',
69 | loading: '加載中',
70 | placeholder: '請選擇',
71 | noData: '無資料'
72 | },
73 | pagination: {
74 | goto: '前往',
75 | pagesize: '項/頁',
76 | total: '共 {total} 項',
77 | pageClassifier: '頁'
78 | },
79 | messagebox: {
80 | title: '提示',
81 | confirm: '確定',
82 | cancel: '取消',
83 | error: '輸入的資料不符規定!'
84 | },
85 | upload: {
86 | deleteTip: '按 delete 鍵可刪除',
87 | delete: '刪除',
88 | preview: '查看圖片',
89 | continue: '繼續上傳'
90 | },
91 | table: {
92 | emptyText: '暫無資料',
93 | confirmFilter: '篩選',
94 | resetFilter: '重置',
95 | clearFilter: '全部',
96 | sumText: 'Sum' // to be translated
97 | },
98 | tree: {
99 | emptyText: '暫無資料'
100 | },
101 | transfer: {
102 | noMatch: '無匹配資料',
103 | noData: '無資料',
104 | titles: ['List 1', 'List 2'], // to be translated
105 | filterPlaceholder: 'Enter keyword', // to be translated
106 | noCheckedFormat: '{total} items', // to be translated
107 | hasCheckedFormat: '{checked}/{total} checked' // to be translated
108 | },
109 | image: {
110 | error: '加載失敗'
111 | },
112 | pageHeader: {
113 | title: '返回'
114 | },
115 | popconfirm: {
116 | confirmButtonText: 'Yes', // to be translated
117 | cancelButtonText: 'No' // to be translated
118 | }
119 | }
120 | };
121 |
--------------------------------------------------------------------------------
/src/theme-chalk/src/common/transition.scss:
--------------------------------------------------------------------------------
1 | @import "var";
2 |
3 | .fade-in-linear-enter-active,
4 | .fade-in-linear-leave-active {
5 | transition: $--fade-linear-transition;
6 | }
7 | .fade-in-linear-enter-from,
8 | .fade-in-linear-leave-from,
9 | .fade-in-linear-leave-active {
10 | opacity: 0;
11 | }
12 |
13 | .el-fade-in-linear-enter-active,
14 | .el-fade-in-linear-leave-active {
15 | transition: $--fade-linear-transition;
16 | }
17 | .el-fade-in-linear-enter-from,
18 | .el-fade-in-linear-leave-from,
19 | .el-fade-in-linear-leave-active {
20 | opacity: 0;
21 | }
22 |
23 | .el-fade-in-enter-active,
24 | .el-fade-in-leave-active {
25 | transition: all .3s cubic-bezier(.55,0,.1,1);
26 | }
27 | .el-fade-in-enter-from,
28 | .el-fade-in-leave-active {
29 | opacity: 0;
30 | }
31 |
32 | .el-fade-in-top-enter-from,
33 | .el-fade-in-top-leave-to{
34 | opacity: 0;
35 | transform: translate3d(0, -10%, 0);
36 | }
37 | .el-fade-in-top-enter-active,
38 | .el-fade-in-top-leave-active {
39 | transition: $--md-fade-transition;
40 | }
41 | .el-fade-in-top-enter-to,
42 | .el-fade-in-top-leave-from{
43 | opacity: 1;
44 | transform: translate3d(0, 0, 0);
45 | }
46 |
47 | .el-zoom-in-center-enter-active,
48 | .el-zoom-in-center-leave-active {
49 | transition: all .3s cubic-bezier(.55,0,.1,1);
50 | }
51 | .el-zoom-in-center-enter-from,
52 | .el-zoom-in-center-leave-active {
53 | opacity: 0;
54 | transform: scaleX(0);
55 | }
56 |
57 | .el-zoom-in-top-enter-active,
58 | .el-zoom-in-top-leave-active {
59 | opacity: 1;
60 | transform: scaleY(1);
61 | transition: $--md-fade-transition;
62 | transform-origin: center top;
63 | }
64 | .el-zoom-in-top-enter-from,
65 | .el-zoom-in-top-leave-active {
66 | opacity: 0;
67 | transform: scaleY(0);
68 | }
69 |
70 | .el-zoom-in-bottom-enter-active,
71 | .el-zoom-in-bottom-leave-active {
72 | opacity: 1;
73 | transform: scaleY(1);
74 | transition: $--md-fade-transition;
75 | transform-origin: center bottom;
76 | }
77 | .el-zoom-in-bottom-enter-from,
78 | .el-zoom-in-bottom-leave-active {
79 | opacity: 0;
80 | transform: scaleY(0);
81 | }
82 |
83 | .el-zoom-in-left-enter-active,
84 | .el-zoom-in-left-leave-active {
85 | opacity: 1;
86 | transform: scale(1, 1);
87 | transition: $--md-fade-transition;
88 | transform-origin: top left;
89 | }
90 | .el-zoom-in-left-enter-from,
91 | .el-zoom-in-left-leave-active {
92 | opacity: 0;
93 | transform: scale(.45, .45);
94 | }
95 |
96 | .collapse-transition {
97 | transition: 0.3s height ease-in-out, 0.3s padding-top ease-in-out, 0.3s padding-bottom ease-in-out;
98 | }
99 | .horizontal-collapse-transition {
100 | transition: 0.3s width ease-in-out, 0.3s padding-left ease-in-out, 0.3s padding-right ease-in-out;
101 | }
102 |
103 | .el-list-enter-active,
104 | .el-list-leave-active {
105 | transition: all 1s;
106 | }
107 | .el-list-enter-from, .el-list-leave-active {
108 | opacity: 0;
109 | transform: translateY(-30px);
110 | }
111 |
112 | .el-opacity-transition {
113 | transition: opacity .3s cubic-bezier(.55,0,.1,1);
114 | }
115 |
--------------------------------------------------------------------------------
/packages/tag/src/tag.vue:
--------------------------------------------------------------------------------
1 |
101 |
--------------------------------------------------------------------------------
/packages/input/src/calcTextareaHeight.js:
--------------------------------------------------------------------------------
1 | let hiddenTextarea;
2 |
3 | const HIDDEN_STYLE = `
4 | height:0 !important;
5 | visibility:hidden !important;
6 | overflow:hidden !important;
7 | position:absolute !important;
8 | z-index:-1000 !important;
9 | top:0 !important;
10 | right:0 !important
11 | `;
12 |
13 | const CONTEXT_STYLE = [
14 | 'letter-spacing',
15 | 'line-height',
16 | 'padding-top',
17 | 'padding-bottom',
18 | 'font-family',
19 | 'font-weight',
20 | 'font-size',
21 | 'text-rendering',
22 | 'text-transform',
23 | 'width',
24 | 'text-indent',
25 | 'padding-left',
26 | 'padding-right',
27 | 'border-width',
28 | 'box-sizing'
29 | ];
30 |
31 | function calculateNodeStyling(targetElement) {
32 | const style = window.getComputedStyle(targetElement);
33 |
34 | const boxSizing = style.getPropertyValue('box-sizing');
35 |
36 | const paddingSize = (
37 | parseFloat(style.getPropertyValue('padding-bottom')) +
38 | parseFloat(style.getPropertyValue('padding-top'))
39 | );
40 |
41 | const borderSize = (
42 | parseFloat(style.getPropertyValue('border-bottom-width')) +
43 | parseFloat(style.getPropertyValue('border-top-width'))
44 | );
45 |
46 | const contextStyle = CONTEXT_STYLE
47 | .map(name => `${name}:${style.getPropertyValue(name)}`)
48 | .join(';');
49 |
50 | return { contextStyle, paddingSize, borderSize, boxSizing };
51 | }
52 |
53 | export default function calcTextareaHeight(
54 | targetElement,
55 | minRows = 1,
56 | maxRows = null
57 | ) {
58 | if (!hiddenTextarea) {
59 | hiddenTextarea = document.createElement('textarea');
60 | document.body.appendChild(hiddenTextarea);
61 | }
62 |
63 | let {
64 | paddingSize,
65 | borderSize,
66 | boxSizing,
67 | contextStyle
68 | } = calculateNodeStyling(targetElement);
69 |
70 | hiddenTextarea.setAttribute('style', `${contextStyle};${HIDDEN_STYLE}`);
71 | hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
72 |
73 | let height = hiddenTextarea.scrollHeight;
74 | const result = {};
75 |
76 | if (boxSizing === 'border-box') {
77 | height = height + borderSize;
78 | } else if (boxSizing === 'content-box') {
79 | height = height - paddingSize;
80 | }
81 |
82 | hiddenTextarea.value = '';
83 | let singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
84 |
85 | if (minRows !== null) {
86 | let minHeight = singleRowHeight * minRows;
87 | if (boxSizing === 'border-box') {
88 | minHeight = minHeight + paddingSize + borderSize;
89 | }
90 | height = Math.max(minHeight, height);
91 | result.minHeight = `${ minHeight }px`;
92 | }
93 | if (maxRows !== null) {
94 | let maxHeight = singleRowHeight * maxRows;
95 | if (boxSizing === 'border-box') {
96 | maxHeight = maxHeight + paddingSize + borderSize;
97 | }
98 | height = Math.min(maxHeight, height);
99 | }
100 | result.height = `${ height }px`;
101 | hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
102 | hiddenTextarea = null;
103 | return result;
104 | };
105 |
--------------------------------------------------------------------------------
/src/theme-chalk/src/progress.scss:
--------------------------------------------------------------------------------
1 | @import "mixins/mixins";
2 | @import "mixins/utils";
3 | @import "common/var";
4 |
5 | @include b(progress) {
6 | position: relative;
7 | line-height: 1;
8 |
9 | @include e(text) {
10 | font-size:14px;
11 | color: $--color-text-regular;
12 | display: inline-block;
13 | vertical-align: middle;
14 | margin-left: 10px;
15 | line-height: 1;
16 |
17 | i {
18 | vertical-align: middle;
19 | display: block;
20 | }
21 | }
22 |
23 | @include m((circle,dashboard)) {
24 | display: inline-block;
25 |
26 | .el-progress__text {
27 | position: absolute;
28 | top: 50%;
29 | left: 0;
30 | width: 100%;
31 | text-align: center;
32 | margin: 0;
33 | transform: translate(0, -50%);
34 |
35 | i {
36 | vertical-align: middle;
37 | display: inline-block;
38 | }
39 | }
40 | }
41 |
42 |
43 | @include m(without-text) {
44 | .el-progress__text {
45 | display: none;
46 | }
47 |
48 | .el-progress-bar {
49 | padding-right: 0;
50 | margin-right: 0;
51 | display: block;
52 | }
53 | }
54 |
55 | @include m(text-inside) {
56 | .el-progress-bar {
57 | padding-right: 0;
58 | margin-right: 0;
59 | }
60 | }
61 |
62 | @include when(success) {
63 | .el-progress-bar__inner {
64 | background-color: $--color-success;
65 | }
66 |
67 | .el-progress__text {
68 | color: $--color-success;
69 | }
70 | }
71 |
72 | @include when(warning) {
73 | .el-progress-bar__inner {
74 | background-color: $--color-warning;
75 | }
76 |
77 | .el-progress__text {
78 | color: $--color-warning;
79 | }
80 | }
81 |
82 | @include when(exception) {
83 | .el-progress-bar__inner {
84 | background-color: $--color-danger;
85 | }
86 |
87 | .el-progress__text {
88 | color: $--color-danger;
89 | }
90 | }
91 | }
92 |
93 | @include b(progress-bar) {
94 | padding-right: 50px;
95 | display: inline-block;
96 | vertical-align: middle;
97 | width: 100%;
98 | margin-right: -55px;
99 | box-sizing: border-box;
100 |
101 | @include e(outer) {
102 | height: 6px;
103 | border-radius: 100px;
104 | background-color: $--border-color-lighter;
105 | overflow: hidden;
106 | position: relative;
107 | vertical-align: middle;
108 | }
109 | @include e(inner) {
110 | position: absolute;
111 | left: 0;
112 | top: 0;
113 | height: 100%;
114 | background-color: $--color-primary;
115 | text-align: right;
116 | border-radius: 100px;
117 | line-height: 1;
118 | white-space: nowrap;
119 | transition: width 0.6s ease;
120 |
121 | @include utils-vertical-center;
122 | }
123 |
124 | @include e(innerText) {
125 | display: inline-block;
126 | vertical-align: middle;
127 | color: $--color-white;
128 | font-size: 12px;
129 | margin: 0 5px;
130 | }
131 | }
132 |
133 | @keyframes progress {
134 | 0% {
135 | background-position: 0 0;
136 | }
137 |
138 | 100% {
139 | background-position: 32px 0;
140 | }
141 | }
142 |
--------------------------------------------------------------------------------
/src/locale/lang/hu.js:
--------------------------------------------------------------------------------
1 | export default {
2 | el: {
3 | colorpicker: {
4 | confirm: 'OK',
5 | clear: 'Törlés'
6 | },
7 | datepicker: {
8 | now: 'Most',
9 | today: 'Ma',
10 | cancel: 'Mégse',
11 | clear: 'Törlés',
12 | confirm: 'OK',
13 | selectDate: 'Dátum',
14 | selectTime: 'Időpont',
15 | startDate: 'Dátum-tól',
16 | startTime: 'Időpont-tól',
17 | endDate: 'Dátum-ig',
18 | endTime: 'Időpont-ig',
19 | prevYear: 'Előző év',
20 | nextYear: 'Következő év',
21 | prevMonth: 'Előző hónap',
22 | nextMonth: 'Következő hónap',
23 | year: '',
24 | month1: 'Január',
25 | month2: 'Február',
26 | month3: 'Március',
27 | month4: 'Április',
28 | month5: 'Május',
29 | month6: 'Június',
30 | month7: 'Július',
31 | month8: 'Augusztus',
32 | month9: 'Szeptember',
33 | month10: 'Október',
34 | month11: 'November',
35 | month12: 'December',
36 | weeks: {
37 | sun: 'Vas',
38 | mon: 'Hét',
39 | tue: 'Ked',
40 | wed: 'Sze',
41 | thu: 'Csü',
42 | fri: 'Pén',
43 | sat: 'Szo'
44 | },
45 | months: {
46 | jan: 'Jan',
47 | feb: 'Feb',
48 | mar: 'Már',
49 | apr: 'Ápr',
50 | may: 'Máj',
51 | jun: 'Jún',
52 | jul: 'Júl',
53 | aug: 'Aug',
54 | sep: 'Szep',
55 | oct: 'Okt',
56 | nov: 'Nov',
57 | dec: 'Dec'
58 | }
59 | },
60 | select: {
61 | loading: 'Betöltés',
62 | noMatch: 'Nincs találat',
63 | noData: 'Nincs adat',
64 | placeholder: 'Válassz'
65 | },
66 | cascader: {
67 | noMatch: 'Nincs találat',
68 | loading: 'Betöltés',
69 | placeholder: 'Válassz',
70 | noData: 'Nincs adat'
71 | },
72 | pagination: {
73 | goto: 'Ugrás',
74 | pagesize: '/oldal',
75 | total: 'Össz {total}',
76 | pageClassifier: ''
77 | },
78 | messagebox: {
79 | title: 'Üzenet',
80 | confirm: 'OK',
81 | cancel: 'Mégse',
82 | error: 'Hibás adat'
83 | },
84 | upload: {
85 | deleteTip: 'kattints a törléshez',
86 | delete: 'Törlés',
87 | preview: 'Előnézet',
88 | continue: 'Tovább'
89 | },
90 | table: {
91 | emptyText: 'Nincs adat',
92 | confirmFilter: 'Megerősít',
93 | resetFilter: 'Alaphelyet',
94 | clearFilter: 'Mind',
95 | sumText: 'Összeg'
96 | },
97 | tree: {
98 | emptyText: 'Nincs adat'
99 | },
100 | transfer: {
101 | noMatch: 'Nincs találat',
102 | noData: 'Nincs adat',
103 | titles: ['Lista 1', 'Lista 2'],
104 | filterPlaceholder: 'Kulcsszó',
105 | noCheckedFormat: '{total} elem',
106 | hasCheckedFormat: '{checked}/{total} kiválasztva'
107 | },
108 | image: {
109 | error: 'FAILED' // to be translated
110 | },
111 | pageHeader: {
112 | title: 'Back' // to be translated
113 | },
114 | popconfirm: {
115 | confirmButtonText: 'Yes', // to be translated
116 | cancelButtonText: 'No' // to be translated
117 | }
118 | }
119 | };
120 |
--------------------------------------------------------------------------------
/src/locale/lang/da.js:
--------------------------------------------------------------------------------
1 | export default {
2 | el: {
3 | colorpicker: {
4 | confirm: 'OK',
5 | clear: 'Ryd'
6 | },
7 | datepicker: {
8 | now: 'Nu',
9 | today: 'I dag',
10 | cancel: 'Annuller',
11 | clear: 'Ryd',
12 | confirm: 'OK',
13 | selectDate: 'Vælg dato',
14 | selectTime: 'Vælg tidspunkt',
15 | startDate: 'Startdato',
16 | startTime: 'Starttidspunkt',
17 | endDate: 'Slutdato',
18 | endTime: 'Sluttidspunkt',
19 | prevYear: 'Forrige år',
20 | nextYear: 'Næste år',
21 | prevMonth: 'Forrige måned',
22 | nextMonth: 'Næste måned',
23 | year: '',
24 | month1: 'Januar',
25 | month2: 'Februar',
26 | month3: 'Marts',
27 | month4: 'April',
28 | month5: 'Maj',
29 | month6: 'Juni',
30 | month7: 'Juli',
31 | month8: 'August',
32 | month9: 'September',
33 | month10: 'Oktober',
34 | month11: 'November',
35 | month12: 'December',
36 | week: 'uge',
37 | weeks: {
38 | sun: 'Søn',
39 | mon: 'Man',
40 | tue: 'Tir',
41 | wed: 'Ons',
42 | thu: 'Tor',
43 | fri: 'Fre',
44 | sat: 'Lør'
45 | },
46 | months: {
47 | jan: 'Jan',
48 | feb: 'Feb',
49 | mar: 'Mar',
50 | apr: 'Apr',
51 | may: 'Maj',
52 | jun: 'Jun',
53 | jul: 'Jul',
54 | aug: 'Aug',
55 | sep: 'Sep',
56 | oct: 'Okt',
57 | nov: 'Nov',
58 | dec: 'Dec'
59 | }
60 | },
61 | select: {
62 | loading: 'Henter',
63 | noMatch: 'Ingen matchende data',
64 | noData: 'Ingen data',
65 | placeholder: 'Vælg'
66 | },
67 | cascader: {
68 | noMatch: 'Ingen matchende data',
69 | loading: 'Henter',
70 | placeholder: 'Vælg',
71 | noData: 'Ingen data'
72 | },
73 | pagination: {
74 | goto: 'Gå til',
75 | pagesize: '/side',
76 | total: 'Total {total}',
77 | pageClassifier: ''
78 | },
79 | messagebox: {
80 | confirm: 'OK',
81 | cancel: 'Annuller',
82 | error: 'Ugyldig input'
83 | },
84 | upload: {
85 | deleteTip: 'tryk slet for at fjerne',
86 | delete: 'Slet',
87 | preview: 'Forhåndsvisning',
88 | continue: 'Fortsæt'
89 | },
90 | table: {
91 | emptyText: 'Ingen data',
92 | confirmFilter: 'Bekræft',
93 | resetFilter: 'Nulstil',
94 | clearFilter: 'Alle',
95 | sumText: 'Sum'
96 | },
97 | tree: {
98 | emptyText: 'Ingen data'
99 | },
100 | transfer: {
101 | noMatch: 'Ingen matchende data',
102 | noData: 'Ingen data',
103 | titles: ['Liste 1', 'Liste 2'],
104 | filterPlaceholder: 'Indtast søgeord',
105 | noCheckedFormat: '{total} emner',
106 | hasCheckedFormat: '{checked}/{total} valgt'
107 | },
108 | image: {
109 | error: 'FAILED' // to be translated
110 | },
111 | pageHeader: {
112 | title: 'Back' // to be translated
113 | },
114 | popconfirm: {
115 | confirmButtonText: 'Yes', // to be translated
116 | cancelButtonText: 'No' // to be translated
117 | }
118 | }
119 | };
120 |
--------------------------------------------------------------------------------
/src/locale/lang/ar.js:
--------------------------------------------------------------------------------
1 | export default {
2 | el: {
3 | colorpicker: {
4 | confirm: 'موافق',
5 | clear: 'إزالة'
6 | },
7 | datepicker: {
8 | now: 'الآن',
9 | today: 'اليوم',
10 | cancel: 'إلغاء',
11 | clear: 'إزالة',
12 | confirm: 'موافق',
13 | selectDate: 'إختر التاريخ',
14 | selectTime: 'إختر الوقت',
15 | startDate: 'تاريخ البدء',
16 | startTime: 'وقت البدء',
17 | endDate: 'تاريخ الإنتهاء',
18 | endTime: 'وقت الإنتهاء',
19 | prevYear: 'السنة السابقة',
20 | nextYear: 'السنة التالية',
21 | prevMonth: 'الشهر السابق',
22 | nextMonth: 'الشهر التالي',
23 | year: 'سنة',
24 | month1: 'يناير',
25 | month2: 'فبراير',
26 | month3: 'مارس',
27 | month4: 'ابريل',
28 | month5: 'مايو',
29 | month6: 'يونيو',
30 | month7: 'يوليو',
31 | month8: 'أغسطس',
32 | month9: 'سبتمبر',
33 | month10: 'أكتوبر',
34 | month11: 'نوفمبر',
35 | month12: 'ديسمبر',
36 | week: 'أسبوع',
37 | weeks: {
38 | sun: 'الأحد',
39 | mon: 'الأثنين',
40 | tue: 'الثلاثاء',
41 | wed: 'الأربعاء',
42 | thu: 'الخميس',
43 | fri: 'الجمعة',
44 | sat: 'السبت'
45 | },
46 | months: {
47 | jan: 'يناير',
48 | feb: 'فبراير',
49 | mar: 'مارس',
50 | apr: 'أبريل',
51 | may: 'مايو',
52 | jun: 'يونيو',
53 | jul: 'يوليو',
54 | aug: 'أغسطس',
55 | sep: 'سبتمبر',
56 | oct: 'أكتوبر',
57 | nov: 'نوفمبر',
58 | dec: 'ديسمبر'
59 | }
60 | },
61 | select: {
62 | loading: 'جار التحميل',
63 | noMatch: 'لايوجد بيانات مطابقة',
64 | noData: 'لايوجد بيانات',
65 | placeholder: 'إختر'
66 | },
67 | cascader: {
68 | noMatch: 'لايوجد بيانات مطابقة',
69 | loading: 'جار التحميل',
70 | placeholder: 'إختر',
71 | noData: 'لايوجد بيانات'
72 | },
73 | pagination: {
74 | goto: 'أذهب إلى',
75 | pagesize: '/صفحة',
76 | total: 'الكل {total}',
77 | pageClassifier: ''
78 | },
79 | messagebox: {
80 | title: 'العنوان',
81 | confirm: 'موافق',
82 | cancel: 'إلغاء',
83 | error: 'مدخل غير صحيح'
84 | },
85 | upload: {
86 | delete: 'حذف',
87 | preview: 'عرض',
88 | continue: 'إستمرار'
89 | },
90 | table: {
91 | emptyText: 'لايوجد بيانات',
92 | confirmFilter: 'تأكيد',
93 | resetFilter: 'حذف',
94 | clearFilter: 'الكل',
95 | sumText: 'المجموع'
96 | },
97 | tree: {
98 | emptyText: 'لايوجد بيانات'
99 | },
100 | transfer: {
101 | noMatch: 'لايوجد بيانات مطابقة',
102 | noData: 'لايوجد بيانات',
103 | titles: ['قائمة 1', 'قائمة 2'],
104 | filterPlaceholder: 'ادخل كلمة',
105 | noCheckedFormat: '{total} عناصر',
106 | hasCheckedFormat: '{checked}/{total} مختار'
107 | },
108 | image: {
109 | error: 'فشل'
110 | },
111 | pageHeader: {
112 | title: 'عودة'
113 | },
114 | popconfirm: {
115 | confirmButtonText: 'Yes', // to be translated
116 | cancelButtonText: 'No' // to be translated
117 | }
118 | }
119 | };
120 |
--------------------------------------------------------------------------------
/src/locale/lang/en.js:
--------------------------------------------------------------------------------
1 | export default {
2 | el: {
3 | colorpicker: {
4 | confirm: 'OK',
5 | clear: 'Clear'
6 | },
7 | datepicker: {
8 | now: 'Now',
9 | today: 'Today',
10 | cancel: 'Cancel',
11 | clear: 'Clear',
12 | confirm: 'OK',
13 | selectDate: 'Select date',
14 | selectTime: 'Select time',
15 | startDate: 'Start Date',
16 | startTime: 'Start Time',
17 | endDate: 'End Date',
18 | endTime: 'End Time',
19 | prevYear: 'Previous Year',
20 | nextYear: 'Next Year',
21 | prevMonth: 'Previous Month',
22 | nextMonth: 'Next Month',
23 | year: '',
24 | month1: 'January',
25 | month2: 'February',
26 | month3: 'March',
27 | month4: 'April',
28 | month5: 'May',
29 | month6: 'June',
30 | month7: 'July',
31 | month8: 'August',
32 | month9: 'September',
33 | month10: 'October',
34 | month11: 'November',
35 | month12: 'December',
36 | week: 'week',
37 | weeks: {
38 | sun: 'Sun',
39 | mon: 'Mon',
40 | tue: 'Tue',
41 | wed: 'Wed',
42 | thu: 'Thu',
43 | fri: 'Fri',
44 | sat: 'Sat'
45 | },
46 | months: {
47 | jan: 'Jan',
48 | feb: 'Feb',
49 | mar: 'Mar',
50 | apr: 'Apr',
51 | may: 'May',
52 | jun: 'Jun',
53 | jul: 'Jul',
54 | aug: 'Aug',
55 | sep: 'Sep',
56 | oct: 'Oct',
57 | nov: 'Nov',
58 | dec: 'Dec'
59 | }
60 | },
61 | select: {
62 | loading: 'Loading',
63 | noMatch: 'No matching data',
64 | noData: 'No data',
65 | placeholder: 'Select'
66 | },
67 | cascader: {
68 | noMatch: 'No matching data',
69 | loading: 'Loading',
70 | placeholder: 'Select',
71 | noData: 'No data'
72 | },
73 | pagination: {
74 | goto: 'Go to',
75 | pagesize: '/page',
76 | total: 'Total {total}',
77 | pageClassifier: ''
78 | },
79 | messagebox: {
80 | title: 'Message',
81 | confirm: 'OK',
82 | cancel: 'Cancel',
83 | error: 'Illegal input'
84 | },
85 | upload: {
86 | deleteTip: 'press delete to remove',
87 | delete: 'Delete',
88 | preview: 'Preview',
89 | continue: 'Continue'
90 | },
91 | table: {
92 | emptyText: 'No Data',
93 | confirmFilter: 'Confirm',
94 | resetFilter: 'Reset',
95 | clearFilter: 'All',
96 | sumText: 'Sum'
97 | },
98 | tree: {
99 | emptyText: 'No Data'
100 | },
101 | transfer: {
102 | noMatch: 'No matching data',
103 | noData: 'No data',
104 | titles: ['List 1', 'List 2'], // to be translated
105 | filterPlaceholder: 'Enter keyword', // to be translated
106 | noCheckedFormat: '{total} items', // to be translated
107 | hasCheckedFormat: '{checked}/{total} checked' // to be translated
108 | },
109 | image: {
110 | error: 'FAILED'
111 | },
112 | pageHeader: {
113 | title: 'Back' // to be translated
114 | },
115 | popconfirm: {
116 | confirmButtonText: 'Yes',
117 | cancelButtonText: 'No'
118 | }
119 | }
120 | };
121 |
--------------------------------------------------------------------------------
/src/locale/lang/tr-TR.js:
--------------------------------------------------------------------------------
1 | export default {
2 | el: {
3 | colorpicker: {
4 | confirm: 'Onayla',
5 | clear: 'Temizle'
6 | },
7 | datepicker: {
8 | now: 'Şimdi',
9 | today: 'Bugün',
10 | cancel: 'İptal',
11 | clear: 'Temizle',
12 | confirm: 'Onayla',
13 | selectDate: 'Tarih seç',
14 | selectTime: 'Saat seç',
15 | startDate: 'Başlangıç Tarihi',
16 | startTime: 'Başlangıç Saati',
17 | endDate: 'Bitiş Tarihi',
18 | endTime: 'Bitiş Saati',
19 | prevYear: 'Önceki Yıl',
20 | nextYear: 'Sonraki Yıl',
21 | prevMonth: 'Önceki Ay',
22 | nextMonth: 'Sonraki Ay',
23 | year: '',
24 | month1: 'Ocak',
25 | month2: 'Şubat',
26 | month3: 'Mart',
27 | month4: 'Nisan',
28 | month5: 'Mayıs',
29 | month6: 'Haziran',
30 | month7: 'Temmuz',
31 | month8: 'Ağustos',
32 | month9: 'Eylül',
33 | month10: 'Ekim',
34 | month11: 'Kasım',
35 | month12: 'Aralık',
36 | // week: 'week',
37 | weeks: {
38 | sun: 'Paz',
39 | mon: 'Pzt',
40 | tue: 'Sal',
41 | wed: 'Çar',
42 | thu: 'Per',
43 | fri: 'Cum',
44 | sat: 'Cmt'
45 | },
46 | months: {
47 | jan: 'Oca',
48 | feb: 'Şub',
49 | mar: 'Mar',
50 | apr: 'Nis',
51 | may: 'May',
52 | jun: 'Haz',
53 | jul: 'Tem',
54 | aug: 'Ağu',
55 | sep: 'Eyl',
56 | oct: 'Eki',
57 | nov: 'Kas',
58 | dec: 'Ara'
59 | }
60 | },
61 | select: {
62 | loading: 'Yükleniyor',
63 | noMatch: 'Eşleşen veri bulunamadı',
64 | noData: 'Veri yok',
65 | placeholder: 'Seç'
66 | },
67 | cascader: {
68 | noMatch: 'Eşleşen veri bulunamadı',
69 | loading: 'Yükleniyor',
70 | placeholder: 'Seç',
71 | noData: 'Veri yok'
72 | },
73 | pagination: {
74 | goto: 'Git',
75 | pagesize: '/sayfa',
76 | total: 'Toplam {total}',
77 | pageClassifier: ''
78 | },
79 | messagebox: {
80 | title: 'Mesaj',
81 | confirm: 'Onayla',
82 | cancel: 'İptal',
83 | error: 'İllegal giriş'
84 | },
85 | upload: {
86 | deleteTip: 'kaldırmak için delete tuşuna bas',
87 | delete: 'Sil',
88 | preview: 'Görüntüle',
89 | continue: 'Devam'
90 | },
91 | table: {
92 | emptyText: 'Veri yok',
93 | confirmFilter: 'Onayla',
94 | resetFilter: 'Sıfırla',
95 | clearFilter: 'Hepsi',
96 | sumText: 'Sum'
97 | },
98 | tree: {
99 | emptyText: 'Veri yok'
100 | },
101 | transfer: {
102 | noMatch: 'Eşleşen veri bulunamadı',
103 | noData: 'Veri yok',
104 | titles: ['Liste 1', 'Liste 2'],
105 | filterPlaceholder: 'Anahtar kelimeleri gir',
106 | noCheckedFormat: '{total} adet',
107 | hasCheckedFormat: '{checked}/{total} seçildi'
108 | },
109 | image: {
110 | error: 'FAILED' // to be translated
111 | },
112 | pageHeader: {
113 | title: 'Back' // to be translated
114 | },
115 | popconfirm: {
116 | confirmButtonText: 'Yes', // to be translated
117 | cancelButtonText: 'No' // to be translated
118 | }
119 | }
120 | };
121 |
--------------------------------------------------------------------------------
/src/locale/lang/km.js:
--------------------------------------------------------------------------------
1 | export default {
2 | el: {
3 | colorpicker: {
4 | confirm: 'យល់ព្រម',
5 | clear: 'លុប'
6 | },
7 | datepicker: {
8 | now: 'ឥឡូវនេះ',
9 | today: 'ថ្ងៃនេះ',
10 | cancel: 'បោះបង់',
11 | clear: 'លុប',
12 | confirm: 'យល់ព្រម',
13 | selectDate: 'ជ្រើសរើសថ្ងៃ',
14 | selectTime: 'ជ្រើសរើសម៉ោង',
15 | startDate: 'ថ្ងៃចាប់ផ្តើម',
16 | startTime: 'ម៉ោងចាប់ផ្តើម',
17 | endDate: 'ថ្ងៃបញ្ចប់',
18 | endTime: 'ម៉ោងបញ្ចប់',
19 | prevYear: 'ឆ្នាំមុន',
20 | nextYear: 'ឆ្នាំក្រោយ',
21 | prevMonth: 'ខែមុន',
22 | nextMonth: 'ខែក្រោយ',
23 | year: 'ឆ្នាំ',
24 | month1: 'មករា',
25 | month2: 'កុម្ភៈ',
26 | month3: 'មីនា',
27 | month4: 'មេសា',
28 | month5: 'ឧសភា',
29 | month6: 'មិថុនា',
30 | month7: 'កក្កដា',
31 | month8: 'សីហា',
32 | month9: 'កញ្ញា',
33 | month10: 'តុលា',
34 | month11: 'វិច្ឆកា',
35 | month12: 'ធ្នូ',
36 | // week: 'week',
37 | weeks: {
38 | sun: 'អាទិត្យ',
39 | mon: 'Mon',
40 | tue: 'អង្គារ',
41 | wed: 'ពុធ',
42 | thu: 'ព្រ.ហ',
43 | fri: 'សុក្រ',
44 | sat: 'សៅរ៏'
45 | },
46 | months: {
47 | jan: 'មករា',
48 | feb: 'កុម្ភៈ',
49 | mar: 'មីនា',
50 | apr: 'មេសា',
51 | may: 'ឧសភា',
52 | jun: 'មិថុនា',
53 | jul: 'កក្កដា',
54 | aug: 'សីហា',
55 | sep: 'កញ្ញា',
56 | oct: 'តុលា',
57 | nov: 'វិច្ឆកា',
58 | dec: 'ធ្នូ'
59 | }
60 | },
61 | select: {
62 | loading: 'កំពុងផ្ទុក',
63 | noMatch: 'គ្មានទិន្ន័យដូច',
64 | noData: 'គ្មានទិន្ន័យ',
65 | placeholder: 'ជ្រើសរើស'
66 | },
67 | cascader: {
68 | noMatch: 'គ្មានទិន្ន័យដូច',
69 | loading: 'កំពុងផ្ទុក',
70 | placeholder: 'ជ្រើសរើស',
71 | noData: 'គ្មានទិន្ន័យ'
72 | },
73 | pagination: {
74 | goto: 'ទៅកាន់',
75 | pagesize: '/ទំព័រ',
76 | total: 'សរុប {total}',
77 | pageClassifier: ''
78 | },
79 | messagebox: {
80 | title: 'សារ',
81 | confirm: 'យល់ព្រម',
82 | cancel: 'បោះបង់',
83 | error: 'ការបញ្ចូលមិនអនុញ្ញាត'
84 | },
85 | upload: {
86 | deleteTip: 'ចុចលុបដើម្បីដកចេញ',
87 | delete: 'លុប',
88 | preview: 'មើល',
89 | continue: 'បន្ត'
90 | },
91 | table: {
92 | emptyText: 'គ្មានទិន្ន័យ',
93 | confirmFilter: 'យល់ព្រម',
94 | resetFilter: 'កំណត់ឡើងវិញ',
95 | clearFilter: 'ទាំងអស់',
96 | sumText: 'បូក'
97 | },
98 | tree: {
99 | emptyText: 'គ្មានទិន្ន័យ'
100 | },
101 | transfer: {
102 | noMatch: 'គ្មានទិន្ន័យដូច',
103 | noData: 'គ្មានទិន្ន័យ',
104 | titles: ['បញ្ជី ១', 'បញ្ជី ២'],
105 | filterPlaceholder: 'បញ្ចូលពាក្យ',
106 | noCheckedFormat: '{total} ធាតុ',
107 | hasCheckedFormat: '{checked}/{total} បានគូសធីក'
108 | },
109 | image: {
110 | error: 'FAILED' // to be translated
111 | },
112 | pageHeader: {
113 | title: 'Back' // to be translated
114 | },
115 | popconfirm: {
116 | confirmButtonText: 'Yes', // to be translated
117 | cancelButtonText: 'No' // to be translated
118 | }
119 | }
120 | };
121 |
--------------------------------------------------------------------------------
/src/locale/lang/sv-SE.js:
--------------------------------------------------------------------------------
1 | export default {
2 | el: {
3 | colorpicker: {
4 | confirm: 'OK',
5 | clear: 'Töm'
6 | },
7 | datepicker: {
8 | now: 'Nu',
9 | today: 'Idag',
10 | cancel: 'Avbryt',
11 | clear: 'Töm',
12 | confirm: 'OK',
13 | selectDate: 'Välj datum',
14 | selectTime: 'Välj tid',
15 | startDate: 'Startdatum',
16 | startTime: 'Starttid',
17 | endDate: 'Slutdatum',
18 | endTime: 'Sluttid',
19 | prevYear: 'Föregående år',
20 | nextYear: 'Nästa år',
21 | prevMonth: 'Föregående månad',
22 | nextMonth: 'Nästa månad',
23 | year: '',
24 | month1: 'Januari',
25 | month2: 'Februari',
26 | month3: 'Mars',
27 | month4: 'April',
28 | month5: 'Maj',
29 | month6: 'Juni',
30 | month7: 'Juli',
31 | month8: 'Augusti',
32 | month9: 'September',
33 | month10: 'Oktober',
34 | month11: 'November',
35 | month12: 'December',
36 | // week: 'week',
37 | weeks: {
38 | sun: 'Sön',
39 | mon: 'Mån',
40 | tue: 'Tis',
41 | wed: 'Ons',
42 | thu: 'Tor',
43 | fri: 'Fre',
44 | sat: 'Lör'
45 | },
46 | months: {
47 | jan: 'Jan',
48 | feb: 'Feb',
49 | mar: 'Mar',
50 | apr: 'Apr',
51 | may: 'Maj',
52 | jun: 'Jun',
53 | jul: 'Jul',
54 | aug: 'Aug',
55 | sep: 'Sep',
56 | oct: 'Okt',
57 | nov: 'Nov',
58 | dec: 'Dec'
59 | }
60 | },
61 | select: {
62 | loading: 'Laddar',
63 | noMatch: 'Hittade inget',
64 | noData: 'Ingen data',
65 | placeholder: 'Välj'
66 | },
67 | cascader: {
68 | noMatch: 'Hittade inget',
69 | loading: 'Laddar',
70 | placeholder: 'Välj',
71 | noData: 'Ingen data'
72 | },
73 | pagination: {
74 | goto: 'Gå till',
75 | pagesize: '/sida',
76 | total: 'Totalt {total}',
77 | pageClassifier: ''
78 | },
79 | messagebox: {
80 | title: 'Meddelande',
81 | confirm: 'OK',
82 | cancel: 'Avbryt',
83 | error: 'Felaktig inmatning'
84 | },
85 | upload: {
86 | deleteTip: 'press delete to remove', // to be translated
87 | delete: 'Radera',
88 | preview: 'Förhandsvisa',
89 | continue: 'Fortsätt'
90 | },
91 | table: {
92 | emptyText: 'Inga Data',
93 | confirmFilter: 'Bekräfta',
94 | resetFilter: 'Återställ',
95 | clearFilter: 'Alla',
96 | sumText: 'Summa'
97 | },
98 | tree: {
99 | emptyText: 'Ingen data'
100 | },
101 | transfer: {
102 | noMatch: 'Hittade inget',
103 | noData: 'Ingen data',
104 | titles: ['List 1', 'List 2'], // to be translated
105 | filterPlaceholder: 'Enter keyword', // to be translated
106 | noCheckedFormat: '{total} items', // to be translated
107 | hasCheckedFormat: '{checked}/{total} checked' // to be translated
108 | },
109 | image: {
110 | error: 'FAILED' // to be translated
111 | },
112 | pageHeader: {
113 | title: 'Bakåt' // to be translated
114 | },
115 | popconfirm: {
116 | confirmButtonText: 'Ja',
117 | cancelButtonText: 'Nej'
118 | }
119 | }
120 | };
121 |
--------------------------------------------------------------------------------
/src/locale/lang/pt-br.js:
--------------------------------------------------------------------------------
1 | export default {
2 | el: {
3 | colorpicker: {
4 | confirm: 'Confirmar',
5 | clear: 'Limpar'
6 | },
7 | datepicker: {
8 | now: 'Agora',
9 | today: 'Hoje',
10 | cancel: 'Cancelar',
11 | clear: 'Limpar',
12 | confirm: 'Confirmar',
13 | selectDate: 'Selecione a data',
14 | selectTime: 'Selecione a hora',
15 | startDate: 'Data inicial',
16 | startTime: 'Hora inicial',
17 | endDate: 'Data final',
18 | endTime: 'Hora final',
19 | prevYear: 'Ano anterior',
20 | nextYear: 'Próximo ano',
21 | prevMonth: 'Mês anterior',
22 | nextMonth: 'Próximo mês',
23 | year: '',
24 | month1: 'Janeiro',
25 | month2: 'Fevereiro',
26 | month3: 'Março',
27 | month4: 'Abril',
28 | month5: 'Maio',
29 | month6: 'Junho',
30 | month7: 'Julho',
31 | month8: 'Agosto',
32 | month9: 'Setembro',
33 | month10: 'Outubro',
34 | month11: 'Novembro',
35 | month12: 'Dezembro',
36 | // week: 'semana',
37 | weeks: {
38 | sun: 'Dom',
39 | mon: 'Seg',
40 | tue: 'Ter',
41 | wed: 'Qua',
42 | thu: 'Qui',
43 | fri: 'Sex',
44 | sat: 'Sab'
45 | },
46 | months: {
47 | jan: 'Jan',
48 | feb: 'Fev',
49 | mar: 'Mar',
50 | apr: 'Abr',
51 | may: 'Mai',
52 | jun: 'Jun',
53 | jul: 'Jul',
54 | aug: 'Ago',
55 | sep: 'Set',
56 | oct: 'Out',
57 | nov: 'Nov',
58 | dec: 'Dez'
59 | }
60 | },
61 | select: {
62 | loading: 'Carregando',
63 | noMatch: 'Sem resultados',
64 | noData: 'Sem dados',
65 | placeholder: 'Selecione'
66 | },
67 | cascader: {
68 | noMatch: 'Sem resultados',
69 | loading: 'Carregando',
70 | placeholder: 'Selecione',
71 | noData: 'Sem dados'
72 | },
73 | pagination: {
74 | goto: 'Ir para',
75 | pagesize: '/página',
76 | total: 'Total {total}',
77 | pageClassifier: ''
78 | },
79 | messagebox: {
80 | title: 'Mensagem',
81 | confirm: 'Confirmar',
82 | cancel: 'Cancelar',
83 | error: 'Erro!'
84 | },
85 | upload: {
86 | deleteTip: 'aperte delete para apagar',
87 | delete: 'Apagar',
88 | preview: 'Pré-visualizar',
89 | continue: 'Continuar'
90 | },
91 | table: {
92 | emptyText: 'Sem dados',
93 | confirmFilter: 'Confirmar',
94 | resetFilter: 'Limpar',
95 | clearFilter: 'Todos',
96 | sumText: 'Total'
97 | },
98 | tree: {
99 | emptyText: 'Sem dados'
100 | },
101 | transfer: {
102 | noMatch: 'Sem resultados',
103 | noData: 'Sem dados',
104 | titles: ['Lista 1', 'Lista 2'],
105 | filterPlaceholder: 'Digite uma palavra-chave',
106 | noCheckedFormat: '{total} itens',
107 | hasCheckedFormat: '{checked}/{total} selecionados'
108 | },
109 | image: {
110 | error: 'Erro ao carregar imagem'
111 | },
112 | pageHeader: {
113 | title: 'Voltar'
114 | },
115 | popconfirm: {
116 | confirmButtonText: 'Yes', // to be translated
117 | cancelButtonText: 'No' // to be translated
118 | }
119 | }
120 | };
121 |
--------------------------------------------------------------------------------