@xilonglab/vue-main 1.0.1 → 1.0.5

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.
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { Session } from '#/system'
2
+ import System from '#/system'
3
3
  import { useRouter } from "vue-router"
4
4
  import { inject, reactive, ref } from 'vue'
5
5
  import gsap from 'gsap'
@@ -62,7 +62,7 @@ async function login() {
62
62
  try {
63
63
  if (!await refs.form.value.validate()) return
64
64
  Cookie.set()
65
- const data = await Session.resource.post(form, '')
65
+ const data = await System.Session.resource.post(form, '')
66
66
 
67
67
  if (data.token) {
68
68
  await showSuccessAnimation()
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { User } from '#/people'
2
+ import User from '#/user'
3
3
  import { ref, reactive, inject } from 'vue'
4
4
 
5
5
  const store = inject('store')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xilonglab/vue-main",
3
- "version": "1.0.1",
3
+ "version": "1.0.5",
4
4
  "description": "xilong vue main",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
@@ -12,6 +12,7 @@ const props = defineProps({
12
12
  type: String,
13
13
  default: ''
14
14
  },
15
+ size: {},
15
16
  disabled: {
16
17
  type: Boolean,
17
18
  default: false
@@ -54,7 +55,7 @@ defineExpose({ click })
54
55
 
55
56
 
56
57
  <template>
57
- <el-button class="xl-button xl-async-button" ref="btnRef" :type="type" :disabled="disabled" :loading="loading"
58
+ <el-button class="xl-button xl-async-button" ref="btnRef" :size="size" :type="type" :disabled="disabled" :loading="loading"
58
59
  :icon="icon" @click="handleClick">
59
60
  <span v-if="!loading">
60
61
  {{ l }}
@@ -7,6 +7,7 @@ const props = defineProps({
7
7
  type: String,
8
8
  default: ''
9
9
  },
10
+ size: {},
10
11
  disabled: {},
11
12
  loading: {},
12
13
  icon: {},
@@ -15,7 +16,7 @@ const props = defineProps({
15
16
 
16
17
 
17
18
  <template>
18
- <el-button class="xl-button" :type="type" :disabled="disabled" :loading="loading" :icon="icon">
19
+ <el-button class="xl-button" :size="size" :type="type" :disabled="disabled" :loading="loading" :icon="icon">
19
20
  <span>{{ l }}</span>
20
21
  <slot />
21
22
  </el-button>
@@ -6,6 +6,7 @@ const emits = defineEmits('click')
6
6
  const props = defineProps({
7
7
  disabled: {},
8
8
  loading: {},
9
+ size: {},
9
10
  icon: {},
10
11
  l: {}
11
12
  });
@@ -6,6 +6,7 @@ const emits = defineEmits('click')
6
6
  const props = defineProps({
7
7
  disabled: {},
8
8
  loading: {},
9
+ size: {},
9
10
  icon: {},
10
11
  l: {}
11
12
  });
@@ -6,6 +6,7 @@ const emits = defineEmits('click')
6
6
  const props = defineProps({
7
7
  type: {},
8
8
  code: {},
9
+ size: {},
9
10
  disabled: {},
10
11
  loading: {},
11
12
  icon: {},
@@ -4,7 +4,6 @@ defineOptions({ name: "XlUploadButton" })
4
4
  import { ref } from 'vue';
5
5
  import { ElMessage } from 'element-plus'
6
6
 
7
-
8
7
  const emits = defineEmits(['uploaded'])
9
8
 
10
9
  const props = defineProps({
@@ -16,6 +15,7 @@ const props = defineProps({
16
15
  type: String,
17
16
  default: ''
18
17
  },
18
+ size: {},
19
19
  params: {
20
20
  type: Object,
21
21
  default() {
@@ -91,7 +91,7 @@ const handlers = {
91
91
  <el-upload class="xl-upload-button" ref="uploader" action="" :headers="headers" :http-request="handlers.upload"
92
92
  :before-upload="handlers.beforeUpload" :on-success="handlers.onSuccess" :show-file-list="false"
93
93
  :disabled="disabled">
94
- <xl-button :loading="loading" :l="l" :type="type">
94
+ <xl-button :loading="loading" :size="size" :l="l" :type="type">
95
95
  <slot />
96
96
  </xl-button>
97
97
  </el-upload>
@@ -58,10 +58,7 @@ const show = () => {
58
58
  };
59
59
 
60
60
  const hide = () => {
61
- console.log('before hide')
62
61
  visible.value = false;
63
- console.log('after hide')
64
- console.log(visible.value)
65
62
  };
66
63
 
67
64
  defineExpose({ show })
@@ -82,7 +82,7 @@ onMounted(() => {
82
82
  flex-flow: row;
83
83
  align-items: center;
84
84
  width: 100%;
85
- padding: 3px 0;
85
+ padding: 3px 0 3px 5px;
86
86
  background: #fff !important;
87
87
 
88
88
  .el-tabs__header {