@fangzhongya/fang-ui 0.0.13 → 0.0.14

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.
@@ -615,4 +615,83 @@
615
615
  }
616
616
  .el-tables-pagin-paginat .el-pagination {
617
617
  justify-content: flex-end;
618
+ }
619
+
620
+ .el-vtables {
621
+ width: 100%;
622
+ min-height: 100px;
623
+ position: relative;
624
+ flex: 1;
625
+ display: flex;
626
+ flex-direction: column;
627
+ }
628
+ .el-vtables-table {
629
+ background-color: transparent;
630
+ }
631
+ .el-vtables-table.is-absolute {
632
+ position: absolute;
633
+ top: 0;
634
+ right: 0;
635
+ bottom: 0;
636
+ left: 0;
637
+ }
638
+ .el-vtables-table .vxe-body--column {
639
+ overflow: hidden;
640
+ padding: 8px 0;
641
+ }
642
+ .el-vtables-table .col--checkbox .vxe-checkbox--label {
643
+ padding-left: 0;
644
+ }
645
+ .el-vtables .fv-custom-checkbox {
646
+ cursor: pointer;
647
+ position: relative;
648
+ }
649
+ .el-vtables .fv-custom-checkbox.is-disabled {
650
+ cursor: not-allowed;
651
+ }
652
+ .el-vtables .fv-custom-checkbox .el-checkbox__label {
653
+ color: var(--vxe-table-header-font-color);
654
+ font-weight: var(--vxe-table-header-font-weight);
655
+ }
656
+ .el-vtables .fv-custom-checkbox .fv-custom-checkbox-mask {
657
+ position: absolute;
658
+ top: 0;
659
+ right: 0;
660
+ bottom: 0;
661
+ left: 0;
662
+ z-index: 1;
663
+ opacity: 0;
664
+ }
665
+ .el-vtables .fv-custom-radio {
666
+ cursor: pointer;
667
+ position: relative;
668
+ }
669
+ .el-vtables .fv-custom-radio.is-disabled {
670
+ cursor: not-allowed;
671
+ }
672
+ .el-vtables .fv-custom-radio .el-radio {
673
+ height: auto;
674
+ }
675
+ .el-vtables .fv-custom-radio.center .el-radio {
676
+ text-align: center;
677
+ display: table-cell;
678
+ }
679
+ .el-vtables .fv-custom-radio.center .el-radio__label {
680
+ display: none;
681
+ }
682
+ .el-vtables .fv-custom-radio.right .el-radio {
683
+ text-align: right;
684
+ display: table-cell;
685
+ }
686
+ .el-vtables .fv-custom-radio.right .el-radio__label {
687
+ display: none;
688
+ }
689
+ .el-vtables .fv-custom-radio .fv-custom-radio-mask {
690
+ position: absolute;
691
+ top: 0;
692
+ right: 0;
693
+ bottom: 0;
694
+ left: 0;
695
+ z-index: 1;
696
+ opacity: 0;
618
697
  }
@@ -25,4 +25,5 @@
25
25
  @use './text/index.scss' as *;
26
26
  @use './el-tables/index.scss' as *;
27
27
  @use './pagin/index.scss' as *;
28
- @use './tables-pagin/index.scss' as *;
28
+ @use './tables-pagin/index.scss' as *;
29
+ @use './vxe-tables/index.scss' as *;
@@ -11,7 +11,7 @@ const com = {
11
11
  };
12
12
  function getName() {
13
13
  const alias = enums.DefaultConfig.alias;
14
- const namespace = index.useGlobalConfig("cssname", enums.DefaultConfig.namespace);
14
+ const namespace = index.useGlobalConfig("cssname", enums.DefaultConfig.namespace).value;
15
15
  if (alias) {
16
16
  if (namespace) {
17
17
  return namespace + com.common + alias + com.common;
@@ -26,12 +26,8 @@ function getName() {
26
26
  }
27
27
  }
28
28
  }
29
- function getClassName(cssname, block, blockSuffix, element, modifier) {
30
- let cls = "";
31
- if (cssname) {
32
- cls = `${cssname}${com.common}`;
33
- }
34
- cls += block;
29
+ function getClassName(block, blockSuffix, element, modifier) {
30
+ let cls = getName() + block;
35
31
  if (blockSuffix) {
36
32
  cls += `${com.common}${blockSuffix}`;
37
33
  }
@@ -44,7 +40,7 @@ function getClassName(cssname, block, blockSuffix, element, modifier) {
44
40
  return cls;
45
41
  }
46
42
  const useCssName = (block) => {
47
- const z = (blockSuffix = "", element = "", modifier = "") => getClassName(getName(), block, blockSuffix, element, modifier);
43
+ const z = (blockSuffix = "", element = "", modifier = "") => getClassName(block, blockSuffix, element, modifier);
48
44
  const is = (name, state) => {
49
45
  return name && state ? `${com.state}${name}` : "";
50
46
  };
@@ -9,7 +9,7 @@ const com = {
9
9
  };
10
10
  function getName() {
11
11
  const alias = DefaultConfig.alias;
12
- const namespace = useGlobalConfig("cssname", DefaultConfig.namespace);
12
+ const namespace = useGlobalConfig("cssname", DefaultConfig.namespace).value;
13
13
  if (alias) {
14
14
  if (namespace) {
15
15
  return namespace + com.common + alias + com.common;
@@ -24,12 +24,8 @@ function getName() {
24
24
  }
25
25
  }
26
26
  }
27
- function getClassName(cssname, block, blockSuffix, element, modifier) {
28
- let cls = "";
29
- if (cssname) {
30
- cls = `${cssname}${com.common}`;
31
- }
32
- cls += block;
27
+ function getClassName(block, blockSuffix, element, modifier) {
28
+ let cls = getName() + block;
33
29
  if (blockSuffix) {
34
30
  cls += `${com.common}${blockSuffix}`;
35
31
  }
@@ -42,7 +38,7 @@ function getClassName(cssname, block, blockSuffix, element, modifier) {
42
38
  return cls;
43
39
  }
44
40
  const useCssName = (block) => {
45
- const z = (blockSuffix = "", element = "", modifier = "") => getClassName(getName(), block, blockSuffix, element, modifier);
41
+ const z = (blockSuffix = "", element = "", modifier = "") => getClassName(block, blockSuffix, element, modifier);
46
42
  const is = (name, state) => {
47
43
  return name && state ? `${com.state}${name}` : "";
48
44
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/fang-ui",
3
3
  "private": false,
4
- "version": "0.0.13",
4
+ "version": "0.0.14",
5
5
  "type": "module",
6
6
  "description ": "fang-ui",
7
7
  "keywords": [
@@ -47,13 +47,13 @@
47
47
  "vue-tsc": "^3.0.3",
48
48
  "vuedraggable": "4.1.0",
49
49
  "vxe-table": "4.14.4",
50
- "@fang-ui/components": "0.0.1-0",
51
50
  "@fang-ui/directives": "0.0.1-0",
51
+ "@fang-ui/components": "0.0.1-0",
52
52
  "@fang-ui/icons": "0.0.1-0",
53
- "@fang-ui/locale": "0.0.1-0",
54
53
  "@fang-ui/hooks": "0.0.1-0",
55
54
  "@fang-ui/theme": "0.0.1-0",
56
55
  "@fang-ui/types": "0.0.1-0",
56
+ "@fang-ui/locale": "0.0.1-0",
57
57
  "@fang-ui/utils": "0.0.1-0"
58
58
  },
59
59
  "main": "./dist/index.cjs",