1.0.0 • Published 4 years ago
sider-open v1.0.0
Menu expand / collapse
For some table fields that are too long, the small screen experience is not particularly good, so I made a sudden move to expand the function of folding up a menu and give more space to the screen. Note: this plug-in will not load under the mobile screen
How to use
npm i sider-open
# or
yarn i sider-open
- config.js
const siderOpen = require("sider-open");
module.exports = {
//. omitted
};
plugins: [
//. omitted
[
"sider-open",
{
Opentext: "expand",
Retracttext: "put up"
}
]
];
api
Name | type | default value | description |
---|---|---|---|
Opentext | string | open | name of the expanded field |
Retracttext | string | retract | name of the field to be retracted |
Agreement
1.0.0
4 years ago