qcf 0.1.10 → 0.1.11
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.
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import { BaseService } from './base-service'
|
|
2
2
|
|
|
3
|
-
class {{bigCamelCase name}}Service extends BaseService{
|
|
4
|
-
|
|
3
|
+
class {{bigCamelCase name}}Service extends BaseService {
|
|
4
|
+
/**
|
|
5
|
+
* 注释,要写清楚当前api是干什么的
|
|
6
|
+
*
|
|
7
|
+
* @author author
|
|
8
|
+
* @param {Object} data
|
|
9
|
+
* @returns
|
|
10
|
+
* @memberof {{bigCamelCase name}}Service
|
|
11
|
+
*/
|
|
12
|
+
getViewLists(data: viewListParams) {
|
|
13
|
+
return this.request({
|
|
14
|
+
method: 'post',
|
|
15
|
+
url: `/dynamic/listPageSearch`,
|
|
16
|
+
data
|
|
17
|
+
});
|
|
18
|
+
}
|
|
5
19
|
}
|
|
6
20
|
|
|
7
21
|
export const {{camelCase name}}Service = new {{bigCamelCase name}}Service()
|
|
@@ -4,7 +4,7 @@ import styles from './{{kebabCase name}}.module.less';
|
|
|
4
4
|
|
|
5
5
|
const {{bigCamelCase name}}: React.FC = () => {
|
|
6
6
|
return (
|
|
7
|
-
<div className={classnames('page-comp-{{kebabCase name}}')}>
|
|
7
|
+
<div className={classnames(styles['page-comp-{{kebabCase name}}'])}>
|
|
8
8
|
<h1>Hello, 这事一个页面内子组件{{bigCamelCase name}} 页面 !</h1>
|
|
9
9
|
<p>This is a TypeScript and Less example.</p>
|
|
10
10
|
</div>
|