@bsgoal/common 2.5.6 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/index.mjs +1798 -1771
  2. package/dist/index.mjs.map +1 -1
  3. package/dist/index.umd.js +15 -15
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/package.json +2 -2
  7. package/src/components/bsgoal-base-alert/demo.vue +6 -6
  8. package/src/components/bsgoal-base-alert/index.vue +6 -7
  9. package/src/components/bsgoal-base-button/demo.vue +8 -10
  10. package/src/components/bsgoal-base-button/index.vue +6 -7
  11. package/src/components/bsgoal-base-cascader/demo.vue +5 -6
  12. package/src/components/bsgoal-base-cascader/index.vue +6 -7
  13. package/src/components/bsgoal-base-dialog/demo.vue +4 -6
  14. package/src/components/bsgoal-base-dialog/index.vue +11 -7
  15. package/src/components/bsgoal-base-form/demo.vue +5 -6
  16. package/src/components/bsgoal-base-form/index.vue +5 -6
  17. package/src/components/bsgoal-base-frame/demo.vue +5 -5
  18. package/src/components/bsgoal-base-frame/index.vue +4 -5
  19. package/src/components/bsgoal-base-item/demo.vue +4 -5
  20. package/src/components/bsgoal-base-item/index.vue +5 -5
  21. package/src/components/bsgoal-base-layout/demo.vue +5 -6
  22. package/src/components/bsgoal-base-layout/index.vue +4 -6
  23. package/src/components/bsgoal-base-line/demo.vue +5 -6
  24. package/src/components/bsgoal-base-line/index.vue +6 -7
  25. package/src/components/bsgoal-base-link/demo.vue +8 -14
  26. package/src/components/bsgoal-base-link/index.vue +5 -6
  27. package/src/components/bsgoal-base-search/demo.vue +6 -9
  28. package/src/components/bsgoal-base-search/index.vue +4 -6
  29. package/src/components/bsgoal-base-search-operation/index.vue +6 -7
  30. package/src/components/bsgoal-base-search-table/demo.vue +4 -7
  31. package/src/components/bsgoal-base-search-table/index.vue +5 -6
  32. package/src/components/bsgoal-base-select/demo.vue +4 -5
  33. package/src/components/bsgoal-base-select/index.vue +5 -5
  34. package/src/components/bsgoal-base-switch/demo.vue +5 -5
  35. package/src/components/bsgoal-base-switch/index.vue +5 -5
  36. package/src/components/bsgoal-base-table/demo.vue +6 -7
  37. package/src/components/bsgoal-base-table/index.vue +4 -5
  38. package/src/components/bsgoal-base-table-content/index.vue +5 -6
  39. package/src/components/bsgoal-base-table-empty/demo.vue +5 -6
  40. package/src/components/bsgoal-base-table-empty/index.vue +3 -3
  41. package/src/components/bsgoal-base-table-pagination/index.vue +5 -6
  42. package/src/components/bsgoal-base-tabs/demo.vue +5 -6
  43. package/src/components/bsgoal-base-tabs/index.vue +5 -5
  44. package/src/components/bsgoal-base-time/demo.vue +6 -6
  45. package/src/components/bsgoal-base-time/index.vue +5 -5
  46. package/src/components/bsgoal-base-time-range/demo.vue +5 -5
  47. package/src/components/bsgoal-base-time-range/index.vue +20 -7
  48. package/src/components/bsgoal-base-tooltip/demo.vue +5 -7
  49. package/src/components/bsgoal-base-tooltip/index.vue +5 -6
  50. package/src/components/bsgoal-base-tree/demo.vue +5 -6
  51. package/src/components/bsgoal-base-tree/index.vue +5 -6
  52. package/src/components/bsgoal-base-tree-fold/index.vue +5 -6
  53. package/src/components/layout/layout-home.vue +16 -16
  54. package/src/components/layout/layout-left-menu.vue +22 -16
  55. package/src/components/layout/layout-right-container.vue +12 -11
  56. package/src/components/layout/layout-top-header.vue +11 -13
  57. package/src/components/bsgoal-base-search-table/demo-table.vue +0 -52
