vue2-client 1.22.11 → 1.22.12
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/.claude/settings.local.json +30 -30
- package/.eslintrc.js +74 -74
- package/.idea/af-vue2-client.iml +8 -0
- package/.idea/encodings.xml +6 -0
- package/.idea/inspectionProfiles/Project_Default.xml +0 -18
- package/.idea/misc.xml +12 -0
- package/.idea/modules.xml +1 -1
- package/.idea/workspace.xml +63 -0
- package/Components.md +60 -60
- package/index.js +31 -31
- package/jest-transform-stub.js +8 -8
- package/jest.setup.js +7 -7
- package/package.json +1 -1
- package/src/assets/img/querySlotDemo.svg +15 -15
- package/src/base-client/components/common/AfMap/map/index.vue +1 -0
- package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
- package/src/base-client/components/common/CitySelect/index.js +3 -3
- package/src/base-client/components/common/CitySelect/index.md +109 -109
- package/src/base-client/components/common/FormGroupEdit/index.js +3 -3
- package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
- package/src/base-client/components/common/JSONToTree/jsontotree.vue +271 -271
- package/src/base-client/components/common/PersonSetting/index.js +3 -3
- package/src/base-client/components/common/Tree/index.js +2 -2
- package/src/base-client/components/common/Upload/index.js +3 -3
- package/src/base-client/components/common/XAddNativeForm/index.md +146 -146
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -180
- package/src/base-client/components/common/XDataDrawer/index.js +3 -3
- package/src/base-client/components/common/XDataDrawer/index.md +41 -41
- package/src/base-client/components/common/XDescriptions/index.js +3 -3
- package/src/base-client/components/common/XDescriptions/index.md +382 -382
- package/src/base-client/components/common/XForm/index.md +178 -178
- package/src/base-client/components/common/XStepView/XStepView.vue +252 -252
- package/src/base-client/components/common/XStepView/index.js +3 -3
- package/src/base-client/components/common/XStepView/index.md +31 -31
- package/src/base-client/components/common/XTable/index.md +255 -255
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
- package/src/base-client/plugins/Config.js +19 -19
- package/src/base-client/plugins/tabs-page-plugin.js +39 -39
- package/src/components/Charts/Bar.vue +62 -62
- package/src/components/Charts/ChartCard.vue +134 -134
- package/src/components/Charts/Liquid.vue +67 -67
- package/src/components/Charts/MiniArea.vue +39 -39
- package/src/components/Charts/MiniBar.vue +39 -39
- package/src/components/Charts/MiniProgress.vue +75 -75
- package/src/components/Charts/MiniSmoothArea.vue +40 -40
- package/src/components/Charts/Radar.vue +68 -68
- package/src/components/Charts/RankList.vue +77 -77
- package/src/components/Charts/TagCloud.vue +113 -113
- package/src/components/Charts/TransferBar.vue +64 -64
- package/src/components/Charts/Trend.vue +82 -82
- package/src/components/Charts/chart.less +12 -12
- package/src/components/Charts/smooth.area.less +13 -13
- package/src/components/NumberInfo/NumberInfo.vue +54 -54
- package/src/components/NumberInfo/index.js +3 -3
- package/src/components/NumberInfo/index.less +54 -54
- package/src/components/NumberInfo/index.md +43 -43
- package/src/components/STable/index.js +953 -953
- package/src/components/card/ChartCard.vue +79 -79
- package/src/components/chart/Bar.vue +60 -60
- package/src/components/chart/MiniArea.vue +67 -67
- package/src/components/chart/MiniBar.vue +59 -59
- package/src/components/chart/MiniProgress.vue +57 -57
- package/src/components/chart/Radar.vue +80 -80
- package/src/components/chart/RankingList.vue +60 -60
- package/src/components/chart/Trend.vue +79 -79
- package/src/components/chart/index.less +9 -9
- package/src/components/checkbox/ColorCheckbox.vue +157 -157
- package/src/components/input/IInput.vue +66 -66
- package/src/components/menu/SideMenu.vue +75 -75
- package/src/components/menu/menu.js +273 -273
- package/src/components/tool/AStepItem.vue +60 -60
- package/src/layouts/CommonLayout.vue +56 -56
- package/src/lib.js +1 -1
- package/src/mock/extend/index.js +84 -84
- package/src/mock/goods/index.js +108 -108
- package/src/pages/dashboard/workplace/WorkPlace.vue +141 -141
- package/src/pages/system/dictionary/index.vue +44 -44
- package/src/pages/system/monitor/loginInfor/index.vue +37 -37
- package/src/pages/system/monitor/operLog/index.vue +37 -37
- package/src/services/api/cas.js +79 -79
- package/src/store/modules/setting.js +119 -119
- package/src/utils/errorCode.js +6 -6
- package//350/277/201/347/247/273/346/227/245/345/277/227.md +15 -15
- package/.idea/MarsCodeWorkspaceAppSettings.xml +0 -7
- package/.idea/google-java-format.xml +0 -6
- package/.idea/jsLinters/eslint.xml +0 -6
- package/.idea/vue2-client.iml +0 -12
- package/.vscode/settings.json +0 -28
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"permissions": {
|
|
3
|
-
"allow": [
|
|
4
|
-
"WebSearch",
|
|
5
|
-
"WebFetch(domain:context7.com)",
|
|
6
|
-
"Bash(npm run lint)",
|
|
7
|
-
"mcp__context7__resolve-library-id",
|
|
8
|
-
"mcp__context7__get-library-docs",
|
|
9
|
-
"WebFetch(domain:github.com)",
|
|
10
|
-
"Bash(npm run serve:*)",
|
|
11
|
-
"mcp__serena__get_current_config",
|
|
12
|
-
"mcp__serena__activate_project",
|
|
13
|
-
"mcp__serena__get_symbols_overview",
|
|
14
|
-
"mcp__serena__list_dir",
|
|
15
|
-
"mcp__serena__find_file",
|
|
16
|
-
"mcp__serena__list_memories",
|
|
17
|
-
"mcp__serena__check_onboarding_performed",
|
|
18
|
-
"mcp__serena__read_memory",
|
|
19
|
-
"mcp__serena__think_about_collected_information",
|
|
20
|
-
"mcp__sequential-thinking__sequentialthinking",
|
|
21
|
-
"Bash(npm run lint:*)",
|
|
22
|
-
"mcp__serena__find_symbol",
|
|
23
|
-
"mcp__serena__search_for_pattern",
|
|
24
|
-
"Bash(node -c:*)"
|
|
25
|
-
],
|
|
26
|
-
"deny": [],
|
|
27
|
-
"ask": [],
|
|
28
|
-
"defaultMode": "acceptEdits"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"WebSearch",
|
|
5
|
+
"WebFetch(domain:context7.com)",
|
|
6
|
+
"Bash(npm run lint)",
|
|
7
|
+
"mcp__context7__resolve-library-id",
|
|
8
|
+
"mcp__context7__get-library-docs",
|
|
9
|
+
"WebFetch(domain:github.com)",
|
|
10
|
+
"Bash(npm run serve:*)",
|
|
11
|
+
"mcp__serena__get_current_config",
|
|
12
|
+
"mcp__serena__activate_project",
|
|
13
|
+
"mcp__serena__get_symbols_overview",
|
|
14
|
+
"mcp__serena__list_dir",
|
|
15
|
+
"mcp__serena__find_file",
|
|
16
|
+
"mcp__serena__list_memories",
|
|
17
|
+
"mcp__serena__check_onboarding_performed",
|
|
18
|
+
"mcp__serena__read_memory",
|
|
19
|
+
"mcp__serena__think_about_collected_information",
|
|
20
|
+
"mcp__sequential-thinking__sequentialthinking",
|
|
21
|
+
"Bash(npm run lint:*)",
|
|
22
|
+
"mcp__serena__find_symbol",
|
|
23
|
+
"mcp__serena__search_for_pattern",
|
|
24
|
+
"Bash(node -c:*)"
|
|
25
|
+
],
|
|
26
|
+
"deny": [],
|
|
27
|
+
"ask": [],
|
|
28
|
+
"defaultMode": "acceptEdits"
|
|
29
|
+
}
|
|
30
|
+
}
|
package/.eslintrc.js
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: {
|
|
4
|
-
node: true
|
|
5
|
-
},
|
|
6
|
-
// prettier 放最后,自动关闭所有与 Prettier 冲突的格式规则
|
|
7
|
-
extends: ['plugin:vue/essential', 'plugin:vue/strongly-recommended', '@vue/standard', 'prettier'],
|
|
8
|
-
rules: {
|
|
9
|
-
camelcase: 'off',
|
|
10
|
-
'comma-dangle': 'off',
|
|
11
|
-
'no-console': 'off',
|
|
12
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
13
|
-
'generator-star-spacing': 'off',
|
|
14
|
-
'no-mixed-operators': 0,
|
|
15
|
-
'vue/max-attributes-per-line': 'off',
|
|
16
|
-
'vue/attribute-hyphenation': 0,
|
|
17
|
-
'vue/html-self-closing': 0,
|
|
18
|
-
'vue/component-name-in-template-casing': 0,
|
|
19
|
-
'vue/html-closing-bracket-spacing': 0,
|
|
20
|
-
'vue/singleline-html-element-content-newline': 0,
|
|
21
|
-
'vue/no-unused-components': 0,
|
|
22
|
-
'vue/multiline-html-element-content-newline': 0,
|
|
23
|
-
'vue/no-use-v-if-with-v-for': 0,
|
|
24
|
-
'vue/html-closing-bracket-newline': 0,
|
|
25
|
-
'vue/no-parsing-error': 0,
|
|
26
|
-
'vue/name-property-casing': 0,
|
|
27
|
-
'vue/multi-word-component-names': 0,
|
|
28
|
-
'vue/no-mutating-props': 0,
|
|
29
|
-
'no-tabs': 0,
|
|
30
|
-
'multiline-ternary': 0,
|
|
31
|
-
'object-shorthand': 0,
|
|
32
|
-
quotes: [
|
|
33
|
-
2,
|
|
34
|
-
'single',
|
|
35
|
-
{
|
|
36
|
-
avoidEscape: true,
|
|
37
|
-
allowTemplateLiterals: true
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
semi: [
|
|
41
|
-
2,
|
|
42
|
-
'never',
|
|
43
|
-
{
|
|
44
|
-
beforeStatementContinuationChars: 'never'
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
'no-delete-var': 2,
|
|
48
|
-
'prefer-const': [
|
|
49
|
-
2,
|
|
50
|
-
{
|
|
51
|
-
ignoreReadBeforeAssign: false
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
'template-curly-spacing': 'off',
|
|
55
|
-
indent: 'off',
|
|
56
|
-
// 必须使用全等: false
|
|
57
|
-
eqeqeq: 0,
|
|
58
|
-
// 可以使用!! 双重否定
|
|
59
|
-
'no-extra-boolean-cast': 'off',
|
|
60
|
-
// 关闭函数名后空格检查,跟随 Prettier 默认风格 function foo()
|
|
61
|
-
'space-before-function-paren': 'off'
|
|
62
|
-
},
|
|
63
|
-
parserOptions: {
|
|
64
|
-
parser: '@babel/eslint-parser'
|
|
65
|
-
},
|
|
66
|
-
overrides: [
|
|
67
|
-
{
|
|
68
|
-
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
|
|
69
|
-
env: {
|
|
70
|
-
jest: true
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
node: true
|
|
5
|
+
},
|
|
6
|
+
// prettier 放最后,自动关闭所有与 Prettier 冲突的格式规则
|
|
7
|
+
extends: ['plugin:vue/essential', 'plugin:vue/strongly-recommended', '@vue/standard', 'prettier'],
|
|
8
|
+
rules: {
|
|
9
|
+
camelcase: 'off',
|
|
10
|
+
'comma-dangle': 'off',
|
|
11
|
+
'no-console': 'off',
|
|
12
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
13
|
+
'generator-star-spacing': 'off',
|
|
14
|
+
'no-mixed-operators': 0,
|
|
15
|
+
'vue/max-attributes-per-line': 'off',
|
|
16
|
+
'vue/attribute-hyphenation': 0,
|
|
17
|
+
'vue/html-self-closing': 0,
|
|
18
|
+
'vue/component-name-in-template-casing': 0,
|
|
19
|
+
'vue/html-closing-bracket-spacing': 0,
|
|
20
|
+
'vue/singleline-html-element-content-newline': 0,
|
|
21
|
+
'vue/no-unused-components': 0,
|
|
22
|
+
'vue/multiline-html-element-content-newline': 0,
|
|
23
|
+
'vue/no-use-v-if-with-v-for': 0,
|
|
24
|
+
'vue/html-closing-bracket-newline': 0,
|
|
25
|
+
'vue/no-parsing-error': 0,
|
|
26
|
+
'vue/name-property-casing': 0,
|
|
27
|
+
'vue/multi-word-component-names': 0,
|
|
28
|
+
'vue/no-mutating-props': 0,
|
|
29
|
+
'no-tabs': 0,
|
|
30
|
+
'multiline-ternary': 0,
|
|
31
|
+
'object-shorthand': 0,
|
|
32
|
+
quotes: [
|
|
33
|
+
2,
|
|
34
|
+
'single',
|
|
35
|
+
{
|
|
36
|
+
avoidEscape: true,
|
|
37
|
+
allowTemplateLiterals: true
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
semi: [
|
|
41
|
+
2,
|
|
42
|
+
'never',
|
|
43
|
+
{
|
|
44
|
+
beforeStatementContinuationChars: 'never'
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
'no-delete-var': 2,
|
|
48
|
+
'prefer-const': [
|
|
49
|
+
2,
|
|
50
|
+
{
|
|
51
|
+
ignoreReadBeforeAssign: false
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
'template-curly-spacing': 'off',
|
|
55
|
+
indent: 'off',
|
|
56
|
+
// 必须使用全等: false
|
|
57
|
+
eqeqeq: 0,
|
|
58
|
+
// 可以使用!! 双重否定
|
|
59
|
+
'no-extra-boolean-cast': 'off',
|
|
60
|
+
// 关闭函数名后空格检查,跟随 Prettier 默认风格 function foo()
|
|
61
|
+
'space-before-function-paren': 'off'
|
|
62
|
+
},
|
|
63
|
+
parserOptions: {
|
|
64
|
+
parser: '@babel/eslint-parser'
|
|
65
|
+
},
|
|
66
|
+
overrides: [
|
|
67
|
+
{
|
|
68
|
+
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
|
|
69
|
+
env: {
|
|
70
|
+
jest: true
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$" />
|
|
5
|
+
<orderEntry type="inheritedJdk" />
|
|
6
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
+
</component>
|
|
8
|
+
</module>
|
|
@@ -2,23 +2,5 @@
|
|
|
2
2
|
<profile version="1.0">
|
|
3
3
|
<option name="myName" value="Project Default" />
|
|
4
4
|
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
|
5
|
-
<inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
|
|
6
|
-
<option name="myValues">
|
|
7
|
-
<value>
|
|
8
|
-
<list size="9">
|
|
9
|
-
<item index="0" class="java.lang.String" itemvalue="nobr" />
|
|
10
|
-
<item index="1" class="java.lang.String" itemvalue="noembed" />
|
|
11
|
-
<item index="2" class="java.lang.String" itemvalue="comment" />
|
|
12
|
-
<item index="3" class="java.lang.String" itemvalue="noscript" />
|
|
13
|
-
<item index="4" class="java.lang.String" itemvalue="embed" />
|
|
14
|
-
<item index="5" class="java.lang.String" itemvalue="script" />
|
|
15
|
-
<item index="6" class="java.lang.String" itemvalue="a-month-picker" />
|
|
16
|
-
<item index="7" class="java.lang.String" itemvalue="a-select-option" />
|
|
17
|
-
<item index="8" class="java.lang.String" itemvalue="a-menu-item" />
|
|
18
|
-
</list>
|
|
19
|
-
</value>
|
|
20
|
-
</option>
|
|
21
|
-
<option name="myCustomValuesEnabled" value="true" />
|
|
22
|
-
</inspection_tool>
|
|
23
5
|
</profile>
|
|
24
6
|
</component>
|
package/.idea/misc.xml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="MavenImportPreferences">
|
|
4
|
+
<option name="generalSettings">
|
|
5
|
+
<MavenGeneralSettings>
|
|
6
|
+
<option name="localRepository" value="D:\apache-maven-3.5.2\repository" />
|
|
7
|
+
<option name="mavenHome" value="D:/apache-maven-3.5.2" />
|
|
8
|
+
<option name="userSettingsFile" value="D:\apache-maven-3.5.2\conf\settings.xml" />
|
|
9
|
+
</MavenGeneralSettings>
|
|
10
|
+
</option>
|
|
11
|
+
</component>
|
|
12
|
+
</project>
|
package/.idea/modules.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ProjectModuleManager">
|
|
4
4
|
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/vue2-client.iml" filepath="$PROJECT_DIR$/.idea/vue2-client.iml" />
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/af-vue2-client.iml" filepath="$PROJECT_DIR$/.idea/af-vue2-client.iml" />
|
|
6
6
|
</modules>
|
|
7
7
|
</component>
|
|
8
8
|
</project>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ChangeListManager">
|
|
4
|
+
<list default="true" id="a9b56467-cc7a-4aa4-b3b8-8de4daacc681" name="Changes" comment="">
|
|
5
|
+
<change beforePath="$PROJECT_DIR$/src/base-client/components/common/AfMap/map/index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/src/base-client/components/common/AfMap/map/index.vue" afterDir="false" />
|
|
6
|
+
</list>
|
|
7
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
8
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
9
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
10
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
11
|
+
</component>
|
|
12
|
+
<component name="Git.Settings">
|
|
13
|
+
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
|
14
|
+
<map>
|
|
15
|
+
<entry key="$PROJECT_DIR$" value="master" />
|
|
16
|
+
</map>
|
|
17
|
+
</option>
|
|
18
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
19
|
+
</component>
|
|
20
|
+
<component name="ProjectColorInfo"><![CDATA[{
|
|
21
|
+
"associatedIndex": 7
|
|
22
|
+
}]]></component>
|
|
23
|
+
<component name="ProjectId" id="3FTPOxG6f49MzNIl3AgtpM9cryK" />
|
|
24
|
+
<component name="ProjectViewState">
|
|
25
|
+
<option name="showLibraryContents" value="true" />
|
|
26
|
+
</component>
|
|
27
|
+
<component name="PropertiesComponent"><![CDATA[{
|
|
28
|
+
"keyToString": {
|
|
29
|
+
"ModuleVcsDetector.initialDetectionPerformed": "true",
|
|
30
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
31
|
+
"RunOnceActivity.git.unshallow": "true",
|
|
32
|
+
"RunOnceActivity.typescript.service.memoryLimit.init": "true",
|
|
33
|
+
"git-widget-placeholder": "dev",
|
|
34
|
+
"javascript.preferred.runtime.type.id": "node",
|
|
35
|
+
"node.js.detected.package.eslint": "true",
|
|
36
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
37
|
+
"nodejs_package_manager_path": "yarn",
|
|
38
|
+
"ts.external.directory.path": "F:\\software\\webstorm\\WebStorm 2025.3.1\\plugins\\javascript-plugin\\jsLanguageServicesImpl\\external",
|
|
39
|
+
"vue.rearranger.settings.migration": "true"
|
|
40
|
+
}
|
|
41
|
+
}]]></component>
|
|
42
|
+
<component name="SharedIndexes">
|
|
43
|
+
<attachedChunks>
|
|
44
|
+
<set>
|
|
45
|
+
<option value="bundled-js-predefined-d6986cc7102b-9b0f141eb926-JavaScript-WS-253.29346.143" />
|
|
46
|
+
</set>
|
|
47
|
+
</attachedChunks>
|
|
48
|
+
</component>
|
|
49
|
+
<component name="TaskManager">
|
|
50
|
+
<task active="true" id="Default" summary="Default task">
|
|
51
|
+
<changelist id="a9b56467-cc7a-4aa4-b3b8-8de4daacc681" name="Changes" comment="" />
|
|
52
|
+
<created>1782096058058</created>
|
|
53
|
+
<option name="number" value="Default" />
|
|
54
|
+
<option name="presentableId" value="Default" />
|
|
55
|
+
<updated>1782096058058</updated>
|
|
56
|
+
<workItem from="1782096059367" duration="114000" />
|
|
57
|
+
</task>
|
|
58
|
+
<servers />
|
|
59
|
+
</component>
|
|
60
|
+
<component name="TypeScriptGeneratedFilesManager">
|
|
61
|
+
<option name="version" value="3" />
|
|
62
|
+
</component>
|
|
63
|
+
</project>
|
package/Components.md
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
# vue2基础组件库组件介绍
|
|
2
|
-
|
|
3
|
-
## XAddForm
|
|
4
|
-
|
|
5
|
-
基于XAddNativeForm二次封装的动态表单的Modal形式
|
|
6
|
-
|
|
7
|
-
[使用文档](src/base-client/components/common/XAddForm/index.md)
|
|
8
|
-
|
|
9
|
-
## XAddNativeForm
|
|
10
|
-
|
|
11
|
-
通过JSON配置动态生成的数据保存表单
|
|
12
|
-
|
|
13
|
-
[使用文档](src/base-client/components/common/XAddNativeForm/index.md)
|
|
14
|
-
|
|
15
|
-
## XBadge
|
|
16
|
-
|
|
17
|
-
对antdv的badge组件进行重封装
|
|
18
|
-
|
|
19
|
-
[使用文档](src/base-client/components/common/XBadge/index.md)
|
|
20
|
-
|
|
21
|
-
## XCard
|
|
22
|
-
|
|
23
|
-
通用数据加载状态管理容器
|
|
24
|
-
|
|
25
|
-
提供一个可以根据数据加载状态显示不同内容的通用容器
|
|
26
|
-
当loadState为loading时,显示骨架屏(加载界面)
|
|
27
|
-
当loadState为success时,显示容器内容
|
|
28
|
-
当loadState为error时,显示点击重新加载数据的提示界面
|
|
29
|
-
|
|
30
|
-
[使用文档](src/base-client/components/common/XCard/index.md)
|
|
31
|
-
|
|
32
|
-
## XForm
|
|
33
|
-
|
|
34
|
-
通过JSON配置动态生成的数据筛选查询表单
|
|
35
|
-
|
|
36
|
-
[使用文档](src/base-client/components/common/XForm/index.md)
|
|
37
|
-
|
|
38
|
-
## XTable
|
|
39
|
-
|
|
40
|
-
通过JSON配置动态生成的数据表格
|
|
41
|
-
|
|
42
|
-
[使用文档](src/base-client/components/common/XTable/index.md)
|
|
43
|
-
|
|
44
|
-
## XFormCol
|
|
45
|
-
|
|
46
|
-
适用于动态表单的可以自适应各种分辨率设备的栅格组件封装
|
|
47
|
-
|
|
48
|
-
[使用文档](src/base-client/components/common/XFormCol/index.md)
|
|
49
|
-
|
|
50
|
-
## XFormTable
|
|
51
|
-
|
|
52
|
-
对XAddForm,XForm和XTable组件的二次封装,实现通过JSON配置动态生成一个完整的实体操作页面
|
|
53
|
-
|
|
54
|
-
[使用文档](src/base-client/components/common/XFormTable/index.md)
|
|
55
|
-
|
|
56
|
-
## XImportExcel
|
|
57
|
-
|
|
58
|
-
通用的导入excel组件
|
|
59
|
-
|
|
60
|
-
[使用文档](src/base-client/components/common/XImportExcel/index.md)
|
|
1
|
+
# vue2基础组件库组件介绍
|
|
2
|
+
|
|
3
|
+
## XAddForm
|
|
4
|
+
|
|
5
|
+
基于XAddNativeForm二次封装的动态表单的Modal形式
|
|
6
|
+
|
|
7
|
+
[使用文档](src/base-client/components/common/XAddForm/index.md)
|
|
8
|
+
|
|
9
|
+
## XAddNativeForm
|
|
10
|
+
|
|
11
|
+
通过JSON配置动态生成的数据保存表单
|
|
12
|
+
|
|
13
|
+
[使用文档](src/base-client/components/common/XAddNativeForm/index.md)
|
|
14
|
+
|
|
15
|
+
## XBadge
|
|
16
|
+
|
|
17
|
+
对antdv的badge组件进行重封装
|
|
18
|
+
|
|
19
|
+
[使用文档](src/base-client/components/common/XBadge/index.md)
|
|
20
|
+
|
|
21
|
+
## XCard
|
|
22
|
+
|
|
23
|
+
通用数据加载状态管理容器
|
|
24
|
+
|
|
25
|
+
提供一个可以根据数据加载状态显示不同内容的通用容器
|
|
26
|
+
当loadState为loading时,显示骨架屏(加载界面)
|
|
27
|
+
当loadState为success时,显示容器内容
|
|
28
|
+
当loadState为error时,显示点击重新加载数据的提示界面
|
|
29
|
+
|
|
30
|
+
[使用文档](src/base-client/components/common/XCard/index.md)
|
|
31
|
+
|
|
32
|
+
## XForm
|
|
33
|
+
|
|
34
|
+
通过JSON配置动态生成的数据筛选查询表单
|
|
35
|
+
|
|
36
|
+
[使用文档](src/base-client/components/common/XForm/index.md)
|
|
37
|
+
|
|
38
|
+
## XTable
|
|
39
|
+
|
|
40
|
+
通过JSON配置动态生成的数据表格
|
|
41
|
+
|
|
42
|
+
[使用文档](src/base-client/components/common/XTable/index.md)
|
|
43
|
+
|
|
44
|
+
## XFormCol
|
|
45
|
+
|
|
46
|
+
适用于动态表单的可以自适应各种分辨率设备的栅格组件封装
|
|
47
|
+
|
|
48
|
+
[使用文档](src/base-client/components/common/XFormCol/index.md)
|
|
49
|
+
|
|
50
|
+
## XFormTable
|
|
51
|
+
|
|
52
|
+
对XAddForm,XForm和XTable组件的二次封装,实现通过JSON配置动态生成一个完整的实体操作页面
|
|
53
|
+
|
|
54
|
+
[使用文档](src/base-client/components/common/XFormTable/index.md)
|
|
55
|
+
|
|
56
|
+
## XImportExcel
|
|
57
|
+
|
|
58
|
+
通用的导入excel组件
|
|
59
|
+
|
|
60
|
+
[使用文档](src/base-client/components/common/XImportExcel/index.md)
|
package/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import { initRouter } from '@vue2-client/router/index.js'
|
|
3
|
-
import { initI18n } from '@vue2-client/utils/i18n'
|
|
4
|
-
import bootstrap from '@vue2-client/bootstrap'
|
|
5
|
-
import { modules } from '@vue2-client/store'
|
|
6
|
-
import '@vue2-client/theme/index.less'
|
|
7
|
-
import '@vue2-client/utils/filter'
|
|
8
|
-
import 'animate.css/source/animate.css'
|
|
9
|
-
import 'moment/locale/zh-cn'
|
|
10
|
-
import Antd from 'ant-design-vue'
|
|
11
|
-
import Viser from 'viser-vue'
|
|
12
|
-
// 插件
|
|
13
|
-
import Plugins from '@vue2-client/base-client/plugins'
|
|
14
|
-
|
|
15
|
-
const routerOptions = initRouter()
|
|
16
|
-
const i18n = initI18n('CN', 'US')
|
|
17
|
-
|
|
18
|
-
Vue.use(Antd)
|
|
19
|
-
Vue.use(Viser)
|
|
20
|
-
Vue.use(Plugins)
|
|
21
|
-
|
|
22
|
-
Vue.config.productionTip = false
|
|
23
|
-
const message = Vue.prototype.$message
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
routerOptions,
|
|
27
|
-
modules,
|
|
28
|
-
i18n,
|
|
29
|
-
message,
|
|
30
|
-
bootstrap
|
|
31
|
-
}
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import { initRouter } from '@vue2-client/router/index.js'
|
|
3
|
+
import { initI18n } from '@vue2-client/utils/i18n'
|
|
4
|
+
import bootstrap from '@vue2-client/bootstrap'
|
|
5
|
+
import { modules } from '@vue2-client/store'
|
|
6
|
+
import '@vue2-client/theme/index.less'
|
|
7
|
+
import '@vue2-client/utils/filter'
|
|
8
|
+
import 'animate.css/source/animate.css'
|
|
9
|
+
import 'moment/locale/zh-cn'
|
|
10
|
+
import Antd from 'ant-design-vue'
|
|
11
|
+
import Viser from 'viser-vue'
|
|
12
|
+
// 插件
|
|
13
|
+
import Plugins from '@vue2-client/base-client/plugins'
|
|
14
|
+
|
|
15
|
+
const routerOptions = initRouter()
|
|
16
|
+
const i18n = initI18n('CN', 'US')
|
|
17
|
+
|
|
18
|
+
Vue.use(Antd)
|
|
19
|
+
Vue.use(Viser)
|
|
20
|
+
Vue.use(Plugins)
|
|
21
|
+
|
|
22
|
+
Vue.config.productionTip = false
|
|
23
|
+
const message = Vue.prototype.$message
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
routerOptions,
|
|
27
|
+
modules,
|
|
28
|
+
i18n,
|
|
29
|
+
message,
|
|
30
|
+
bootstrap
|
|
31
|
+
}
|
package/jest-transform-stub.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
process () {
|
|
3
|
-
return 'module.exports = {};'
|
|
4
|
-
},
|
|
5
|
-
getCacheKey () {
|
|
6
|
-
return 'lessTransform'
|
|
7
|
-
},
|
|
8
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
process () {
|
|
3
|
+
return 'module.exports = {};'
|
|
4
|
+
},
|
|
5
|
+
getCacheKey () {
|
|
6
|
+
return 'lessTransform'
|
|
7
|
+
},
|
|
8
|
+
}
|
package/jest.setup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
global.matchMedia = global.matchMedia || function () {
|
|
2
|
-
return {
|
|
3
|
-
matches: false,
|
|
4
|
-
addListener: function () {},
|
|
5
|
-
removeListener: function () {}
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
global.matchMedia = global.matchMedia || function () {
|
|
2
|
+
return {
|
|
3
|
+
matches: false,
|
|
4
|
+
addListener: function () {},
|
|
5
|
+
removeListener: function () {}
|
|
6
|
+
}
|
|
7
|
+
}
|