diff --git a/src/guide/__tests__/__snapshots__/vitest-guide.test.jsx.snap b/src/guide/__tests__/__snapshots__/vitest-guide.test.jsx.snap index 079118be5..bb6703b82 100644 --- a/src/guide/__tests__/__snapshots__/vitest-guide.test.jsx.snap +++ b/src/guide/__tests__/__snapshots__/vitest-guide.test.jsx.snap @@ -2536,7 +2536,7 @@ exports[`Guide Component > GuideStep.body works fine 1`] = ` -
+
GuideStep.body works fine 1`] = `
- +
GuideStep.body works fine 1`] = ` + > +
+
+
+
+ 新手引导标题 +
+
+ 新手引导的说明文案 +
+ +
+
+
+
+
GuideStep.content works fine 1`] = `
-
+
GuideStep.content works fine 1`] = `
- +
GuideStep.content works fine 1`] = ` + > +
+
+
+
+ 新手引导标题 +
+
+ + TNode + +
+ +
+
+
+
+
GuideStep.highlightContent works fine 1`] = `
-
+
GuideStep.highlightContent works fine 1`] = `
- +
GuideStep.highlightContent works fine 1`] = ` + > +
+
+ + TNode + +
+
+
+
GuideStep.placement is equal to bottom-left 1`] = `
-
+
GuideStep.placement is equal to bottom-left 1`] = `
- +
GuideStep.stepOverlayClass is equal to t-test-guide-s
-
+
GuideStep.stepOverlayClass is equal to t-test-guide-s
- +
GuideStep.title works fine 1`] = `
-
+
GuideStep.title works fine 1`] = `
- +
slots.body works fine 1`] = `
-
+
slots.body works fine 1`] = `
- +
slots.body works fine 1`] = ` + > +
+
+
+
+ 新手引导标题 +
+
+ + TNode + +
+ +
+
+
+
+
slots.content works fine 1`] = `
-
+
slots.content works fine 1`] = `
- +
slots.content works fine 1`] = ` + > +
+
+ + TNode + +
+
+
slots.highlight-content works fine 1`] = `
-
+
slots.highlight-content works fine 1`] = `
- +
slots.highlight-content works fine 1`] = ` + > +
+
+
+
+ 新手引导标题 +
+
+ 新手引导的说明文案 +
+ +
+
+
+
+
slots.highlightContent works fine 1`] = `
-
+
slots.highlightContent works fine 1`] = `
- +
slots.highlightContent works fine 1`] = ` + > +
+
+
+
+ 新手引导标题 +
+
+ 新手引导的说明文案 +
+ +
+
+
+
+
slots.title works fine 1`] = `
-
+
slots.title works fine 1`] = `
- +
((props.clearable && props.value?.length && !props.disabled) || props.showClearIconOnEmpty) && isHover.value, + () => ((props.clearable && (innerValue.value[0] || innerValue.value[1]) && !props.disabled) + || props.showClearIconOnEmpty) + && isHover.value, ); const inputRefs = { @@ -49,6 +51,7 @@ export default defineComponent({ }; function handleClear(context: { e: MouseEvent }) { + setInnerValue(['', '']); props.onClear?.(context); } @@ -239,15 +242,13 @@ export default defineComponent({ {...{ props: calcInputProps[1] }} /> {suffixContent ?
{suffixContent}
: null} - {suffixIconContent && ( - - {isShowClearIcon ? ( - - ) : ( - suffixIconContent - )} - - )} + + {isShowClearIcon ? ( + + ) : ( + suffixIconContent + )} +
{tips &&
{tips}
} diff --git a/test/snap/__snapshots__/csr.test.js.snap b/test/snap/__snapshots__/csr.test.js.snap index e8af12bd5..58922d62e 100644 --- a/test/snap/__snapshots__/csr.test.js.snap +++ b/test/snap/__snapshots__/csr.test.js.snap @@ -81291,6 +81291,9 @@ exports[`csr snapshot test > csr test ./src/range-input/_example/base.vue 1`] = /> + `; @@ -81340,6 +81343,9 @@ exports[`csr snapshot test > csr test ./src/range-input/_example/popup.vue 1`] = /> + @@ -81394,6 +81400,9 @@ exports[`csr snapshot test > csr test ./src/range-input/_example/size.vue 1`] = /> + @@ -81441,6 +81450,9 @@ exports[`csr snapshot test > csr test ./src/range-input/_example/size.vue 1`] = /> + @@ -81488,6 +81500,9 @@ exports[`csr snapshot test > csr test ./src/range-input/_example/size.vue 1`] = /> + @@ -81543,6 +81558,9 @@ exports[`csr snapshot test > csr test ./src/range-input/_example/status.vue 1`] /> + @@ -81590,6 +81608,9 @@ exports[`csr snapshot test > csr test ./src/range-input/_example/status.vue 1`] /> + @@ -81637,6 +81658,9 @@ exports[`csr snapshot test > csr test ./src/range-input/_example/status.vue 1`] /> + diff --git a/test/snap/__snapshots__/ssr.test.js.snap b/test/snap/__snapshots__/ssr.test.js.snap index ae9122b16..70798ae9e 100644 --- a/test/snap/__snapshots__/ssr.test.js.snap +++ b/test/snap/__snapshots__/ssr.test.js.snap @@ -775,13 +775,13 @@ exports[`ssr snapshot test > renders ./src/radio/_example/size.vue correctly 1`] exports[`ssr snapshot test > renders ./src/radio/_example/type.vue correctly 1`] = `"
边框型单选按钮
填充型单选按钮
"`; -exports[`ssr snapshot test > renders ./src/range-input/_example/base.vue correctly 1`] = `"
-
"`; +exports[`ssr snapshot test > renders ./src/range-input/_example/base.vue correctly 1`] = `"
-
"`; -exports[`ssr snapshot test > renders ./src/range-input/_example/popup.vue correctly 1`] = `"
-
"`; +exports[`ssr snapshot test > renders ./src/range-input/_example/popup.vue correctly 1`] = `"
-
"`; -exports[`ssr snapshot test > renders ./src/range-input/_example/size.vue correctly 1`] = `"
-
-
-
"`; +exports[`ssr snapshot test > renders ./src/range-input/_example/size.vue correctly 1`] = `"
-
-
-
"`; -exports[`ssr snapshot test > renders ./src/range-input/_example/status.vue correctly 1`] = `"
-
-
-
"`; +exports[`ssr snapshot test > renders ./src/range-input/_example/status.vue correctly 1`] = `"
-
-
-
"`; exports[`ssr snapshot test > renders ./src/rate/_example/base.vue correctly 1`] = `"
"`; @@ -1016,7 +1016,7 @@ exports[`ssr snapshot test > renders ./src/table/_example/multiple-sort.vue corr exports[`ssr snapshot test > renders ./src/table/_example/pagination.vue correctly 1`] = `"
序号
申请人
申请状态
签署方式
申请时间
6王芳审批过期纸质签署2022-02-01
7贾明审批通过电子签署2022-03-01
8张三审批失败纸质签署2022-04-01
9王芳审批过期纸质签署2022-01-01
10贾明审批通过电子签署2022-02-01
共 59 项数据
5 条/页
  • 1
  • 2
  • 3
  • 4
  • 5
  • 12
跳至
/ 12 页
"`; -exports[`ssr snapshot test > renders ./src/table/_example/pagination-ajax.vue correctly 1`] = `"
申请人
申请状态
联系方式
邮箱
共 0 项数据
10 条/页
  • 1
跳至
/ 1 页
"`; +exports[`ssr snapshot test > renders ./src/table/_example/pagination-ajax.vue correctly 1`] = `"
申请人
申请状态
联系方式
邮箱
共 0 项数据
10 条/页
  • 1
跳至
/ 1 页
"`; exports[`ssr snapshot test > renders ./src/table/_example/select-multiple.vue correctly 1`] = `"
申请人
申请状态
签署方式
邮箱地址
申请时间
贾明审批通过电子签署
w.cezkdudy@lhll.au
2022-01-01
张三审批失败纸质签署
r.nmgw@peurezgn.sl
2022-02-01
王芳审批过期纸质签署
p.cumx@rampblpa.ru
2022-03-01
贾明审批通过电子签署
w.cezkdudy@lhll.au
2022-04-01
张三审批失败纸质签署
r.nmgw@peurezgn.sl
2022-01-01
"`;