@@ -2,22 +2,21 @@
2
2
  * @Author: canlong.shen
3
3
  * @Date: 2023-04-13 18:09:43
4
4
  * @LastEditors: canlong.shen
5
- * @LastEditTime: 2023-04-25 13:49:56
5
+ * @LastEditTime: 2023-05-26 16:01:16
6
6
  * @FilePath: \common\src\components\bsgoal-base-search-operation\index.vue
7
7
  * @Description: 表格查询操作项 组件
8
8
  *
9
9
  -->
10
-
11
- <script>
12
- export default {
13
- name: "BsgoalBaseSearchOperation",
14
- };
15
- </script>
16
10
  <script setup>
17
11
  /* setup模板
18
12
  ---------------------------------------------------------------- */
19
13
  import { Delete, Search, ArrowDown, ArrowUp } from '@element-plus/icons-vue'
20
14
  import { ref, unref } from 'vue'
15
+
16
+ defineOptions({
17
+ name: 'BsgoalBaseSearchOperation'
18
+ })
19
+
21
20
  defineProps({
22
21
  /**
23
22
  * 是否显示折叠按钮
@@ -8,21 +8,18 @@
8
8
  *
9
9
  -->
10
10
 
11
- <script>
12
- export default {
13
- name: 'BsgoalSearchTableDemo'
14
- }
15
- </script>
16
11
  <script setup>
17
12
  /* setup模板
18
13
  ---------------------------------------------------------------- */
19
14
  import { ref, unref } from 'vue'
20
15
  import ComponentTypeEnums from '../../enums/componentTypeEnums.js'
21
16
  import BsgoalBaseSearchTable from './index.vue'
22
- import DemoTable from './demo-table.vue'
23
17
  import BsgoalBaseButton from '../bsgoal-base-button/index.vue'
24
18
 
25
- // props
19
+ defineOptions({
20
+ name: 'BsgoalSearchTableDemo'
21
+ })
22
+
26
23
  const props = defineProps({})
27
24
 
28
25
  const configOptions = ref([
@@ -8,18 +8,17 @@
8
8
  *
9
9
  -->
10
10
 
11
- <script>
12
- export default {
13
- name: 'BsgoalBaseSearchTable'
14
- }
15
- </script>
16
11
  <script setup>
17
12
  /* setup模板
18
13
  ---------------------------------------------------------------- */
19
14
  import { ref, computed, unref, provide, useSlots } from 'vue'
20
15
  import BsgoalBaseSearch from '../bsgoal-base-search/index.vue'
21
16
  import BsgoalBaseTable from '../bsgoal-base-table/index.vue'
22
- // props
17
+
18
+ defineOptions({
19
+ name: 'BsgoalBaseSearchTable'
20
+ })
21
+
23
22
  const props = defineProps({
24
23
  /**
25
24
  * >----------props----------<
@@ -14,6 +14,10 @@
14
14
  import { ref } from 'vue'
15
15
  import BsgoalBaseSelect from './index.vue'
16
16
 
17
+ defineOptions({
18
+ name: 'BsgoalBaseSelectDemo'
19
+ })
20
+
17
21
  const props = defineProps({})
18
22
 
19
23
  const selectValue = ref('11')
@@ -44,11 +48,6 @@ const change = (value = '', data = {}) => {
44
48
  console.log('data', data)
45
49
  }
46
50
  </script>
47
- <script>
48
- export default {
49
- name: 'BsgoalBaseSelectDemo'
50
- }
51
- </script>
52
51
  <template>
53
52
  <div class="bsgoal-base-select-demo">
54
53
  <div class="base_select_demo">
@@ -12,6 +12,11 @@
12
12
  /* setup模板
13
13
  ---------------------------------------------------------------- */
14
14
  import { ref } from 'vue'
15
+
16
+ defineOptions({
17
+ name: 'BsgoalBaseSelect'
18
+ })
19
+
15
20
  const props = defineProps({
16
21
  /**
17
22
  * 占位提示符
@@ -64,11 +69,6 @@ const triggerChange = (value = '') => {
64
69
 
65
70
  // ---> E 触发 方法 <---
66
71
  </script>
67
- <script>
68
- export default {
69
- name: 'BsgoalBaseSelect'
70
- }
71
- </script>
72
72
  <template>
73
73
  <div class="bsgoal-base-select">
74
74
  <el-select
@@ -12,15 +12,15 @@
12
12
  ---------------------------------------------------------------- */
13
13
  import { ref } from 'vue'
14
14
  import BsgoalBaseSwitch from './index.vue'
15
+
16
+ defineOptions({
17
+ name: 'BsgoalBaseSwitchDemo'
18
+ })
19
+
15
20
  const props = defineProps({})
16
21
 
17
22
  const modelValue = ref('0')
18
23
  </script>
19
- <script>
20
- export default {
21
- name: 'BsgoalBaseSwitchDemo'
22
- }
23
- </script>
24
24
  <template>
25
25
  <div class="bsgoal-base-switch-demo">
26
26
  <div class="base_switch_demo">
@@ -12,6 +12,11 @@
12
12
  /* setup模板
13
13
  ---------------------------------------------------------------- */
14
14
  import { ref } from 'vue'
15
+
16
+ defineOptions({
17
+ name: 'BsgoalBaseSwitch'
18
+ })
19
+
15
20
  const props = defineProps({
16
21
  /**
17
22
  * text 配置 选项
@@ -48,11 +53,6 @@ const triggerChange = (value = '') => {
48
53
  }
49
54
  </script>
50
55
 
51
- <script>
52
- export default {
53
- name: 'BsgoalBaseSwitch'
54
- }
55
- </script>
56
56
  <template>
57
57
  <div class="bsgoal-base-switch">
58
58
  <el-switch
@@ -2,24 +2,23 @@
2
2
  * @Author: canlong.shen
3
3
  * @Date: 2023-04-10 14:26:44
4
4
  * @LastEditors: canlong.shen
5
- * @LastEditTime: 2023-05-19 14:39:05
5
+ * @LastEditTime: 2023-05-26 14:26:06
6
6
  * @FilePath: \common\src\components\bsgoal-base-table\demo.vue
7
7
  * @Description: 表格公共组件演示页面
8
8
  *
9
9
  -->
10
- <script>
11
- export default {
12
- name: 'BsgoalBaseTableDemo'
13
- }
14
- </script>
15
10
  <script setup>
16
11
  /* setup模板
17
12
  ---------------------------------------------------------------- */
18
13
  import { ref, computed, toRefs, watch, unref } from 'vue'
19
-
20
14
  import BsgoalBaseTable from './index.vue'
21
15
  import BsgoalBaseSearch from '../bsgoal-base-search/index.vue'
22
16
  import ComponentTypeEnums from '../../enums/componentTypeEnums.js'
17
+
18
+ defineOptions({
19
+ name:'BsgoalBaseTableDemo111'
20
+ })
21
+
23
22
  let searchOptions = ref([
24
23
  {
25
24
  label: 'prop1',
@@ -8,11 +8,6 @@
8
8
  *
9
9
  -->
10
10
 
11
- <script>
12
- export default {
13
- name: 'BsgoalBaseTable'
14
- }
15
- </script>
16
11
  <script setup>
17
12
  /* setup模板
18
13
  ---------------------------------------------------------------- */
@@ -24,6 +19,10 @@ import { useAutoHeight } from '../../combines/useComs.js'
24
19
  import { useFetch } from '../../combines/useFetchs.js'
25
20
  import { isBoolean } from '@/utils/common.js'
26
21
 
22
+ defineOptions({
23
+ name: 'BsgoalBaseTable'
24
+ })
25
+
27
26
  const props = defineProps({
28
27
  /**
29
28
  * >----------props----------<
@@ -8,17 +8,16 @@
8
8
  *
9
9
  -->
10
10
 
11
- <script>
12
- export default {
13
- name: "BsgoalBaseTableContent",
14
- };
15
- </script>
16
11
  <script setup>
17
12
  /* setup模板
18
13
  ---------------------------------------------------------------- */
19
14
  import { ref } from 'vue';
20
15
  import BsgoalBaseTooltip from '../bsgoal-base-tooltip/index.vue'
21
- // props
16
+
17
+ defineOptions({
18
+ name: 'BsgoalBaseTableContent'
19
+ })
20
+
22
21
  const props = defineProps({
23
22
  /**
24
23
  * 数据
@@ -8,17 +8,16 @@
8
8
  *
9
9
  -->
10
10
 
11
- <script>
12
- export default {
13
- name: 'BsgoalBaseTableEmptyDemo'
14
- }
15
- </script>
16
11
  <script setup>
17
12
  /* setup模板
18
13
  ---------------------------------------------------------------- */
19
14
  import { ref } from 'vue'
20
15
  import BsgoalBaseTableEmpty from './index.vue'
21
- // props
16
+
17
+ defineOptions({
18
+ name: 'BsgoalBaseTableEmptyDemo'
19
+ })
20
+
22
21
  const props = defineProps({})
23
22
  </script>
24
23
  <template>
@@ -8,10 +8,10 @@
8
8
  *
9
9
  -->
10
10
 
11
- <script>
12
- export default {
11
+ <script setup>
12
+ defineOptions({
13
13
  name: 'BsgoalBaseTableEmpty'
14
- }
14
+ })
15
15
  </script>
16
16
 
17
17
  <template>
@@ -8,17 +8,16 @@
8
8
  *
9
9
  -->
10
10
 
11
- <script>
12
- export default {
13
- name: 'BsgoalBaseTablePagination'
14
- }
15
- </script>
16
11
  <script setup>
17
12
  /* setup模板
18
13
  ---------------------------------------------------------------- */
19
14
  import { ref, computed } from 'vue'
20
15
  import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
21
- // props
16
+
17
+ defineOptions({
18
+ name: 'BsgoalBaseTablePagination'
19
+ })
20
+
22
21
  const props = defineProps({
23
22
  /**
24
23
  * 当前页数
@@ -6,17 +6,16 @@
6
6
  * @FilePath: \common\src\components\bsgoal-base-tabs\demo.vue
7
7
  * @Description: tabs 标签切页 公共组件演示
8
8
  -->
9
- <script>
10
- export default {
11
- name: 'BsgoalBaseTabsDemo'
12
- }
13
- </script>
14
9
  <script setup>
15
10
  /* setup模板
16
11
  ---------------------------------------------------------------- */
17
12
  import { ref } from 'vue'
18
13
  import BsgoalBaseTabs from './index.vue'
19
- // props
14
+
15
+ defineOptions({
16
+ name: 'BsgoalBaseTabsDemo'
17
+ })
18
+
20
19
  const props = defineProps({})
21
20
  const activeTabName = ref('tab1')
22
21
  const config = ref([
@@ -8,15 +8,15 @@
8
8
  *
9
9
  -->
10
10
 
11
- <script>
12
- export default {
13
- name: 'BsgoalBaseTabs'
14
- }
15
- </script>
16
11
  <script setup>
17
12
  /* setup模板
18
13
  ---------------------------------------------------------------- */
19
14
  import { ref, unref, computed } from 'vue'
15
+
16
+ defineOptions({
17
+ name: 'BsgoalBaseTabs'
18
+ })
19
+
20
20
  const props = defineProps({
21
21
  /**
22
22
  * 配置项
@@ -12,18 +12,18 @@
12
12
  ---------------------------------------------------------------- */
13
13
  import { ref } from 'vue'
14
14
  import BsgoalBaseTime from './index.vue'
15
+
16
+ defineOptions({
17
+ name: 'BsgoalBaseTimeDemo'
18
+ })
19
+
15
20
  const props = defineProps({})
16
21
  const time = ref('11:22')
17
22
  </script>
18
- <script>
19
- export default {
20
- name: 'BsgoalBaseTimeDemo'
21
- }
22
- </script>
23
23
  <template>
24
24
  <div class="bsgoal-base-time-demo">
25
25
  <div class="base_time_demo">
26
- {{ time }}
26
+ {{ time }}
27
27
  <BsgoalBaseTime v-model="time" />
28
28
  </div>
29
29
  </div>
@@ -15,6 +15,11 @@ import { ref, unref, watchEffect } from 'vue'
15
15
  import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
16
16
  import { dayjs } from 'element-plus'
17
17
  const emits = defineEmits(['update:modelValue'])
18
+
19
+ defineOptions({
20
+ name: 'BsgoalBaseTime'
21
+ })
22
+
18
23
  const props = defineProps({
19
24
  /**
20
25
  * 绑定的值
@@ -85,11 +90,6 @@ const triggerChange = (date = new Date()) => {
85
90
  // ---> E 绑定值 <---
86
91
  </script>
87
92
 
88
- <script>
89
- export default {
90
- name: 'BsgoalBaseTime'
91
- }
92
- </script>
93
93
  <template>
94
94
  <div class="bsgoal-base-time">
95
95
  <el-config-provider :locale="zhCn">
@@ -13,6 +13,11 @@
13
13
  ---------------------------------------------------------------- */
14
14
  import { ref } from 'vue'
15
15
  import BsgoalBaseTimeRange from './index.vue'
16
+
17
+ defineOptions({
18
+ name: 'BsgoalBaseTimeDemoRange'
19
+ })
20
+
16
21
  const props = defineProps({})
17
22
 
18
23
  const timeRange = ref(['11:00', '12:12'])
@@ -20,11 +25,6 @@ const timeRange = ref(['11:00', '12:12'])
20
25
  const startTime = ref('12:11')
21
26
  const endTime = ref('13:55')
22
27
  </script>
23
- <script>
24
- export default {
25
- name: 'BsgoalBaseTimeDemoRange'
26
- }
27
- </script>
28
28
  <template>
29
29
  <div class="bsgoal-base-time-range-demo">
30
30
  <div>{{ timeRange }}</div>
@@ -2,7 +2,7 @@
2
2
  * @Author: canlong.shen
3
3
  * @Date: 2023-05-24 14:09:57
4
4
  * @LastEditors: canlong.shen
5
- * @LastEditTime: 2023-05-24 16:54:26
5
+ * @LastEditTime: 2023-05-25 11:20:07
6
6
  * @FilePath: \common\src\components\bsgoal-base-time-range\index.vue
7
7
  * @Description: 时间选择 公共组件
8
8
  *
@@ -14,6 +14,11 @@
14
14
  import { ref, unref, watch, watchEffect } from 'vue'
15
15
  import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
16
16
  import { dayjs } from 'element-plus'
17
+
18
+ defineOptions({
19
+ name: 'BsgoalBaseTimeRange'
20
+ })
21
+
17
22
  const props = defineProps({
18
23
  /**
19
24
  * value
@@ -96,7 +101,7 @@ watchEffect(() => {
96
101
  * @return {*}
97
102
  */
98
103
  const triggerChange = (range = []) => {
99
- const { startTime = '', endTime = '' } = props
104
+ const { startTime = '', endTime = '' } = props
100
105
 
101
106
  const { 0: startDate, 1: endDate } = range
102
107
  const startDateFormat = dateToString(startDate)
@@ -109,12 +114,19 @@ const triggerChange = (range = []) => {
109
114
  }
110
115
  }
111
116
 
112
- // ---> E 值绑定 <---
113
- </script>
114
- <script>
115
- export default {
116
- name: 'BsgoalBaseTimeRange'
117
+ /**
118
+ * @Author: canlong.shen
119
+ * @description: 触发 面板显隐事件
120
+ * @default:
121
+ * @return {*}
122
+ */
123
+ const triggerVisibleChange = (visibility = false) => {
124
+ if (!visibility) {
125
+ triggerChange(unref(bindValue))
126
+ }
117
127
  }
128
+
129
+ // ---> E 值绑定 <---
118
130
  </script>
119
131
  <template>
120
132
  <div class="bsgoal-base-time-range">
@@ -128,6 +140,7 @@ export default {
128
140
  start-placeholder="开始时间"
129
141
  end-placeholder="结束时间"
130
142
  @change="triggerChange"
143
+ @visible-change="triggerVisibleChange"
131
144
  />
132
145
  </el-config-provider>
133
146
  </div>
@@ -7,18 +7,16 @@
7
7
  * @Description: 文字提示公共组件演示
8
8
  *
9
9
  -->
10
-
11
- <script>
12
- export default {
13
- name: "BsgoalBaseTooltipDemo",
14
- };
15
- </script>
16
10
  <script setup>
17
11
  /* setup模板
18
12
  ---------------------------------------------------------------- */
19
13
  import { ref } from 'vue';
20
14
  import BsgoalBaseTooltip from './index.vue'
21
- // props
15
+
16
+ defineOptions({
17
+ name: 'BsgoalBaseTooltipDemo'
18
+ })
19
+
22
20
  const props = defineProps({
23
21
 
24
22
  })
@@ -8,16 +8,15 @@
8
8
  *
9
9
  -->
10
10
 
11
- <script>
12
- export default {
13
- name: 'BsgoalBaseTooltip'
14
- }
15
- </script>
16
11
  <script setup>
17
12
  /* setup模板
18
13
  ---------------------------------------------------------------- */
19
14
  import { ref, computed, unref } from 'vue'
20
- // props
15
+
16
+ defineOptions({
17
+ name: 'BsgoalBaseTooltip'
18
+ })
19
+
21
20
  const props = defineProps({
22
21
  /**
23
22
  * 文字提示内容
@@ -8,18 +8,17 @@
8
8
  *
9
9
  -->
10
10
 
11
- <script>
12
- export default {
13
- name: 'BsgoalBaseTreeDemo'
14
- }
15
- </script>
16
11
  <script setup>
17
12
  /* setup模板
18
13
  ---------------------------------------------------------------- */
19
14
  import BsgoalBaseTree from './index.vue'
20
15
 
21
16
  import { ref } from 'vue'
22
- // props
17
+
18
+ defineOptions({
19
+ name: 'BsgoalBaseTreeDemo'
20
+ })
21
+
23
22
  const props = defineProps({})
24
23
 
25
24
  const treeData = ref([])
@@ -7,11 +7,6 @@
7
7
  * @Description: 虚拟化树型结构 公共组件
8
8
  *
9
9
  -->
10
- <script>
11
- export default {
12
- name: 'BsgoalBaseTree'
13
- }
14
- </script>
15
10
  <script setup>
16
11
  /* setup模板
17
12
  ---------------------------------------------------------------- */
@@ -19,7 +14,11 @@ import { ref, watch } from 'vue'
19
14
  import directiveBase from '../../directives/directiveBase.js'
20
15
  import BsgoalBaseLine from '../bsgoal-base-line/index.vue'
21
16
  import BsgoalBaseTreeFold from '../bsgoal-base-tree-fold/index.vue'
22
- // props
17
+
18
+ defineOptions({
19
+ name: 'BsgoalBaseTree'
20
+ })
21
+
23
22
  const props = defineProps({
24
23
  /**
25
24
  * 树结构 的下边距
@@ -2,23 +2,22 @@
2
2
  * @Author: canlong.shen
3
3
  * @Date: 2023-04-21 14:30:43
4
4
  * @LastEditors: canlong.shen
5
- * @LastEditTime: 2023-04-25 09:11:19
5
+ * @LastEditTime: 2023-05-26 16:09:24
6
6
  * @FilePath: \common\src\components\bsgoal-base-tree-fold\index.vue
7
7
  * @Description: 树结构折叠按钮
8
8
  *
9
9
  -->
10
10
 
11
- <script>
12
- export default {
13
- name: 'BsgoalBaseTreeFold'
14
- }
15
- </script>
16
11
  <script setup>
17
12
  /* setup模板
18
13
  ---------------------------------------------------------------- */
19
14
  import { ref } from 'vue'
20
15
  import { ArrowLeft, ArrowRight } from '@element-plus/icons-vue'
21
16
 
17
+ defineOptions({
18
+ name: 'BsgoalBaseTreeFold'
19
+ })
20
+
22
21
  defineProps(['modelValue'])
23
22
  const emits = defineEmits(['update:modelValue'])
24
23
 
@@ -2,12 +2,24 @@
2
2
  * @Author: canlong.shen
3
3
  * @Date: 2023-04-10 13:41:13
4
4
  * @LastEditors: canlong.shen
5
- * @LastEditTime: 2023-04-15 11:20:10
5
+ * @LastEditTime: 2023-05-26 16:09:56
6
6
  * @FilePath: \common\src\components\layout\layout-home.vue
7
7
  * @Description: 首页
8
8
  *
9
9
  -->
10
10
 
11
+ <script setup>
12
+ /* setup模板
13
+ ---------------------------------------------------------------- */
14
+ import LayoutLeftMenu from '@/components/layout/layout-left-menu.vue'
15
+ import LayoutTopHeader from '@/components/layout/layout-top-header.vue'
16
+ import LayoutRightContainer from '@/components/layout/layout-right-container.vue'
17
+
18
+ defineOptions({
19
+ name: 'LayoutHome'
20
+ })
21
+ </script>
22
+
11
23
  <template>
12
24
  <div class="layout-home">
13
25
  <el-container>
@@ -18,8 +30,8 @@
18
30
  <el-aside width="200px">
19
31
  <LayoutLeftMenu />
20
32
  </el-aside>
21
- <el-main style="padding:10px; background-color:#f0f2f5 ;">
22
- <LayoutRightContainer style="background-color: #fff;">
33
+ <el-main style="padding: 10px; background-color: #f0f2f5">
34
+ <LayoutRightContainer style="background-color: #fff">
23
35
  <router-view />
24
36
  </LayoutRightContainer>
25
37
  </el-main>
@@ -27,18 +39,6 @@
27
39
  </el-container>
28
40
  </div>
29
41
  </template>
30
- <script>
31
- export default {
32
- name: 'LayoutHome'
33
- }
34
- </script>
35
- <script setup>
36
- /* setup模板
37
- ---------------------------------------------------------------- */
38
- import LayoutLeftMenu from '@/components/layout/layout-left-menu.vue'
39
- import LayoutTopHeader from '@/components/layout/layout-top-header.vue'
40
- import LayoutRightContainer from '@/components/layout/layout-right-container.vue'
41
- </script>
42
42
  <style lang="scss" scoped>
43
43
  /* 自定义样式
44
44
  ---------------------------------------------------------------- */
@@ -57,4 +57,4 @@ import LayoutRightContainer from '@/components/layout/layout-right-container.vue
57
57
  <style lang="scss">
58
58
  /* 覆盖样式
59
59
  ---------------------------------------------------------------- */
60
- </style>
60
+ </style>