yc-design-vue 2.1.6 → 2.1.7

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.
@@ -1 +1 @@
1
- .yc-button{cursor:pointer;user-select:none;outline:none;border:1px solid transparent;font-weight:400;transition:all .1s cubic-bezier(0, 0, 1, 1);display:inline-flex;justify-content:center;align-items:center}.yc-button .yc-button-icon{flex-shrink:0;display:flex;justify-content:center;align-items:center}.yc-button .yc-button-icon .yc-spin{font-size:inherit;color:inherit}.yc-button-loading{cursor:default;position:relative}.yc-button-loading::before{content:'';z-index:1;position:absolute;left:-1px;top:-1px;width:calc(100% + 2px);height:calc(100% + 2px);background-color:#fff;opacity:.4;display:block}.yc-button-disabled{opacity:.4;cursor:not-allowed}.yc-button-long{width:100%}.yc-button-primary.yc-button-status-normal{background-color:rgb(var(--primary-6));color:var(--color-white)}.yc-button-primary.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:rgb(var(--primary-5))}.yc-button-primary.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:rgb(var(--primary-7))}.yc-button-primary.yc-button-status-warning{background-color:rgb(var(--warning-6));color:var(--color-white)}.yc-button-primary.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:rgb(var(--warning-5))}.yc-button-primary.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:rgb(var(--warning-7))}.yc-button-primary.yc-button-status-success{background-color:rgb(var(--success-6));color:var(--color-white)}.yc-button-primary.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:rgb(var(--success-5))}.yc-button-primary.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:rgb(var(--success-7))}.yc-button-primary.yc-button-status-danger{background-color:rgb(var(--danger-6));color:var(--color-white)}.yc-button-primary.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:rgb(var(--danger-5))}.yc-button-primary.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:rgb(var(--danger-7))}.yc-button-secondary.yc-button-status-normal{background-color:var(--color-fill-2);color:var(--color-text-2)}.yc-button-secondary.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-fill-3)}.yc-button-secondary.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-fill-4)}.yc-button-secondary.yc-button-status-warning{background-color:var(--color-warning-light-1);color:rgb(var(--warning-6))}.yc-button-secondary.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-warning-light-2)}.yc-button-secondary.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-warning-light-3)}.yc-button-secondary.yc-button-status-success{background-color:var(--color-success-light-1);color:rgb(var(--success-6))}.yc-button-secondary.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-success-light-2)}.yc-button-secondary.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-success-light-3)}.yc-button-secondary.yc-button-status-danger{background-color:var(--color-danger-light-1);color:rgb(var(--danger-6))}.yc-button-secondary.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-danger-light-2)}.yc-button-secondary.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-danger-light-3)}.yc-button-dashed.yc-button-status-normal{background-color:transparent;border-color:var(--color-border-2);color:var(--color-text-2);border-style:dashed}.yc-button-dashed.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-fill-2)}.yc-button-dashed.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-fill-3)}.yc-button-dashed.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:var(--color-border-3)}.yc-button-dashed.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:var(--color-border-4)}.yc-button-dashed.yc-button-status-warning{background-color:var(--color-warning-light-1);border-color:rgb(var(--warning-2));color:rgb(var(--warning-6));border-style:dashed}.yc-button-dashed.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-warning-light-2)}.yc-button-dashed.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-warning-light-3)}.yc-button-dashed.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:rgb(var(--warning-3))}.yc-button-dashed.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:rgb(var(--warning-4))}.yc-button-dashed.yc-button-status-success{background-color:var(--color-success-light-1);border-color:rgb(var(--success-2));color:rgb(var(--success-6));border-style:dashed}.yc-button-dashed.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-success-light-2)}.yc-button-dashed.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-success-light-3)}.yc-button-dashed.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:rgb(var(--success-3))}.yc-button-dashed.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:rgb(var(--success-4))}.yc-button-dashed.yc-button-status-danger{background-color:var(--color-danger-light-1);border-color:rgb(var(--danger-2));color:rgb(var(--danger-6));border-style:dashed}.yc-button-dashed.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-danger-light-2)}.yc-button-dashed.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-danger-light-3)}.yc-button-dashed.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:rgb(var(--danger-3))}.yc-button-dashed.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:rgb(var(--danger-4))}.yc-button-outline.yc-button-status-normal{background-color:transparent;border-color:rgb(var(--primary-6));color:rgb(var(--primary-6))}.yc-button-outline.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:rgb(var(--primary-5))}.yc-button-outline.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:rgb(var(--primary-7))}.yc-button-outline.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):hover{color:rgb(var(--primary-5))}.yc-button-outline.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):active{color:rgb(var(--primary-7))}.yc-button-outline.yc-button-status-warning{background-color:transparent;border-color:rgb(var(--warning-6));color:rgb(var(--warning-6))}.yc-button-outline.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:rgb(var(--warning-5))}.yc-button-outline.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:rgb(var(--warning-7))}.yc-button-outline.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):hover{color:rgb(var(--warning-5))}.yc-button-outline.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):active{color:rgb(var(--warning-7))}.yc-button-outline.yc-button-status-success{background-color:transparent;border-color:rgb(var(--success-6));color:rgb(var(--success-6))}.yc-button-outline.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:rgb(var(--success-5))}.yc-button-outline.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:rgb(var(--success-7))}.yc-button-outline.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):hover{color:rgb(var(--success-5))}.yc-button-outline.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):active{color:rgb(var(--success-7))}.yc-button-outline.yc-button-status-danger{background-color:transparent;border-color:rgb(var(--danger-6));color:rgb(var(--danger-6))}.yc-button-outline.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:rgb(var(--danger-5))}.yc-button-outline.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:rgb(var(--danger-7))}.yc-button-outline.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):hover{color:rgb(var(--danger-5))}.yc-button-outline.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):active{color:rgb(var(--danger-7))}.yc-button-text.yc-button-status-normal{color:rgb(var(--primary-6));background-color:transparent}.yc-button-text.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-fill-2)}.yc-button-text.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-fill-3)}.yc-button-text.yc-button-status-warning{color:rgb(var(--warning-6));background-color:transparent}.yc-button-text.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-fill-2)}.yc-button-text.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-fill-3)}.yc-button-text.yc-button-status-success{color:rgb(var(--success-6));background-color:transparent}.yc-button-text.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-fill-2)}.yc-button-text.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-fill-3)}.yc-button-text.yc-button-status-danger{color:rgb(var(--danger-6));background-color:transparent}.yc-button-text.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-fill-2)}.yc-button-text.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-fill-3)}.yc-button-size-mini{height:24px;padding:0 11px;font-size:12px}.yc-button-size-mini .yc-button-icon{width:12px;height:12px;margin-right:4px}.yc-button-size-mini.yc-button-shape-circle{width:24px;padding:0}.yc-button-size-mini.yc-button-only-icon{width:24px;padding:0}.yc-button-size-mini.yc-button-only-icon .yc-button-icon{margin:0 }.yc-button-size-small{height:28px;padding:0 15px;font-size:14px}.yc-button-size-small .yc-button-icon{width:14px;height:14px;margin-right:6px}.yc-button-size-small.yc-button-shape-circle{width:28px;padding:0}.yc-button-size-small.yc-button-only-icon{width:28px;padding:0}.yc-button-size-small.yc-button-only-icon .yc-button-icon{margin:0 }.yc-button-size-medium{height:32px;padding:0 15px;font-size:14px}.yc-button-size-medium .yc-button-icon{width:14px;height:14px;margin-right:8px}.yc-button-size-medium.yc-button-shape-circle{width:32px;padding:0}.yc-button-size-medium.yc-button-only-icon{width:32px;padding:0}.yc-button-size-medium.yc-button-only-icon .yc-button-icon{margin:0 }.yc-button-size-large{height:36px;padding:0 19px;font-size:14px}.yc-button-size-large .yc-button-icon{width:14px;height:14px;margin-right:8px}.yc-button-size-large.yc-button-shape-circle{width:36px;padding:0}.yc-button-size-large.yc-button-only-icon{width:36px;padding:0}.yc-button-size-large.yc-button-only-icon .yc-button-icon{margin:0 }.yc-button-shape-square{border-radius:var(--border-radius-small)}.yc-button-shape-round{border-radius:30px}.yc-button-shape-circle{border-radius:var(--border-radius-circle)}.yc-button-group{display:inline-flex;align-items:center}.yc-button-group .yc-button{flex-shrink:0}.yc-button-group .yc-button:not(:first-child):not(:last-child){border-radius:var(--border-radius-none)}.yc-button-group .yc-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.yc-button-group .yc-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0;border-right:none}.yc-button-group-dashed .yc-button:not(:first-child),.yc-button-group-outline .yc-button:not(:first-child){border-left:none}.yc-button-group-primary .yc-button:not(:last-child),.yc-button-group-status-primary .yc-button:not(:last-child){border-right:1px solid rgb(var(--primary-5))}.yc-button-group-secondary .yc-button:not(:last-child),.yc-button-group-status-secondary .yc-button:not(:last-child){border-right:1px solid var(--color-secondary-hover)}.yc-button-group-warning .yc-button:not(:last-child),.yc-button-group-status-warning .yc-button:not(:last-child){border-right:1px solid rgb(var(--warning-5))}.yc-button-group-success .yc-button:not(:last-child),.yc-button-group-status-success .yc-button:not(:last-child){border-right:1px solid rgb(var(--success-5))}.yc-button-group-danger .yc-button:not(:last-child),.yc-button-group-status-danger .yc-button:not(:last-child){border-right:1px solid rgb(var(--danger-5))}
1
+ .yc-button{cursor:pointer;user-select:none;outline:none;border:1px solid transparent;font-weight:400;transition:all .1s cubic-bezier(0, 0, 1, 1);display:inline-flex;justify-content:center;align-items:center}.yc-button .yc-button-icon{flex-shrink:0;display:flex;justify-content:center;align-items:center}.yc-button .yc-button-icon .yc-spin{font-size:inherit;color:inherit}.yc-button-loading,.yc-button-disabled{cursor:default;position:relative}.yc-button-loading::before,.yc-button-disabled::before{content:'';z-index:1;position:absolute;left:-1px;top:-1px;width:calc(100% + 2px);height:calc(100% + 2px);background-color:#fff;opacity:.4;display:block}.yc-button-loading.yc-button-disabled,.yc-button-disabled.yc-button-disabled{cursor:not-allowed}.yc-button-loading.yc-button-disabled::before,.yc-button-disabled.yc-button-disabled::before{cursor:not-allowed}.yc-button-long{width:100%}.yc-button-primary.yc-button-status-normal{background-color:rgb(var(--primary-6));color:var(--color-white)}.yc-button-primary.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:rgb(var(--primary-5))}.yc-button-primary.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:rgb(var(--primary-7))}.yc-button-primary.yc-button-status-warning{background-color:rgb(var(--warning-6));color:var(--color-white)}.yc-button-primary.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:rgb(var(--warning-5))}.yc-button-primary.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:rgb(var(--warning-7))}.yc-button-primary.yc-button-status-success{background-color:rgb(var(--success-6));color:var(--color-white)}.yc-button-primary.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:rgb(var(--success-5))}.yc-button-primary.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:rgb(var(--success-7))}.yc-button-primary.yc-button-status-danger{background-color:rgb(var(--danger-6));color:var(--color-white)}.yc-button-primary.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:rgb(var(--danger-5))}.yc-button-primary.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:rgb(var(--danger-7))}.yc-button-secondary.yc-button-status-normal{background-color:var(--color-fill-2);color:var(--color-text-2)}.yc-button-secondary.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-fill-3)}.yc-button-secondary.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-fill-4)}.yc-button-secondary.yc-button-status-warning{background-color:var(--color-warning-light-1);color:rgb(var(--warning-6))}.yc-button-secondary.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-warning-light-2)}.yc-button-secondary.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-warning-light-3)}.yc-button-secondary.yc-button-status-success{background-color:var(--color-success-light-1);color:rgb(var(--success-6))}.yc-button-secondary.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-success-light-2)}.yc-button-secondary.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-success-light-3)}.yc-button-secondary.yc-button-status-danger{background-color:var(--color-danger-light-1);color:rgb(var(--danger-6))}.yc-button-secondary.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-danger-light-2)}.yc-button-secondary.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-danger-light-3)}.yc-button-dashed.yc-button-status-normal{background-color:transparent;border-color:var(--color-border-2);color:var(--color-text-2);border-style:dashed}.yc-button-dashed.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-fill-2)}.yc-button-dashed.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-fill-3)}.yc-button-dashed.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:var(--color-border-3)}.yc-button-dashed.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:var(--color-border-4)}.yc-button-dashed.yc-button-status-warning{background-color:var(--color-warning-light-1);border-color:rgb(var(--warning-2));color:rgb(var(--warning-6));border-style:dashed}.yc-button-dashed.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-warning-light-2)}.yc-button-dashed.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-warning-light-3)}.yc-button-dashed.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:rgb(var(--warning-3))}.yc-button-dashed.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:rgb(var(--warning-4))}.yc-button-dashed.yc-button-status-success{background-color:var(--color-success-light-1);border-color:rgb(var(--success-2));color:rgb(var(--success-6));border-style:dashed}.yc-button-dashed.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-success-light-2)}.yc-button-dashed.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-success-light-3)}.yc-button-dashed.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:rgb(var(--success-3))}.yc-button-dashed.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:rgb(var(--success-4))}.yc-button-dashed.yc-button-status-danger{background-color:var(--color-danger-light-1);border-color:rgb(var(--danger-2));color:rgb(var(--danger-6));border-style:dashed}.yc-button-dashed.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-danger-light-2)}.yc-button-dashed.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-danger-light-3)}.yc-button-dashed.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:rgb(var(--danger-3))}.yc-button-dashed.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:rgb(var(--danger-4))}.yc-button-outline.yc-button-status-normal{background-color:transparent;border-color:rgb(var(--primary-6));color:rgb(var(--primary-6))}.yc-button-outline.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:rgb(var(--primary-5))}.yc-button-outline.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:rgb(var(--primary-7))}.yc-button-outline.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):hover{color:rgb(var(--primary-5))}.yc-button-outline.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):active{color:rgb(var(--primary-7))}.yc-button-outline.yc-button-status-warning{background-color:transparent;border-color:rgb(var(--warning-6));color:rgb(var(--warning-6))}.yc-button-outline.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:rgb(var(--warning-5))}.yc-button-outline.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:rgb(var(--warning-7))}.yc-button-outline.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):hover{color:rgb(var(--warning-5))}.yc-button-outline.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):active{color:rgb(var(--warning-7))}.yc-button-outline.yc-button-status-success{background-color:transparent;border-color:rgb(var(--success-6));color:rgb(var(--success-6))}.yc-button-outline.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:rgb(var(--success-5))}.yc-button-outline.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:rgb(var(--success-7))}.yc-button-outline.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):hover{color:rgb(var(--success-5))}.yc-button-outline.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):active{color:rgb(var(--success-7))}.yc-button-outline.yc-button-status-danger{background-color:transparent;border-color:rgb(var(--danger-6));color:rgb(var(--danger-6))}.yc-button-outline.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):hover{border-color:rgb(var(--danger-5))}.yc-button-outline.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):active{border-color:rgb(var(--danger-7))}.yc-button-outline.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):hover{color:rgb(var(--danger-5))}.yc-button-outline.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):active{color:rgb(var(--danger-7))}.yc-button-text.yc-button-status-normal{color:rgb(var(--primary-6));background-color:transparent}.yc-button-text.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-fill-2)}.yc-button-text.yc-button-status-normal:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-fill-3)}.yc-button-text.yc-button-status-warning{color:rgb(var(--warning-6));background-color:transparent}.yc-button-text.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-fill-2)}.yc-button-text.yc-button-status-warning:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-fill-3)}.yc-button-text.yc-button-status-success{color:rgb(var(--success-6));background-color:transparent}.yc-button-text.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-fill-2)}.yc-button-text.yc-button-status-success:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-fill-3)}.yc-button-text.yc-button-status-danger{color:rgb(var(--danger-6));background-color:transparent}.yc-button-text.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):hover{background-color:var(--color-fill-2)}.yc-button-text.yc-button-status-danger:not(.yc-button-disabled):not(.yc-button-loading):active{background-color:var(--color-fill-3)}.yc-button-size-mini{height:24px;padding:0 11px;font-size:12px}.yc-button-size-mini .yc-button-icon{width:12px;height:12px;margin-right:4px}.yc-button-size-mini.yc-button-shape-circle{width:24px;padding:0}.yc-button-size-mini.yc-button-only-icon{width:24px;padding:0}.yc-button-size-mini.yc-button-only-icon .yc-button-icon{margin:0 }.yc-button-size-small{height:28px;padding:0 15px;font-size:14px}.yc-button-size-small .yc-button-icon{width:14px;height:14px;margin-right:6px}.yc-button-size-small.yc-button-shape-circle{width:28px;padding:0}.yc-button-size-small.yc-button-only-icon{width:28px;padding:0}.yc-button-size-small.yc-button-only-icon .yc-button-icon{margin:0 }.yc-button-size-medium{height:32px;padding:0 15px;font-size:14px}.yc-button-size-medium .yc-button-icon{width:14px;height:14px;margin-right:8px}.yc-button-size-medium.yc-button-shape-circle{width:32px;padding:0}.yc-button-size-medium.yc-button-only-icon{width:32px;padding:0}.yc-button-size-medium.yc-button-only-icon .yc-button-icon{margin:0 }.yc-button-size-large{height:36px;padding:0 19px;font-size:14px}.yc-button-size-large .yc-button-icon{width:14px;height:14px;margin-right:8px}.yc-button-size-large.yc-button-shape-circle{width:36px;padding:0}.yc-button-size-large.yc-button-only-icon{width:36px;padding:0}.yc-button-size-large.yc-button-only-icon .yc-button-icon{margin:0 }.yc-button-shape-square{border-radius:var(--border-radius-small)}.yc-button-shape-round{border-radius:30px}.yc-button-shape-circle{border-radius:var(--border-radius-circle)}.yc-button-group{display:inline-flex;align-items:center}.yc-button-group .yc-button{flex-shrink:0}.yc-button-group .yc-button:not(:first-child):not(:last-child){border-radius:var(--border-radius-none)}.yc-button-group .yc-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.yc-button-group .yc-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0;border-right:none}.yc-button-group-dashed .yc-button:not(:first-child),.yc-button-group-outline .yc-button:not(:first-child){border-left:none}.yc-button-group-primary .yc-button:not(:last-child),.yc-button-group-status-primary .yc-button:not(:last-child){border-right:1px solid rgb(var(--primary-5))}.yc-button-group-secondary .yc-button:not(:last-child),.yc-button-group-status-secondary .yc-button:not(:last-child){border-right:1px solid var(--color-secondary-hover)}.yc-button-group-warning .yc-button:not(:last-child),.yc-button-group-status-warning .yc-button:not(:last-child){border-right:1px solid rgb(var(--warning-5))}.yc-button-group-success .yc-button:not(:last-child),.yc-button-group-status-success .yc-button:not(:last-child){border-right:1px solid rgb(var(--success-5))}.yc-button-group-danger .yc-button:not(:last-child),.yc-button-group-status-danger .yc-button:not(:last-child){border-right:1px solid rgb(var(--danger-5))}
@@ -1 +1 @@
1
- .yc-link{cursor:pointer;padding:1px 4px;line-height:1.5715;background-color:transparent;border:none;border-radius:var(--border-radius-small);font-size:14px;font-weight:400;transition:all .1s cubic-bezier(0, 0, 1, 1);display:inline-flex;justify-content:center;align-items:center;gap:6px}.yc-link .yc-link-icon{flex-shrink:0;color:inherit;font-size:12px;display:flex;justify-content:center;align-items:center}.yc-link .yc-link-icon .yc-spin{font-size:inherit;color:inherit}.yc-link-hoverable:hover{background-color:var(--color-fill-2)}.yc-link-hoverable:active{background-color:var(--color-fill-3)}.yc-link-disabled{cursor:not-allowed}.yc-link-loading{cursor:default;position:relative}.yc-link-status-normal{color:rgb(var(--primary-6))}.yc-link-status-normal.yc-link-loading,.yc-link-status-normal.yc-link-disabled{color:var(--color-link-light-3)}.yc-link-status-warning{color:rgb(var(--warning-6))}.yc-link-status-warning.yc-link-loading,.yc-link-status-warning.yc-link-disabled{color:var(--color-warning-light-3)}.yc-link-status-success{color:rgb(var(--success-6))}.yc-link-status-success.yc-link-loading,.yc-link-status-success.yc-link-disabled{color:var(--color-success-light-3)}.yc-link-status-danger{color:rgb(var(--danger-6))}.yc-link-status-danger.yc-link-loading,.yc-link-status-danger.yc-link-disabled{color:var(--color-danger-light-3)}
1
+ .yc-link{cursor:pointer;padding:1px 4px;line-height:1.5715;background-color:transparent;border:none;border-radius:var(--border-radius-small);font-size:14px;font-weight:400;transition:all .1s cubic-bezier(0, 0, 1, 1);display:inline-flex;justify-content:center;align-items:center;gap:6px}.yc-link .yc-link-icon{flex-shrink:0;color:inherit;font-size:12px;display:flex;justify-content:center;align-items:center}.yc-link .yc-link-icon .yc-spin{font-size:inherit;color:inherit}.yc-link-hoverable:not(.yc-link-disabled):not(.yc-link-loading):hover{background-color:var(--color-fill-2)}.yc-link-hoverable:not(.yc-link-disabled):not(.yc-link-loading):active{background-color:var(--color-fill-3)}.yc-link-disabled{cursor:not-allowed}.yc-link-loading{cursor:default;position:relative}.yc-link-status-normal{color:rgb(var(--primary-6))}.yc-link-status-normal.yc-link-loading,.yc-link-status-normal.yc-link-disabled{color:var(--color-link-light-3)}.yc-link-status-warning{color:rgb(var(--warning-6))}.yc-link-status-warning.yc-link-loading,.yc-link-status-warning.yc-link-disabled{color:var(--color-warning-light-3)}.yc-link-status-success{color:rgb(var(--success-6))}.yc-link-status-success.yc-link-loading,.yc-link-status-success.yc-link-disabled{color:var(--color-success-light-3)}.yc-link-status-danger{color:rgb(var(--danger-6))}.yc-link-status-danger.yc-link-loading,.yc-link-status-danger.yc-link-disabled{color:var(--color-danger-light-3)}
@@ -0,0 +1,13 @@
1
+ import { Ref } from 'vue';
2
+ import { Direction } from '../../_shared/type';
3
+ import { MenuTreeNode } from './useContext';
4
+ interface UseCalcMaxMenuItemProps {
5
+ menuRef: Ref<HTMLDivElement | undefined>;
6
+ menuTree: Ref<MenuTreeNode[]>;
7
+ menuItemWidths: Ref<number[]>;
8
+ mode: Ref<Direction>;
9
+ }
10
+ export default function useCalcMaxMenuItem({ menuRef, menuTree, menuItemWidths, mode, }: UseCalcMaxMenuItemProps): {
11
+ max: Ref<number, number>;
12
+ };
13
+ export {};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../_shared/utils/dom.js"),r=require("../../node_modules/@vueuse/core/index.js");require("../../node_modules/b-tween/dist/b-tween.es.js"),require("../../node_modules/dayjs/dayjs.min.js"),require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../node_modules/dayjs/plugin/duration.js"),require("../../node_modules/dayjs/plugin/toObject.js"),require("../../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../../node_modules/dayjs/plugin/isSameOrBefore.js"),require("../../_shared/utils/locale.js"),require("../../_shared/utils/time.js"),exports.default=function({menuRef:u,menuTree:s,menuItemWidths:o,mode:i}){const l=e.ref(1e6),n=e.computed(()=>s.value.length),d=e=>{let t=0,r=0;for(let u=0;u<n.value;u++){const s=o.value[u];if(void 0===s)return r;const i=s+(u>0?12:0);if(!(t+i<=e))break;t+=i,r++}return r},a=()=>{const e=r.unrefElement(u);if(!e||"horizontal"!==i.value)return void(l.value=s.value.length);const t=window.getComputedStyle(e),o=parseFloat(t.paddingLeft)||0,a=parseFloat(t.paddingRight)||0,m=e.clientWidth-o-a;let c=d(m);if(c<n.value){c=d(m-58)}l.value=Math.max(0,Math.min(c,n.value))};return e.watchEffect(l=>{if("horizontal"===i.value){const{stop:i}=r.useResizeObserver(u,t.throttle(a,200)),n=e.watch(o,a,{deep:!0}),d=e.watch(()=>s.value.length,a);l(()=>{i(),n(),d()})}else a()}),{max:l}};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../_shared/utils/dom.js"),o=require("../../node_modules/@vueuse/core/index.js"),r=require("../../node_modules/nanoid/index.browser.js");require("../../node_modules/b-tween/dist/b-tween.es.js"),require("../../node_modules/dayjs/dayjs.min.js"),require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../node_modules/dayjs/plugin/duration.js"),require("../../node_modules/dayjs/plugin/toObject.js"),require("../../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../../node_modules/dayjs/plugin/isSameOrBefore.js");const u=require("../../_shared/utils/is.js"),l=require("../../_shared/utils/hooks.js");require("../../_shared/utils/locale.js"),require("../../_shared/utils/time.js");const n=require("../../Layout/hooks/useSiderContext.js"),s=require("../SubMenu.vue.js");;/* empty css */const i=require("../MenuItem.vue.js");;/* empty css */const d="menu-context";function a(t,o){const l=[],n=(t,i=null,d=0)=>{var a,c,p;if(!t)return;const f=Array.isArray(t)?t:[t];for(const m of f){if(!e.isVNode(m))continue;const t=r.nanoid(8),f=null==(a=m.type)?void 0:a.name,h=f===s.default.name,v=m.props,j=m.children,y=null==(c=m.component)?void 0:c.subTree,g=h?t:i,q=h?d+1:d;if(o.includes(f)&&l.push({id:t,type:h?"submenu":"menuitem",label:()=>{var e,t;return h?(null==(e=j.title)?void 0:e.call(j))||v.title:null==(t=j.default)?void 0:t.call(j)},path:v.path,parentId:i,level:d}),y)n(y);else if(Array.isArray(j))n(j,g,q);else if(u.isObject(j))for(const e of Object.keys(j))u.isFunction(j[e])&&n((null==(p=j[e])?void 0:p.call(j))||[],g,q)}};return n(t),l}function c(e){const t=new Map,o=[];return e.forEach(e=>{t.set(e.id,{...e,children:[]})}),t.forEach(e=>{if(null===e.parentId)o.push(e);else{const o=t.get(e.parentId);o&&o.children.push(e)}}),o}const p=e=>u.isUndefined(e)||u.isBoolean(e)&&e?167:u.isNumber(e)?e:void 0;exports.FlattenMenuTree=a,exports.buildMenuTree=c,exports.default=function(){return{provide:(r,u,f)=>{const{selectedKeys:m,defaultSelectedKeys:h,openKeys:v,defaultOpenKeys:j,levelIndent:y,collapsed:g,defaultCollapsed:q,breakpoint:b,accordion:x,autoOpen:S,triggerProps:O,tooltipProps:_,autoOpenSelected:I,mode:M,autoScrollIntoView:C,scrollConfig:K,collapsedWidth:T,theme:P,popupMaxHeight:w}=e.toRefs(r),{theme:V,collapsed:k}=n.default().inject(),A=l.useControlValue(m,h.value,e=>{u("update:selectedKeys",e)}),W=l.useControlValue(g,q.value,e=>{H.value=[],u("update:collapsed",e)},e=>e||k.value),H=l.useControlValue(v,j.value,e=>{u("update:openKeys",e)}),N=e.computed(()=>p(w.value)),z=e.useSlots(),B=e.computed(()=>{var e;return a((null==(e=z.default)?void 0:e.call(z))||[],[s.default.name??"",i.default.name??""])}),E=e.ref([]),F=e.computed(()=>c(B.value)),R=e.ref(1e6),L=e.computed(()=>P.value||V.value||"light");return"horizontal"==M.value&&o.useResizeObserver(f,t.throttle(()=>{const e=f.value.offsetWidth-52;let t=0,o=0;for(let r=0;r<F.value.length;r++){const u=o+(r>0?4:0)+E.value[r];if(u>e)break;o=u,t++}R.value=t},200)),e.provide(d,{computedSelectedKeys:A,computedOpenKeys:H,computedCollapsed:W,levelIndent:y,accordion:x,autoOpen:S,triggerProps:O,tooltipProps:_,mode:M,autoOpenSelected:I,popupMaxHeight:N,autoScrollIntoView:C,scrollConfig:K,theme:L,menuTreeNodes:B,menuTree:F,max:R,menuItemWidths:E,emits:u}),{theme:L,computedCollapsed:W,breakpoint:b,collapsedWidth:e.computed(()=>t.valueToPx(T.value)),menuTree:F,max:R}},inject:()=>e.inject(d,{computedSelectedKeys:e.ref(""),computedOpenKeys:e.ref([]),levelIndent:e.ref(20),computedCollapsed:e.ref(!1),accordion:e.ref(!1),autoOpen:e.ref(!1),tooltipProps:e.ref({}),triggerProps:e.ref({}),autoOpenSelected:e.ref(!1),mode:e.ref("vertical"),theme:e.ref("light"),popupMaxHeight:e.ref(),autoScrollIntoView:e.ref(!1),scrollConfig:e.ref({}),menuTreeNodes:e.ref([]),menuTree:e.ref([]),max:e.ref(1e4),menuItemWidths:e.ref([]),emits:()=>{}})}},exports.getPopupMaxHeight=p,exports.isMenuItemActive=function(e,t,o){if(t===o)return!0;const r=(e,t)=>{for(const o of e){if(o.path===t)return o;if(o.children&&o.children.length>0){const e=r(o.children,t);if(e)return e}}return null},u=r(e,t);if(!u)return!1;const l=(e,t)=>e.path===t||!!e.children&&e.children.some(e=>l(e,t));return l(u,o)};
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../_shared/utils/dom.js"),o=require("../../node_modules/nanoid/index.browser.js");require("../../node_modules/b-tween/dist/b-tween.es.js"),require("../../node_modules/dayjs/dayjs.min.js"),require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../node_modules/dayjs/plugin/duration.js"),require("../../node_modules/dayjs/plugin/toObject.js"),require("../../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../../node_modules/dayjs/plugin/isSameOrBefore.js");const r=require("../../_shared/utils/is.js"),u=require("../../_shared/utils/hooks.js");require("../../_shared/utils/locale.js"),require("../../_shared/utils/time.js");const n=require("./useCalcMaxMenuItems.js"),l=require("../../Layout/hooks/useSiderContext.js"),s=require("../SubMenu.vue.js");;/* empty css */const i=require("../MenuItem.vue.js");;/* empty css */const d="menu-context";function a(t,u){const n=[],l=(t,i=null,d=0)=>{var a,c,p;if(!t)return;const m=Array.isArray(t)?t:[t];for(const f of m){if(!e.isVNode(f))continue;const t=o.nanoid(8),m=null==(a=f.type)?void 0:a.name,h=m===s.default.name,v=f.props,j=f.children,y=null==(c=f.component)?void 0:c.subTree,g=h?t:i,q=h?d+1:d;if(u.includes(m)&&n.push({id:t,type:h?"submenu":"menuitem",label:()=>{var e,t;return h?(null==(e=j.title)?void 0:e.call(j))||v.title:null==(t=j.default)?void 0:t.call(j)},path:v.path,parentId:i,level:d}),y)l(y);else if(Array.isArray(j))l(j,g,q);else if(r.isObject(j))for(const e of Object.keys(j))r.isFunction(j[e])&&l((null==(p=j[e])?void 0:p.call(j))||[],g,q)}};return l(t),n}function c(e){const t=new Map,o=[];return e.forEach(e=>{t.set(e.id,{...e,children:[]})}),t.forEach(e=>{if(null===e.parentId)o.push(e);else{const o=t.get(e.parentId);o&&o.children.push(e)}}),o}const p=e=>r.isUndefined(e)||r.isBoolean(e)&&e?167:r.isNumber(e)?e:void 0;exports.FlattenMenuTree=a,exports.buildMenuTree=c,exports.default=function(){return{provide:(o,r,m)=>{const{selectedKeys:f,defaultSelectedKeys:h,openKeys:v,defaultOpenKeys:j,levelIndent:y,collapsed:g,defaultCollapsed:q,breakpoint:x,accordion:b,autoOpen:S,triggerProps:I,tooltipProps:M,autoOpenSelected:O,mode:_,autoScrollIntoView:C,scrollConfig:T,collapsedWidth:K,theme:P,popupMaxHeight:w}=e.toRefs(o),{theme:V,collapsed:A}=l.default().inject(),k=u.useControlValue(f,h.value,e=>{r("update:selectedKeys",e)}),W=u.useControlValue(g,q.value,e=>{H.value=[],r("update:collapsed",e)},e=>e||A.value),H=u.useControlValue(v,j.value,e=>{r("update:openKeys",e)}),N=e.computed(()=>p(w.value)),B=e.useSlots(),E=e.computed(()=>{var e;return a((null==(e=B.default)?void 0:e.call(B))||[],[s.default.name??"",i.default.name??""])}),F=e.ref([]),R=e.computed(()=>c(E.value)),L=e.computed(()=>P.value||V.value||"light"),{max:U}=n.default({menuRef:m,menuItemWidths:F,menuTree:R,mode:_});return e.provide(d,{computedSelectedKeys:k,computedOpenKeys:H,computedCollapsed:W,levelIndent:y,accordion:b,autoOpen:S,triggerProps:I,tooltipProps:M,mode:_,autoOpenSelected:O,popupMaxHeight:N,autoScrollIntoView:C,scrollConfig:T,theme:L,menuTreeNodes:E,menuTree:R,max:U,menuItemWidths:F,emits:r}),{theme:L,computedCollapsed:W,breakpoint:x,collapsedWidth:e.computed(()=>t.valueToPx(K.value)),menuTree:R,max:U}},inject:()=>e.inject(d,{computedSelectedKeys:e.ref(""),computedOpenKeys:e.ref([]),levelIndent:e.ref(20),computedCollapsed:e.ref(!1),accordion:e.ref(!1),autoOpen:e.ref(!1),tooltipProps:e.ref({}),triggerProps:e.ref({}),autoOpenSelected:e.ref(!1),mode:e.ref("vertical"),theme:e.ref("light"),popupMaxHeight:e.ref(),autoScrollIntoView:e.ref(!1),scrollConfig:e.ref({}),menuTreeNodes:e.ref([]),menuTree:e.ref([]),max:e.ref(1e4),menuItemWidths:e.ref([]),emits:()=>{}})}},exports.getPopupMaxHeight=p,exports.isMenuItemActive=function(e,t,o){if(t===o)return!0;const r=(e,t)=>{for(const o of e){if(o.path===t)return o;if(o.children&&o.children.length>0){const e=r(o.children,t);if(e)return e}}return null},u=r(e,t);if(!u)return!1;const n=(e,t)=>e.path===t||!!e.children&&e.children.some(e=>n(e,t));return n(u,o)};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=;/* empty css */,/* empty css */require("../_shared/utils/dom.js"),require("../node_modules/b-tween/dist/b-tween.es.js"),require("../node_modules/dayjs/dayjs.min.js"),require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../node_modules/dayjs/plugin/duration.js"),require("../node_modules/dayjs/plugin/toObject.js"),require("../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../node_modules/dayjs/plugin/isSameOrBefore.js"),require("../_shared/utils/locale.js"),require("../_shared/utils/time.js"),/* empty css */;/* empty css */const t=require("../_shared/icons/IconClose.vue.js"),r=require("../_shared/icons/IconDelete.vue2.js"),a=require("../_shared/icons/IconSearch.vue2.js"),u=require("./hooks/useContext.js"),o=require("../Checkbox/index.js"),n=require("../Scrollbar/index.js"),s=require("../Input/index.js"),c=require("../Empty/index.js"),d={class:"yc-transfer-view"},i={class:"yc-transfer-view-header"},v={class:"yc-transfer-view-header-title"},m={class:"yc-transfer-view-header-count"},f={key:0,class:"yc-transfer-view-search"},p={class:"yc-transfer-view-body"},h={role:"list",class:"yc-transfer-list"},g=["onClick"],k={class:"yc-transfer-list-item-content text-ellipsis"},y=e.defineComponent({__name:"TransferPanel",props:{type:{}},setup(y){const j=y,{type:_}=e.toRefs(j),{computedValue:V,computedSelected:B,targetChecked:x,sourceChecked:C,sourceOptions:S,targetOptions:q,disabled:b,oneWay:N,showSearch:w,showSelectAll:E,simple:P,sourceInputSearchProps:I,targetInputSearchProps:T,slots:D,title:O,emits:z}=u.default().inject(),$=e.ref(""),F=e.computed(()=>("source"==_.value?S.value:q.value).filter(e=>{var l;return null==(l=e.label)?void 0:l.toLowerCase().includes($.value.toLowerCase())})),A=e.computed(()=>"source"==_.value?C.value:x.value),L=e.computed(()=>"source"==_.value?I.value:T.value),R=e.computed(()=>"source"==_.value?O.value[0]:O.value[1]),M=e.computed(()=>({countTotal:"source"==_.value?S.value.length:q.value.length,countSelected:"source"==_.value?C.value.length:x.value.length,searchValue:$.value,checked:K.value,indeterminate:W.value,onSelectAllChange:e=>{K.value=e},onClear:G})),U=e.computed(()=>({selectedKeys:A.value,data:F.value,onSelect:e=>{B.value=e}})),K=e.computed({get:()=>!!A.value.length&&A.value.length==F.value.length,set(e){if(e)B.value=[...new Set([...B.value,...F.value.map(e=>e.value)])];else{const e=Object.fromEntries(F.value.map(e=>[e.value,e]));B.value=B.value.filter(l=>!e[l])}}}),W=e.computed(()=>!!A.value.length&&A.value.length<=F.value.length),G=()=>{!b.value&&V.value.length&&(V.value=[])};return(u,y)=>(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("div",i,[e.renderSlot(u.$slots,`${e.unref(_)}-title`,e.normalizeProps(e.guardReactiveProps(M.value)),()=>[e.createElementVNode("span",v,[!e.unref(E)||e.unref(P)||e.unref(N)&&"target"==e.unref(_)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(R.value),1)],64)):(e.openBlock(),e.createBlock(e.unref(o.default),{key:0,modelValue:K.value,"onUpdate:modelValue":y[0]||(y[0]=e=>K.value=e),indeterminate:W.value,disabled:!F.value.length||e.unref(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(R.value),1)]),_:1},8,["modelValue","indeterminate","disabled"]))]),e.createElementVNode("span",m,[e.unref(P)||e.unref(N)&&"target"==e.unref(_)?"target"!=e.unref(_)||e.unref(P)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(l.default),{key:1,size:14,onClick:G},{default:e.withCtx(()=>[e.createVNode(e.unref(r.default))]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(A.value.length)+" / "+e.toDisplayString(F.value.length),1)],64))])])]),e.unref(w)?(e.openBlock(),e.createElementBlock("div",f,[e.createVNode(e.unref(s.default),e.mergeProps({modelValue:$.value,"onUpdate:modelValue":y[1]||(y[1]=e=>$.value=e)},L.value,{onInput:y[2]||(y[2]=l=>e.unref(z)("search",l,e.unref(_)))}),{suffix:e.withCtx(()=>[e.createVNode(e.unref(a.default))]),_:1},16,["modelValue"])])):e.createCommentVNode("",!0),e.createElementVNode("div",p,[F.value.length?(e.openBlock(),e.createBlock(e.unref(n.default),{key:0},{default:e.withCtx(()=>[e.renderSlot(u.$slots,e.unref(_),e.normalizeProps(e.guardReactiveProps(U.value)),()=>[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r.value,role:"listitem",class:e.normalizeClass(["yc-transfer-list-item",{"yc-transfer-list-item-disabled":r.disabled||e.unref(b)}]),onClick:e=>(e=>{const{value:l}=e;b.value||e.disabled||(N.value&&"source"!=_.value||P.value)&&(V.value="source"==_.value?[...V.value,l]:V.value.filter(e=>e!=l))})(r)},[e.unref(N)&&(!e.unref(N)||"source"!=e.unref(_))||e.unref(P)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",k,[e.renderSlot(u.$slots,"item",e.mergeProps({ref_for:!0},r),()=>[e.createTextVNode(e.toDisplayString(r.label),1)])]),"target"!=e.unref(_)||e.unref(P)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(l.default),{key:0,"hover-size":20},{default:e.withCtx(()=>[e.createVNode(e.unref(t.default))]),_:1}))],64)):(e.openBlock(),e.createBlock(e.unref(o.default),{key:0,"model-value":A.value.includes(r.value),disabled:r.disabled||e.unref(b),onChange:e=>((e,l)=>{B.value=e?[...B.value,l]:B.value.filter(e=>e!=l),z("select",B.value)})(e,r.value)},{default:e.withCtx(()=>[e.renderSlot(u.$slots,"item",e.mergeProps({ref_for:!0},r),()=>[e.createTextVNode(e.toDisplayString(r.label),1)])]),_:2},1032,["model-value","disabled","onChange"]))],10,g))),128))])])]),_:3})):e.createCommentVNode("",!0),e.createVNode(e.unref(c.default))])]))}});exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=;/* empty css */,/* empty css */require("../_shared/utils/dom.js"),require("../node_modules/b-tween/dist/b-tween.es.js"),require("../node_modules/dayjs/dayjs.min.js"),require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../node_modules/dayjs/plugin/duration.js"),require("../node_modules/dayjs/plugin/toObject.js"),require("../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../node_modules/dayjs/plugin/isSameOrBefore.js"),require("../_shared/utils/locale.js"),require("../_shared/utils/time.js"),/* empty css */;/* empty css */const t=require("../_shared/icons/IconClose.vue.js"),r=require("../_shared/icons/IconDelete.vue2.js"),a=require("../_shared/icons/IconSearch.vue2.js"),u=require("./hooks/useContext.js"),o=require("../Checkbox/index.js"),n=require("../Scrollbar/index.js"),s=require("../Input/index.js"),c=require("../Empty/index.js"),d={class:"yc-transfer-view"},i={class:"yc-transfer-view-header"},v={class:"yc-transfer-view-header-title"},m={class:"yc-transfer-view-header-count"},f={key:0,class:"yc-transfer-view-search"},p={class:"yc-transfer-view-body"},h={role:"list",class:"yc-transfer-list"},g=["onClick"],k={class:"yc-transfer-list-item-content text-ellipsis"},y=e.defineComponent({__name:"TransferPanel",props:{type:{}},setup(y){const j=y,{type:_}=e.toRefs(j),{computedValue:V,computedSelected:B,targetChecked:x,sourceChecked:C,sourceOptions:S,targetOptions:q,disabled:b,oneWay:N,showSearch:w,showSelectAll:E,simple:P,sourceInputSearchProps:I,targetInputSearchProps:T,title:D,emits:O}=u.default().inject(),z=e.ref(""),$=e.computed(()=>("source"==_.value?S.value:q.value).filter(e=>{var l;return null==(l=e.label)?void 0:l.toLowerCase().includes(z.value.toLowerCase())})),F=e.computed(()=>"source"==_.value?C.value:x.value),A=e.computed(()=>"source"==_.value?I.value:T.value),L=e.computed(()=>"source"==_.value?D.value[0]:D.value[1]),R=e.computed(()=>({countTotal:"source"==_.value?S.value.length:q.value.length,countSelected:"source"==_.value?C.value.length:x.value.length,searchValue:z.value,checked:U.value,indeterminate:K.value,onSelectAllChange:e=>{U.value=e},onClear:W})),M=e.computed(()=>({selectedKeys:F.value,data:$.value,onSelect:e=>{B.value=e}})),U=e.computed({get:()=>!!F.value.length&&F.value.length==$.value.length,set(e){if(e)B.value=[...new Set([...B.value,...$.value.map(e=>e.value)])];else{const e=Object.fromEntries($.value.map(e=>[e.value,e]));B.value=B.value.filter(l=>!e[l])}}}),K=e.computed(()=>!!F.value.length&&F.value.length<=$.value.length),W=()=>{!b.value&&V.value.length&&(V.value=[])};return(u,y)=>(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("div",i,[e.renderSlot(u.$slots,`${e.unref(_)}-title`,e.normalizeProps(e.guardReactiveProps(R.value)),()=>[e.createElementVNode("span",v,[!e.unref(E)||e.unref(P)||e.unref(N)&&"target"==e.unref(_)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(L.value),1)],64)):(e.openBlock(),e.createBlock(e.unref(o.default),{key:0,modelValue:U.value,"onUpdate:modelValue":y[0]||(y[0]=e=>U.value=e),indeterminate:K.value,disabled:!$.value.length||e.unref(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.value),1)]),_:1},8,["modelValue","indeterminate","disabled"]))]),e.createElementVNode("span",m,[e.unref(P)||e.unref(N)&&"target"==e.unref(_)?"target"!=e.unref(_)||e.unref(P)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(l.default),{key:1,size:14,onClick:W},{default:e.withCtx(()=>[e.createVNode(e.unref(r.default))]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(F.value.length)+" / "+e.toDisplayString($.value.length),1)],64))])])]),e.unref(w)?(e.openBlock(),e.createElementBlock("div",f,[e.createVNode(e.unref(s.default),e.mergeProps({modelValue:z.value,"onUpdate:modelValue":y[1]||(y[1]=e=>z.value=e)},A.value,{onInput:y[2]||(y[2]=l=>e.unref(O)("search",l,e.unref(_)))}),{suffix:e.withCtx(()=>[e.createVNode(e.unref(a.default))]),_:1},16,["modelValue"])])):e.createCommentVNode("",!0),e.createElementVNode("div",p,[$.value.length?(e.openBlock(),e.createBlock(e.unref(n.default),{key:0},{default:e.withCtx(()=>[e.renderSlot(u.$slots,e.unref(_),e.normalizeProps(e.guardReactiveProps(M.value)),()=>[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r.value,role:"listitem",class:e.normalizeClass(["yc-transfer-list-item",{"yc-transfer-list-item-disabled":r.disabled||e.unref(b)}]),onClick:e=>(e=>{const{value:l}=e;b.value||e.disabled||(N.value&&"source"!=_.value||P.value)&&(V.value="source"==_.value?[...V.value,l]:V.value.filter(e=>e!=l))})(r)},[e.unref(N)&&(!e.unref(N)||"source"!=e.unref(_))||e.unref(P)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",k,[e.renderSlot(u.$slots,"item",e.mergeProps({ref_for:!0},r),()=>[e.createTextVNode(e.toDisplayString(r.label),1)])]),"target"!=e.unref(_)||e.unref(P)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(l.default),{key:0,"hover-size":20},{default:e.withCtx(()=>[e.createVNode(e.unref(t.default))]),_:1}))],64)):(e.openBlock(),e.createBlock(e.unref(o.default),{key:0,"model-value":F.value.includes(r.value),disabled:r.disabled||e.unref(b),onChange:e=>((e,l)=>{B.value=e?[...B.value,l]:B.value.filter(e=>e!=l),O("select",B.value)})(e,r.value)},{default:e.withCtx(()=>[e.renderSlot(u.$slots,"item",e.mergeProps({ref_for:!0},r),()=>[e.createTextVNode(e.toDisplayString(r.label),1)])]),_:2},1032,["model-value","disabled","onChange"]))],10,g))),128))])])]),_:3})):e.createCommentVNode("",!0),e.createVNode(e.unref(c.default))])]))}});exports.default=y;
@@ -1,4 +1,4 @@
1
- import { Ref, Slots } from 'vue';
1
+ import { Ref } from 'vue';
2
2
  import { TransferEmits, TransferItem, TransferItemValue } from '../type';
