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.
- package/package.json +1 -1
- package/src/components/filter-bar/FuFilter.vue +1 -1
- package/src/components/read-write-switch/FuInputRwSwitch.vue +9 -5
- package/src/components/read-write-switch/FuReadWriteSwitch.vue +38 -36
- package/src/components/read-write-switch/FuSelectRwSwitch.vue +11 -7
- package/src/components/read-write-switch/types.ts +4 -0
- package/src/components/split-pane/FuSplitPane.vue +1 -1
- package/src/components/table/FuTableBody.ts +32 -26
- package/src/components/table/table-column-dropdown/FuTableColumnDropdown.vue +5 -2
- package/src/components/table/table-column-select/FuTableColumnSelectDialog.vue +12 -11
- package/src/components/table/table-column-select/FuTableColumnSelectPopover.vue +9 -9
- package/src/components/table/table-column-select/utils.ts +10 -7
- package/src/components/table/table-operations/FuTableMoreButton.vue +4 -2
- package/src/components/table/table-operations/FuTableOperations.vue +5 -5
- package/src/components/tabs/FuTabs.vue +4 -2
- package/src/styles/common/variables.scss +0 -6
- package/src/styles/components/tabs.scss +1 -1
- package/src/tools/types.ts +9 -0
- package/src/tools/utils.ts +36 -36
- package/lib/favicon.bmp +0 -0
- package/lib/fit2cloud-ui-plus.es.js +0 -3803
- package/lib/fit2cloud-ui-plus.umd.js +0 -1
package/src/tools/utils.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export const download = function ({url, name, content}) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|