@ddwl/ddwl-ui 1.3.5 → 1.3.7-beta.2

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": "@ddwl/ddwl-ui",
3
- "version": "1.3.5",
3
+ "version": "1.3.7-beta.2",
4
4
  "private": false,
5
5
  "main": "dist/index.common.js",
6
6
  "style": "dist/index.css",
@@ -14,6 +14,10 @@
14
14
  "publishConfig": {
15
15
  "registry": "https://registry.npmjs.org"
16
16
  },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "http://121.40.23.60:10999/frontend/ddwl-ui.git"
20
+ },
17
21
  "scripts": {
18
22
  "lint": "vue-cli-service lint",
19
23
  "dev": "vue-cli-service lint && vue-cli-service serve",
@@ -47,6 +51,7 @@
47
51
  "eslint-config-prettier": "^10.1.8",
48
52
  "eslint-plugin-prettier": "^5.5.4",
49
53
  "eslint-plugin-vue": "^8.0.3",
54
+ "mini-css-extract-plugin": "^2.9.4",
50
55
  "vue-template-compiler": "^2.6.14"
51
56
  },
52
57
  "eslintConfig": {
@@ -24,54 +24,54 @@ export const convertBytesToSize = (bytes) => {
24
24
  */
25
25
  export function getQueryString(name) {
26
26
  const href = window.location.href
27
- /*eslint-disable */
28
- const reg = new RegExp(name + '=[^&|#|\/]*')
29
- const res = href.match(reg)
30
- return res ? href.match(reg)[0].split('=')[1] : ''
31
- }
32
-
33
- /**
34
- * @description: 移除url参数
35
- * @param {*} name 参数名称
36
- * @return {string}
37
- */
38
- export const removeURLParam = (name) => {
39
- let tempUrl = window.location.href
40
- tempUrl = tempUrl.split("?")[0]
41
- window.history.replaceState({}, "0", tempUrl)
42
- }
43
-
44
- /**
45
- * @description: 复制内容到剪贴板
46
- * @param {string} text 复制文本
47
- * @return {string}
48
- */
49
- export const copy = (text) => {
50
- return new Promise((resolve, reject) => {
51
- const input = document.createElement('input')
52
- document.body.appendChild(input)
53
- input.setAttribute('value', text)
54
- input.select()
55
- if (document.execCommand('copy')) {
56
- document.execCommand('copy')
57
- resolve()
58
- } else {
59
- reject()
60
- }
61
- document.body.removeChild(input)
62
- })
63
- }
64
-
65
- /**
66
- * @description: 根据字符串长度生成*号字符串
67
- * @param {*} text 字符串
68
- * @return {string}
69
- */
70
- export function generateAsterisksByString (text) {
71
- const length = text.length
72
- if (typeof length !== 'number' || length <= 0) {
73
- return ''
74
- }
75
- return '*'.repeat(length)
76
- }
77
-
27
+ /*eslint-disable */
28
+ const reg = new RegExp(name + '=[^&|#|\/]*')
29
+ const res = href.match(reg)
30
+ return res ? href.match(reg)[0].split('=')[1] : ''
31
+ }
32
+
33
+ /**
34
+ * @description: 移除url参数
35
+ * @param {*} name 参数名称
36
+ * @return {string}
37
+ */
38
+ export const removeURLParam = (name) => {
39
+ let tempUrl = window.location.href
40
+ tempUrl = tempUrl.split("?")[0]
41
+ window.history.replaceState({}, "0", tempUrl)
42
+ }
43
+
44
+ /**
45
+ * @description: 复制内容到剪贴板
46
+ * @param {string} text 复制文本
47
+ * @return {string}
48
+ */
49
+ export const copy = (text) => {
50
+ return new Promise((resolve, reject) => {
51
+ const input = document.createElement('input')
52
+ document.body.appendChild(input)
53
+ input.setAttribute('value', text)
54
+ input.select()
55
+ if (document.execCommand('copy')) {
56
+ document.execCommand('copy')
57
+ resolve()
58
+ } else {
59
+ reject()
60
+ }
61
+ document.body.removeChild(input)
62
+ })
63
+ }
64
+
65
+ /**
66
+ * @description: 根据字符串长度生成*号字符串
67
+ * @param {*} text 字符串
68
+ * @return {string}
69
+ */
70
+ export function generateAsterisksByString (text) {
71
+ const length = text.length
72
+ if (typeof length !== 'number' || length <= 0) {
73
+ return ''
74
+ }
75
+ return '*'.repeat(length)
76
+ }
77
+