@lambo-design/shared 1.0.0-beta.279 → 1.0.0-beta.280
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.
|
@@ -315,7 +315,7 @@ vxe-table
|
|
|
315
315
|
--table-cell-padding-right: 9px;
|
|
316
316
|
--table-header-text-align: center;
|
|
317
317
|
--table-data-text-align: left;
|
|
318
|
-
--table-border-color-base: #
|
|
318
|
+
--table-border-color-base: #E5E8EF;
|
|
319
319
|
--table-border-bottom-color-base: #F3F3F3;
|
|
320
320
|
--table-border-width-base: 0;
|
|
321
321
|
--select-dropdown-max-height: 400px;
|
|
@@ -382,9 +382,9 @@ vxe-table
|
|
|
382
382
|
--vxe-table-header-font-color: #899D98;
|
|
383
383
|
--vxe-table-footer-font-color: #333333;
|
|
384
384
|
--vxe-table-border-radius: 12px;
|
|
385
|
-
--vxe-table-border-width:
|
|
385
|
+
--vxe-table-border-width: 1px;
|
|
386
386
|
--vxe-table-border-style: solid;
|
|
387
|
-
--vxe-table-border-color: #
|
|
387
|
+
--vxe-table-border-color: #E5E8EF;
|
|
388
388
|
--vxe-table-resizable-line-color: #e0e0e0;
|
|
389
389
|
--vxe-table-resizable-drag-line-color: #258b73;
|
|
390
390
|
--vxe-table-header-background-color: #EEF6F4;
|
|
@@ -393,7 +393,7 @@ vxe-table
|
|
|
393
393
|
--vxe-table-tree-node-line-color: #909399;
|
|
394
394
|
--vxe-table-tree-node-line-style: dotted;
|
|
395
395
|
--vxe-table-header-font-weight: bold;
|
|
396
|
-
--vxe-table-border-bottom-width:
|
|
396
|
+
--vxe-table-border-bottom-width: 0;
|
|
397
397
|
--vxe-table-row-height-default: 48px;
|
|
398
398
|
--vxe-table-row-height-medium: 44px;
|
|
399
399
|
--vxe-table-row-height-small: 40px;
|
|
@@ -416,7 +416,7 @@ vxe-table
|
|
|
416
416
|
--vxe-table-column-current-background-color: #F8FBFB;
|
|
417
417
|
--vxe-table-column-icon-border-color: #c0c4cc;
|
|
418
418
|
--vxe-table-column-icon-border-hover-color: #515A6E;
|
|
419
|
-
--vxe-table-column-background-image: linear-gradient(#
|
|
419
|
+
--vxe-table-column-background-image: linear-gradient(#E5E8EF, #E5E8EF), linear-gradient(#E5E8EF, #E5E8EF);
|
|
420
420
|
--vxe-table-cell-placeholder-color: #c5c8ce;
|
|
421
421
|
--vxe-table-cell-padding-left: 9px;
|
|
422
422
|
--vxe-table-cell-padding-right: 9px;
|
|
@@ -313,7 +313,7 @@ vxe-table
|
|
|
313
313
|
--table-cell-padding-right: 9px;
|
|
314
314
|
--table-header-text-align: center;
|
|
315
315
|
--table-data-text-align: left;
|
|
316
|
-
--table-border-color-base: #
|
|
316
|
+
--table-border-color-base: #E5E8EF;
|
|
317
317
|
--table-border-bottom-color-base: #E5E8EF;
|
|
318
318
|
--table-border-width-base: 1px;
|
|
319
319
|
--select-dropdown-max-height: 400px;
|
|
@@ -368,7 +368,7 @@
|
|
|
368
368
|
@table-cell-padding-right : 9px;
|
|
369
369
|
@table-header-text-align : center;
|
|
370
370
|
@table-data-text-align : left;
|
|
371
|
-
@table-border-color-base : #
|
|
371
|
+
@table-border-color-base : #E5E8EF;
|
|
372
372
|
@table-border-bottom-color-base : #E5E8EF;
|
|
373
373
|
@table-border-width-base : 1px;
|
|
374
374
|
|
|
@@ -297,7 +297,7 @@ export default {
|
|
|
297
297
|
--table-cell-padding-right: 9px;
|
|
298
298
|
--table-header-text-align: center;
|
|
299
299
|
--table-data-text-align: left;
|
|
300
|
-
--table-border-color-base: #
|
|
300
|
+
--table-border-color-base: #E5E8EF;
|
|
301
301
|
--table-border-bottom-color-base: #E5E8EF;
|
|
302
302
|
--table-border-width-base: 1px;
|
|
303
303
|
--select-dropdown-max-height: 400px;
|
package/package.json
CHANGED
package/utils/style.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g
|
|
2
|
-
const MOZ_HACK_REGEXP = /^moz([A-Z])/
|
|
3
|
-
|
|
4
|
-
function camelCase(name) {
|
|
5
|
-
return name
|
|
6
|
-
.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
|
|
7
|
-
return offset ? letter.toUpperCase() : letter
|
|
8
|
-
})
|
|
9
|
-
.replace(MOZ_HACK_REGEXP, 'Moz$1')
|
|
10
|
-
}
|
|
11
|
-
// getStyle
|
|
12
|
-
export function getStyle(element, styleName) {
|
|
13
|
-
if (!element || !styleName) return null
|
|
14
|
-
styleName = camelCase(styleName)
|
|
15
|
-
if (styleName === 'float') {
|
|
16
|
-
styleName = 'cssFloat'
|
|
17
|
-
}
|
|
18
|
-
try {
|
|
19
|
-
const computed = document.defaultView.getComputedStyle(element, '')
|
|
20
|
-
return element.style[styleName] || computed ? computed[styleName] : null
|
|
21
|
-
} catch (e) {
|
|
22
|
-
return element.style[styleName]
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g
|
|
2
|
+
const MOZ_HACK_REGEXP = /^moz([A-Z])/
|
|
3
|
+
|
|
4
|
+
function camelCase(name) {
|
|
5
|
+
return name
|
|
6
|
+
.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
|
|
7
|
+
return offset ? letter.toUpperCase() : letter
|
|
8
|
+
})
|
|
9
|
+
.replace(MOZ_HACK_REGEXP, 'Moz$1')
|
|
10
|
+
}
|
|
11
|
+
// getStyle
|
|
12
|
+
export function getStyle(element, styleName) {
|
|
13
|
+
if (!element || !styleName) return null
|
|
14
|
+
styleName = camelCase(styleName)
|
|
15
|
+
if (styleName === 'float') {
|
|
16
|
+
styleName = 'cssFloat'
|
|
17
|
+
}
|
|
18
|
+
try {
|
|
19
|
+
const computed = document.defaultView.getComputedStyle(element, '')
|
|
20
|
+
return element.style[styleName] || computed ? computed[styleName] : null
|
|
21
|
+
} catch (e) {
|
|
22
|
+
return element.style[styleName]
|
|
23
|
+
}
|
|
24
|
+
}
|
package/utils/transfer-queue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
let transferIndex = 1000
|
|
2
|
-
|
|
3
|
-
function transferIncrease() {
|
|
4
|
-
transferIndex++
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export { transferIndex, transferIncrease }
|
|
1
|
+
let transferIndex = 1000
|
|
2
|
+
|
|
3
|
+
function transferIncrease() {
|
|
4
|
+
transferIndex++
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { transferIndex, transferIncrease }
|