react-vant-nova 1.0.8 → 1.0.9

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/README.md CHANGED
@@ -17,9 +17,9 @@
17
17
  </p>
18
18
 
19
19
  <p align="center">
20
- 🔥 <a href="https://react-vant-gitee.3lang.dev">Documentation (Domestic)</a>
20
+ 🔥 <a href="https://github.com/prayone/react-vant-nova">Documentation (Domestic)</a>
21
21
  &nbsp;
22
- 🌈 <a href="https://react-vant.3lang.dev">Documentation(GitHub)</a>
22
+ 🌈 <a href="https://github.com/prayone/react-vant-nova">Documentation(GitHub)</a>
23
23
  </p>
24
24
 
25
25
  ## 🧑‍💻 Project Status
package/bundle/index.css CHANGED
@@ -6783,3 +6783,152 @@ ul {
6783
6783
  width: 100%;
6784
6784
  height: 100%;
6785
6785
  }
6786
+ :root {
6787
+ --rv-tree-select-font-size: 14px;
6788
+ --rv-tree-select-nav-width: 80px;
6789
+ --rv-tree-select-nav-background-color: var(--rv-gray-1);
6790
+ --rv-tree-select-content-background-color: #fff;
6791
+ --rv-tree-select-nav-item-padding: 14px 12px;
6792
+ --rv-tree-select-item-height: 48px;
6793
+ --rv-tree-select-item-active-color: #f44336;
6794
+ --rv-tree-select-item-disabled-color: #c8c9cc;
6795
+ --rv-tree-select-item-selected-size: 16px;
6796
+ --rv-tree-select-height: 300px;
6797
+ }
6798
+ .rv-tree-select {
6799
+ display: flex;
6800
+ font-size: var(--rv-tree-select-font-size);
6801
+ user-select: none;
6802
+ }
6803
+ .rv-tree-select__nav {
6804
+ flex: none;
6805
+ overflow-y: auto;
6806
+ background-color: var(--rv-tree-select-nav-background-color);
6807
+ -webkit-overflow-scrolling: touch;
6808
+ }
6809
+ .rv-tree-select__nav-item {
6810
+ position: relative;
6811
+ display: flex;
6812
+ align-items: center;
6813
+ padding: var(--rv-tree-select-nav-item-padding);
6814
+ cursor: pointer;
6815
+ transition: background-color 0.2s;
6816
+ }
6817
+ .rv-tree-select__nav-item:active {
6818
+ opacity: 0.7;
6819
+ }
6820
+ .rv-tree-select__nav-item--active {
6821
+ color: var(--rv-tree-select-item-active-color);
6822
+ font-weight: 600;
6823
+ background-color: var(--rv-tree-select-content-background-color);
6824
+ }
6825
+ .rv-tree-select__nav-item--active::before {
6826
+ position: absolute;
6827
+ top: 50%;
6828
+ left: 0;
6829
+ width: 3px;
6830
+ height: 16px;
6831
+ background-color: var(--rv-tree-select-item-active-color);
6832
+ transform: translateY(-50%);
6833
+ content: '';
6834
+ }
6835
+ .rv-tree-select__nav-item--disabled {
6836
+ color: var(--rv-tree-select-item-disabled-color);
6837
+ cursor: not-allowed;
6838
+ }
6839
+ .rv-tree-select__nav-item--disabled:active {
6840
+ opacity: 1;
6841
+ }
6842
+ .rv-tree-select__nav-icon {
6843
+ margin-right: 4px;
6844
+ }
6845
+ .rv-tree-select__nav-text {
6846
+ flex: 1;
6847
+ word-break: break-all;
6848
+ }
6849
+ .rv-tree-select__nav-badge {
6850
+ margin-left: 4px;
6851
+ padding: 0 6px;
6852
+ font-size: 12px;
6853
+ color: #fff;
6854
+ background-color: var(--rv-tree-select-item-active-color);
6855
+ border-radius: 10px;
6856
+ }
6857
+ .rv-tree-select__content {
6858
+ flex: 1;
6859
+ overflow-y: auto;
6860
+ background-color: var(--rv-tree-select-content-background-color);
6861
+ -webkit-overflow-scrolling: touch;
6862
+ }
6863
+ .rv-tree-select__items {
6864
+ padding: 12px 16px;
6865
+ }
6866
+ .rv-tree-select__content-empty {
6867
+ display: flex;
6868
+ align-items: center;
6869
+ justify-content: center;
6870
+ height: 100%;
6871
+ color: var(--rv-tree-select-item-disabled-color);
6872
+ }
6873
+ .rv-tree-select__item-wrapper {
6874
+ margin-bottom: 12px;
6875
+ }
6876
+ .rv-tree-select__item-wrapper:last-child {
6877
+ margin-bottom: 0;
6878
+ }
6879
+ .rv-tree-select__item {
6880
+ position: relative;
6881
+ display: flex;
6882
+ align-items: center;
6883
+ justify-content: space-between;
6884
+ min-height: var(--rv-tree-select-item-height);
6885
+ padding: 10px 12px;
6886
+ background-color: var(--rv-tree-select-nav-background-color);
6887
+ border-radius: 8px;
6888
+ cursor: pointer;
6889
+ transition: all 0.2s;
6890
+ }
6891
+ .rv-tree-select__item:active {
6892
+ opacity: 0.7;
6893
+ }
6894
+ .rv-tree-select__item--active {
6895
+ color: var(--rv-tree-select-item-active-color);
6896
+ background-color: rgba(238, 10, 36, 0.08);
6897
+ font-weight: 500;
6898
+ }
6899
+ .rv-tree-select__item--disabled {
6900
+ color: var(--rv-tree-select-item-disabled-color);
6901
+ cursor: not-allowed;
6902
+ }
6903
+ .rv-tree-select__item--disabled:active {
6904
+ opacity: 1;
6905
+ }
6906
+ .rv-tree-select__item-content {
6907
+ display: flex;
6908
+ align-items: center;
6909
+ flex: 1;
6910
+ }
6911
+ .rv-tree-select__item-icon {
6912
+ margin-right: 8px;
6913
+ display: flex;
6914
+ align-items: center;
6915
+ }
6916
+ .rv-tree-select__item-title {
6917
+ flex: 1;
6918
+ }
6919
+ .rv-tree-select__item-selected-icon {
6920
+ margin-left: 8px;
6921
+ font-size: var(--rv-tree-select-item-selected-size);
6922
+ color: var(--rv-tree-select-item-active-color);
6923
+ }
6924
+ .rv-tree-select__item-checkbox {
6925
+ margin-left: 8px;
6926
+ width: 18px;
6927
+ height: 18px;
6928
+ cursor: pointer;
6929
+ }
6930
+ .rv-tree-select__item-children {
6931
+ margin-top: 8px;
6932
+ padding-left: 20px;
6933
+ border-left: 2px solid var(--rv-tree-select-nav-background-color);
6934
+ }