yangg 2 місяців тому
батько
коміт
4e975453e6

+ 7 - 0
src/views/position/list/crud.tsx

@@ -50,15 +50,22 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
 				buttons: {
 					view: {
 						show: true,
+						icon:"View",
+						type:"text"
 					},
 					edit: {
 						show: auth('role:Update'),
+						icon:"Edit",
+						type:"text"
 					},
 					remove: {
 						show: auth('role:Delete'),
+						icon:"Delete",
+						type:"text"
 					},
 					qrcode: {
 						text: '小程序码',
+						type: "text",
 						icon: '',
 						click: (ctx) => {
 							context.generateQRCode(ctx.row);

+ 7 - 1
src/views/questionBank/list/crud.tsx

@@ -127,19 +127,25 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
 			rowHandle: {
 				//固定右侧
 				fixed: 'right',
-				width: 230,
+				width: 259,
 				buttons: {
 					view: {
 						show: true,
 						size: 'small',
+						icon:"View",
+						type: 'text',
 					},
 					edit: {
 						show: auth('role:Update'),
 						size: 'small',
+						icon:"Edit",
+						type: 'text',
 					},
 					remove: {
 						show: auth('role:Delete'),
 						size: 'small',
+						type: 'text',
+						icon:"Delete",
 					},
 					/* permission: {
 						type: 'primary',

+ 11 - 5
src/views/questionBank/positionList/crud.tsx

@@ -71,14 +71,17 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 				buttons: {
 					view: {
 						size: 'small',
+						icon:"View",
+						type: 'text',
 						click: ({ row }: any) => {
 							const event = new CustomEvent('viewDocumentDetail', { detail: row });
 							window.dispatchEvent(event);
 						}
 					},
 					uploadVideo: {
-						text: '上传视频/字幕',
-						type: 'success',
+						text: '上传视频',
+						type: 'text',
+						icon:"upload",
 						size: 'small',
 						click: ({ row }: any) => {
 							// 触发自定义事件,让父组件处理弹窗显示
@@ -87,15 +90,18 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 						}
 					},
 					edit: {
-						type: 'primary',
+						type: 'text',
+						icon:"Edit",
 						size: 'small',
 					},
 					remove: {
-						type: 'danger',
+						type: 'text',
+						icon:"Delete",
 						size: 'small',
 					},
 					sort: {
-						type: 'warning',
+						type: 'text',
+						icon:"sort",
 						size: 'small',
 						text: '修改排序',
 						click: ({ row }: any) => {