xrk-components 0.1.0 → 0.3.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/.babelrc +2 -11
- package/lib/index.css +18560 -0
- package/lib/index.esm.js +2958 -0
- package/lib/index.umd.js +2997 -0
- package/package.json +47 -69
- package/rollup.config.js +59 -0
- package/tsconfig.json +24 -0
- package/typings/shims-vue.d.ts +6 -0
- package/.editorconfig +0 -9
- package/.eslintrc.js +0 -40
- package/.prettierrc.js +0 -16
- package/debug.log +0 -1
- package/dist/bundler.js +0 -7
- package/dist/bundler.js.map +0 -1
- package/index.html +0 -19
- package/src/App.vue +0 -134
- package/src/lib/index.js +0 -27
- package/src/main.js +0 -25
- package/src/packages/dialog/index.js +0 -32
- package/src/packages/dialog/src/main.vue +0 -197
- package/src/packages/slide-verify/index.js +0 -12
- package/src/packages/slide-verify/src/main.vue +0 -479
- package/src/packages/slide-verify/src/static/close.png +0 -0
- package/src/packages/slide-verify/src/static/placeholder.png +0 -0
- package/src/packages/slide-verify/src/static/range_btn.png +0 -0
- package/src/packages/slide-verify/src/static/refresh.png +0 -0
- package/src/packages/task-detail/index.js +0 -12
- package/src/packages/task-detail/src/components/formDetail.vue +0 -79
- package/src/packages/task-detail/src/components/mixin.js +0 -105
- package/src/packages/task-detail/src/components/styles/index.scss +0 -162
- package/src/packages/task-detail/src/components/surveyDetail.vue +0 -337
- package/src/packages/task-detail/src/config/fields.js +0 -655
- package/src/packages/task-detail/src/config/index.js +0 -34
- package/src/packages/task-detail/src/main.vue +0 -108
- package/src/packages/task-detail/src/static/fieldsMap.js +0 -274
- package/src/packages/task-detail/src/test/testData.js +0 -743
- package/src/packages/task-detail/src/tools/index.js +0 -290
- package/webpack.config.js +0 -93
package/package.json
CHANGED
|
@@ -1,69 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "xrk-components",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
],
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"webpack": "^3.6.0",
|
|
49
|
-
"webpack-dev-server": "^2.11.5"
|
|
50
|
-
},
|
|
51
|
-
"browserslist": [
|
|
52
|
-
"> 1%",
|
|
53
|
-
"last 2 versions",
|
|
54
|
-
"not ie <= 8"
|
|
55
|
-
],
|
|
56
|
-
"engines": {
|
|
57
|
-
"node": ">= 6.0.0",
|
|
58
|
-
"npm": ">= 3.0.0"
|
|
59
|
-
},
|
|
60
|
-
"gitHooks": {
|
|
61
|
-
"pre-commit": "lint-staged"
|
|
62
|
-
},
|
|
63
|
-
"lint-staged": {
|
|
64
|
-
"src/*.{js,jsx,vue}": [
|
|
65
|
-
"npm run fix",
|
|
66
|
-
"git add"
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "xrk-components",
|
|
3
|
+
"version": "0.3.2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "lib/index.esm.js",
|
|
6
|
+
"typings": "lib/packages/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build:esm-bundle": "rollup --config rollup.config.js"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [],
|
|
11
|
+
"author": "",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@babel/core": "^7.18.6",
|
|
15
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
16
|
+
"@rollup/plugin-commonjs": "^22.0.1",
|
|
17
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
18
|
+
"@vue/babel-plugin-jsx": "^1.1.1",
|
|
19
|
+
"@vue/cli-plugin-babel": "^5.0.7",
|
|
20
|
+
"@vue/compiler-sfc": "^3.2.37",
|
|
21
|
+
"acorn-jsx": "^5.3.2",
|
|
22
|
+
"autoprefixer": "^10.4.7",
|
|
23
|
+
"rollup": "^2.75.7",
|
|
24
|
+
"rollup-plugin-babel": "^4.4.0",
|
|
25
|
+
"rollup-plugin-clear": "^2.0.7",
|
|
26
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
27
|
+
"rollup-plugin-typescript2": "^0.32.1",
|
|
28
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
29
|
+
"sass": "^1.53.0",
|
|
30
|
+
"sass-loader": "^13.0.2",
|
|
31
|
+
"typescript": "^4.7.4",
|
|
32
|
+
"vue-loader": "^17.0.0"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"element-plus": "^2.2.8",
|
|
36
|
+
"vue": "^3.2.27",
|
|
37
|
+
"xrk-tools": "^1.0.27"
|
|
38
|
+
},
|
|
39
|
+
"browserslist": [
|
|
40
|
+
"defaults",
|
|
41
|
+
"not ie < 8",
|
|
42
|
+
"last 2 versions",
|
|
43
|
+
"> 1%",
|
|
44
|
+
"iOS 7",
|
|
45
|
+
"last 3 iOS versions"
|
|
46
|
+
]
|
|
47
|
+
}
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Description:
|
|
3
|
+
* @Date: 2022-07-06 10:15:25
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
const path = require('path');
|
|
7
|
+
|
|
8
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
9
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
10
|
+
|
|
11
|
+
import jsx from 'acorn-jsx';
|
|
12
|
+
import babel from 'rollup-plugin-babel';
|
|
13
|
+
import typescript from 'typescript';
|
|
14
|
+
import clear from 'rollup-plugin-clear';
|
|
15
|
+
import rollupTypescript from 'rollup-plugin-typescript2';
|
|
16
|
+
import rollupVue from 'rollup-plugin-vue';
|
|
17
|
+
import rollupPostcss from 'rollup-plugin-postcss';
|
|
18
|
+
import autoprefixer from 'autoprefixer';
|
|
19
|
+
|
|
20
|
+
const outdir = 'lib';
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
input: 'packages/index.ts',
|
|
24
|
+
output: [
|
|
25
|
+
{
|
|
26
|
+
format: 'esm',
|
|
27
|
+
file: `${outdir}/index.esm.js`
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Xrk',
|
|
31
|
+
format: 'umd',
|
|
32
|
+
file: `${outdir}/index.umd.js`
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
plugins: [
|
|
36
|
+
clear({ targets: [outdir] }),
|
|
37
|
+
resolve(),
|
|
38
|
+
rollupTypescript({
|
|
39
|
+
check: false,
|
|
40
|
+
include: ['*.ts+(|x)', '**/*.ts+(|x)'],
|
|
41
|
+
exclude: 'node_modules/**',
|
|
42
|
+
typescript: typescript
|
|
43
|
+
}),
|
|
44
|
+
rollupVue({
|
|
45
|
+
preprocessStyles: true
|
|
46
|
+
}),
|
|
47
|
+
rollupPostcss({
|
|
48
|
+
extract: path.resolve(`${outdir}/index.css`),
|
|
49
|
+
plugins: [autoprefixer()]
|
|
50
|
+
}),
|
|
51
|
+
commonjs(),
|
|
52
|
+
babel({
|
|
53
|
+
runtimeHelpers: true,
|
|
54
|
+
exclude: 'node_modules/**'
|
|
55
|
+
})
|
|
56
|
+
],
|
|
57
|
+
acornInjectPlugins: [jsx()],
|
|
58
|
+
external: ['vue', 'element-plus', 'xrk-tools']
|
|
59
|
+
};
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"target": "es5",
|
|
5
|
+
"module": "esnext",
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"noImplicitAny": false,
|
|
8
|
+
// 严格模式
|
|
9
|
+
"strict": true,
|
|
10
|
+
|
|
11
|
+
"jsx": "preserve",
|
|
12
|
+
"moduleResolution": "node",
|
|
13
|
+
"declaration": true,
|
|
14
|
+
"suppressImplicitAnyIndexErrors": true,
|
|
15
|
+
"skipLibCheck": true
|
|
16
|
+
},
|
|
17
|
+
"include": [
|
|
18
|
+
"packages/**/*.ts",
|
|
19
|
+
"packages/**/*.tsx",
|
|
20
|
+
"packages/**/*.vue",
|
|
21
|
+
"typings/**/*.ts"
|
|
22
|
+
],
|
|
23
|
+
"exclude": ["node_modules", "@type/**/*.d.ts"]
|
|
24
|
+
}
|
package/.editorconfig
DELETED
package/.eslintrc.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Description:
|
|
3
|
-
* @LastEditors: Please set LastEditors
|
|
4
|
-
* @Date: 2021-02-02 21:32:37
|
|
5
|
-
*/
|
|
6
|
-
module.exports = {
|
|
7
|
-
root: true,
|
|
8
|
-
env: {
|
|
9
|
-
node: true,
|
|
10
|
-
browser: true
|
|
11
|
-
},
|
|
12
|
-
extends: ['plugin:vue/essential', 'eslint:recommended', '@vue/prettier'],
|
|
13
|
-
plugins: ['prettier'],
|
|
14
|
-
parserOptions: {
|
|
15
|
-
parser: 'babel-eslint'
|
|
16
|
-
},
|
|
17
|
-
rules: {
|
|
18
|
-
'prettier/prettier': [
|
|
19
|
-
'error',
|
|
20
|
-
{
|
|
21
|
-
jsxBracketSameLine: false,
|
|
22
|
-
semi: true,
|
|
23
|
-
trailingComma: 'all',
|
|
24
|
-
singleQuote: true,
|
|
25
|
-
printWidth: 80,
|
|
26
|
-
tabWidth: 2,
|
|
27
|
-
endOfLine: 'auto',
|
|
28
|
-
trailingComma: 'none',
|
|
29
|
-
arrowParens: 'avoid',
|
|
30
|
-
htmlWhitespaceSensitivity: 'ignore'
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
|
|
34
|
-
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
35
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
36
|
-
quotes: [1, 'single'],
|
|
37
|
-
semi: [0],
|
|
38
|
-
'space-before-function-paren': [0, 'always']
|
|
39
|
-
}
|
|
40
|
-
};
|
package/.prettierrc.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Description:
|
|
3
|
-
* @Date: 2021-02-02 21:48:47
|
|
4
|
-
*/
|
|
5
|
-
module.exports = {
|
|
6
|
-
jsxBracketSameLine: false,
|
|
7
|
-
semi: true,
|
|
8
|
-
trailingComma: "all",
|
|
9
|
-
singleQuote: true,
|
|
10
|
-
printWidth: 80,
|
|
11
|
-
tabWidth: 2,
|
|
12
|
-
endOfLine: "auto",
|
|
13
|
-
trailingComma: "none",
|
|
14
|
-
arrowParens: "avoid",
|
|
15
|
-
htmlWhitespaceSensitivity: "ignore"
|
|
16
|
-
};
|
package/debug.log
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[0301/100708.779:ERROR:directory_reader_win.cc(43)] FindFirstFile: ϵͳ�Ҳ���ָ����·���� (0x3)
|