3
3
  import { InputProps } from '../../Input';
4
4
  import { RecordType } from '../../_shared/type';
@@ -17,7 +17,6 @@ type TransferContext = {
17
17
  showSearch: Ref<boolean>;
18
18
  oneWay: Ref<boolean>;
19
19
  simple: Ref<boolean>;
20
- slots: Slots;
21
20
  emits: TransferEmits;
22
21
  };
23
22
  export default function useTransferContext(): {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../_shared/utils/dom.js"),require("../../node_modules/b-tween/dist/b-tween.es.js"),require("../../node_modules/dayjs/dayjs.min.js"),require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../node_modules/dayjs/plugin/duration.js"),require("../../node_modules/dayjs/plugin/toObject.js"),require("../../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../../node_modules/dayjs/plugin/isSameOrBefore.js");const t=require("../../_shared/utils/hooks.js");require("../../_shared/utils/locale.js"),require("../../_shared/utils/time.js");const r="transfer-context";exports.default=function(){return{provide:(s,u)=>{const{modelValue:o,defaultValue:l,selected:a,defaultSelected:d,data:c,oneWay:i,simple:n,sourceInputSearchProps:p,targetInputSearchProps:m,showSearch:h,showSelectAll:f,disabled:j,title:S}=e.toRefs(s),v=e.useSlots(),g=e.computed(()=>Object.fromEntries(c.value.map(e=>[e.value,e]))),_=t.useControlValue(o,l.value,e=>{u("update:modelValue",e),u("change",e)}),q=e.computed(()=>new Map(_.value.map(e=>[e,e]))),y=t.useControlValue(a,d.value,e=>{u("update:selected",e)}),b=e.computed(()=>c.value.filter(e=>!q.value.has(e.value))),w=e.computed(()=>_.value.map(e=>g.value[e])),O=e.computed(()=>y.value.filter(e=>!q.value.has(e))),C=e.computed(()=>y.value.filter(e=>q.value.has(e)));return e.provide(r,{computedValue:_,computedSelected:y,targetChecked:C,sourceChecked:O,sourceOptions:b,targetOptions:w,oneWay:i,simple:n,sourceInputSearchProps:p,targetInputSearchProps:m,showSearch:h,showSelectAll:f,disabled:j,title:S,slots:v,emits:u}),{computedValue:_,computedSelected:y,targetChecked:C,sourceChecked:O}},inject:()=>e.inject(r,{computedValue:e.ref([]),computedSelected:e.ref([]),targetChecked:e.ref([]),sourceChecked:e.ref([]),sourceOptions:e.ref([]),targetOptions:e.ref([]),disabled:e.ref(!1),oneWay:e.ref(!1),simple:e.ref(!1),title:e.ref([]),showSearch:e.ref(!1),showSelectAll:e.ref(!1),sourceInputSearchProps:e.ref({}),targetInputSearchProps:e.ref({}),slots:{},emits:()=>{}})}};
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../_shared/utils/dom.js"),require("../../node_modules/b-tween/dist/b-tween.es.js"),require("../../node_modules/dayjs/dayjs.min.js"),require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../node_modules/dayjs/plugin/duration.js"),require("../../node_modules/dayjs/plugin/toObject.js"),require("../../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../../node_modules/dayjs/plugin/isSameOrBefore.js");const t=require("../../_shared/utils/hooks.js");require("../../_shared/utils/locale.js"),require("../../_shared/utils/time.js");const r="transfer-context";exports.default=function(){return{provide:(u,s)=>{const{modelValue:o,defaultValue:l,selected:a,defaultSelected:d,data:c,oneWay:i,simple:n,sourceInputSearchProps:p,targetInputSearchProps:m,showSearch:h,showSelectAll:f,disabled:j,title:S}=e.toRefs(u),v=e.computed(()=>Object.fromEntries(c.value.map(e=>[e.value,e]))),g=t.useControlValue(o,l.value,e=>{s("update:modelValue",e),s("change",e)}),_=e.computed(()=>new Map(g.value.map(e=>[e,e]))),q=t.useControlValue(a,d.value,e=>{s("update:selected",e)}),y=e.computed(()=>c.value.filter(e=>!_.value.has(e.value))),b=e.computed(()=>g.value.map(e=>v.value[e])),w=e.computed(()=>q.value.filter(e=>!_.value.has(e))),O=e.computed(()=>q.value.filter(e=>_.value.has(e)));return e.provide(r,{computedValue:g,computedSelected:q,targetChecked:O,sourceChecked:w,sourceOptions:y,targetOptions:b,oneWay:i,simple:n,sourceInputSearchProps:p,targetInputSearchProps:m,showSearch:h,showSelectAll:f,disabled:j,title:S,emits:s}),{computedValue:g,computedSelected:q,targetChecked:O,sourceChecked:w}},inject:()=>e.inject(r,{computedValue:e.ref([]),computedSelected:e.ref([]),targetChecked:e.ref([]),sourceChecked:e.ref([]),sourceOptions:e.ref([]),targetOptions:e.ref([]),disabled:e.ref(!1),oneWay:e.ref(!1),simple:e.ref(!1),title:e.ref([]),showSearch:e.ref(!1),showSelectAll:e.ref(!1),sourceInputSearchProps:e.ref({}),targetInputSearchProps:e.ref({}),emits:()=>{}})}};