neo-cmp-cli 1.13.9 → 1.13.10
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/dist/neo/neoLogin.js +1 -1
- package/dist/package.json.js +1 -1
- package/package.json +1 -1
- package/template/neo-web-entity-grid/src/components/createForm__c/index.tsx +9 -4
- package/template/neo-web-entity-grid/src/components/createForm__c/model.ts +4 -2
- package/template/neo-web-entity-grid/src/components/entityGrid3__c/model.ts +2 -2
- package/template/neo-web-entity-grid/src/components/searchForm__c/index.tsx +6 -10
- package/template/neo-web-entity-grid/src/components/searchForm__c/model.ts +1 -1
- package/template/neo-web-entity-grid/src/components/searchForm__c/style.scss +205 -229
- package/template/neo-web-form/.prettierrc.js +12 -0
- package/template/neo-web-form/@types/neo-ui-common.d.ts +36 -0
- package/template/neo-web-form/README.md +99 -0
- package/template/neo-web-form/commitlint.config.js +59 -0
- package/template/neo-web-form/neo.config.js +57 -0
- package/template/neo-web-form/package.json +66 -0
- package/template/neo-web-form/public/css/base.css +283 -0
- package/template/neo-web-form/public/scripts/app/bluebird.js +6679 -0
- package/template/neo-web-form/public/template.html +13 -0
- package/template/neo-web-form/src/assets/css/common.scss +127 -0
- package/template/neo-web-form/src/assets/css/mixin.scss +47 -0
- package/template/neo-web-form/src/assets/img/AIBtn.gif +0 -0
- package/template/neo-web-form/src/assets/img/NeoCRM.jpg +0 -0
- package/template/neo-web-form/src/assets/img/aiLogo.png +0 -0
- package/template/neo-web-form/src/assets/img/card-list.svg +1 -0
- package/template/neo-web-form/src/assets/img/contact-form.svg +1 -0
- package/template/neo-web-form/src/assets/img/custom-form.svg +1 -0
- package/template/neo-web-form/src/assets/img/custom-widget.svg +1 -0
- package/template/neo-web-form/src/assets/img/data-list.svg +1 -0
- package/template/neo-web-form/src/assets/img/detail.svg +1 -0
- package/template/neo-web-form/src/assets/img/favicon.png +0 -0
- package/template/neo-web-form/src/assets/img/map.svg +1 -0
- package/template/neo-web-form/src/assets/img/search.svg +1 -0
- package/template/neo-web-form/src/assets/img/table.svg +1 -0
- package/template/neo-web-form/src/components/batchAddTable__c/index.tsx +1052 -0
- package/template/neo-web-form/src/components/batchAddTable__c/model.ts +90 -0
- package/template/neo-web-form/src/components/batchAddTable__c/style.scss +21 -0
- package/template/neo-web-form/src/components/batchAddTable__c/tableModal.scss +137 -0
- package/template/neo-web-form/src/components/listSummary__c/index.tsx +120 -0
- package/template/neo-web-form/src/components/listSummary__c/model.ts +69 -0
- package/template/neo-web-form/src/components/listSummary__c/style.scss +40 -0
- package/template/neo-web-form/src/utils/axiosFetcher.ts +37 -0
- package/template/neo-web-form/src/utils/queryObjectData.ts +112 -0
- package/template/neo-web-form/src/utils/xobjects.ts +167 -0
- package/template/neo-web-form/tsconfig.json +39 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
### 目录说明
|
|
2
|
+
- src: 自定义组件源码;
|
|
3
|
+
- src/assets: 存放组件静态资源,比如 css、img等;
|
|
4
|
+
- src/components: 存放自定义组件代码,每个自定义组件以自身名称(cmpType 数值)作为目录进行存放;
|
|
5
|
+
- src/components/xxCmp/index: 自定义组件的内容文件;
|
|
6
|
+
- src/components/xxCmp/model: 自定义组件的模型文件,用于对接页面设计器;
|
|
7
|
+
- neo.config.js: neo-cmp-cli 配置文件。
|
|
8
|
+
|
|
9
|
+
### 组件开发规范
|
|
10
|
+
- 存放在 src/components 目录下的自定义组件,默认 index 为自定义组件源码入口文件,model.[tj]s 为自定义组件的模型文件(对接页面设计器需要);
|
|
11
|
+
- 当 neo.config.js 中的 entry 为空或者不存在时,cli 将根据 src/components 目录下的自定义组件结构生成对应的 entry 配置(可在命令控制台查看生成的 entry 配置);
|
|
12
|
+
- 自定义组件中可用的配置项类型 请见 [当前可用表单项](https://github.com/wibetter/neo-register/blob/master/docs/FormItemType.md);
|
|
13
|
+
- 自定义组件最外层请设置一个唯一的 ClassName(比如 xx-cmpType-container),所有内容样式请放在该 ClassName 中,避免自定义组件样式相互干扰;
|
|
14
|
+
- 默认开启代码规范检测(含样式内容),如需关闭,请调整 neo.config.js 相关配置;
|
|
15
|
+
- 请使用 react 16 版本;
|
|
16
|
+
- 支持在自定义组件中使用 Open API,详细见[使用说明](https://www.npmjs.com/package/neo-open-api)。
|
|
17
|
+
|
|
18
|
+
### 自定义组件注册器使用说明
|
|
19
|
+
- [neo-register 使用说明](https://www.npmjs.com/package/neo-register?activeTab=readme)
|
|
20
|
+
备注:预览、调试(linkDebug)和构建发布时 cli 会自动创建对应的注册文件(含 neo-register 的使用),用户无需关注 neo-register。
|
|
21
|
+
|
|
22
|
+
### 开发说明
|
|
23
|
+
|
|
24
|
+
1. **安装依赖**
|
|
25
|
+
```bash
|
|
26
|
+
$ npm i 或者 yarn
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
2. **linkDebug: 外链调试(在线上页面设计器端预览自定义组件)**
|
|
30
|
+
> linkDebug模式:用于在线上页面设计器中预览和调试自定义组件。
|
|
31
|
+
```bash
|
|
32
|
+
$ npm run linkDebug
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
3. **发布到 NeoCRM 平台**
|
|
36
|
+
> 需要确保 package.json 中的 name 值唯一,version 值不重复。
|
|
37
|
+
```bash
|
|
38
|
+
$ npm run pushCmp
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### OAuth2 登录授权
|
|
42
|
+
使用 `neo push cmp`、`neo pull cmp`、`neo delete cmp` 等命令与 NeoCRM 平台交互时,需要进行授权登录。
|
|
43
|
+
|
|
44
|
+
#### 使用步骤
|
|
45
|
+
|
|
46
|
+
1. **登录 NeoCRM 平台**
|
|
47
|
+
```bash
|
|
48
|
+
neo login
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
执行流程:
|
|
52
|
+
- 自动打开浏览器访问授权页面
|
|
53
|
+
- 在浏览器中输入 NeoCRM 账号密码进行登录(需选择对应的租户)
|
|
54
|
+
- 授权成功后自动跳转回本地(附带 code)
|
|
55
|
+
- cli 端 通过 code 获取 Token,并自动保存到项目的 `.neo-cli/token.json` 文件中
|
|
56
|
+
|
|
57
|
+
2. **登出 NeoCRM 平台**
|
|
58
|
+
```bash
|
|
59
|
+
neo logout
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
功能:清除本地保存的 token 文件,下次使用需要重新登录。
|
|
63
|
+
|
|
64
|
+
#### neo login 选择「自定义环境」时的授权配置示例
|
|
65
|
+
|
|
66
|
+
```javascript
|
|
67
|
+
// neo.config.js
|
|
68
|
+
module.exports = {
|
|
69
|
+
neoConfig: {
|
|
70
|
+
neoBaseURL: 'https://crm-cd.xiaoshouyi.com', // 平台根地址(默认:https://crm.xiaoshouyi.com)
|
|
71
|
+
// 登录授权 URL(用于获取 code)
|
|
72
|
+
loginURL: 'https://login-cd.xiaoshouyi.com/auc/oauth2/auth',
|
|
73
|
+
tokenAPI: 'https://login-cd.xiaoshouyi.com/auc/oauth2/token', // Token 获取接口地址
|
|
74
|
+
},
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
#### Token 有效期
|
|
79
|
+
|
|
80
|
+
- **access_token**:默认有效期 2 小时
|
|
81
|
+
- **refresh_token**:默认有效期 30 天
|
|
82
|
+
- 系统会在 access_token 过期前 5 分钟自动刷新
|
|
83
|
+
- 如果 refresh_token 也过期,需要重新执行 `neo login`
|
|
84
|
+
|
|
85
|
+
#### 常见问题
|
|
86
|
+
|
|
87
|
+
**Q1: 浏览器无法自动打开怎么办?**
|
|
88
|
+
A: 命令行会输出授权 URL,手动复制到浏览器中打开即可。
|
|
89
|
+
|
|
90
|
+
**Q2: Token 刷新失败怎么办?**
|
|
91
|
+
A: 如果 refresh_token 也过期(默认 30 天),需要重新执行 `neo login`。同时检查网络连接是否正常。
|
|
92
|
+
|
|
93
|
+
**Q3: 授权登录后没有正常跳回 redirect_uri**
|
|
94
|
+
A: 可能被浏览器安装的插件影响,目前已知会影响授权登录的浏览器插件有:Neo UI Extension,请关闭插件后重试。
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
### 配置项说明(neo-cmp-cli)
|
|
99
|
+
[请查看neo-cmp-cli](https://www.npmjs.com/package/neo-cmp-cli)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://www.npmjs.com/package/@commitlint/config-conventional\
|
|
3
|
+
*
|
|
4
|
+
* Git提交规范-配置文件
|
|
5
|
+
* Commit message 由Header、Body 和 Footer三个部分组成,其格式如下:
|
|
6
|
+
* <type>(<scope>): <subject>
|
|
7
|
+
* <BLANK LINE>
|
|
8
|
+
* <body>
|
|
9
|
+
* <BLANK LINE>
|
|
10
|
+
* <footer>
|
|
11
|
+
*
|
|
12
|
+
*【备注】
|
|
13
|
+
* type 用于说明 commit 的类别,常用下面 7 个标识:
|
|
14
|
+
* scope 用于说明当前功能点作用于哪个页面或者哪个功能模块;
|
|
15
|
+
* subject 用于简短的描述当前commit,不超过50个字符;
|
|
16
|
+
* body 用于填写对本次 commit 的详细描述,可以分成多行;
|
|
17
|
+
* footer 不兼容变动声明,或者关闭 Issue。
|
|
18
|
+
*
|
|
19
|
+
* 【type类型取值类型】
|
|
20
|
+
* feat:新功能(feature)
|
|
21
|
+
* fix:功能优化
|
|
22
|
+
* bug:修补bug
|
|
23
|
+
* docs:文档(documentation)
|
|
24
|
+
* style:格式(不影响代码运行的变动)
|
|
25
|
+
* refactor:重构(即不是新增功能,也不是修改bug的代码变动)
|
|
26
|
+
* test:增加测试
|
|
27
|
+
* chore:构建过程或辅助工具的变动
|
|
28
|
+
* build:影响构建系统或外部依赖项的更改(示例范围:gulp,broccoli,npm)
|
|
29
|
+
* ci:对 CI 配置文件和脚本的更改(示例范围:Travis,Circle,BrowserStack,SauceLabs)
|
|
30
|
+
* perf:改进性能的代码更改
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
module.exports = {
|
|
35
|
+
extends: ['@commitlint/config-conventional'],
|
|
36
|
+
rules: {
|
|
37
|
+
'type-enum': [
|
|
38
|
+
2,
|
|
39
|
+
'always',
|
|
40
|
+
[
|
|
41
|
+
'feat',
|
|
42
|
+
'fix',
|
|
43
|
+
'bug',
|
|
44
|
+
'docs',
|
|
45
|
+
'style',
|
|
46
|
+
'refactor',
|
|
47
|
+
'test',
|
|
48
|
+
'chore',
|
|
49
|
+
'perf',
|
|
50
|
+
'build',
|
|
51
|
+
'ci',
|
|
52
|
+
],
|
|
53
|
+
],
|
|
54
|
+
'type-empty': [2, 'never'],
|
|
55
|
+
'scope-empty': [1, 'never'],
|
|
56
|
+
'subject-full-stop': [0, 'never'],
|
|
57
|
+
'subject-case': [0, 'never'],
|
|
58
|
+
},
|
|
59
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
|
|
5
|
+
// 统一路径解析
|
|
6
|
+
function resolve(dir) {
|
|
7
|
+
return path.resolve(__dirname, dir);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// 包括生产和开发的环境配置信息
|
|
11
|
+
module.exports = {
|
|
12
|
+
settings: {
|
|
13
|
+
enableESLint: false,
|
|
14
|
+
enableESLintFix: false,
|
|
15
|
+
enableStyleLint: false,
|
|
16
|
+
enableStyleLintFix: false
|
|
17
|
+
},
|
|
18
|
+
webpack: {
|
|
19
|
+
target: [
|
|
20
|
+
"web",
|
|
21
|
+
"es5"
|
|
22
|
+
],
|
|
23
|
+
resolve: {
|
|
24
|
+
extensions: [
|
|
25
|
+
".js",
|
|
26
|
+
".jsx",
|
|
27
|
+
".ts",
|
|
28
|
+
".tsx",
|
|
29
|
+
".umd.js",
|
|
30
|
+
".min.js",
|
|
31
|
+
".json"
|
|
32
|
+
],
|
|
33
|
+
alias: {
|
|
34
|
+
"@": resolve("./src"),
|
|
35
|
+
$assets: resolve("./src/assets"),
|
|
36
|
+
$public: resolve("./public"),
|
|
37
|
+
$utils: resolve("./src/utils")
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
sassResources: [
|
|
41
|
+
resolve("./src/assets/css/common.scss"),
|
|
42
|
+
resolve("./src/assets/css/mixin.scss")
|
|
43
|
+
],
|
|
44
|
+
ignoreNodeModules: false
|
|
45
|
+
},
|
|
46
|
+
neoCommonModule: {
|
|
47
|
+
// remoteDeps: ['entityGrid3__c'], // 远程依赖组件,表示当前自定义组件会用到的依赖组件,需要和 externals 配合使用
|
|
48
|
+
externals: ['entityGrid3__c'] // 自定义组件中需要剔除的模块(仅支持数组写法)
|
|
49
|
+
},
|
|
50
|
+
linkDebug: {},
|
|
51
|
+
neoConfig: {
|
|
52
|
+
neoBaseURL: "https://crm-test.xiaoshouyi.com",
|
|
53
|
+
loginURL: "https://login-test.xiaoshouyi.com/auc/oauth2/auth",
|
|
54
|
+
tokenURL: "https://login-test.xiaoshouyi.com/auc/oauth2/token"
|
|
55
|
+
},
|
|
56
|
+
pushCmp: {}
|
|
57
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "neo-web-entity-grid",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Web端列表组件模板: 含基础大列表、Picker 列表等示例组件。",
|
|
5
|
+
"framework": "react-ts",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"react&ts技术栈",
|
|
8
|
+
"Web端列表组件模板"
|
|
9
|
+
],
|
|
10
|
+
"author": "wibetter",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"linkDebug": "neo linkDebug",
|
|
14
|
+
"neoLogin": "neo login",
|
|
15
|
+
"pushCmp": "neo push cmp",
|
|
16
|
+
"pullCmp": "neo pull cmp",
|
|
17
|
+
"deleteCmp": "neo delete cmp",
|
|
18
|
+
"build2lib": "neo build2lib",
|
|
19
|
+
"format": "prettier --write \"src/**/**/*.{js,jsx,ts,tsx,vue,scss,json}\""
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist/*"
|
|
23
|
+
],
|
|
24
|
+
"husky": {
|
|
25
|
+
"hooks": {
|
|
26
|
+
"pre-commit": "lint-staged",
|
|
27
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"lint-staged": {
|
|
31
|
+
"src/**/**/*.{js,jsx,ts,tsx,vue,scss,json}": [
|
|
32
|
+
"prettier --write"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@ant-design/icons": "^4.8.3",
|
|
37
|
+
"antd": "^4.9.4",
|
|
38
|
+
"axios": "^1.7.0",
|
|
39
|
+
"lodash": "^4.17.23",
|
|
40
|
+
"neo-open-api": "^1.2.3",
|
|
41
|
+
"neo-register": "^1.2.0",
|
|
42
|
+
"react": "^16.9.0",
|
|
43
|
+
"react-dom": "^16.9.0",
|
|
44
|
+
"tslib": "2.3.0",
|
|
45
|
+
"xlsx": "^0.18.5"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@babel/runtime": "^7.26.0",
|
|
49
|
+
"@commitlint/cli": "^18.0.0",
|
|
50
|
+
"@commitlint/config-conventional": "^18.0.0",
|
|
51
|
+
"@types/axios": "^0.14.0",
|
|
52
|
+
"@types/react": "^16.9.11",
|
|
53
|
+
"@types/react-dom": "^16.9.15",
|
|
54
|
+
"husky": "^4.2.5",
|
|
55
|
+
"lint-staged": "^10.2.9",
|
|
56
|
+
"neo-cmp-cli": "^1.13.9",
|
|
57
|
+
"prettier": "^2.0.5"
|
|
58
|
+
},
|
|
59
|
+
"overrides": {
|
|
60
|
+
"typescript": "<6"
|
|
61
|
+
},
|
|
62
|
+
"engines": {
|
|
63
|
+
"node": ">= 16.0.0",
|
|
64
|
+
"npm": ">= 8.0.0"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
@charset "utf-8";
|
|
2
|
+
|
|
3
|
+
body {
|
|
4
|
+
margin: 0;
|
|
5
|
+
border-width: 0;
|
|
6
|
+
padding: 0;
|
|
7
|
+
font-family: PingFangSC-Regular;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
div,
|
|
11
|
+
dl,
|
|
12
|
+
dt,
|
|
13
|
+
dd,
|
|
14
|
+
ul,
|
|
15
|
+
ol,
|
|
16
|
+
li,
|
|
17
|
+
h1,
|
|
18
|
+
h2,
|
|
19
|
+
h3,
|
|
20
|
+
h4,
|
|
21
|
+
h5,
|
|
22
|
+
h6,
|
|
23
|
+
pre,
|
|
24
|
+
code,
|
|
25
|
+
form,
|
|
26
|
+
fieldset,
|
|
27
|
+
legend,
|
|
28
|
+
input,
|
|
29
|
+
textarea,
|
|
30
|
+
p,
|
|
31
|
+
blockquote,
|
|
32
|
+
th,
|
|
33
|
+
td,
|
|
34
|
+
hr,
|
|
35
|
+
i,
|
|
36
|
+
button,
|
|
37
|
+
article,
|
|
38
|
+
aside,
|
|
39
|
+
details,
|
|
40
|
+
figcaption,
|
|
41
|
+
figure,
|
|
42
|
+
footer,
|
|
43
|
+
header,
|
|
44
|
+
hgroup,
|
|
45
|
+
menu,
|
|
46
|
+
nav,
|
|
47
|
+
section {
|
|
48
|
+
margin: 0;
|
|
49
|
+
padding: 0;
|
|
50
|
+
border-width: 0;
|
|
51
|
+
font-family: PingFangSC-Regular;
|
|
52
|
+
box-sizing: padding-box;
|
|
53
|
+
-webkit-box-sizing: padding-box;
|
|
54
|
+
-moz-box-sizing: padding-box;
|
|
55
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
body,
|
|
59
|
+
button,
|
|
60
|
+
input,
|
|
61
|
+
select,
|
|
62
|
+
textarea {
|
|
63
|
+
font-size: 14px;
|
|
64
|
+
line-height: 1.125;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[v-cloak] {
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
li,
|
|
72
|
+
ul,
|
|
73
|
+
ol {
|
|
74
|
+
list-style: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
a {
|
|
78
|
+
text-decoration: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
a:active {
|
|
82
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
sub,
|
|
86
|
+
sup {
|
|
87
|
+
line-height: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
table {
|
|
91
|
+
border-collapse: collapse;
|
|
92
|
+
border-spacing: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
li {
|
|
96
|
+
list-style: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
fieldset,
|
|
100
|
+
img {
|
|
101
|
+
border: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
input,
|
|
105
|
+
textarea {
|
|
106
|
+
outline-style: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
input[type='text'],
|
|
110
|
+
input[type='search'],
|
|
111
|
+
input[type='password'] {
|
|
112
|
+
-webkit-border-radius: 0;
|
|
113
|
+
-moz-border-radius: 0;
|
|
114
|
+
-o-border-radius: 0;
|
|
115
|
+
border-radius: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
textarea {
|
|
119
|
+
resize: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
address,
|
|
123
|
+
caption,
|
|
124
|
+
cite,
|
|
125
|
+
code,
|
|
126
|
+
dfn,
|
|
127
|
+
em,
|
|
128
|
+
i,
|
|
129
|
+
th,
|
|
130
|
+
var {
|
|
131
|
+
font-style: normal;
|
|
132
|
+
font-weight: normal;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
legend {
|
|
136
|
+
color: #000;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
abbr,
|
|
140
|
+
acronym {
|
|
141
|
+
border: 0;
|
|
142
|
+
font-variant: normal;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
a {
|
|
146
|
+
text-decoration: none;
|
|
147
|
+
outline: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
a:hover {
|
|
151
|
+
text-decoration: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.clearit {
|
|
155
|
+
clear: both;
|
|
156
|
+
height: 0;
|
|
157
|
+
font-size: 0;
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* surface下viewport不生效的解决办法 */
|
|
162
|
+
@media screen and (min-width: 767px) and (device-aspect-ratio: 16/9) {
|
|
163
|
+
@-ms-viewport {
|
|
164
|
+
zoom: 1;
|
|
165
|
+
max-zoom: 1;
|
|
166
|
+
min-zoom: 1;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* surface下IE10 点击链接,背景变色 */
|
|
171
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
172
|
+
a {
|
|
173
|
+
background-color: transparent;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
img {
|
|
178
|
+
-ms-interpolation-mode: bicubic;
|
|
179
|
+
image-rendering: optimizeQuality;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* portrait:指定输出设备中的页面可见区域高度大于或等于宽度, landscape:横屏*/
|
|
183
|
+
@media not screen and (orientation: landscape),
|
|
184
|
+
not screen and (orientation: portrait) {
|
|
185
|
+
body,
|
|
186
|
+
button,
|
|
187
|
+
input,
|
|
188
|
+
select,
|
|
189
|
+
textarea {
|
|
190
|
+
font-family: 'Microsoft Yahei', 'Simsun';
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
::-moz-placeholder {
|
|
195
|
+
color: #767676;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
::-webkit-input-placeholder {
|
|
199
|
+
color: #767676;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
:-ms-input-placeholder {
|
|
203
|
+
color: #767676;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.cont-selected {
|
|
207
|
+
display: block !important;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.hidden {
|
|
211
|
+
visibility: hidden;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.ellipsis {
|
|
215
|
+
overflow: hidden;
|
|
216
|
+
white-space: nowrap;
|
|
217
|
+
text-overflow: ellipsis;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.clearfix:after {
|
|
221
|
+
content: '.';
|
|
222
|
+
display: block;
|
|
223
|
+
height: 0;
|
|
224
|
+
visibility: hidden;
|
|
225
|
+
clear: both;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.left {
|
|
229
|
+
float: left;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.right {
|
|
233
|
+
float: right;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.center {
|
|
237
|
+
margin: 0 auto;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.text-center {
|
|
241
|
+
text-align: center;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.text-right {
|
|
245
|
+
text-align: right;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.text-left {
|
|
249
|
+
text-align: left;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.no-border {
|
|
253
|
+
border: none !important;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.click-event {
|
|
257
|
+
cursor: pointer;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* 增加iphoneX适配 */
|
|
261
|
+
@media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
|
|
262
|
+
.ipx-fixed-bottom {
|
|
263
|
+
bottom: 34px !important;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.ipx-fixed-top {
|
|
267
|
+
top: 20px !important;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.ipx-margin-top {
|
|
271
|
+
margin-top: 20px !important;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.ipx-margin-bottom {
|
|
275
|
+
margin-bottom: 20px !important;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.ipx-height {
|
|
279
|
+
height: 34px !important;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* 业务级公用代码 */
|