@smart100/spu-web-plugin 0.0.8 → 0.0.12

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart100/spu-web-plugin",
3
- "version": "0.0.8",
3
+ "version": "0.0.12",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "dev": "rollup -c -w",
@@ -33,7 +33,6 @@
33
33
  "postcss": "^8.4.31",
34
34
  "rollup": "^4.2.0",
35
35
  "rollup-plugin-postcss": "^4.0.2",
36
- "rollup-plugin-vue": "^6.0.0",
37
36
  "tslib": "^2.6.2"
38
37
  },
39
38
  "dependencies": {
@@ -45,8 +44,5 @@
45
44
  "lodash-es": "^4.17.21",
46
45
  "uuid": "^9.0.1",
47
46
  "vconsole": "^3.15.1"
48
- },
49
- "peerdependencies": {
50
- "vue": "^3.2.13"
51
47
  }
52
48
  }
package/src/axios.ts CHANGED
@@ -6,7 +6,7 @@ import type {
6
6
  } from 'axios'
7
7
  import { get } from 'lodash-es'
8
8
  // import { Message } from 'element-ui'
9
- import loadding from './loadding/index'
9
+ import { loadding } from './components/loadding'
10
10
  import login from './login'
11
11
 
12
12
  interface Response {
package/src/cloudServ.ts CHANGED
@@ -84,6 +84,10 @@ class CloudServ {
84
84
  lsProxy.setItem(this.CLOUD_SERVE_KEY, storage)
85
85
  }
86
86
 
87
+ public remove () {
88
+ lsProxy.removeItem(this.CLOUD_SERVE_KEY)
89
+ }
90
+
87
91
  private getProvider (sign: StorageType = 'storage') {
88
92
  const storage: NormalizedCloudServItem | null = this.get(sign)
89
93
  if (!storage) {
@@ -0,0 +1,19 @@
1
+ const getAttributes = (ele: HTMLElement | null) => {
2
+ // console.log(ele)
3
+ const attrs: any = {}
4
+
5
+ if (!ele) return attrs
6
+
7
+ const attrSource = Object.values(ele.attributes)
8
+ if (attrSource?.length > 0) {
9
+ attrSource.forEach(ele => {
10
+ const { name, value } = ele as any
11
+ attrs[name] = value
12
+ })
13
+ }
14
+ return attrs
15
+ }
16
+
17
+ export {
18
+ getAttributes
19
+ }