Commit 186e7f9746012d8b83efd08ced1e8c341f05d62f

Authored by qiang.tian
1 parent 56fa8280

fix: style module

1 @import '~@qx/ui/src/style/variable.less'; 1 @import '~@qx/ui/src/style/variable.less';
  2 +
2 @ant-prefix-cls: ~'ant'; 3 @ant-prefix-cls: ~'ant';
3 4
4 .qx-node-select { 5 .qx-node-select {
@@ -148,13 +149,11 @@ @@ -148,13 +149,11 @@
148 } 149 }
149 } 150 }
150 151
151 -:global {  
152 - .qx-node-select-dropdown {  
153 - > .@{ant-prefix-cls}-collapse {  
154 - > .@{ant-prefix-cls}-collapse-item {  
155 - > .@{ant-prefix-cls}-collapse-content {  
156 - padding-right: 7px !important;  
157 - } 152 +.qx-node-select-dropdown {
  153 + > .@{ant-prefix-cls}-collapse {
  154 + > .@{ant-prefix-cls}-collapse-item {
  155 + > .@{ant-prefix-cls}-collapse-content {
  156 + padding-right: 7px !important;
158 } 157 }
159 } 158 }
160 } 159 }
@@ -6,7 +6,7 @@ import { cloneDeep } from 'lodash-es'; @@ -6,7 +6,7 @@ import { cloneDeep } from 'lodash-es';
6 import React, { useEffect, useMemo, useState } from 'react'; 6 import React, { useEffect, useMemo, useState } from 'react';
7 import { QxBaseIcon } from '../qx-base-icon'; 7 import { QxBaseIcon } from '../qx-base-icon';
8 import { request } from '../utils'; 8 import { request } from '../utils';
9 -import styles from './index.less'; 9 +import './index.less';
10 // import type { FiledType } from '@/interface'; 10 // import type { FiledType } from '@/interface';
11 // import type { INode } from '@qx/flow'; 11 // import type { INode } from '@qx/flow';
12 12
@@ -189,17 +189,17 @@ export const useNodeFieldDisplay = ({ @@ -189,17 +189,17 @@ export const useNodeFieldDisplay = ({
189 {displayConfig?.map((item, idx) => ( 189 {displayConfig?.map((item, idx) => (
190 <div 190 <div
191 key={idx} 191 key={idx}
192 - className={styles['qx-node-select-input__content-item']} 192 + className='qx-node-select-input__content-item'
193 > 193 >
194 {item.icon && ( 194 {item.icon && (
195 <span 195 <span
196 - className={styles['qx-node-select-input__content-item__icon']} 196 + className='qx-node-select-input__content-item__icon'
197 > 197 >
198 {icon(item.icon)} 198 {icon(item.icon)}
199 </span> 199 </span>
200 )} 200 )}
201 <span 201 <span
202 - className={styles['qx-node-select-input__content-item__text']} 202 + className='qx-node-select-input__content-item__text'
203 > 203 >
204 {item.type && 204 {item.type &&
205 FileTypeMap[item.type] && 205 FileTypeMap[item.type] &&
@@ -209,7 +209,7 @@ export const useNodeFieldDisplay = ({ @@ -209,7 +209,7 @@ export const useNodeFieldDisplay = ({
209 </span> 209 </span>
210 {idx !== displayConfig.length - 1 && ( 210 {idx !== displayConfig.length - 1 && (
211 <span 211 <span
212 - className={styles['qx-node-select-input__content-item__arrow']} 212 + className='qx-node-select-input__content-item__arrow'
213 > 213 >
214 <svg 214 <svg
215 xmlns="http://www.w3.org/2000/svg" 215 xmlns="http://www.w3.org/2000/svg"