@windrun-huaiin/third-ui 5.10.0 → 5.10.1
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/dist/main/index.d.mts +1 -0
- package/dist/main/index.d.ts +1 -0
- package/dist/main/index.js +1 -0
- package/dist/main/index.js.map +1 -1
- package/dist/main/index.mjs +1 -0
- package/dist/main/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/main/x-button.tsx +2 -0
package/package.json
CHANGED
package/src/main/x-button.tsx
CHANGED
|
@@ -17,6 +17,7 @@ interface MenuItemConfig extends BaseButtonConfig {
|
|
|
17
17
|
text: string
|
|
18
18
|
color?: string
|
|
19
19
|
}
|
|
20
|
+
splitTopBorder?: boolean
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
// single button config
|
|
@@ -166,6 +167,7 @@ export function XButton(props: xButtonProps) {
|
|
|
166
167
|
}}
|
|
167
168
|
disabled={item.disabled}
|
|
168
169
|
className={`flex items-center w-full px-4 py-3 transition hover:bg-neutral-300 dark:hover:bg-neutral-600 text-left relative ${item.disabled ? disabledClass : ''}`}
|
|
170
|
+
style={item.splitTopBorder ? { borderTop: '1px solid #AC62FD' } : undefined}
|
|
169
171
|
>
|
|
170
172
|
<span className="flex items-center">
|
|
171
173
|
{item.icon}
|