fit2cloud-ui-plus 0.0.1-beta.5 → 0.0.1-beta.6

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,29 +1,29 @@
1
- export const download = function ({url, name, content}) {
2
- if (url) {
3
- downloadByURL(url)
4
- } else {
5
- downloadByContent(name, content)
6
- }
7
- }
1
+ // export const download = function ({url, name, content}) {
2
+ // if (url) {
3
+ // downloadByURL(url)
4
+ // } else {
5
+ // downloadByContent(name, content)
6
+ // }
7
+ // }
8
8
 
9
- export const downloadByContent = function (name, content) {
10
- const blob = new Blob([content])
11
- const a = document.createElement('a')
12
- a.setAttribute('href', window.URL.createObjectURL(blob))
13
- a.setAttribute('download', name)
14
- document.body.appendChild(a)
15
- a.click()
16
- document.body.removeChild(a)
17
- }
9
+ // export const downloadByContent = function (name, content) {
10
+ // const blob = new Blob([content])
11
+ // const a = document.createElement('a')
12
+ // a.setAttribute('href', window.URL.createObjectURL(blob))
13
+ // a.setAttribute('download', name)
14
+ // document.body.appendChild(a)
15
+ // a.click()
16
+ // document.body.removeChild(a)
17
+ // }
18
18
 
19
- export const downloadByURL = function (url) {
20
- const a = document.createElement('a')
21
- a.setAttribute('href', url)
22
- a.setAttribute('download', url)
23
- document.body.appendChild(a)
24
- a.click()
25
- document.body.removeChild(a)
26
- }
19
+ // export const downloadByURL = function (url) {
20
+ // const a = document.createElement('a')
21
+ // a.setAttribute('href', url)
22
+ // a.setAttribute('download', url)
23
+ // document.body.appendChild(a)
24
+ // a.click()
25
+ // document.body.removeChild(a)
26
+ // }
27
27
 
28
28
  export const uuid = function () {
29
29
  let d = new Date().getTime();
@@ -45,16 +45,16 @@ export const randomId = function () {
45
45
  return Math.floor(Math.random() * 10000);
46
46
  }
47
47
 
48
- export const hasOwn = function (obj, key) {
49
- return Object.prototype.hasOwnProperty.call(obj, key);
50
- }
48
+ // export const hasOwn = function (obj, key) {
49
+ // return Object.prototype.hasOwnProperty.call(obj, key);
50
+ // }
51
51
 
52
- export const convertToUnit = function (value, unit = "px") {
53
- if (value == null || value === '') {
54
- return undefined
55
- } else if (isNaN(+value)) {
56
- return String(value)
57
- } else {
58
- return `${Number(value)}${unit}`
59
- }
60
- }
52
+ // export const convertToUnit = function (value, unit = "px") {
53
+ // if (value == null || value === '') {
54
+ // return undefined
55
+ // } else if (isNaN(+value)) {
56
+ // return String(value)
57
+ // } else {
58
+ // return `${Number(value)}${unit}`
59
+ // }
60
+ // }
package/lib/favicon.bmp DELETED
Binary file