@yilianjituan/yilian_dgerm 0.0.1-alpha.19 → 0.0.1-alpha.21

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/README.md CHANGED
@@ -96,4 +96,8 @@ MIT
96
96
  3、TabsMode 组件封装
97
97
  4、TabsMode 宿主引用与调试
98
98
  5、NumberInput 组件封装
99
- 6、NumberInput 宿主引用与调试
99
+ 6、NumberInput 宿主引用与调试
100
+ 7、更换组件库 web-module-dumi -> @yilianjituan/yilian_dgerm
101
+ 8、依赖适配与打包
102
+ 9、宿主引用测试
103
+ 10、PageTemplate 适配,开放属性 buttonTheme 作为按钮颜色属性
@@ -29,6 +29,7 @@ export interface IPageTemPropsData {
29
29
  isScroll?: boolean;
30
30
  isExportPermission?: boolean;
31
31
  isSearchPermission?: boolean;
32
+ buttonTheme?: string;
32
33
  }
33
34
  export interface IColumnsProps {
34
35
  title: string;
@@ -41,7 +41,8 @@ var PageTemplate = function PageTemplate(props) {
41
41
  paginationProps = props.paginationProps,
42
42
  exportApi = props.exportApi,
43
43
  _props$isScroll = props.isScroll,
44
- isScroll = _props$isScroll === void 0 ? true : _props$isScroll;
44
+ isScroll = _props$isScroll === void 0 ? true : _props$isScroll,
45
+ buttonTheme = props.buttonTheme;
45
46
  var _useState = useState([]),
46
47
  _useState2 = _slicedToArray(_useState, 2),
47
48
  dataSource = _useState2[0],
@@ -277,8 +278,11 @@ var PageTemplate = function PageTemplate(props) {
277
278
  className: "filter-container"
278
279
  }, /*#__PURE__*/React.createElement("div", {
279
280
  className: "filter-box filter-box-base"
280
- }, filter && renderFormItem(filter), filter && filter.length ? /*#__PURE__*/React.createElement(FormItem, {
281
- className: "actions"
281
+ }, filter && renderFormItem(filter), filter && filter.length ?
282
+ /*#__PURE__*/
283
+ // 新增:科室按钮背景色处理
284
+ React.createElement(FormItem, {
285
+ className: buttonTheme === 'department' ? "actions actions-theme" : "actions"
282
286
  }, isSearchPermission && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
283
287
  type: "primary",
284
288
  htmlType: "submit"
@@ -65,6 +65,11 @@
65
65
  margin-right: 8px;
66
66
  }
67
67
  }
68
+
69
+ // 科室主题颜色
70
+ .actions-theme{
71
+ background: #00998F;
72
+ }
68
73
  }
69
74
  .radioInfos{
70
75
  margin-left: 10px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yilianjituan/yilian_dgerm",
3
- "version": "0.0.1-alpha.19",
3
+ "version": "0.0.1-alpha.21",
4
4
  "description": "A react library developed with dumi",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,7 +8,6 @@
8
8
  "scripts": {
9
9
  "start": "npm run dev",
10
10
  "dev": "dumi dev",
11
- "test": "jest",
12
11
  "build": "father build",
13
12
  "build:watch": "father dev",
14
13
  "docs:build": "dumi build",
@@ -65,7 +64,6 @@
65
64
  "antd": "^5.18.0",
66
65
  "axios": "^1.7.7",
67
66
  "dayjs": "^1.11.11",
68
- "jest-environment-jsdom": "^29.7.0",
69
67
  "jsdom": "20.0.0",
70
68
  "lodash": "^4.17.20",
71
69
  "qs": "^6.9.7",
@@ -75,11 +73,6 @@
75
73
  "devDependencies": {
76
74
  "@commitlint/cli": "^17.1.2",
77
75
  "@commitlint/config-conventional": "^17.1.0",
78
- "@testing-library/dom": "^9.3.4",
79
- "@testing-library/jest-dom": "^6.6.2",
80
- "@testing-library/react": "13.4.0",
81
- "@testing-library/user-event": "^14.5.2",
82
- "@types/jest": "^29.5.14",
83
76
  "@types/jsdom": "^21.1.7",
84
77
  "@types/lodash": "^4.17.12",
85
78
  "@types/qs": "^6.9.16",
@@ -91,16 +84,13 @@
91
84
  "eslint": "^8.23.0",
92
85
  "father": "^4.1.0",
93
86
  "husky": "^8.0.1",
94
- "jest": "^29.7.0",
95
87
  "lint-staged": "^13.0.3",
96
88
  "prettier": "^2.7.1",
97
89
  "prettier-plugin-organize-imports": "^3.0.0",
98
90
  "prettier-plugin-packagejson": "^2.2.18",
99
91
  "react-scripts": "5.0.1",
100
92
  "sass": "^1.75.0",
101
- "stylelint": "^14.9.1",
102
- "ts-jest": "^29.2.5",
103
- "ts-node": "^10.9.2"
93
+ "stylelint": "^14.9.1"
104
94
  },
105
95
  "resolutions": {
106
96
  "zod-validation-error": "^1.5.0"