()
| 703 | |
| 704 | // 表格配置弹窗 |
| 705 | function showTableConfigDialog() { |
| 706 | // 创建弹窗遮罩 |
| 707 | const tableModal = createElement('div', { |
| 708 | className: 'nsn-table-modal', |
| 709 | style: { |
| 710 | position: 'fixed', |
| 711 | inset: '0', |
| 712 | background: 'rgba(0,0,0,0.5)', |
| 713 | zIndex: '999999999', |
| 714 | display: 'flex', |
| 715 | alignItems: 'center', |
| 716 | justifyContent: 'center' |
| 717 | } |
| 718 | }); |
| 719 | |
| 720 | // 创建弹窗内容 |
| 721 | const modalContent = createElement('div', { |
| 722 | className: 'nsn-table-modal-content', |
| 723 | style: { |
| 724 | background: '#fff', |
| 725 | borderRadius: '12px', |
| 726 | padding: '20px', |
| 727 | maxWidth: '90vw', |
| 728 | width: '400px', |
| 729 | boxShadow: '0 8px 32px rgba(0,0,0,0.3)' |
| 730 | } |
| 731 | }); |
| 732 | |
| 733 | // 标题 |
| 734 | const title = createElement('div', { |
| 735 | style: { |
| 736 | fontSize: '16px', |
| 737 | fontWeight: '600', |
| 738 | color: '#333', |
| 739 | marginBottom: '16px', |
| 740 | textAlign: 'center' |
| 741 | } |
| 742 | }, ['插入表格']); |
| 743 | |
| 744 | // 行数输入 |
| 745 | const rowLabel = createElement('div', { |
| 746 | style: { marginBottom: '8px', fontWeight: '500' } |
| 747 | }, ['行数:']); |
| 748 | const rowInput = createElement('input', { |
| 749 | type: 'number', |
| 750 | min: '1', |
| 751 | max: '20', |
| 752 | value: '3', |
| 753 | style: { |
| 754 | width: '100%', |
| 755 | padding: '8px', |
| 756 | border: '1px solid #e5e7eb', |
| 757 | borderRadius: '6px', |
| 758 | marginBottom: '12px' |
| 759 | } |
| 760 | }); |
| 761 | |
| 762 | // 列数输入 |
no test coverage detected