doway-coms 1.1.79 → 1.1.81
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/.browserslistrc +2 -2
- package/README.md +24 -24
- package/package.json +1 -1
- package/packages/BaseGrid/src/index.vue +142 -99
- package/packages/BaseGridAdjust/src/index.vue +1 -1
- package/dist/doway-coms.common.js +0 -135645
- package/dist/doway-coms.css +0 -3
- package/dist/doway-coms.umd.js +0 -135655
- package/dist/doway-coms.umd.min.js +0 -317
- package/dist/package.json +0 -12
package/.browserslistrc
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
> 1%
|
|
2
|
-
last 2 versions
|
|
1
|
+
> 1%
|
|
2
|
+
last 2 versions
|
package/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# doway-coms
|
|
2
|
-
|
|
3
|
-
## Project setup
|
|
4
|
-
```
|
|
5
|
-
npm install
|
|
6
|
-
```
|
|
7
|
-
|
|
8
|
-
### Compiles and hot-reloads for development
|
|
9
|
-
```
|
|
10
|
-
npm run serve
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
### Compiles and minifies for production
|
|
14
|
-
```
|
|
15
|
-
npm run build
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### Lints and fixes files
|
|
19
|
-
```
|
|
20
|
-
npm run lint
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
### Customize configuration
|
|
24
|
-
See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
1
|
+
# doway-coms
|
|
2
|
+
|
|
3
|
+
## Project setup
|
|
4
|
+
```
|
|
5
|
+
npm install
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
### Compiles and hot-reloads for development
|
|
9
|
+
```
|
|
10
|
+
npm run serve
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Compiles and minifies for production
|
|
14
|
+
```
|
|
15
|
+
npm run build
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Lints and fixes files
|
|
19
|
+
```
|
|
20
|
+
npm run lint
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Customize configuration
|
|
24
|
+
See [Configuration Reference](https://cli.vuejs.org/config/).
|
package/package.json
CHANGED
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
>
|
|
226
226
|
</template>
|
|
227
227
|
<template #operation_edit="scope">
|
|
228
|
-
<div
|
|
228
|
+
<div>
|
|
229
229
|
<a-button
|
|
230
230
|
type="link"
|
|
231
231
|
@click="operationButtonClick(item, scope)"
|
|
@@ -307,9 +307,15 @@
|
|
|
307
307
|
:key="$index"
|
|
308
308
|
>
|
|
309
309
|
<a-input-number
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
310
|
+
:precision="0"
|
|
311
|
+
size="small"
|
|
312
|
+
v-model="loopFilterValue.value[0]"
|
|
313
|
+
/>~
|
|
314
|
+
<a-input-number
|
|
315
|
+
:precision="0"
|
|
316
|
+
size="small"
|
|
317
|
+
v-model="loopFilterValue.value[1]"
|
|
318
|
+
/>
|
|
313
319
|
</div>
|
|
314
320
|
<a-button @click="filterAddExp(scope.column)">添加条件</a-button>
|
|
315
321
|
<a-button @click="filterConfirm(scope.column)">确认</a-button>
|
|
@@ -317,17 +323,31 @@
|
|
|
317
323
|
</template>
|
|
318
324
|
<template #select_filter="scope">
|
|
319
325
|
<div class="interceptor-class">
|
|
320
|
-
<a-checkbox-group
|
|
321
|
-
|
|
326
|
+
<!-- <a-checkbox-group v-model="scope.column.filters[0].data.displayValues">-->
|
|
327
|
+
<!-- <a-checkbox-->
|
|
328
|
+
<!-- v-for="loopData in scope.column.params.dataSource"-->
|
|
329
|
+
<!-- :key="loopData.value"-->
|
|
330
|
+
<!-- :value="loopData.value"-->
|
|
331
|
+
<!-- >-->
|
|
332
|
+
<!-- {{ loopData.caption }}</a-checkbox-->
|
|
333
|
+
<!-- >-->
|
|
334
|
+
<!-- </a-checkbox-group>-->
|
|
335
|
+
<a-select
|
|
336
|
+
v-model="scope.column.filters[0].data.displayValues"
|
|
337
|
+
mode="multiple"
|
|
338
|
+
allowClear
|
|
339
|
+
style="width: 300px;"
|
|
340
|
+
placeholder="筛选条件"
|
|
341
|
+
showArrow
|
|
322
342
|
>
|
|
323
|
-
<a-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
>
|
|
328
|
-
{{ loopData.caption }}</a-checkbox
|
|
343
|
+
<a-select-option
|
|
344
|
+
v-for="loopSource in scope.column.params.dataSource"
|
|
345
|
+
:key="loopSource.value"
|
|
346
|
+
:value="loopSource.value"
|
|
347
|
+
>{{ loopSource.caption }}</a-select-option
|
|
329
348
|
>
|
|
330
|
-
</a-
|
|
349
|
+
</a-select>
|
|
350
|
+
<br>
|
|
331
351
|
<a-button @click="filterConfirm(scope.column)">确认</a-button>
|
|
332
352
|
</div>
|
|
333
353
|
</template>
|
|
@@ -364,9 +384,9 @@
|
|
|
364
384
|
v-model="loopFilterValue.value[1]"
|
|
365
385
|
/>
|
|
366
386
|
</div>
|
|
387
|
+
<a-button @click="filterAddExp(scope.column)">添加条件</a-button>
|
|
388
|
+
<a-button @click="filterConfirm(scope.column)">确认</a-button>
|
|
367
389
|
</div>
|
|
368
|
-
<a-button @click="filterAddExp(scope.column)">添加条件</a-button>
|
|
369
|
-
<a-button @click="filterConfirm(scope.column)">确认</a-button>
|
|
370
390
|
</template>
|
|
371
391
|
<template #date_filter="scope">
|
|
372
392
|
<div class="interceptor-class">
|
|
@@ -389,9 +409,9 @@
|
|
|
389
409
|
v-model="loopFilterValue.value[1]"
|
|
390
410
|
/>
|
|
391
411
|
</div>
|
|
412
|
+
<a-button @click="filterAddExp(scope.column)">添加条件</a-button>
|
|
413
|
+
<a-button @click="filterConfirm(scope.column)">确认</a-button>
|
|
392
414
|
</div>
|
|
393
|
-
<a-button @click="filterAddExp(scope.column)">添加条件</a-button>
|
|
394
|
-
<a-button @click="filterConfirm(scope.column)">确认</a-button>
|
|
395
415
|
</template>
|
|
396
416
|
</VxeGrid>
|
|
397
417
|
<VxeModal
|
|
@@ -2213,6 +2233,7 @@ export default {
|
|
|
2213
2233
|
});
|
|
2214
2234
|
},
|
|
2215
2235
|
filterConfirm(colInfo) {
|
|
2236
|
+
console.log(colInfo);
|
|
2216
2237
|
colInfo.filters[0].data.bindingValues = [];
|
|
2217
2238
|
XEUtils.arrayEach(colInfo.filters[0].data.displayValues, (item) => {
|
|
2218
2239
|
if (colInfo.params.controlType === controlType.select) {
|
|
@@ -2296,6 +2317,18 @@ export default {
|
|
|
2296
2317
|
expStr = "小于等于";
|
|
2297
2318
|
}
|
|
2298
2319
|
break;
|
|
2320
|
+
case controlType.number:
|
|
2321
|
+
tempPushExp.operator = "RA";
|
|
2322
|
+
tempPushExp.value = loopBindingValue.value;
|
|
2323
|
+
console.log(tempPushExp);
|
|
2324
|
+
expStr = "范围";
|
|
2325
|
+
tempStr.exp =
|
|
2326
|
+
tempStr.exp +
|
|
2327
|
+
loopBindingValue.value[0] +
|
|
2328
|
+
"到" +
|
|
2329
|
+
loopBindingValue.value[1] +
|
|
2330
|
+
"或";
|
|
2331
|
+
break;
|
|
2299
2332
|
default:
|
|
2300
2333
|
tempPushExp.value = loopBindingValue.value[0];
|
|
2301
2334
|
expStr = "包含";
|
|
@@ -2324,9 +2357,6 @@ export default {
|
|
|
2324
2357
|
}
|
|
2325
2358
|
//设置第一个输入框光标选中
|
|
2326
2359
|
let tempClassName = column.field + "_filter_0";
|
|
2327
|
-
console.log(tempClassName);
|
|
2328
|
-
console.log(document);
|
|
2329
|
-
console.log(document.getElementsByClassName(tempClassName)[0]);
|
|
2330
2360
|
setTimeout(() => {
|
|
2331
2361
|
document
|
|
2332
2362
|
.getElementsByClassName(tempClassName)[0]
|
|
@@ -2378,82 +2408,95 @@ export default {
|
|
|
2378
2408
|
}
|
|
2379
2409
|
</style>
|
|
2380
2410
|
<style lang="scss" scoped>
|
|
2381
|
-
.base-grid-view .vxe-header--row .vxe-header--column.sortable-ghost,
|
|
2382
|
-
.base-grid-view .vxe-header--row .vxe-header--column.sortable-chosen {
|
|
2383
|
-
|
|
2384
|
-
}
|
|
2385
|
-
.base-grid-view .vxe-header--row .vxe-header--column.col--fixed {
|
|
2386
|
-
|
|
2387
|
-
}
|
|
2388
|
-
.inner-cell-control {
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
}
|
|
2392
|
-
.input-box {
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
}
|
|
2401
|
-
.test_filter {
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
}
|
|
2406
|
-
.test_filter_title {
|
|
2407
|
-
|
|
2408
|
-
}
|
|
2409
|
-
/*滚动条整体部分*/
|
|
2410
|
-
.base-grid-view ::-webkit-scrollbar {
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
}
|
|
2415
|
-
/*滚动条的轨道*/
|
|
2416
|
-
.base-grid-view ::-webkit-scrollbar-track {
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
}
|
|
2420
|
-
/*滚动条里面的小方块,能向上向下移动*/
|
|
2421
|
-
.base-grid-view ::-webkit-scrollbar-thumb {
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
}
|
|
2428
|
-
.base-grid-view ::-webkit-scrollbar-thumb:hover {
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
}
|
|
2432
|
-
.base-grid-view ::-webkit-scrollbar-thumb:active {
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
}
|
|
2436
|
-
/*边角,即两个滚动条的交汇处*/
|
|
2437
|
-
.base-grid-view ::-webkit-scrollbar-corner {
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
}
|
|
2441
|
-
.draggableItem {
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
}
|
|
2452
|
-
.sortable-column-demo .vxe-header--row .vxe-header--column.sortable-ghost,
|
|
2453
|
-
.sortable-column-demo .vxe-header--row .vxe-header--column.sortable-chosen {
|
|
2454
|
-
|
|
2455
|
-
}
|
|
2456
|
-
.sortable-column-demo .vxe-header--row .vxe-header--column.col--fixed {
|
|
2457
|
-
|
|
2458
|
-
}
|
|
2459
|
-
|
|
2411
|
+
.base-grid-view .vxe-header--row .vxe-header--column.sortable-ghost,
|
|
2412
|
+
.base-grid-view .vxe-header--row .vxe-header--column.sortable-chosen {
|
|
2413
|
+
background-color: #dfecfb;
|
|
2414
|
+
}
|
|
2415
|
+
.base-grid-view .vxe-header--row .vxe-header--column.col--fixed {
|
|
2416
|
+
cursor: no-drop;
|
|
2417
|
+
}
|
|
2418
|
+
.inner-cell-control {
|
|
2419
|
+
width: 100% !important;
|
|
2420
|
+
min-width:unset!important;
|
|
2421
|
+
}
|
|
2422
|
+
.input-box {
|
|
2423
|
+
width: 100%;
|
|
2424
|
+
border: 1px solid;
|
|
2425
|
+
min-height: 24px;
|
|
2426
|
+
border-radius: 4px;
|
|
2427
|
+
border-color: rgb(217, 217, 217);
|
|
2428
|
+
padding-left: 5px;
|
|
2429
|
+
line-height: 24px !important;
|
|
2430
|
+
}
|
|
2431
|
+
.test_filter {
|
|
2432
|
+
text-align: left;
|
|
2433
|
+
// display: inline-block;
|
|
2434
|
+
// width:90%
|
|
2435
|
+
}
|
|
2436
|
+
.test_filter_title {
|
|
2437
|
+
margin-left: 2%;
|
|
2438
|
+
}
|
|
2439
|
+
/*滚动条整体部分*/
|
|
2440
|
+
.base-grid-view ::-webkit-scrollbar {
|
|
2441
|
+
width: 10px;
|
|
2442
|
+
height: 10px;
|
|
2443
|
+
z-index: 10;
|
|
2444
|
+
}
|
|
2445
|
+
/*滚动条的轨道*/
|
|
2446
|
+
.base-grid-view ::-webkit-scrollbar-track {
|
|
2447
|
+
background-color: #ffffff;
|
|
2448
|
+
z-index: 10;
|
|
2449
|
+
}
|
|
2450
|
+
/*滚动条里面的小方块,能向上向下移动*/
|
|
2451
|
+
.base-grid-view ::-webkit-scrollbar-thumb {
|
|
2452
|
+
background-color: #bfbfbf;
|
|
2453
|
+
border-radius: 5px;
|
|
2454
|
+
border: 1px solid #f1f1f1;
|
|
2455
|
+
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
2456
|
+
z-index: 10;
|
|
2457
|
+
}
|
|
2458
|
+
.base-grid-view ::-webkit-scrollbar-thumb:hover {
|
|
2459
|
+
background-color: #a8a8a8;
|
|
2460
|
+
z-index: 10;
|
|
2461
|
+
}
|
|
2462
|
+
.base-grid-view ::-webkit-scrollbar-thumb:active {
|
|
2463
|
+
background-color: #787878;
|
|
2464
|
+
z-index: 10;
|
|
2465
|
+
}
|
|
2466
|
+
/*边角,即两个滚动条的交汇处*/
|
|
2467
|
+
.base-grid-view ::-webkit-scrollbar-corner {
|
|
2468
|
+
background-color: #ffffff;
|
|
2469
|
+
z-index: 10;
|
|
2470
|
+
}
|
|
2471
|
+
.draggableItem {
|
|
2472
|
+
display: inline-block;
|
|
2473
|
+
height: 100%;
|
|
2474
|
+
line-height: 30px;
|
|
2475
|
+
border: 1.3px solid #e8eaec;
|
|
2476
|
+
margin: 0 !important;
|
|
2477
|
+
margin: 0 10px;
|
|
2478
|
+
// overflow: hidden;
|
|
2479
|
+
// text-overflow: ellipsis;
|
|
2480
|
+
// white-space: nowrap;
|
|
2481
|
+
}
|
|
2482
|
+
.sortable-column-demo .vxe-header--row .vxe-header--column.sortable-ghost,
|
|
2483
|
+
.sortable-column-demo .vxe-header--row .vxe-header--column.sortable-chosen {
|
|
2484
|
+
background-color: #dfecfb;
|
|
2485
|
+
}
|
|
2486
|
+
.sortable-column-demo .vxe-header--row .vxe-header--column.col--fixed {
|
|
2487
|
+
cursor: no-drop;
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
.interceptor-class {
|
|
2491
|
+
padding: 10px;
|
|
2492
|
+
::v-deep .ant-btn {
|
|
2493
|
+
margin: 10px 10px 0;
|
|
2494
|
+
}
|
|
2495
|
+
::v-deep .ant-input {
|
|
2496
|
+
margin-bottom: 5px;
|
|
2497
|
+
}
|
|
2498
|
+
::v-deep .ant-calendar-picker {
|
|
2499
|
+
margin: 0 5px;
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
</style>
|