Skip to content

Commit 0b6f6a1

Browse files
aojunhao123zombieJ
andauthored
chore: update dependencies (#75)
* chore: update dependencies * revert doc * chore: use new api * test: update snapshot * test: update test case * test: update snapshot * test: update snapshot --------- Co-authored-by: 二货机器人 <[email protected]>
1 parent 16ae5ea commit 0b6f6a1

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

docs/examples/basic.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ const App = () => {
7575
);
7676
};
7777

78-
export default App;
78+
export default App;

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
"prepublishOnly": "npm run compile && rc-np",
3737
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
3838
"start": "dumi dev",
39-
"test": "umi-test",
39+
"test": "rc-test",
4040
"watch": "father dev"
4141
},
4242
"dependencies": {
4343
"@rc-component/portal": "^2.0.0",
44-
"@rc-component/trigger": "^2.0.0",
44+
"@rc-component/trigger": "^3.0.0",
4545
"@rc-component/util": "^1.2.1",
4646
"classnames": "^2.3.2"
4747
},
@@ -60,10 +60,10 @@
6060
"father": "^4.0.0",
6161
"gh-pages": "^3.1.0",
6262
"prettier": "^3.0.0",
63+
"rc-test": "^7.1.2",
6364
"react": "^18.3.1",
6465
"react-dom": "^18.3.1",
65-
"typescript": "^5.0.0",
66-
"umi-test": "^1.9.7"
66+
"typescript": "^5.0.0"
6767
},
6868
"peerDependencies": {
6969
"react": ">=16.9.0",

src/Tour.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ const Tour: React.FC<TourProps> = props => {
235235
prefixCls={prefixCls}
236236
popup={getPopupElement}
237237
forceRender={false}
238-
destroyPopupOnHide
238+
autoDestroy
239239
zIndex={zIndex}
240240
getTriggerDOMNode={getTriggerDOMNode}
241241
arrow={!!mergedArrow}

tests/__snapshots__/index.test.tsx.snap

+14-14
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ exports[`Tour animated placeholder true 1`] = `
9393
<div>
9494
<div
9595
class="rc-tour customClassName rc-tour-placement-bottom"
96-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
96+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
9797
>
9898
<div
9999
class="rc-tour-arrow"
@@ -246,7 +246,7 @@ exports[`Tour animated true 1`] = `
246246
<div>
247247
<div
248248
class="rc-tour customClassName rc-tour-placement-bottom"
249-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
249+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
250250
>
251251
<div
252252
class="rc-tour-arrow"
@@ -427,7 +427,7 @@ exports[`Tour renderPanel basic 1`] = `
427427
<div>
428428
<div
429429
class="rc-tour rc-tour-placement-bottom"
430-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
430+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
431431
>
432432
<div
433433
class="rc-tour-arrow"
@@ -538,7 +538,7 @@ exports[`Tour rootClassName 1`] = `
538538
<div>
539539
<div
540540
class="rc-tour customClassName rc-tour-placement-bottom"
541-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
541+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
542542
>
543543
<div
544544
class="rc-tour-arrow"
@@ -658,7 +658,7 @@ exports[`Tour run in strict mode 1`] = `
658658
<div>
659659
<div
660660
class="rc-tour rc-tour-placement-bottom"
661-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
661+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
662662
>
663663
<div
664664
class="rc-tour-pannel"
@@ -822,7 +822,7 @@ exports[`Tour run in strict mode 2`] = `
822822
<div>
823823
<div
824824
class="rc-tour rc-tour-placement-bottom"
825-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
825+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
826826
>
827827
<div
828828
class="rc-tour-arrow"
@@ -944,7 +944,7 @@ exports[`Tour should keep current when controlled 1`] = `
944944
<div>
945945
<div
946946
class="rc-tour"
947-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
947+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
948948
>
949949
<div
950950
class="rc-tour-pannel"
@@ -1062,7 +1062,7 @@ exports[`Tour should return step 1 when reopen 1`] = `
10621062
<div>
10631063
<div
10641064
class="rc-tour"
1065-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
1065+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
10661066
>
10671067
<div
10681068
class="rc-tour-pannel"
@@ -1220,7 +1220,7 @@ exports[`Tour should update position when window resize 1`] = `
12201220
<div>
12211221
<div
12221222
class="rc-tour rc-tour-placement-bottom"
1223-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
1223+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
12241224
>
12251225
<div
12261226
class="rc-tour-arrow"
@@ -1373,7 +1373,7 @@ exports[`Tour showArrow should show tooltip arrow default 1`] = `
13731373
<div>
13741374
<div
13751375
class="rc-tour rc-tour-placement-bottom"
1376-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
1376+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
13771377
>
13781378
<div
13791379
class="rc-tour-pannel"
@@ -1522,7 +1522,7 @@ exports[`Tour single 1`] = `
15221522
<div>
15231523
<div
15241524
class="rc-tour rc-tour-placement-bottom"
1525-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
1525+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
15261526
>
15271527
<div
15281528
class="rc-tour-arrow"
@@ -1677,7 +1677,7 @@ exports[`Tour use custom builtinPlacements 1`] = `
16771677
<div>
16781678
<div
16791679
class="rc-tour rc-tour-placement-bottom"
1680-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
1680+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
16811681
>
16821682
<div
16831683
class="rc-tour-arrow"
@@ -1832,7 +1832,7 @@ exports[`Tour use custom builtinPlacements 2`] = `
18321832
<div>
18331833
<div
18341834
class="rc-tour rc-tour-placement-bottom"
1835-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
1835+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
18361836
>
18371837
<div
18381838
class="rc-tour-arrow"
@@ -1998,7 +1998,7 @@ exports[`Tour use custom builtinPlacements 3`] = `
19981998
<div>
19991999
<div
20002000
class="rc-tour rc-tour-placement-bottom"
2001-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
2001+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; z-index: 1001;"
20022002
>
20032003
<div
20042004
class="rc-tour-arrow"

0 commit comments

Comments
 (0)