-
{{ title }}
-
-
- {{ message }}
-
-
-
+
+
+
+
+
{{ title }}
+
+
+ {{ message }}
+
+
+
+
+
+
+
-
-
-
-
-
+
+
diff --git a/src/components/Sticky/index.ts b/src/components/Sticky/index.ts
new file mode 100644
index 0000000..5e1de45
--- /dev/null
+++ b/src/components/Sticky/index.ts
@@ -0,0 +1,3 @@
+import Sticky from './src/Sticky.vue'
+
+export { Sticky }
diff --git a/src/components/Sticky/src/Sticky.vue b/src/components/Sticky/src/Sticky.vue
new file mode 100644
index 0000000..6906fbc
--- /dev/null
+++ b/src/components/Sticky/src/Sticky.vue
@@ -0,0 +1,141 @@
+
+
+
+
diff --git a/src/layout/components/AppView.vue b/src/layout/components/AppView.vue
index 1cc009a..16c681d 100644
--- a/src/layout/components/AppView.vue
+++ b/src/layout/components/AppView.vue
@@ -22,7 +22,7 @@ const getCaches = computed((): string[] => {
+import { ContentWrap } from '@/components/ContentWrap'
+import { useI18n } from '@/hooks/web/useI18n'
+import { Sticky } from '@/components/Sticky'
+import { ElAffix } from 'element-plus'
+
+const { t } = useI18n()
+
+
+
+
+
+ Sticky 距离顶部90px
+
+
+ Content
+ Content
+
+
+ Affix 距离顶部150px
+
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+ Content
+
+
+ Affix 距离底部150px
+
+
+ Content
+ Content
+
+
+ Sticky 距离底部90px
+
+ Content
+ Content
+
+
diff --git a/src/views/Example/Page/ExampleAdd.vue b/src/views/Example/Page/ExampleAdd.vue
index 441300f..e86d20f 100644
--- a/src/views/Example/Page/ExampleAdd.vue
+++ b/src/views/Example/Page/ExampleAdd.vue
@@ -1,6 +1,6 @@
-
+
-
+
{{ t('exampleDemo.save') }}
- {{ t('dialogDemo.close') }}
-
-
+
+
diff --git a/src/views/Example/Page/ExampleDetail.vue b/src/views/Example/Page/ExampleDetail.vue
index c2d595d..b8555bf 100644
--- a/src/views/Example/Page/ExampleDetail.vue
+++ b/src/views/Example/Page/ExampleDetail.vue
@@ -1,8 +1,7 @@
-
+
-
-
- {{ t('dialogDemo.close') }}
-
-
+
diff --git a/src/views/Example/Page/ExampleEdit.vue b/src/views/Example/Page/ExampleEdit.vue
index 69f8e5a..ce0849d 100644
--- a/src/views/Example/Page/ExampleEdit.vue
+++ b/src/views/Example/Page/ExampleEdit.vue
@@ -1,6 +1,6 @@
-
+
-
+
{{ t('exampleDemo.save') }}
- {{ t('dialogDemo.close') }}
-
-
+
+