antd-management-fast-develop 1.1.49 → 1.1.52
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/package.json +3 -3
- package/src/template.js +23 -0
    
        package/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "antd-management-fast-develop",
         | 
| 3 | 
            -
              "version": "1.1. | 
| 3 | 
            +
              "version": "1.1.52",
         | 
| 4 4 | 
             
              "description": "",
         | 
| 5 5 | 
             
              "license": "ISC",
         | 
| 6 6 | 
             
              "author": "",
         | 
| @@ -75,14 +75,14 @@ | |
| 75 75 | 
             
                "@commitlint/cz-commitlint": "^18.4.3",
         | 
| 76 76 | 
             
                "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
         | 
| 77 77 | 
             
                "@types/jest": "^29.5.11",
         | 
| 78 | 
            -
                "@types/node": "^20.10. | 
| 78 | 
            +
                "@types/node": "^20.10.4",
         | 
| 79 79 | 
             
                "@typescript-eslint/parser": "^6.13.2",
         | 
| 80 80 | 
             
                "babel-jest": "^29.7.0",
         | 
| 81 81 | 
             
                "commitizen": "^4.3.0",
         | 
| 82 82 | 
             
                "conventional-changelog-conventionalcommits": "^7.0.2",
         | 
| 83 83 | 
             
                "cross-env": "^7.0.3",
         | 
| 84 84 | 
             
                "documentation": "^14.0.2",
         | 
| 85 | 
            -
                "easy-soft-develop": "^2.1. | 
| 85 | 
            +
                "easy-soft-develop": "^2.1.49",
         | 
| 86 86 | 
             
                "eslint": "^8.55.0",
         | 
| 87 87 | 
             
                "eslint-config-airbnb": "^19.0.4",
         | 
| 88 88 | 
             
                "eslint-config-airbnb-typescript": "^17.1.0",
         | 
    
        package/src/template.js
    CHANGED
    
    | @@ -16,6 +16,7 @@ import { | |
| 16 16 | 
             
              unlimitedWithStringFlag,
         | 
| 17 17 | 
             
            } from 'antd-management-fast-common';
         | 
| 18 18 | 
             
            import {
         | 
| 19 | 
            +
              buildDropdownMenu,
         | 
| 19 20 | 
             
              buildFlexRadio,
         | 
| 20 21 | 
             
              buildFlexSelect,
         | 
| 21 22 | 
             
              buildFormRadio,
         | 
| @@ -90,6 +91,7 @@ export function renderSearch<%= o.functionSegment %>Select({ | |
| 90 91 | 
             
            }
         | 
| 91 92 |  | 
| 92 93 | 
             
            export function renderCustom<%= o.functionSegment %>Select({
         | 
| 94 | 
            +
              style = {},
         | 
| 93 95 | 
             
              label = '<%= o.label %>',
         | 
| 94 96 | 
             
              separator = ':',
         | 
| 95 97 | 
             
              size = 'middle',
         | 
| @@ -97,6 +99,7 @@ export function renderCustom<%= o.functionSegment %>Select({ | |
| 97 99 | 
             
              innerProps: innerProperties = null,
         | 
| 98 100 | 
             
            }) {
         | 
| 99 101 | 
             
              return buildFlexSelect({
         | 
| 102 | 
            +
                style,
         | 
| 100 103 | 
             
                label,
         | 
| 101 104 | 
             
                defaultValue: null,
         | 
| 102 105 | 
             
                separator,
         | 
| @@ -109,6 +112,26 @@ export function renderCustom<%= o.functionSegment %>Select({ | |
| 109 112 | 
             
              });
         | 
| 110 113 | 
             
            }
         | 
| 111 114 |  | 
| 115 | 
            +
            export function render<%= o.functionSegment %>DropDown({
         | 
| 116 | 
            +
              label = '<%= o.label %>',
         | 
| 117 | 
            +
              placement = 'bottomRight',
         | 
| 118 | 
            +
              icon = null,
         | 
| 119 | 
            +
              size = 'middle',
         | 
| 120 | 
            +
              onClick: onClickCallback,
         | 
| 121 | 
            +
              innerProps: innerProperties = null,
         | 
| 122 | 
            +
            }) {
         | 
| 123 | 
            +
              return buildDropdownMenu({
         | 
| 124 | 
            +
                label,
         | 
| 125 | 
            +
                placement,
         | 
| 126 | 
            +
                icon,
         | 
| 127 | 
            +
                size,
         | 
| 128 | 
            +
                list: refit<%= o.functionSegment %>List({ withUnlimited: false }),
         | 
| 129 | 
            +
                dataConvert: null,
         | 
| 130 | 
            +
                onClick: onClickCallback,
         | 
| 131 | 
            +
                innerProps: innerProperties || null,
         | 
| 132 | 
            +
              });
         | 
| 133 | 
            +
            }
         | 
| 134 | 
            +
             | 
| 112 135 | 
             
            export function renderForm<%= o.functionSegment %>Select({
         | 
| 113 136 | 
             
              helper = null,
         | 
| 114 137 | 
             
              onChange: onChangeCallback,
         |