@tripup-company/element-ui-extended 0.0.57 → 0.0.60

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripup-company/element-ui-extended",
3
- "version": "0.0.57",
3
+ "version": "0.0.60",
4
4
  "main": "./dist/element-ui-extended.umd.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve && tsc --emitDeclarationOnly",
@@ -92,11 +92,11 @@ export default {
92
92
  },
93
93
  selectKey: {
94
94
  type: String,
95
- default: '',
95
+ default: 'value',
96
96
  },
97
97
  selectLabel: {
98
98
  type: String,
99
- default: '',
99
+ default: 'name',
100
100
  },
101
101
  selectValue: {
102
102
  type: String,
@@ -162,8 +162,13 @@ export default {
162
162
  let label = '';
163
163
  if (this.selectMultiple) {
164
164
  if (this.value.length) {
165
+ let values = [];
165
166
  this.value.forEach(element => {
166
- label = label + ' ' + this.selectList.find(({ value }) => value === element).name;
167
+ const lab = this.selectList.find(x => x[this.selectKey] === element)[this.selectLabel];
168
+ if (lab) {
169
+ values.push(lab);
170
+ }
171
+ label = values.join('; ');
167
172
  });
168
173
  } else {
169
174
  label = '-';
@@ -24,6 +24,8 @@
24
24
  :precision="field.precision ? field.precision : 0"
25
25
  :remote-method="field.remoteMethod ? field.remoteMethod : null"
26
26
  :filterable="field.filterable ? field.filterable : null"
27
+ :format="field.format ? field.format : 'dd.MM.yyyy'"
28
+ :value-format="field.valueFormat ? field.valueFormat : 'yyyy-MM-dd'"
27
29
  @editable:save="updateValue"
28
30
  />
29
31
  </el-form-item>
@@ -1,218 +1,3 @@
1
1
  @import "variables";
2
2
  @import 'spacing';
3
3
  @import 'editable-field-component';
4
-
5
- body {
6
- height: 100%;
7
- -moz-osx-font-smoothing: grayscale;
8
- -webkit-font-smoothing: antialiased;
9
- text-rendering: optimizeLegibility;
10
- font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
11
- }
12
-
13
- label {
14
- font-weight: 700;
15
- }
16
-
17
- html {
18
- height: 100%;
19
- box-sizing: border-box;
20
- }
21
-
22
- #app {
23
- height: 100%;
24
- }
25
-
26
- *,
27
- *:before,
28
- *:after {
29
- box-sizing: inherit;
30
- }
31
-
32
- .no-padding {
33
- padding: 0px !important;
34
- }
35
-
36
- .padding-content {
37
- padding: 4px 0;
38
- }
39
-
40
- a:focus,
41
- a:active {
42
- outline: none;
43
- }
44
-
45
- a,
46
- a:focus,
47
- a:hover {
48
- cursor: pointer;
49
- color: inherit;
50
- text-decoration: none;
51
- }
52
-
53
- div:focus {
54
- outline: none;
55
- }
56
-
57
- .fr {
58
- float: right;
59
- }
60
-
61
- .fl {
62
- float: left;
63
- }
64
-
65
- .pr-5 {
66
- padding-right: 5px;
67
- }
68
-
69
- .pl-5 {
70
- padding-left: 5px;
71
- }
72
-
73
- .block {
74
- display: block;
75
- }
76
-
77
- .pointer {
78
- cursor: pointer;
79
- }
80
-
81
- .inlineBlock {
82
- display: block;
83
- }
84
-
85
- .clearfix {
86
- &:after {
87
- visibility: hidden;
88
- display: block;
89
- font-size: 0;
90
- content: " ";
91
- clear: both;
92
- height: 0;
93
- }
94
- }
95
-
96
- code {
97
- background: #eef1f6;
98
- padding: 15px 16px;
99
- margin-bottom: 20px;
100
- display: block;
101
- line-height: 36px;
102
- font-size: 15px;
103
- font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
104
-
105
- a {
106
- color: #337ab7;
107
- cursor: pointer;
108
-
109
- &:hover {
110
- color: rgb(32, 160, 255);
111
- }
112
- }
113
- }
114
-
115
- .warn-content {
116
- background: rgba(66, 185, 131, .1);
117
- border-radius: 2px;
118
- padding: 1rem;
119
- line-height: 1.6rem;
120
- word-spacing: .05rem;
121
-
122
- a {
123
- color: #42b983;
124
- font-weight: 600;
125
- }
126
- }
127
- @media (min-width: $sm){
128
- .app-container {
129
- padding: 20px;
130
- }
131
- }
132
-
133
- .components-container {
134
- margin: 30px 50px;
135
- position: relative;
136
- }
137
-
138
- .pagination-container {
139
- margin-top: 30px;
140
- }
141
-
142
- .text-center {
143
- text-align: center
144
- }
145
-
146
- .sub-navbar {
147
- height: 50px;
148
- line-height: 50px;
149
- position: relative;
150
- width: 100%;
151
- text-align: right;
152
- padding-right: 20px;
153
- transition: 600ms ease position;
154
- background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
155
-
156
- .subtitle {
157
- font-size: 20px;
158
- color: #fff;
159
- }
160
-
161
- &.draft {
162
- background: #d0d0d0;
163
- }
164
-
165
- &.deleted {
166
- background: #d0d0d0;
167
- }
168
- }
169
-
170
- .link-type,
171
- .link-type:focus {
172
- color: #337ab7;
173
- cursor: pointer;
174
-
175
- &:hover {
176
- color: rgb(32, 160, 255);
177
- }
178
- }
179
-
180
- .filter-container {
181
- padding-bottom: 10px;
182
-
183
- .filter-item {
184
- display: inline-block;
185
- vertical-align: middle;
186
- margin-bottom: 10px;
187
- }
188
- }
189
-
190
- //refine vue-multiselect plugin
191
- .multiselect {
192
- line-height: 16px;
193
- }
194
-
195
- .multiselect--active {
196
- z-index: 1000 !important;
197
- }
198
- .el-date-transparent {
199
- margin-left: -15px;
200
- input {
201
- border: none !important;
202
- background: transparent !important;
203
- }
204
- }
205
-
206
- #app .hideSidebar .nav-icon {
207
- margin-left: 20px;
208
- }
209
-
210
- .form-item-min-margin {
211
- /*.el-form-item {
212
- margin-bottom: 0px;
213
- }*/
214
- .el-textarea__inner {
215
- line-height: 36px;
216
- margin-bottom: 10px;
217
- }
218
- }