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.
Files changed (38) hide show
  1. package/.babelrc +2 -11
  2. package/lib/index.css +18560 -0
  3. package/lib/index.esm.js +2958 -0
  4. package/lib/index.umd.js +2997 -0
  5. package/package.json +47 -69
  6. package/rollup.config.js +59 -0
  7. package/tsconfig.json +24 -0
  8. package/typings/shims-vue.d.ts +6 -0
  9. package/.editorconfig +0 -9
  10. package/.eslintrc.js +0 -40
  11. package/.prettierrc.js +0 -16
  12. package/debug.log +0 -1
  13. package/dist/bundler.js +0 -7
  14. package/dist/bundler.js.map +0 -1
  15. package/index.html +0 -19
  16. package/src/App.vue +0 -134
  17. package/src/lib/index.js +0 -27
  18. package/src/main.js +0 -25
  19. package/src/packages/dialog/index.js +0 -32
  20. package/src/packages/dialog/src/main.vue +0 -197
  21. package/src/packages/slide-verify/index.js +0 -12
  22. package/src/packages/slide-verify/src/main.vue +0 -479
  23. package/src/packages/slide-verify/src/static/close.png +0 -0
  24. package/src/packages/slide-verify/src/static/placeholder.png +0 -0
  25. package/src/packages/slide-verify/src/static/range_btn.png +0 -0
  26. package/src/packages/slide-verify/src/static/refresh.png +0 -0
  27. package/src/packages/task-detail/index.js +0 -12
  28. package/src/packages/task-detail/src/components/formDetail.vue +0 -79
  29. package/src/packages/task-detail/src/components/mixin.js +0 -105
  30. package/src/packages/task-detail/src/components/styles/index.scss +0 -162
  31. package/src/packages/task-detail/src/components/surveyDetail.vue +0 -337
  32. package/src/packages/task-detail/src/config/fields.js +0 -655
  33. package/src/packages/task-detail/src/config/index.js +0 -34
  34. package/src/packages/task-detail/src/main.vue +0 -108
  35. package/src/packages/task-detail/src/static/fieldsMap.js +0 -274
  36. package/src/packages/task-detail/src/test/testData.js +0 -743
  37. package/src/packages/task-detail/src/tools/index.js +0 -290
  38. package/webpack.config.js +0 -93
package/package.json CHANGED
@@ -1,69 +1,47 @@
1
- {
2
- "name": "xrk-components",
3
- "version": "0.1.0",
4
- "description": "xrk-components",
5
- "author": "xrk",
6
- "main": "dist/bundler.js",
7
- "keywords": [
8
- "vue",
9
- "xrk"
10
- ],
11
- "repository": {
12
- "type": "git",
13
- "url": "http://wangjiaxing@git.jimijiayuan.cn/wangjiaxing/xrk-components.git"
14
- },
15
- "scripts": {
16
- "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
17
- "build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
18
- "lint": "eslint src/ --ext .js,.vue ",
19
- "fix": "eslint --fix ./src --ext .js,.vue "
20
- },
21
- "dependencies": {
22
- "vue": "^2.5.11",
23
- "vue-photo-preview": "^1.1.3"
24
- },
25
- "devDependencies": {
26
- "@vue/cli-plugin-eslint": "~4.5.0",
27
- "@vue/eslint-config-prettier": "^6.0.0",
28
- "babel-core": "^6.26.0",
29
- "babel-eslint": "^10.1.0",
30
- "babel-loader": "^7.1.2",
31
- "babel-plugin-component": "^1.1.1",
32
- "babel-preset-env": "^1.6.0",
33
- "babel-preset-stage-3": "^6.24.1",
34
- "cross-env": "^5.2.1",
35
- "css-loader": "^0.28.7",
36
- "eslint": "^6.7.2",
37
- "eslint-plugin-prettier": "^3.1.3",
38
- "eslint-plugin-vue": "^6.2.2",
39
- "file-loader": "^1.1.4",
40
- "lint-staged": "^9.5.0",
41
- "mockjs": "^1.1.0",
42
- "node-sass": "^4.0.0",
43
- "prettier": "^1.19.1",
44
- "sass-loader": "^7.3.1",
45
- "url-loader": "^1.0.1",
46
- "vue-loader": "^13.0.5",
47
- "vue-template-compiler": "^2.4.4",
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
+ }
@@ -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
+ }
@@ -0,0 +1,6 @@
1
+ /* eslint-disable */
2
+ declare module '*.vue' {
3
+ import type { DefineComponent } from 'vue'
4
+ const component: DefineComponent<{}, {}, any>
5
+ export default component
6
+ }
package/.editorconfig DELETED
@@ -1,9 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- charset = utf-8
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- insert_final_newline = true
9
- trim_trailing_whitespace = true
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)