浏览代码

修复例子的几个错误

robert 18 小时之前
父节点
当前提交
48bd259e34
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      doc/layer/test_custom_animation_background.html
  2. 2 2
      doc/layer/test_dom_steps.html

+ 2 - 2
doc/layer/test_custom_animation_background.html

@@ -340,7 +340,7 @@ function openSteps(mode) {
       const a = BACKGROUNDS.svg;
       const b = BACKGROUNDS.image;
 
-      const code = `Layer.run({
+      const code = `Layer.$({
   title: 'Step 1',
   text: 'Background should follow when different.',
   background: ${mode === 'same' ? 'same' : 'a'},
@@ -367,7 +367,7 @@ function openSteps(mode) {
         return `'${b}'`;
       }));
 
-      Layer.run({
+      Layer.$({
         title: 'Step 1',
         text: 'Background should follow when different.',
         background: mode === 'same' ? same : a,

+ 2 - 2
doc/layer/test_dom_steps.html

@@ -116,7 +116,7 @@ $('#openDom').click(function () {
 
 // 2) Step flow (wizard) - no icon during steps; final summary is allowed
 $('#openWizard').click(function () {
-  Layer.run({
+  Layer.$({
     closeOnClickOutside: false,
     closeOnEsc: false,
     popupAnimation: false
@@ -392,7 +392,7 @@ then restore it back (and restore display/hidden state) on close. */</pre>
       });
 
       $('#openWizard').click(function () {
-        Layer.run({
+        Layer.$({
           closeOnClickOutside: false,
           closeOnEsc: false,
           popupAnimation: false