@yorha2b-lab/autodev 7.3.3 → 7.3.6
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/bin/bunker.js
CHANGED
|
@@ -62,6 +62,7 @@ program
|
|
|
62
62
|
require('../src/headquarters/observer')(bunker)
|
|
63
63
|
result.yorha.operator6O.report(dialog.operator6O.call2B)
|
|
64
64
|
process.on('SIGINT', async () => {
|
|
65
|
+
process.stdout.write('\r\x1b[K')
|
|
65
66
|
result.yorha.commander.report(dialog.bunker.systemOffline, 'gray')
|
|
66
67
|
terminalCollapse(500, dialog, result)
|
|
67
68
|
const scout = await result.labs?.scout
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
return (
|
|
2
2
|
<Card {{#if hasTabs}}tabList={tabs} activeTabKey={activeKey} onTabChange={onTabChange}{{/if}}>
|
|
3
|
-
{{
|
|
3
|
+
{{~#if hasImageColumn}}{img.visible && <MyImage img={img} setImg={setImg}/>}{{~/if}}
|
|
4
4
|
{modal.visible && <MyModalForm {...modal} submit={modalSubmit} setModal={setModal} />}
|
|
5
5
|
{{#each renderTree as |treeNode|}}
|
|
6
6
|
{{> (treeNode) @root }}
|
|
@@ -11,6 +11,7 @@ module.exports = ({ template, logistics, headquarters }) => {
|
|
|
11
11
|
date: 'text => timeRender({time: text})',
|
|
12
12
|
index: '(_, record, index) => index + 1',
|
|
13
13
|
tag: `text => <Tag color='magenta'>{text}</Tag>`,
|
|
14
|
+
link: `text => <a href='#' target='_blank'>{text}</a>`,
|
|
14
15
|
badge: `text => <Badge status='success' text={text} />`,
|
|
15
16
|
enum: dataIndex => `text => ${dataIndex}Options.find(item => item.value === text)?.label ?? text`,
|
|
16
17
|
}
|
|
@@ -100,7 +101,7 @@ module.exports = ({ template, logistics, headquarters }) => {
|
|
|
100
101
|
columnsData,
|
|
101
102
|
hasFormItems,
|
|
102
103
|
tabs: pageConfig.tabs,
|
|
103
|
-
dictBlocks: dictBlocks.map(item => ({ name: item, data: optionDict[item] ?? [] })),
|
|
104
|
+
dictBlocks: dictBlocks.map(item => ({ name: item, data: optionDict[item] ?? [] })).sort((a, b) => a.name.length - b.name.length),
|
|
104
105
|
tabColumns: contextStringify({ context: Object.fromEntries(tabKeys?.map(tab => [tab, wrapCode('commonColumns')])), maxLength: 100 }),
|
|
105
106
|
formItemsData: !hasTabs ?
|
|
106
107
|
`export const formItems = ${contextStringify({ context: formItems, maxLength: 120 })}` :
|
|
@@ -145,10 +146,10 @@ module.exports = ({ template, logistics, headquarters }) => {
|
|
|
145
146
|
renderTree: pageConfig.renderTree,
|
|
146
147
|
hasExpandable: pageConfig.table.expandable,
|
|
147
148
|
staticInfoText: pageConfig.staticInfo?.text,
|
|
148
|
-
operations: pageConfig.table.operation || [],
|
|
149
149
|
hasRowSelection: pageConfig.table.rowSelection,
|
|
150
150
|
uri: needMock ? fileName : 'BUNKER_API_ANCHOR_pages',
|
|
151
151
|
formItems: hasFormItems ? (hasTabs ? 'formItems[activeKey]' : 'formItems') : '[]',
|
|
152
|
+
operations: pageConfig.table.operation?.sort((a, b) => a.action.length - b.action.length) || [],
|
|
152
153
|
initParams: `{ ${hasTabs ? 'type: tabs[0].key ,' : ''}${hasPagination ? 'pageNo: 1 , pageSize: 10' : ''}}`,
|
|
153
154
|
}
|
|
154
155
|
|