mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-30 12:52:43 +08:00
chore(ci): fix test error (#4228)
This commit is contained in:
parent
9216158e1e
commit
9b2bacebcd
@ -1,9 +1,9 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`n-checkbox should show correct style with \`NForm\` component 1`] = `"--n-label-line-height: 1.6; --n-size: 16px; --n-bezier: cubic-bezier(.4, 0, .2, 1); --n-border-radius: 2px; --n-border: 1px solid rgb(224, 224, 230); --n-border-checked: 1px solid #18a058; --n-border-focus: 1px solid #18a058; --n-border-disabled: 1px solid rgb(224, 224, 230); --n-border-disabled-checked: 1px solid rgb(224, 224, 230); --n-box-shadow-focus: 0 0 0 2px rgba(24, 160, 88, 0.3); --n-color: #FFF; --n-color-checked: #18a058; --n-color-table: #fff; --n-color-table-modal: #fff; --n-color-table-popover: #fff; --n-color-disabled: rgb(250, 250, 252); --n-color-disabled-checked: rgb(250, 250, 252); --n-text-color: rgb(51, 54, 57); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color: #FFF; --n-check-mark-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color-disabled-checked: rgba(194, 194, 194, 1); --n-font-size: 14px; --n-label-padding: 0 8px;"`;
|
||||
exports[`n-checkbox should show correct style with \`NForm\` component 1`] = `"--n-label-line-height: 1.6; --n-label-font-weight: 400; --n-size: 16px; --n-bezier: cubic-bezier(.4, 0, .2, 1); --n-border-radius: 2px; --n-border: 1px solid rgb(224, 224, 230); --n-border-checked: 1px solid #18a058; --n-border-focus: 1px solid #18a058; --n-border-disabled: 1px solid rgb(224, 224, 230); --n-border-disabled-checked: 1px solid rgb(224, 224, 230); --n-box-shadow-focus: 0 0 0 2px rgba(24, 160, 88, 0.3); --n-color: #FFF; --n-color-checked: #18a058; --n-color-table: #fff; --n-color-table-modal: #fff; --n-color-table-popover: #fff; --n-color-disabled: rgb(250, 250, 252); --n-color-disabled-checked: rgb(250, 250, 252); --n-text-color: rgb(51, 54, 57); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color: #FFF; --n-check-mark-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color-disabled-checked: rgba(194, 194, 194, 1); --n-font-size: 14px; --n-label-padding: 0 8px;"`;
|
||||
|
||||
exports[`n-checkbox should work with \`size\` prop 1`] = `"--n-label-line-height: 1.6; --n-size: 14px; --n-bezier: cubic-bezier(.4, 0, .2, 1); --n-border-radius: 2px; --n-border: 1px solid rgb(224, 224, 230); --n-border-checked: 1px solid #18a058; --n-border-focus: 1px solid #18a058; --n-border-disabled: 1px solid rgb(224, 224, 230); --n-border-disabled-checked: 1px solid rgb(224, 224, 230); --n-box-shadow-focus: 0 0 0 2px rgba(24, 160, 88, 0.3); --n-color: #FFF; --n-color-checked: #18a058; --n-color-table: #fff; --n-color-table-modal: #fff; --n-color-table-popover: #fff; --n-color-disabled: rgb(250, 250, 252); --n-color-disabled-checked: rgb(250, 250, 252); --n-text-color: rgb(51, 54, 57); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color: #FFF; --n-check-mark-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color-disabled-checked: rgba(194, 194, 194, 1); --n-font-size: 14px; --n-label-padding: 0 8px;"`;
|
||||
exports[`n-checkbox should work with \`size\` prop 1`] = `"--n-label-line-height: 1.6; --n-label-font-weight: 400; --n-size: 14px; --n-bezier: cubic-bezier(.4, 0, .2, 1); --n-border-radius: 2px; --n-border: 1px solid rgb(224, 224, 230); --n-border-checked: 1px solid #18a058; --n-border-focus: 1px solid #18a058; --n-border-disabled: 1px solid rgb(224, 224, 230); --n-border-disabled-checked: 1px solid rgb(224, 224, 230); --n-box-shadow-focus: 0 0 0 2px rgba(24, 160, 88, 0.3); --n-color: #FFF; --n-color-checked: #18a058; --n-color-table: #fff; --n-color-table-modal: #fff; --n-color-table-popover: #fff; --n-color-disabled: rgb(250, 250, 252); --n-color-disabled-checked: rgb(250, 250, 252); --n-text-color: rgb(51, 54, 57); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color: #FFF; --n-check-mark-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color-disabled-checked: rgba(194, 194, 194, 1); --n-font-size: 14px; --n-label-padding: 0 8px;"`;
|
||||
|
||||
exports[`n-checkbox should work with \`size\` prop 2`] = `"--n-label-line-height: 1.6; --n-size: 16px; --n-bezier: cubic-bezier(.4, 0, .2, 1); --n-border-radius: 2px; --n-border: 1px solid rgb(224, 224, 230); --n-border-checked: 1px solid #18a058; --n-border-focus: 1px solid #18a058; --n-border-disabled: 1px solid rgb(224, 224, 230); --n-border-disabled-checked: 1px solid rgb(224, 224, 230); --n-box-shadow-focus: 0 0 0 2px rgba(24, 160, 88, 0.3); --n-color: #FFF; --n-color-checked: #18a058; --n-color-table: #fff; --n-color-table-modal: #fff; --n-color-table-popover: #fff; --n-color-disabled: rgb(250, 250, 252); --n-color-disabled-checked: rgb(250, 250, 252); --n-text-color: rgb(51, 54, 57); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color: #FFF; --n-check-mark-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color-disabled-checked: rgba(194, 194, 194, 1); --n-font-size: 14px; --n-label-padding: 0 8px;"`;
|
||||
exports[`n-checkbox should work with \`size\` prop 2`] = `"--n-label-line-height: 1.6; --n-label-font-weight: 400; --n-size: 16px; --n-bezier: cubic-bezier(.4, 0, .2, 1); --n-border-radius: 2px; --n-border: 1px solid rgb(224, 224, 230); --n-border-checked: 1px solid #18a058; --n-border-focus: 1px solid #18a058; --n-border-disabled: 1px solid rgb(224, 224, 230); --n-border-disabled-checked: 1px solid rgb(224, 224, 230); --n-box-shadow-focus: 0 0 0 2px rgba(24, 160, 88, 0.3); --n-color: #FFF; --n-color-checked: #18a058; --n-color-table: #fff; --n-color-table-modal: #fff; --n-color-table-popover: #fff; --n-color-disabled: rgb(250, 250, 252); --n-color-disabled-checked: rgb(250, 250, 252); --n-text-color: rgb(51, 54, 57); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color: #FFF; --n-check-mark-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color-disabled-checked: rgba(194, 194, 194, 1); --n-font-size: 14px; --n-label-padding: 0 8px;"`;
|
||||
|
||||
exports[`n-checkbox should work with \`size\` prop 3`] = `"--n-label-line-height: 1.6; --n-size: 18px; --n-bezier: cubic-bezier(.4, 0, .2, 1); --n-border-radius: 2px; --n-border: 1px solid rgb(224, 224, 230); --n-border-checked: 1px solid #18a058; --n-border-focus: 1px solid #18a058; --n-border-disabled: 1px solid rgb(224, 224, 230); --n-border-disabled-checked: 1px solid rgb(224, 224, 230); --n-box-shadow-focus: 0 0 0 2px rgba(24, 160, 88, 0.3); --n-color: #FFF; --n-color-checked: #18a058; --n-color-table: #fff; --n-color-table-modal: #fff; --n-color-table-popover: #fff; --n-color-disabled: rgb(250, 250, 252); --n-color-disabled-checked: rgb(250, 250, 252); --n-text-color: rgb(51, 54, 57); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color: #FFF; --n-check-mark-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color-disabled-checked: rgba(194, 194, 194, 1); --n-font-size: 15px; --n-label-padding: 0 8px;"`;
|
||||
exports[`n-checkbox should work with \`size\` prop 3`] = `"--n-label-line-height: 1.6; --n-label-font-weight: 400; --n-size: 18px; --n-bezier: cubic-bezier(.4, 0, .2, 1); --n-border-radius: 2px; --n-border: 1px solid rgb(224, 224, 230); --n-border-checked: 1px solid #18a058; --n-border-focus: 1px solid #18a058; --n-border-disabled: 1px solid rgb(224, 224, 230); --n-border-disabled-checked: 1px solid rgb(224, 224, 230); --n-box-shadow-focus: 0 0 0 2px rgba(24, 160, 88, 0.3); --n-color: #FFF; --n-color-checked: #18a058; --n-color-table: #fff; --n-color-table-modal: #fff; --n-color-table-popover: #fff; --n-color-disabled: rgb(250, 250, 252); --n-color-disabled-checked: rgb(250, 250, 252); --n-text-color: rgb(51, 54, 57); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color: #FFF; --n-check-mark-color-disabled: rgba(194, 194, 194, 1); --n-check-mark-color-disabled-checked: rgba(194, 194, 194, 1); --n-font-size: 15px; --n-label-padding: 0 8px;"`;
|
||||
|
@ -1,10 +1,10 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`n-radio should work with \`size\` prop 1`] = `"--n-bezier: cubic-bezier(.4, 0, .2, 1); --n-label-line-height: 1.6; --n-box-shadow: inset 0 0 0 1px rgb(224, 224, 230); --n-box-shadow-active: inset 0 0 0 1px #18a058; --n-box-shadow-disabled: inset 0 0 0 1px rgb(224, 224, 230); --n-box-shadow-focus: inset 0 0 0 1px #18a058, 0 0 0 2px rgba(24, 160, 88, 0.2); --n-box-shadow-hover: inset 0 0 0 1px #18a058; --n-color: #FFF; --n-color-active: #0000; --n-color-disabled: rgb(250, 250, 252); --n-dot-color-active: #18a058; --n-dot-color-disabled: rgb(224, 224, 230); --n-font-size: 14px; --n-radio-size: 14px; --n-text-color: rgb(51, 54, 57); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-label-padding: 0 8px;"`;
|
||||
exports[`n-radio should work with \`size\` prop 1`] = `"--n-bezier: cubic-bezier(.4, 0, .2, 1); --n-label-line-height: 1.6; --n-label-font-weight: 400; --n-box-shadow: inset 0 0 0 1px rgb(224, 224, 230); --n-box-shadow-active: inset 0 0 0 1px #18a058; --n-box-shadow-disabled: inset 0 0 0 1px rgb(224, 224, 230); --n-box-shadow-focus: inset 0 0 0 1px #18a058, 0 0 0 2px rgba(24, 160, 88, 0.2); --n-box-shadow-hover: inset 0 0 0 1px #18a058; --n-color: #FFF; --n-color-active: #0000; --n-color-disabled: rgb(250, 250, 252); --n-dot-color-active: #18a058; --n-dot-color-disabled: rgb(224, 224, 230); --n-font-size: 14px; --n-radio-size: 14px; --n-text-color: rgb(51, 54, 57); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-label-padding: 0 8px;"`;
|
||||
|
||||
exports[`n-radio should work with \`size\` prop 2`] = `"--n-bezier: cubic-bezier(.4, 0, .2, 1); --n-label-line-height: 1.6; --n-box-shadow: inset 0 0 0 1px rgb(224, 224, 230); --n-box-shadow-active: inset 0 0 0 1px #18a058; --n-box-shadow-disabled: inset 0 0 0 1px rgb(224, 224, 230); --n-box-shadow-focus: inset 0 0 0 1px #18a058, 0 0 0 2px rgba(24, 160, 88, 0.2); --n-box-shadow-hover: inset 0 0 0 1px #18a058; --n-color: #FFF; --n-color-active: #0000; --n-color-disabled: rgb(250, 250, 252); --n-dot-color-active: #18a058; --n-dot-color-disabled: rgb(224, 224, 230); --n-font-size: 14px; --n-radio-size: 16px; --n-text-color: rgb(51, 54, 57); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-label-padding: 0 8px;"`;
|
||||
exports[`n-radio should work with \`size\` prop 2`] = `"--n-bezier: cubic-bezier(.4, 0, .2, 1); --n-label-line-height: 1.6; --n-label-font-weight: 400; --n-box-shadow: inset 0 0 0 1px rgb(224, 224, 230); --n-box-shadow-active: inset 0 0 0 1px #18a058; --n-box-shadow-disabled: inset 0 0 0 1px rgb(224, 224, 230); --n-box-shadow-focus: inset 0 0 0 1px #18a058, 0 0 0 2px rgba(24, 160, 88, 0.2); --n-box-shadow-hover: inset 0 0 0 1px #18a058; --n-color: #FFF; --n-color-active: #0000; --n-color-disabled: rgb(250, 250, 252); --n-dot-color-active: #18a058; --n-dot-color-disabled: rgb(224, 224, 230); --n-font-size: 14px; --n-radio-size: 16px; --n-text-color: rgb(51, 54, 57); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-label-padding: 0 8px;"`;
|
||||
|
||||
exports[`n-radio should work with \`size\` prop 3`] = `"--n-bezier: cubic-bezier(.4, 0, .2, 1); --n-label-line-height: 1.6; --n-box-shadow: inset 0 0 0 1px rgb(224, 224, 230); --n-box-shadow-active: inset 0 0 0 1px #18a058; --n-box-shadow-disabled: inset 0 0 0 1px rgb(224, 224, 230); --n-box-shadow-focus: inset 0 0 0 1px #18a058, 0 0 0 2px rgba(24, 160, 88, 0.2); --n-box-shadow-hover: inset 0 0 0 1px #18a058; --n-color: #FFF; --n-color-active: #0000; --n-color-disabled: rgb(250, 250, 252); --n-dot-color-active: #18a058; --n-dot-color-disabled: rgb(224, 224, 230); --n-font-size: 15px; --n-radio-size: 18px; --n-text-color: rgb(51, 54, 57); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-label-padding: 0 8px;"`;
|
||||
exports[`n-radio should work with \`size\` prop 3`] = `"--n-bezier: cubic-bezier(.4, 0, .2, 1); --n-label-line-height: 1.6; --n-label-font-weight: 400; --n-box-shadow: inset 0 0 0 1px rgb(224, 224, 230); --n-box-shadow-active: inset 0 0 0 1px #18a058; --n-box-shadow-disabled: inset 0 0 0 1px rgb(224, 224, 230); --n-box-shadow-focus: inset 0 0 0 1px #18a058, 0 0 0 2px rgba(24, 160, 88, 0.2); --n-box-shadow-hover: inset 0 0 0 1px #18a058; --n-color: #FFF; --n-color-active: #0000; --n-color-disabled: rgb(250, 250, 252); --n-dot-color-active: #18a058; --n-dot-color-disabled: rgb(224, 224, 230); --n-font-size: 15px; --n-radio-size: 18px; --n-text-color: rgb(51, 54, 57); --n-text-color-disabled: rgba(194, 194, 194, 1); --n-label-padding: 0 8px;"`;
|
||||
|
||||
exports[`n-radio-group should work with \`size\` prop 1`] = `"--n-font-size: 14px; --n-bezier: cubic-bezier(.4, 0, .2, 1); --n-button-border-color: rgb(224, 224, 230); --n-button-border-color-active: #18a058; --n-button-border-radius: 3px; --n-button-box-shadow: inset 0 0 0 1px #0000; --n-button-box-shadow-focus: inset 0 0 0 1px #18a058, 0 0 0 2px rgba(24, 160, 88, 0.3); --n-button-box-shadow-hover: inset 0 0 0 1px #0000; --n-button-color-active: #FFF; --n-button-text-color: rgb(51, 54, 57); --n-button-text-color-hover: #18a058; --n-button-text-color-active: #18a058; --n-height: 28px; --n-opacity-disabled: 0.5;"`;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user