Browse Source

无JIRA任务 fix: 修复一些问题

es6
Zhenfei.Li 2 years ago
parent
commit
eebd1002b3
  1. 6
      .eslintrc
  2. 4
      es6.js
  3. 2
      src/core/index.js
  4. 2
      src/core/wrapper/layout/flex/flex.vertical.js

6
.eslintrc

@ -41,8 +41,8 @@
}, { }, {
"files": ["webpack/*.js", "./*.js", "lib/**/*.js", "lib/*.js", "./bin/*.js", "./bin/**/*.js"], "files": ["webpack/*.js", "./*.js", "lib/**/*.js", "lib/*.js", "./bin/*.js", "./bin/**/*.js"],
"extends": "plugin:@fui/esnext" "extends": "plugin:@fui/esnext"
}, { // }, {
"files": ["types/*.ts", "typescript/*.ts","typescript/**/*.ts"], // "files": ["types/*.ts", "typescript/*.ts","typescript/**/*.ts"],
"extends": "plugin:@fui/typescript" // "extends": "plugin:@fui/typescript"
}] }]
} }

4
es6.js

@ -155,7 +155,9 @@ ${M}
} }
`; `;
const prettierCode = prettier.format(outputCode); const prettierCode = prettier.format(outputCode, {
tabWidth: 4,
});
fs.writeFileSync(srcName, prettierCode); fs.writeFileSync(srcName, prettierCode);
await fix(srcName); await fix(srcName);

2
src/core/index.js

@ -32,9 +32,9 @@ export * from "./structure";
export * from "./h"; export * from "./h";
export * from "./constant"; export * from "./constant";
export * from "./logic"; export * from "./logic";
export * from "./utils";
export * from "./wrapper"; export * from "./wrapper";
export * from "./platform/web"; export * from "./platform/web";
export * from "./utils";
export { export {
StyleLoaderManager, StyleLoaderManager,

2
src/core/wrapper/layout/flex/flex.vertical.js

@ -11,6 +11,8 @@ import { Layout } from "../../layout";
*/ */
@shortcut() @shortcut()
export class FlexVerticalLayout extends Layout { export class FlexVerticalLayout extends Layout {
static xtype = "bi.flex_vertical";
props() { props() {
return extend(super.props(...arguments), { return extend(super.props(...arguments), {
baseCls: "bi-f-v", baseCls: "bi-f-v",

Loading…
Cancel
Save