bri-components 1.0.0 → 1.0.2
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/lib/0.bri-components.min.js +1 -2
- package/lib/1.bri-components.min.js +1 -2
- package/lib/2.bri-components.min.js +1 -2
- package/lib/3.bri-components.min.js +1 -2
- package/lib/4.bri-components.min.js +1 -2
- package/lib/5.bri-components.min.js +1 -2
- package/lib/6.bri-components.min.js +1 -2
- package/lib/bri-components.min.js +4 -5
- package/lib/styles/bri-components.css +1 -1
- package/package.json +1 -1
- package/src/components/controls/base/DshLabels.vue +16 -13
- package/src/components/controls/base/DshPackage.vue +1 -1
- package/src/components/list/evTable/EvTable.vue +0 -2
- package/src/components/other/ZGantt.vue +144 -31
- package/src/components/small/Ctooltip.vue +7 -9
- package/src/index.js +12 -5
- package/src/styles/view_reset.less +8 -2
- package/lib/.DS_Store +0 -0
- package/lib/0.bri-components.min.js.map +0 -1
- package/lib/1.bri-components.min.js.map +0 -1
- package/lib/2.bri-components.min.js.map +0 -1
- package/lib/3.bri-components.min.js.gz +0 -0
- package/lib/3.bri-components.min.js.map +0 -1
- package/lib/4.bri-components.min.js.gz +0 -0
- package/lib/4.bri-components.min.js.map +0 -1
- package/lib/5.bri-components.min.js.map +0 -1
- package/lib/6.bri-components.min.js.map +0 -1
- package/lib/bri-components.min.js.gz +0 -0
- package/lib/bri-components.min.js.map +0 -1
|
@@ -5,40 +5,83 @@
|
|
|
5
5
|
<slot></slot>
|
|
6
6
|
</div>
|
|
7
7
|
<!-- 时间渲染 -->
|
|
8
|
-
<div
|
|
9
|
-
|
|
8
|
+
<div
|
|
9
|
+
class="briGantt-timer"
|
|
10
|
+
:style="{width: clientWidth + 'px'}"
|
|
11
|
+
>
|
|
12
|
+
<a
|
|
13
|
+
class="briGantt-timer-icon briGantt-timer-icon-left"
|
|
14
|
+
@click="preTime"
|
|
15
|
+
>
|
|
16
|
+
<Icon type="ios-arrow-back" />
|
|
17
|
+
</a>
|
|
10
18
|
<div class="briGantt-timer-bg"></div>
|
|
11
|
-
<div
|
|
12
|
-
|
|
19
|
+
<div
|
|
20
|
+
class="bri-scrollbar0 briGantt-timer-main"
|
|
21
|
+
ref="briGanttTimer"
|
|
22
|
+
v-on:scroll="handleScroll($event, [{ ref: 'briGanttArea', direction: 'scrollLeft' }])"
|
|
23
|
+
>
|
|
24
|
+
<table
|
|
25
|
+
:style="{tableLayout:'fixed', width: tableWidth}"
|
|
26
|
+
class="briGantt-tableBox"
|
|
27
|
+
>
|
|
13
28
|
<thead class="briGantt-table-thead">
|
|
14
29
|
<tr>
|
|
15
|
-
<th
|
|
30
|
+
<th
|
|
31
|
+
class="briGantt-table-th"
|
|
16
32
|
v-for="timeItem in simpleData"
|
|
17
33
|
:key="timeItem.key"
|
|
18
34
|
:colspan="timeItem.colspan"
|
|
19
35
|
:style="{...timeItem.style}"
|
|
36
|
+
>
|
|
37
|
+
<Tooltip
|
|
38
|
+
:content="timeItem.fullName"
|
|
39
|
+
placement="top"
|
|
40
|
+
:transfer="true"
|
|
41
|
+
:transfer-class-name="`briGantt-transfer-tooltip-${themeName}`"
|
|
20
42
|
>
|
|
21
|
-
<Tooltip :content="timeItem.fullName" placement="top" :transfer="true" :transfer-class-name="`briGantt-transfer-tooltip-${themeName}`">
|
|
22
43
|
{{ timeItem.name }}
|
|
23
44
|
</Tooltip>
|
|
24
|
-
<div
|
|
45
|
+
<div
|
|
46
|
+
v-if="timeItem.now"
|
|
47
|
+
class="briGantt-line-now"
|
|
48
|
+
></div>
|
|
25
49
|
</th>
|
|
26
50
|
</tr>
|
|
27
51
|
</thead>
|
|
28
52
|
</table>
|
|
29
53
|
</div>
|
|
30
|
-
<a
|
|
54
|
+
<a
|
|
55
|
+
class="briGantt-timer-icon briGantt-timer-icon-right"
|
|
56
|
+
@click="nextTime"
|
|
57
|
+
>
|
|
58
|
+
<Icon type="ios-arrow-forward" />
|
|
59
|
+
</a>
|
|
31
60
|
</div>
|
|
32
61
|
</div>
|
|
33
62
|
<div class="briGantt-bottom">
|
|
34
|
-
<div
|
|
63
|
+
<div
|
|
64
|
+
class="briGantt-bottom-title"
|
|
65
|
+
v-if="title"
|
|
66
|
+
>{{ title }}</div>
|
|
35
67
|
<div class="briGantt-bottom-content">
|
|
36
68
|
<!-- 数据映射 -->
|
|
37
|
-
<div
|
|
69
|
+
<div
|
|
70
|
+
v-if="table"
|
|
71
|
+
class="bri-scrollbar0 briGantt-tabledata"
|
|
72
|
+
ref="briGanttColumn"
|
|
73
|
+
v-on:scroll="handleScroll($event, [{ ref: 'briGanttArea', direction: 'scrollTop' }])"
|
|
74
|
+
>
|
|
38
75
|
<table class="briGantt-tableBox briGantt-table">
|
|
39
76
|
<tbody>
|
|
40
|
-
<tr
|
|
41
|
-
|
|
77
|
+
<tr
|
|
78
|
+
class="briGantt-table-tr"
|
|
79
|
+
v-for="(row, rowIndex) in table"
|
|
80
|
+
:key="rowIndex"
|
|
81
|
+
>
|
|
82
|
+
<td
|
|
83
|
+
class="briGantt-table-td"
|
|
84
|
+
v-for="(col, colIndex) in row"
|
|
42
85
|
:key="colIndex"
|
|
43
86
|
:colspan="col.colspan"
|
|
44
87
|
:rowspan="col.rowspan"
|
|
@@ -50,35 +93,93 @@
|
|
|
50
93
|
</table>
|
|
51
94
|
</div>
|
|
52
95
|
<!-- 区域映射 -->
|
|
53
|
-
<div
|
|
54
|
-
|
|
96
|
+
<div
|
|
97
|
+
class="briGantt-data bri-scrollbar"
|
|
98
|
+
:class="`briGantt-data-${type}`"
|
|
99
|
+
ref="briGanttArea"
|
|
100
|
+
v-on:scroll="handleScroll($event, [{ ref: 'briGanttTimer', direction: 'scrollLeft' }, { ref:'briGanttColumn', direction:'scrollTop' }, { ref:'briGanttScrollbar', direction:'scrollLeft' }])"
|
|
101
|
+
>
|
|
102
|
+
<table
|
|
103
|
+
:style="{tableLayout:'fixed', width: tableWidth}"
|
|
104
|
+
class="briGantt-tableBox briGantt-table"
|
|
105
|
+
border="0"
|
|
106
|
+
cellspacing="0"
|
|
107
|
+
cellpadding="0"
|
|
108
|
+
>
|
|
55
109
|
<tr v-if="computedData.length === 0">
|
|
56
|
-
<td
|
|
110
|
+
<td
|
|
111
|
+
:colspan="timeData.length"
|
|
112
|
+
class="briGantt-table-td"
|
|
113
|
+
>暂无数据</td>
|
|
57
114
|
</tr>
|
|
58
115
|
<tbody v-if="type==='table'">
|
|
59
116
|
<tr v-if="computedData.length === 0">
|
|
60
|
-
<td
|
|
117
|
+
<td
|
|
118
|
+
:colspan="timeData.length"
|
|
119
|
+
class="briGantt-table-td"
|
|
120
|
+
>暂无数据</td>
|
|
61
121
|
</tr>
|
|
62
|
-
<tr
|
|
63
|
-
|
|
122
|
+
<tr
|
|
123
|
+
class="briGantt-table-tr"
|
|
124
|
+
v-for="(taskItem, taskIndex) in computedData"
|
|
125
|
+
:key="taskIndex"
|
|
126
|
+
style="border-left: none"
|
|
127
|
+
>
|
|
128
|
+
<td
|
|
129
|
+
class="briGantt-table-td"
|
|
64
130
|
v-for="(timeItem, timeIndex) in taskItem"
|
|
65
131
|
:key="timeIndex"
|
|
66
132
|
:colspan="timeItem.colspan"
|
|
133
|
+
>
|
|
134
|
+
<slot
|
|
135
|
+
v-if="timeItem.isApply"
|
|
136
|
+
name="table"
|
|
137
|
+
v-bind:task="timeItem.task"
|
|
138
|
+
v-bind:time="timeItem"
|
|
67
139
|
>
|
|
68
|
-
|
|
69
|
-
|
|
140
|
+
<div
|
|
141
|
+
class="briGantt-table-td-main"
|
|
142
|
+
:style="timeItem.style"
|
|
143
|
+
></div>
|
|
144
|
+
</slot>
|
|
145
|
+
<slot
|
|
146
|
+
v-else
|
|
147
|
+
name="tabletd"
|
|
148
|
+
v-bind:preTime="taskItem[timeIndex-1]"
|
|
149
|
+
v-bind:nextTime="taskItem[timeIndex+1]"
|
|
150
|
+
v-bind:task="timeItem.task"
|
|
151
|
+
v-bind:time="timeItem"
|
|
152
|
+
></slot>
|
|
70
153
|
</td>
|
|
71
154
|
</tr>
|
|
72
155
|
</tbody>
|
|
73
156
|
<tbody v-else-if="type==='chart'">
|
|
74
|
-
<tr
|
|
75
|
-
|
|
157
|
+
<tr
|
|
158
|
+
class="briGantt-chart-tr"
|
|
159
|
+
v-for="(taskItem, taskIndex) in computedData"
|
|
160
|
+
:key="taskIndex"
|
|
161
|
+
>
|
|
162
|
+
<td
|
|
163
|
+
class="briGantt-chart-td"
|
|
76
164
|
v-for="(timeItem, timeIndex) in taskItem"
|
|
77
165
|
:key="timeIndex"
|
|
78
|
-
:colspan="timeItem.colspan"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
166
|
+
:colspan="timeItem.colspan"
|
|
167
|
+
>
|
|
168
|
+
<div
|
|
169
|
+
v-if="timeItem.isApply"
|
|
170
|
+
class="briGantt-chart-td-main"
|
|
171
|
+
>
|
|
172
|
+
<slot
|
|
173
|
+
name="chart"
|
|
174
|
+
v-bind:task="timeItem.task"
|
|
175
|
+
v-bind:chartItem="timeItem"
|
|
176
|
+
>
|
|
177
|
+
<Tooltip
|
|
178
|
+
placement="right"
|
|
179
|
+
transfer
|
|
180
|
+
:transfer-class-name="`briGantt-transfer-tooltip-${themeName}`"
|
|
181
|
+
style="width:100%"
|
|
182
|
+
>
|
|
82
183
|
<div
|
|
83
184
|
class="briGantt-chart-td-main-center"
|
|
84
185
|
:style="{
|
|
@@ -86,8 +187,12 @@
|
|
|
86
187
|
minWidth: minTdWidth,
|
|
87
188
|
border: `1px solid ${timeItem.style.background}`,
|
|
88
189
|
padding: timeItem.task.progressField == 100 ? '' : '1px'}"
|
|
190
|
+
>
|
|
191
|
+
<slot
|
|
192
|
+
name="chartCenter"
|
|
193
|
+
v-bind:task="timeItem.task"
|
|
194
|
+
v-bind:chartItem="timeItem"
|
|
89
195
|
>
|
|
90
|
-
<slot name="chartCenter" v-bind:task="timeItem.task" v-bind:chartItem="timeItem">
|
|
91
196
|
<div
|
|
92
197
|
class="ms-ellipsis"
|
|
93
198
|
:style="{
|
|
@@ -99,7 +204,10 @@
|
|
|
99
204
|
</div>
|
|
100
205
|
</slot>
|
|
101
206
|
</div>
|
|
102
|
-
<div
|
|
207
|
+
<div
|
|
208
|
+
slot="content"
|
|
209
|
+
class="briGantt-chart-td-main-center-tooltip"
|
|
210
|
+
>
|
|
103
211
|
<span
|
|
104
212
|
class="briGantt-chart-td-main-center-tooltip-select"
|
|
105
213
|
:style="{...timeItem.style}"
|
|
@@ -112,11 +220,14 @@
|
|
|
112
220
|
</Tooltip>
|
|
113
221
|
</slot>
|
|
114
222
|
</div>
|
|
115
|
-
<slot
|
|
223
|
+
<slot
|
|
224
|
+
v-else
|
|
225
|
+
name="charttd"
|
|
116
226
|
v-bind:task="timeItem.task"
|
|
117
227
|
v-bind:time="timeItem"
|
|
118
228
|
v-bind:preTime="taskItem[timeIndex-1]"
|
|
119
|
-
v-bind:nextTime="taskItem[timeIndex+1]"
|
|
229
|
+
v-bind:nextTime="taskItem[timeIndex+1]"
|
|
230
|
+
>
|
|
120
231
|
<div class="briGantt-chart-td-greyLine"></div>
|
|
121
232
|
</slot>
|
|
122
233
|
</td>
|
|
@@ -251,6 +362,8 @@
|
|
|
251
362
|
name: "briGantt",
|
|
252
363
|
components: {},
|
|
253
364
|
props: {
|
|
365
|
+
simpleDataColor: String,
|
|
366
|
+
|
|
254
367
|
tasks: Array,
|
|
255
368
|
options: {
|
|
256
369
|
type: Object,
|
|
@@ -408,7 +521,7 @@
|
|
|
408
521
|
name: "今天",
|
|
409
522
|
colspan: 1,
|
|
410
523
|
fullName: this.dateFormat(getDate(0), "yyyy-MM-dd"),
|
|
411
|
-
style: { color: this
|
|
524
|
+
style: { color: this.simpleDataColor, fontWeight: 500 },
|
|
412
525
|
now: true
|
|
413
526
|
}
|
|
414
527
|
];
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Tooltip
|
|
3
3
|
class="Ctooltip"
|
|
4
|
+
style="width: 100%;"
|
|
4
5
|
:disabled="disabled"
|
|
5
6
|
:content="content"
|
|
6
7
|
:placement="placement"
|
|
7
8
|
:transfer="transfer"
|
|
8
9
|
:maxWidth="maxWidth"
|
|
9
|
-
style="width:100%;"
|
|
10
10
|
>
|
|
11
11
|
<div
|
|
12
|
-
class="ellipsisContent"
|
|
13
12
|
ref="ellipsisContent"
|
|
13
|
+
class="ellipsisContent"
|
|
14
14
|
>
|
|
15
15
|
<slot></slot>
|
|
16
16
|
</div>
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
|
|
18
|
+
<slot
|
|
19
19
|
slot="content"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</div>
|
|
20
|
+
name="content"
|
|
21
|
+
></slot>
|
|
23
22
|
</Tooltip>
|
|
24
23
|
</template>
|
|
25
24
|
|
|
@@ -45,8 +44,7 @@
|
|
|
45
44
|
transfer: {
|
|
46
45
|
type: Boolean,
|
|
47
46
|
default: false
|
|
48
|
-
}
|
|
49
|
-
custom: Boolean
|
|
47
|
+
}
|
|
50
48
|
},
|
|
51
49
|
data () {
|
|
52
50
|
return {
|
package/src/index.js
CHANGED
|
@@ -89,8 +89,8 @@ import DshUndeveloped from "./components/controls/base/DshUndeveloped.vue";
|
|
|
89
89
|
// other
|
|
90
90
|
import ZIframe from "./components/other/ZIframe.vue";
|
|
91
91
|
|
|
92
|
-
//
|
|
93
|
-
const
|
|
92
|
+
// !!!!!!挂载全局的组件,不是别写在这
|
|
93
|
+
const map = {
|
|
94
94
|
DshDraggable,
|
|
95
95
|
DshCropper,
|
|
96
96
|
|
|
@@ -146,19 +146,26 @@ const protoComponents = {
|
|
|
146
146
|
DshFileShow
|
|
147
147
|
};
|
|
148
148
|
const install = function (Vue, opts = {}) {
|
|
149
|
+
const { globalMap } = opts;
|
|
149
150
|
ViewUI.LoadingBar.config({
|
|
150
151
|
color: "#2d8cf0",
|
|
151
152
|
failedColor: "red",
|
|
152
153
|
height: 3
|
|
153
154
|
});
|
|
154
155
|
Vue.use(ViewUI);
|
|
155
|
-
|
|
156
|
-
|
|
156
|
+
|
|
157
|
+
const componentMap = {
|
|
158
|
+
...map,
|
|
159
|
+
...(globalMap || {})
|
|
160
|
+
};
|
|
161
|
+
Object.keys(componentMap).forEach(key => {
|
|
162
|
+
Vue.component(key, componentMap[key]);
|
|
157
163
|
});
|
|
158
164
|
};
|
|
159
165
|
|
|
160
166
|
export default {
|
|
161
|
-
install
|
|
167
|
+
install,
|
|
168
|
+
...map
|
|
162
169
|
};
|
|
163
170
|
export {
|
|
164
171
|
DshDraggable,
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
border: none;
|
|
83
83
|
|
|
84
84
|
&:hover {
|
|
85
|
-
background-color: @ghostBg
|
|
85
|
+
background-color: @ghostBg !important;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -203,7 +203,7 @@ fieldset[disabled] .ivu-btn.active,
|
|
|
203
203
|
fieldset[disabled] .ivu-btn:active,
|
|
204
204
|
fieldset[disabled] .ivu-btn:focus,
|
|
205
205
|
fieldset[disabled] .ivu-btn:hover {
|
|
206
|
-
color: @minorTextColor
|
|
206
|
+
color: @minorTextColor !important;
|
|
207
207
|
background-color: @bgColor;
|
|
208
208
|
border: 1px solid @minorTextColor;
|
|
209
209
|
}
|
|
@@ -443,4 +443,10 @@ fieldset[disabled] .ivu-btn:hover {
|
|
|
443
443
|
// tooltip 数字不折行问题
|
|
444
444
|
.ivu-tooltip-inner {
|
|
445
445
|
word-break: break-word;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.ivu-message-notice-content {
|
|
449
|
+
padding: 13px 16px;
|
|
450
|
+
border: 1px solid rgba(229, 229, 229, 1);
|
|
451
|
+
box-shadow: 0 6px 30px 5px rgba(0, 0, 0, 0.05), 0 16px 24px 2px rgba(0, 0, 0, 0.04), 0 8px 10px -5px rgba(0, 0, 0, 0.08)
|
|
446
452
|
}
|
package/lib/.DS_Store
DELETED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///./src/components/controls/base/DshCascaderMultiple.vue","webpack:///src/components/controls/base/DshCascaderMultiple.vue","webpack:///./src/components/controls/base/DshCascaderMultiple.vue?60ce","webpack:///./src/components/controls/base/DshCascaderMultiple.vue?8e15","webpack:///./src/components/controls/base/DshCascaderMultiple.vue?3e3e","webpack:///./src/components/controls/base/DshCascaderMultiple.vue?ffa3","webpack:///./src/components/controls/base/DshCascaderMultiple.vue?678f"],"names":["Object","defineProperty","__webpack_exports__","value","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_DshCascaderMultiple_vue__","__webpack_require__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_c814b69a_hasScoped_true_transformToRequire_video_src_poster_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_DshCascaderMultiple_vue__","__vue_styles__","ssrContext","Component","normalizeComponent","name","mixins","__WEBPACK_IMPORTED_MODULE_4__controlMixin_js__","props","data","cascaderVal","operationMap","createTag","type","size","event","deleteTag","computed","cascaderData","get","loop","arguments","length","undefined","level","parentCode","filterVals","filter","item","includes","_key","reduce","arr","newItem","__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default","label","codeArr","concat","__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_toConsumableArray___default","children","loading","push","this","propsObj","_subType","__WEBPACK_IMPORTED_MODULE_3__datas_index_js__","_data","_cascaderLevel","_cascaderFilterVals","set","renderCascaderData","map","tags","_this","$getTreeLinealDatas","join","created","methods","loadData","treeItem","cb","list","operationItem","_this2","some","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default","$Message","error","content","duration","change","params","splice","module","i","locals","exports","version","sources","names","mappings","file","sourcesContent","sourceRoot","esExports","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","placeholder","$showPlaceholder","canEdit","load-data","change-on-select","_changeOnSelect","filterable","disabled","finalCanEdit","clearable","transfer","model","callback","$$v","expression","_v","$getOperationList","on","click","$event","$dispatchEvent","delete","staticRenderFns"],"mappings":"iEAAAA,OAAAC,eAAAC,EAAA,cAAAC,OAAA,QAAAC,EAAAC,EAAA,KAAAC,EAAAD,EAAA,KAIA,IASAE,EAbA,SAAAC,GACEH,EAAQ,KACRA,EAAQ,MAgBVI,EAdyBJ,EAAQ,EAcjCK,CACEN,EAAA,EACAE,EAAA,GATF,EAWAC,EAPA,kBAEA,MAUeL,EAAA,QAAAO,EAAiB,8GC+BhCP,EAAA,GACAS,KAAA,sBACAC,QAAAC,EAAA,SACAC,SACAC,KAJA,WAKA,OACAC,eAEAC,cACAC,WACAP,KAAA,KACAQ,KAAA,YACAC,KAAA,UACAC,MAAA,aAEAC,WACAX,KAAA,KACAQ,KAAA,YACAE,MAAA,gBAKAE,UACAC,cACAC,IADA,WAEA,OAnDA,SAAAC,IAAA,IAAAX,EAAAY,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,MAAAG,EAAAH,UAAA,GAAAI,EAAAJ,UAAA,GAAAK,EAAAL,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,MAIA,OAHAZ,GAAAiB,EAAAJ,SACAb,IAAAkB,OAAA,SAAAC,GAAA,OAAAF,EAAAG,SAAAD,EAAAE,SAEArB,EACAA,EAAAsB,OAAA,SAAAC,EAAAJ,GACA,IAAAK,EAAAC,OACAN,GACA/B,MAAA+B,EAAAE,KACAK,MAAAP,EAAAvB,KACA+B,WAAAC,OAAAC,IAAAb,QAAAG,EAAAE,SAUA,OARAN,KAAAI,EAAAJ,OACAS,EAAAM,SAAAnB,EAAAQ,EAAAW,SAAAf,EAAAS,EAAAG,SACAH,EAAAM,SAAAjB,SAAAW,EAAAO,SAAA,IAEAP,EAAAM,YAEAP,EAAAS,KAAAR,GAEAD,UA+BAZ,CACA,WAAAsB,KAAAC,SAAAC,SAAAC,EAAA,EAAAH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lC,MAAgB0D,IAAKI,OAAA,SAAAF,GAA0B,OAAA1B,EAAA2B,eAAA3B,EAAA3E,aAAAK,UAAAK,gBAAmE,IAE77B8F,oBACFvH,EAAA","file":"0.bri-components.min.js","sourcesContent":["function injectStyle (ssrContext) {\n require(\"!!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-c814b69a\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./DshCascaderMultiple.vue\")\n require(\"!!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-c814b69a\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=1!./DshCascaderMultiple.vue\")\n}\nvar normalizeComponent = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./DshCascaderMultiple.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./DshCascaderMultiple.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-c814b69a\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./DshCascaderMultiple.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-c814b69a\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/controls/base/DshCascaderMultiple.vue\n// module id = 224\n// module chunks = 0","<template>\n <div class=\"DshCascaderMultiple ycFormItem\">\n <Cascader\n class=\"DshCascaderMultiple-control\"\n v-model=\"cascaderVal\"\n :placeholder=\"$showPlaceholder(canEdit, propsObj) ? `请输入${propsObj._name}` : ''\"\n :data=\"renderCascaderData\"\n :load-data=\"loadData\"\n :change-on-select=\"propsObj._changeOnSelect\"\n :filterable=\"true\"\n :disabled=\"!finalCanEdit\"\n :clearable=\"true\"\n :transfer=\"true\"\n ></Cascader>\n <dsh-buttons\n class=\"DshCascaderMultiple-create\"\n :list=\"$getOperationList(['createTag'])\"\n @click=\"$dispatchEvent($event)\"\n ></dsh-buttons>\n\n <!-- 标签列表 -->\n <dsh-tags\n class=\"dsh-margin-top5\"\n :list=\"tags\"\n @delete=\"$dispatchEvent(operationMap.deleteTag, arguments)\"\n ></dsh-tags>\n </div>\n</template>\n\n<script>\n import { regionData } from \"../../../datas/index.js\";\n import controlMixin from \"../controlMixin.js\";\n\n const loop = function (data = [], level, parentCode, filterVals = []) {\n if (data && filterVals.length) {\n data = data.filter(item => filterVals.includes(item._key));\n }\n return data\n ? data.reduce((arr, item) => {\n const newItem = {\n ...item,\n value: item._key,\n label: item.name,\n codeArr: [ ...(parentCode || []), item._key ]\n };\n if (!level || level > item.level) {\n newItem.children = loop(item.children, level, newItem.codeArr);\n newItem.children.length && (newItem.loading = false); // 此代码为了所请求的级出现继续加载的箭头图标\n } else {\n newItem.children = [];\n }\n arr.push(newItem);\n\n return arr;\n }, [])\n : [];\n };\n\n export default {\n name: \"DshCascaderMultiple\",\n mixins: [controlMixin],\n props: {},\n data () {\n return {\n cascaderVal: [],\n\n operationMap: {\n createTag: {\n name: \"添加\",\n type: \"createTag\",\n size: \"default\",\n event: \"createTag\"\n },\n deleteTag: {\n name: \"删除\",\n type: \"deleteTag\",\n event: \"deleteTag\"\n }\n }\n };\n },\n computed: {\n cascaderData: {\n get () {\n return loop(\n this.propsObj._subType === \"region\" ? regionData : this.propsObj._data,\n this.propsObj._cascaderLevel,\n undefined,\n this.propsObj._cascaderFilterVals\n );\n },\n set () {}\n },\n renderCascaderData () {\n return this.cascaderData.map(item => {\n return {\n ...item,\n children: []\n };\n });\n },\n tags () {\n return this.value[this.propsObj._key].map(item => this.$getTreeLinealDatas(item, this.cascaderData, \"name\").join(\"/\"));\n }\n },\n created () {},\n methods: {\n // 动态加载数据\n loadData (treeItem, cb) {\n let list = this.$getTreeLinealDatas(treeItem.codeArr, this.cascaderData);\n treeItem.children = list[list.length - 1].children.map(item => ({ ...item, children: [] }));\n\n cb();\n },\n\n // 添加\n createTag (operationItem) {\n if (this.cascaderVal.length) {\n if (this.value[this.propsObj._key].some(item => JSON.stringify(item) == JSON.stringify(this.cascaderVal))) {\n this.$Message.error({\n content: `\"${this.$getTreeLinealDatas(this.cascaderVal, this.cascaderData, \"name\").join(\"/\")}\"已选择,请勿重复选择!`,\n duration: 5\n });\n } else {\n this.value[this.propsObj._key].push([...this.cascaderVal]);\n this.change();\n }\n\n }\n this.cascaderVal = [];\n },\n // 删除\n deleteTag (operationItem, params) {\n this.value[this.propsObj._key].splice(params[1], 1);\n this.change();\n }\n }\n };\n</script>\n\n<style lang=\"less\" scoped>\n .DshCascaderMultiple {\n width: 100%;\n &-control {\n display: inline-block;\n width: calc(100% - 65px);\n }\n &-create {\n display: inline-block;\n width: 60px;\n }\n }\n</style>\n<style lang=\"less\">\n .DshCascaderMultiple {\n\n }\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/components/controls/base/DshCascaderMultiple.vue","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../node_modules/css-loader/index.js?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-c814b69a\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../node_modules/less-loader/dist/cjs.js?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./DshCascaderMultiple.vue\");\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar update = require(\"!../../../../node_modules/vue-style-loader/lib/addStylesClient.js\")(\"f23373be\", content, true, {});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-style-loader!./node_modules/css-loader?{\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-c814b69a\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/less-loader/dist/cjs.js?{\"sourceMap\":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/controls/base/DshCascaderMultiple.vue\n// module id = 570\n// module chunks = 0","exports = module.exports = require(\"../../../../node_modules/css-loader/lib/css-base.js\")(true);\n// imports\n\n\n// module\nexports.push([module.id, \"\\n.DshCascaderMultiple[data-v-c814b69a] {\\n width: 100%;\\n}\\n.DshCascaderMultiple-control[data-v-c814b69a] {\\n display: inline-block;\\n width: calc(100% - 65px);\\n}\\n.DshCascaderMultiple-create[data-v-c814b69a] {\\n display: inline-block;\\n width: 60px;\\n}\\n\", \"\", {\"version\":3,\"sources\":[\"/Users/luchun/Documents/bri-packages/bri-components/src/components/controls/base/DshCascaderMultiple.vue\"],\"names\":[],\"mappings\":\";AACA;EACE,YAAY;CACb;AACD;EACE,sBAAsB;EACtB,yBAAyB;CAC1B;AACD;EACE,sBAAsB;EACtB,YAAY;CACb\",\"file\":\"DshCascaderMultiple.vue\",\"sourcesContent\":[\"\\n.DshCascaderMultiple[data-v-c814b69a] {\\n width: 100%;\\n}\\n.DshCascaderMultiple-control[data-v-c814b69a] {\\n display: inline-block;\\n width: calc(100% - 65px);\\n}\\n.DshCascaderMultiple-create[data-v-c814b69a] {\\n display: inline-block;\\n width: 60px;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n\n// exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/css-loader?{\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-c814b69a\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/less-loader/dist/cjs.js?{\"sourceMap\":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/controls/base/DshCascaderMultiple.vue\n// module id = 571\n// module chunks = 0","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../node_modules/css-loader/index.js?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-c814b69a\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../../../node_modules/less-loader/dist/cjs.js?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=1!./DshCascaderMultiple.vue\");\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar update = require(\"!../../../../node_modules/vue-style-loader/lib/addStylesClient.js\")(\"fc17191a\", content, true, {});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-style-loader!./node_modules/css-loader?{\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-c814b69a\",\"scoped\":false,\"hasInlineConfig\":false}!./node_modules/less-loader/dist/cjs.js?{\"sourceMap\":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=1!./src/components/controls/base/DshCascaderMultiple.vue\n// module id = 572\n// module chunks = 0","exports = module.exports = require(\"../../../../node_modules/css-loader/lib/css-base.js\")(true);\n// imports\n\n\n// module\nexports.push([module.id, \"\", \"\", {\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"file\":\"DshCascaderMultiple.vue\",\"sourceRoot\":\"\"}]);\n\n// exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/css-loader?{\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-c814b69a\",\"scoped\":false,\"hasInlineConfig\":false}!./node_modules/less-loader/dist/cjs.js?{\"sourceMap\":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=1!./src/components/controls/base/DshCascaderMultiple.vue\n// module id = 573\n// module chunks = 0","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"DshCascaderMultiple ycFormItem\"},[_c('Cascader',{staticClass:\"DshCascaderMultiple-control\",attrs:{\"placeholder\":_vm.$showPlaceholder(_vm.canEdit, _vm.propsObj) ? (\"请输入\" + (_vm.propsObj._name)) : '',\"data\":_vm.renderCascaderData,\"load-data\":_vm.loadData,\"change-on-select\":_vm.propsObj._changeOnSelect,\"filterable\":true,\"disabled\":!_vm.finalCanEdit,\"clearable\":true,\"transfer\":true},model:{value:(_vm.cascaderVal),callback:function ($$v) {_vm.cascaderVal=$$v},expression:\"cascaderVal\"}}),_vm._v(\" \"),_c('dsh-buttons',{staticClass:\"DshCascaderMultiple-create\",attrs:{\"list\":_vm.$getOperationList(['createTag'])},on:{\"click\":function($event){return _vm.$dispatchEvent($event)}}}),_vm._v(\" \"),_c('dsh-tags',{staticClass:\"dsh-margin-top5\",attrs:{\"list\":_vm.tags},on:{\"delete\":function($event){return _vm.$dispatchEvent(_vm.operationMap.deleteTag, arguments)}}})],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-c814b69a\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/controls/base/DshCascaderMultiple.vue\n// module id = 574\n// module chunks = 0"],"sourceRoot":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///./src/components/controls/base/textMultiple/DshTextMultiple.vue","webpack:///src/components/controls/base/textMultiple/DshTextMultiple.vue","webpack:///./src/components/controls/base/textMultiple/DshTextMultiple.vue?ff5c","webpack:///./src/components/controls/base/textMultiple/DshTextMultiple.vue?861b","webpack:///./src/components/controls/base/textMultiple/DshTextMultiple.vue?da89"],"names":["Object","defineProperty","__webpack_exports__","value","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_DshTextMultiple_vue__","__webpack_require__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_6c13d1c2_hasScoped_false_transformToRequire_video_src_poster_source_src_img_src_image_xlink_href_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_DshTextMultiple_vue__","__vue_styles__","ssrContext","Component","normalizeComponent","name","mixins","__WEBPACK_IMPORTED_MODULE_0__controlMixin_js__","props","data","text","operationMap","createTag","type","size","event","deleteTag","computed","created","methods","_this","this","trim","propsObj","_key","some","item","$Message","error","content","duration","push","change","operationItem","params","module","i","locals","exports","version","sources","names","mappings","file","sourcesContent","sourceRoot","esExports","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","placeholder","$showPlaceholder","canEdit","readonly","disabled","clearable","_size","model","callback","$$v","expression","_v","list","$getOperationList","on","click","$event","$dispatchEvent","delete","arguments","staticRenderFns"],"mappings":"iEAAAA,OAAAC,eAAAC,EAAA,cAAAC,OA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AI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,+BAAyCF,EAAA,SAAcE,YAAA,0BAAAC,OAA6CC,YAAAP,EAAAQ,iBAAAR,EAAAS,QAAAT,EAAAzB,UAAA,MAAAyB,EAAAzB,SAAA,SAAAV,KAAA,OAAA6C,UAAAV,EAAAS,QAAAE,UAAA,IAAAX,EAAAzB,SAAAkC,QAAAG,WAAA,EAAA9C,KAAAkC,EAAAzB,SAAAsC,OAA+NC,OAAQjE,MAAAmD,EAAA,KAAAe,SAAA,SAAAC,GAA0ChB,EAAAtC,KAAAsD,GAAaC,WAAA,UAAoBjB,EAAAkB,GAAA,KAAAf,EAAA,eAAgCE,YAAA,yBAAAC,OAA4Ca,KAAAnB,EAAAoB,mBAAA,eAA4CC,IAAKC,MAAA,SAAAC,GAAyB,OAAAvB,EAAAwB,eAAAD,OAAoCvB,EAAAkB,GAAA,KAAAf,EAAA,YAA6BE,YAAA,kBAAAC,OAAqCa,KAAAnB,EAAAnD,MAAAmD,EAAAzB,SAAAC,OAAoC6C,IAAKI,OAAA,SAAAF,GAA0B,OAAAvB,EAAAwB,eAAAxB,EAAArC,aAAAK,UAAA0D,gBAAmE,IAEj3BC,oBACF/E,EAAA","file":"1.bri-components.min.js","sourcesContent":["function injectStyle (ssrContext) {\n require(\"!!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-6c13d1c2\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./DshTextMultiple.vue\")\n}\nvar normalizeComponent = require(\"!../../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./DshTextMultiple.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./DshTextMultiple.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6c13d1c2\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./DshTextMultiple.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/controls/base/textMultiple/DshTextMultiple.vue\n// module id = 226\n// module chunks = 1","<template>\n <div class=\"DshTextMultiple ycFormItem\">\n <Input\n class=\"DshTextMultiple-control\"\n v-model=\"text\"\n :placeholder=\"$showPlaceholder(canEdit, propsObj) ? `请输入${propsObj._name}` : ''\"\n :type=\"'text'\"\n :readonly=\"!canEdit\"\n :disabled=\"propsObj.canEdit === false\"\n :clearable=\"true\"\n :size=\"propsObj._size\"\n />\n <dsh-buttons\n class=\"DshTextMultiple-create\"\n :list=\"$getOperationList(['createTag'])\"\n @click=\"$dispatchEvent($event)\"\n ></dsh-buttons>\n\n <!-- 标签列表 -->\n <dsh-tags\n class=\"dsh-margin-top5\"\n :list=\"value[propsObj._key]\"\n @delete=\"$dispatchEvent(operationMap.deleteTag, arguments)\"\n ></dsh-tags>\n </div>\n</template>\n\n<script>\n import controlMixin from \"../../controlMixin.js\";\n\n export default {\n name: \"DshTextMultiple\",\n mixins: [controlMixin],\n props: {},\n data () {\n return {\n text: \"\",\n\n operationMap: {\n createTag: {\n name: \"添加\",\n type: \"createTag\",\n size: \"default\",\n event: \"createTag\"\n },\n deleteTag: {\n name: \"删除\",\n type: \"deleteTag\",\n event: \"deleteTag\"\n }\n }\n };\n },\n computed: {},\n created () {},\n methods: {\n createTag () {\n if (this.text && this.text.trim()) {\n if (this.value[this.propsObj._key].some(item => item === this.text.trim())) {\n this.$Message.error({\n content: `搜索文字 \"${this.text.trim()}\" 已存在!`,\n duration: 5\n });\n } else {\n this.value[this.propsObj._key].push(this.text.trim());\n this.change();\n }\n\n }\n this.text = \"\";\n },\n // 删除\n deleteTag (operationItem, params) {\n this.change();\n }\n }\n };\n</script>\n\n<style lang=\"less\">\n .DshTextMultiple {\n width: 100%;\n\n &-control {\n display: inline-block;\n width: calc(100% - 65px);\n }\n\n &-create {\n display: inline-block;\n width: 60px;\n }\n }\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/components/controls/base/textMultiple/DshTextMultiple.vue","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../node_modules/css-loader/index.js?{\\\"sourceMap\\\":true}!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-6c13d1c2\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../../../../node_modules/less-loader/dist/cjs.js?{\\\"sourceMap\\\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./DshTextMultiple.vue\");\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar update = require(\"!../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\")(\"61884297\", content, true, {});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-style-loader!./node_modules/css-loader?{\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-6c13d1c2\",\"scoped\":false,\"hasInlineConfig\":false}!./node_modules/less-loader/dist/cjs.js?{\"sourceMap\":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/controls/base/textMultiple/DshTextMultiple.vue\n// module id = 575\n// module chunks = 1","exports = module.exports = require(\"../../../../../node_modules/css-loader/lib/css-base.js\")(true);\n// imports\n\n\n// module\nexports.push([module.id, \"\\n.DshTextMultiple {\\n width: 100%;\\n}\\n.DshTextMultiple-control {\\n display: inline-block;\\n width: calc(100% - 65px);\\n}\\n.DshTextMultiple-create {\\n display: inline-block;\\n width: 60px;\\n}\\n\", \"\", {\"version\":3,\"sources\":[\"/Users/luchun/Documents/bri-packages/bri-components/src/components/controls/base/textMultiple/DshTextMultiple.vue\"],\"names\":[],\"mappings\":\";AACA;EACE,YAAY;CACb;AACD;EACE,sBAAsB;EACtB,yBAAyB;CAC1B;AACD;EACE,sBAAsB;EACtB,YAAY;CACb\",\"file\":\"DshTextMultiple.vue\",\"sourcesContent\":[\"\\n.DshTextMultiple {\\n width: 100%;\\n}\\n.DshTextMultiple-control {\\n display: inline-block;\\n width: calc(100% - 65px);\\n}\\n.DshTextMultiple-create {\\n display: inline-block;\\n width: 60px;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n\n// exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/css-loader?{\"sourceMap\":true}!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-6c13d1c2\",\"scoped\":false,\"hasInlineConfig\":false}!./node_modules/less-loader/dist/cjs.js?{\"sourceMap\":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/controls/base/textMultiple/DshTextMultiple.vue\n// module id = 576\n// module chunks = 1","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"DshTextMultiple ycFormItem\"},[_c('Input',{staticClass:\"DshTextMultiple-control\",attrs:{\"placeholder\":_vm.$showPlaceholder(_vm.canEdit, _vm.propsObj) ? (\"请输入\" + (_vm.propsObj._name)) : '',\"type\":'text',\"readonly\":!_vm.canEdit,\"disabled\":_vm.propsObj.canEdit === false,\"clearable\":true,\"size\":_vm.propsObj._size},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:\"text\"}}),_vm._v(\" \"),_c('dsh-buttons',{staticClass:\"DshTextMultiple-create\",attrs:{\"list\":_vm.$getOperationList(['createTag'])},on:{\"click\":function($event){return _vm.$dispatchEvent($event)}}}),_vm._v(\" \"),_c('dsh-tags',{staticClass:\"dsh-margin-top5\",attrs:{\"list\":_vm.value[_vm.propsObj._key]},on:{\"delete\":function($event){return _vm.$dispatchEvent(_vm.operationMap.deleteTag, arguments)}}})],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-6c13d1c2\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/controls/base/textMultiple/DshTextMultiple.vue\n// module id = 577\n// module chunks = 1"],"sourceRoot":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///./src/components/controls/base/ZUpload/upload-listItem.vue"],"names":["Object","defineProperty","__webpack_exports__","value","Component","__webpack_require__","normalizeComponent"],"mappings":"iEAAAA,OAAAC,eAAAC,EAAA,cAAAC,OAAA,QAaAC,EAbyBC,EAAQ,EAajCC,CAXA,KAEA,MAEA,EAEA,KAEA,KAEA,MAUeJ,EAAA,QAAAE,EAAiB","file":"2.bri-components.min.js","sourcesContent":["var normalizeComponent = require(\"!../../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nvar __vue_script__ = null\n/* template */\nvar __vue_template__ = null\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/controls/base/ZUpload/upload-listItem.vue\n// module id = 225\n// module chunks = 2"],"sourceRoot":""}
|
|
Binary file
|